message_search_list.tpl.php 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. $show_dialog = 1;
  4. include $this->admin_tpl('header','admin');
  5. ?>
  6. <div class="pad-lr-10">
  7. <form name="searchform" action="?m=message&c=message&a=search_message&menuid=<?php echo $_GET['menuid'];?>" method="post" >
  8. <table width="100%" cellspacing="0" class="search-form">
  9. <tbody>
  10. <tr>
  11. <td><div class="explain-col"><?php echo L('query_type')?>:<?php echo form::select($trade_status,$status,'name="search[status]"', L('all'))?> <?php echo L('username')?>: <input type="text" value="<?php echo $username;?>" class="input-text" name="search[username]"> <?php echo L('time')?>: <?php echo form::date('search[start_time]',$start_time,'')?> <?php echo L('to')?> <?php echo form::date('search[end_time]',$end_time,'')?> <input type="submit" value="<?php echo L('search')?>" class="button" name="dosubmit">
  12. </div>
  13. </td>
  14. </tr>
  15. </tbody>
  16. </table>
  17. </form>
  18. <form name="myform" action="?m=message&c=message&a=delete" method="post" onsubmit="checkuid();return false;">
  19. <div class="table-list">
  20. <table width="100%" cellspacing="0">
  21. <thead>
  22. <tr>
  23. <th width="35" align="center"><input type="checkbox" value="" id="check_box" onclick="selectall('messageid[]');"></th>
  24. <th><?php echo L('subject')?></th>
  25. <th width="35%" align="center"><?php echo L('content')?></th>
  26. <th width="10%" align="center"><?php echo L('fromuserid')?></th>
  27. <th width='10%' align="center"><?php echo L('touserid')?></th>
  28. <th width="15%" align="center"><?php echo L('operations_manage')?></th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. <?php
  33. if(is_array($infos)){
  34. foreach($infos as $info){
  35. ?>
  36. <tr>
  37. <td align="center" width="35"><input type="checkbox"
  38. name="messageid[]" value="<?php echo $info['messageid']?>"></td>
  39. <td><?php echo $info['subject']?></td>
  40. <td align="" widht="35%"><?php echo $info['content'];?></td>
  41. <td align="center" width="10%"><?php echo $info['send_from_id']?></td>
  42. <td align="center" width="10%"><?php echo $info['send_to_id'];?></td>
  43. <td align="center" width="15%"><a
  44. href='?m=message&c=message&a=delete&messageid=<?php echo $info['messageid']?>'
  45. onClick="return confirm('<?php echo L('confirm', array('message' => $info['subject']))?>')"><?php echo L('delete')?></a>
  46. </td>
  47. </tr>
  48. <?php
  49. }
  50. }
  51. ?>
  52. </tbody>
  53. </table>
  54. <div class="btn"><a href="#"
  55. onClick="javascript:$('input[type=checkbox]').attr('checked', true)"><?php echo L('selected_all')?></a>/<a
  56. href="#"
  57. onClick="javascript:$('input[type=checkbox]').attr('checked', false)"><?php echo L('cancel')?></a>
  58. <input name="submit" type="submit" class="button"
  59. value="<?php echo L('remove_all_selected')?>"
  60. onClick="return confirm('<?php echo L('confirm', array('message' => L('selected')))?>')">&nbsp;&nbsp;</div>
  61. <div id="pages"><?php echo $pages?></div>
  62. </div>
  63. </form>
  64. </div>
  65. <script type="text/javascript">
  66. function see_all(id, name) {
  67. window.top.art.dialog({id:'sell_all'}).close();
  68. window.top.art.dialog({title:'<?php echo L('details');//echo L('edit')?> '+name+' ',id:'edit',iframe:'?m=message&c=message&a=see_all&messageid='+id,width:'700',height:'450'}, function(){var d = window.top.art.dialog({id:'see_all'}).data.iframe;var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'see_all'}).close()});
  69. }
  70. function checkuid() {
  71. var ids='';
  72. $("input[name='messageid[]']:checked").each(function(i, n){
  73. ids += $(n).val() + ',';
  74. });
  75. if(ids=='') {
  76. window.top.art.dialog({content:"<?php echo L('before_select_operation')?>",lock:true,width:'200',height:'50',time:1.5},function(){});
  77. return false;
  78. } else {
  79. myform.submit();
  80. }
  81. }
  82. </script>
  83. </body>
  84. </html>