content_list.tpl.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. $show_header = 1;
  4. include $this->admin_tpl('header','admin');
  5. ?>
  6. <div class="subnav">
  7. <div class="content-menu ib-a blue line-x">
  8.  <?php if(isset($big_menu)) { foreach($big_menu as $big) { echo '<a class="add fb" href="'.$big[0].'"><em>'.$big[1].'</em></a> '; } }?>&nbsp;<a class="on" href="?m=special&c=special"><em><?php echo L('special_list')?></em></a></div>
  9. </div>
  10. <div class="pad-10">
  11. <div class="table-list">
  12. <form name="myform" action="?m=special&c=content&a=listorder&specialid=<?php echo $_GET['specialid']?>" method="post">
  13. <table width="100%">
  14. <thead>
  15. <tr>
  16. <th width="40"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
  17. <th width="43"><?php echo L('listorder')?></th>
  18. <th width="60">ID</th>
  19. <th><?php echo L('content_title')?></th>
  20. <th width="120"><?php echo L('for_type')?></th>
  21. <th width="90"><?php echo L('inputman')?></th>
  22. <th width="120"><?php echo L('update_time')?></th>
  23. <th width="200"><?php echo L('operations_manage')?></th>
  24. </tr>
  25. </thead>
  26. <tbody>
  27. <?php foreach ($datas as $r) {
  28. if ($r['curl']) {
  29. $content_arr = explode('|', $r['curl']);
  30. $r['url'] = go($content_arr['1'], $content_arr['0']);
  31. }
  32. ?>
  33. <tr>
  34. <td align="center" width="40"><input class="inputcheckbox " name="id[]" value="<?php echo $r['id'];?>" type="checkbox"></td>
  35. <td align='center' width='43'><input name='listorders[<?php echo $r['id'];?>]' type='text' size='3' value='<?php echo $r['listorder'];?>' class='input-text-c'></td>
  36. <td align='center' width="60"><?php echo $r['id'];?></td>
  37. <td><a href="<?php echo $r['url'];?>" target="_blank"><?php echo $r['title'];?></a></td>
  38. <td align='center' width="120"><?php echo $types[$r['typeid']]['name'];?></td>
  39. <td align='center' width="90"><?php echo $r['username'];?></td>
  40. <td align='center' width="120"><?php echo format::date($r['updatetime'],1);?></td>
  41. <td align='center' width="200"><a href="javascript:;" onclick="javascript:openwinx('?m=special&c=content&a=edit&specialid=<?php echo $r['specialid']?>&id=<?php echo $r['id']?>','')"><?php echo L('content_edit')?></a> </td>
  42. </tr>
  43. <?php }?>
  44. </tbody>
  45. </table>
  46. <div class="btn"><label for="check_box"><?php echo L('selected_all')?>/<?php echo L('cancel')?></label> <input type="submit" class="button" value="<?php echo L('listorder')?>" /> <input type="submit" class="button" value="<?php echo L('delete')?>" onclick="if(confirm('<?php echo L('confirm', array('message' => L('selected')))?>')){document.myform.action='?m=special&c=content&a=delete&specialid=<?php echo $_GET['specialid']?>'}else{return false;}"/></div>
  47. <div id="pages"><?php echo $pages;?></div>
  48. </form>
  49. </div>
  50. </div>
  51. <script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>cookie.js"></script>
  52. <script type="text/javascript">
  53. setcookie('refersh_time', 0);
  54. function refersh_window() {
  55. var refersh_time = getcookie('refersh_time');
  56. if(refersh_time==1) {
  57. window.location.reload();
  58. }
  59. }
  60. setInterval("refersh_window()", 5000);
  61. </script>
  62. </body>
  63. </html>