spacecp_credit_log.htm 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!--{template common/header}-->
  2. <!--{subtemplate home/spacecp_header}-->
  3. <!--{hook/spacecp_credit_top}-->
  4. <!--{subtemplate home/spacecp_credit_header}-->
  5. <p class="tbmu bw0">
  6. <a{if $_GET[suboperation] != 'creditrulelog'} class="a"{/if} href="home.php?mod=spacecp&ac=credit&op=log" hidefocus="true">{lang credit_log}</a><span class="pipe">|</span>
  7. <a{if $_GET[suboperation] == 'creditrulelog'} class="a"{/if} href="home.php?mod=spacecp&ac=credit&op=log&suboperation=creditrulelog" hidefocus="true">{lang credit_log_sys}</a>
  8. </p>
  9. <!--{if $_GET[suboperation] != 'creditrulelog'}-->
  10. <script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
  11. <form method="post" action="home.php?mod=spacecp&ac=credit&op=log">
  12. <div class="exfm" style="margin-top: 0;">
  13. <table cellspacing="0" cellpadding="0">
  14. <tr>
  15. <th>{lang credits}:</th>
  16. <td>
  17. <span class="ftid">
  18. <select id="exttype" name="exttype" class="ps" width="168">
  19. <option value="0">{lang unlimited}</option>
  20. <!--{loop $_G['setting']['extcredits'] $id $credit}-->
  21. <option value="$id"{if $_GET[exttype]==$id} selected="selected"{/if}>$credit[title]</option>
  22. <!--{/loop}-->
  23. </select>
  24. </span>
  25. </td>
  26. <th>{lang starttime_endtime}:</th>
  27. <td>
  28. <input type="text" name="starttime" class="px" size="11" value="$_GET[starttime]" onclick="showcalendar(event, this)" readonly="readonly" /> {lang credit_to} <input type="text" name="endtime" class="px" size="11" value="$_GET[endtime]" readonly="readonly" onclick="showcalendar(event, this)" />
  29. </td>
  30. </tr>
  31. <tr>
  32. <th>{lang credit_income}:</th>
  33. <td>
  34. <span class="ftid">
  35. <select id="income" name="income" class="ps" width="168">
  36. <option value="0"$incomeactives[0]>{lang credit_income_0}</option>
  37. <option value="-1"$incomeactives[-1]>{lang credit_income_2}</option>
  38. <option value="1"$incomeactives[1]>{lang credit_income_1}</option>
  39. </select>
  40. </span>
  41. </td>
  42. <th>{lang operation}:</th>
  43. <td><span class="ftid">$optypehtml</span></td>
  44. </tr>
  45. <tr>
  46. <th>&nbsp;</th>
  47. <td><button type="submit" class="pn" name="search" value="true"><strong>{lang srch}</strong></button></td>
  48. </tr>
  49. </table>
  50. <script type="text/javascript">
  51. simulateSelect('exttype');
  52. simulateSelect('income');
  53. simulateSelect('optype');
  54. </script>
  55. </div>
  56. <table summary="{lang memcp_credits_log_payment}" cellspacing="0" cellpadding="0" class="dt">
  57. <tr>
  58. <th width="80">{lang operation}</th>
  59. <th width="80">{lang credit_change}</th>
  60. <th>{lang detail}</th>
  61. <th width="100">{lang changedateline}</th>
  62. </tr>
  63. <!--{loop $loglist $value}-->
  64. <!--{eval $value = makecreditlog($value, $otherinfo);}-->
  65. <tr>
  66. <td><!--{if $value['operation']}--><a href="home.php?mod=spacecp&ac=credit&op=log&optype=$value['operation']">$value['optype']</a><!--{else}-->$value['title']<!--{/if}--></td>
  67. <td>$value['credit']</td>
  68. <td><!--{if $value['operation']}-->$value['opinfo']<!--{else}-->$value['text']<!--{/if}--></td>
  69. <td>$value['dateline']</td>
  70. </tr>
  71. <!--{/loop}-->
  72. </table>
  73. <input type="hidden" name="op" value="log" />
  74. <input type="hidden" name="ac" value="credit" />
  75. <input type="hidden" name="mod" value="spacecp" />
  76. </form>
  77. <!--{elseif $_GET[suboperation] == 'creditrulelog'}-->
  78. <table summary="{lang get_credit_histroy}" cellspacing="0" cellpadding="0" class="dt">
  79. <tr>
  80. <th class="xw1" width="80">{lang action_name}</th>
  81. <th class="xw1" width="60">{lang total_time}</th>
  82. <th class="xw1" width="60">{lang cycles_num}</th>
  83. <!--{loop $_G['setting']['extcredits'] $key $value}-->
  84. <th class="xw1">$value[title]</th>
  85. <!--{/loop}-->
  86. <th class="xw1" width="100">{lang last_award_time}</th>
  87. </tr>
  88. <!--{eval $i = 0;}-->
  89. <!--{loop $list $key $log}-->
  90. <!--{eval $i++;}-->
  91. <tr{if $i % 2 == 0} class="alt"{/if}>
  92. <td><a href="home.php?mod=spacecp&ac=credit&op=rule&rid=$log[rid]">$log[rulename]</a></td>
  93. <td>$log[total]</td>
  94. <td>$log[cyclenum]</td>
  95. <!--{loop $_G['setting']['extcredits'] $key $value}-->
  96. <!--{eval $creditkey = 'extcredits'.$key;}-->
  97. <td>$log[$creditkey]</td>
  98. <!--{/loop}-->
  99. <td><!--{date($log[dateline], 'Y-m-d H:i')}--></td>
  100. </tr>
  101. <!--{/loop}-->
  102. </table>
  103. <!--{/if}-->
  104. <!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
  105. <!--{hook/spacecp_credit_bottom}-->
  106. </div>
  107. </div>
  108. <div class="appl">
  109. <!--{subtemplate home/spacecp_footer}-->
  110. </div>
  111. </div>
  112. <!--{template common/footer}-->