spend_list.tpl.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header','admin');
  4. ?>
  5. <div class="pad_10">
  6. <div class="table-list">
  7. <form name="searchform" action="" method="get" >
  8. <input type="hidden" value="pay" name="m">
  9. <input type="hidden" value="spend" name="c">
  10. <input type="hidden" value="init" name="a">
  11. <input type="hidden" value="<?php echo $_GET['menuid']?>" name="menuid">
  12. <table width="100%" cellspacing="0" class="search-form">
  13. <tbody>
  14. <tr>
  15. <td>
  16. <div class="explain-col">
  17. <?php echo form::select(array('1'=>L('username'), '2'=>L('userid')), $user_type, 'name="user_type"')?>: <input type="text" value="<?php echo $username?>" class="input-text" name="username">
  18. <?php echo L('from')?> <?php echo form::date('starttime',format::date($starttime))?> <?php echo L('to')?> <?php echo form::date('endtime',format::date($endtime))?>
  19. <?php echo form::select(array(''=>L('op'), '1'=>L('username'), '2'=>L('userid')), $op_type, 'name="op_type"')?>:
  20. <input type="text" value="<?php echo $op?>" class="input-text" name="op">
  21. <?php echo form::select(array(''=>L('expenditure_patterns'), '1'=>L('money'), '2'=>L('point')), $type, 'name="type"')?>
  22. <input type="submit" value="<?php echo L('search')?>" class="button" name="dosubmit">
  23. </div>
  24. </td>
  25. </tr>
  26. </tbody>
  27. </table>
  28. </form>
  29. <table width="100%" cellspacing="0">
  30. <thead>
  31. <tr>
  32. <th width="10%"><?php echo L('username')?></th>
  33. <th width="20%"><?php echo L('content_of_consumption')?></th>
  34. <th width="15%"><?php echo L('empdisposetime')?> </th>
  35. <th width="9%"><?php echo L('op')?></th>
  36. <th width="8%"><?php echo L('expenditure_patterns')?></th>
  37. <th width="8%"><?php echo L('consumption_quantity')?></th>
  38. </tr>
  39. </thead>
  40. <tbody>
  41. <?php
  42. if(is_array($list)){
  43. $amount = $point = 0;
  44. foreach($list as $info){
  45. ?>
  46. <tr>
  47. <td width="10%" align="center"><?php echo $info['username']?></td>
  48. <td width="20%" align="center"><?php echo $info['msg']?></td>
  49. <td width="15%" align="center"><?php echo format::date($info['creat_at'], 1)?></td>
  50. <td width="9%" align="center"><?php if (!empty($info['op_userid'])) {echo $info['op_username'];} else {echo L('self');}?></td>
  51. <td width="8%" align="center"><?php if ($info['type'] == 1) {echo L('money');} elseif($info['type'] == 2) {echo L('point');}?></td>
  52. <td width="8%" align="center"><?php echo $info['value']?></td>
  53. </tr>
  54. <?php
  55. }
  56. }
  57. ?>
  58. </tbody>
  59. </table>
  60. <div id="pages"> <?php echo $pages?></div>
  61. </div>
  62. </div>
  63. </form>
  64. </body>
  65. </html>
  66. <script type="text/javascript">
  67. <!--
  68. function discount(id, name) {
  69. window.top.art.dialog({title:'<?php echo L('discount')?>--'+name, id:'discount', iframe:'?m=pay&c=payment&a=public_discount&id='+id ,width:'500px',height:'200px'}, function(){var d = window.top.art.dialog({id:'discount'}).data.iframe;
  70. var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'discount'}).close()});
  71. }
  72. function detail(id, name) {
  73. window.top.art.dialog({title:'<?php echo L('discount')?>--'+name, id:'discount', iframe:'?m=pay&c=payment&a=public_pay_detail&id='+id ,width:'500px',height:'550px'});
  74. }
  75. //-->
  76. </script>