message_outbox_list.tpl.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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="myform" action="?m=message&c=message&a=delete_outbox" method="post" onsubmit="checkuid();return false;">
  8. <div class="table-list">
  9. <table width="100%" cellspacing="0">
  10. <thead>
  11. <tr>
  12. <th width="35" align="center"><input type="checkbox" value="" id="check_box" onclick="selectall('messageid[]');"></th>
  13. <th><?php echo L('subject')?></th>
  14. <th width="35%" align="center"><?php echo L('content')?></th>
  15. <th width="10%" align="center"><?php echo L('touserid')?></th>
  16. <th width='15%' align="center"><?php echo L('send_time')?></th>
  17. <th width="15%" align="center"><?php echo L('operations_manage')?></th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <?php
  22. if(is_array($infos)){
  23. foreach($infos as $info){
  24. ?>
  25. <tr>
  26. <td align="center" width="35"><input type="checkbox"
  27. name="messageid[]" value="<?php echo $info['messageid']?>"></td>
  28. <td><?php echo $info['subject']?></td>
  29. <td align="" widht="35%"><?php echo $info['content'];?></td>
  30. <td align="center" width="10%"><?php echo $info['send_to_id'];?></td>
  31. <td align="center" width="15%"><?php echo date("Y-m-d H:i:s",$info['message_time']);?></td>
  32. <td align="center" width="15%"> <a
  33. href='?m=message&c=message&a=delete&messageid=<?php echo $info['messageid']?>'
  34. onClick="return confirm('<?php echo L('confirm', array('message' => new_addslashes($info['subject'])))?>')"><?php echo L('delete')?></a>
  35. </td>
  36. </tr>
  37. <?php
  38. }
  39. }
  40. ?>
  41. </tbody>
  42. </table>
  43. <div class="btn"><a href="#"
  44. onClick="javascript:$('input[type=checkbox]').attr('checked', true)"><?php echo L('selected_all')?></a>/<a
  45. href="#"
  46. onClick="javascript:$('input[type=checkbox]').attr('checked', false)"><?php echo L('cancel')?></a>
  47. <input name="submit" type="submit" class="button"
  48. value="<?php echo L('remove_all_selected')?>"
  49. onClick="return confirm('<?php echo L('confirm', array('message' => L('selected')))?>')">&nbsp;&nbsp;</div>
  50. <div id="pages"><?php echo $pages?></div>
  51. </div>
  52. </form>
  53. </div>
  54. <script type="text/javascript">
  55. function see_all(id, name) {
  56. window.top.art.dialog({id:'sell_all'}).close();
  57. 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()});
  58. }
  59. function checkuid() {
  60. var ids='';
  61. $("input[name='messageid[]']:checked").each(function(i, n){
  62. ids += $(n).val() + ',';
  63. });
  64. if(ids=='') {
  65. window.top.art.dialog({content:"<?php echo L('before_select_operation')?>",lock:true,width:'200',height:'50',time:1.5},function(){});
  66. return false;
  67. } else {
  68. myform.submit();
  69. }
  70. }
  71. </script>
  72. </body>
  73. </html>