poster_list.tpl.php 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header', 'admin');
  4. ?>
  5. <div class="subnav">
  6. <div class="content-menu ib-a blue line-x">
  7. <?php if(isset($big_menu)) echo '<a class="add fb" href="'.$big_menu[0].'"><em>'.$big_menu[1].'</em></a> ';?>
  8. <?php echo admin::submenu($_GET['menuid'],$big_menu); ?><span>|</span><a href="javascript:window.top.art.dialog({id:'setting',iframe:'?m=poster&c=space&a=setting', title:'<?php echo L('module_setting')?>', width:'540', height:'320'}, function(){var d = window.top.art.dialog({id:'setting'}).data.iframe;var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'setting'}).close()});void(0);"><em><?php echo L('module_setting')?></em></a>
  9. </div>
  10. </div>
  11. <div class="pad-lr-10">
  12. <form name="myform" action="?m=poster&c=poster&a=listorder" method="post">
  13. <div class="table-list">
  14. <table width="100%" cellspacing="0" class="contentWrap">
  15. <thead>
  16. <tr>
  17. <th width="30" align="center"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
  18. <th width="35">ID</th>
  19. <th width="70"><?php echo L('listorder')?></th>
  20. <th align="center"><?php echo L('poster_title')?></th>
  21. <th width="70" align="center"><?php echo L('poster_type')?></th>
  22. <th width='200' align="center"><?php echo L('for_postion')?></th>
  23. <th width="50" align="center"><?php echo L('status')?></th>
  24. <th width='50' align="center"><?php echo L('hits')?></th>
  25. <th width="130" align="center"><?php echo L('addtime')?></th>
  26. <th width="110" align="center"><?php echo L('operations_manage')?></th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. <?php
  31. if(is_array($infos)){
  32. foreach($infos as $info){
  33. $space = $this->s_db->get_one(array('spaceid'=>$info['spaceid']), 'name');
  34. ?>
  35. <tr>
  36. <td align="center">
  37. <input type="checkbox" name="id[]" value="<?php echo $info['id']?>">
  38. </td>
  39. <td align="center"><?php echo $info['id']?></td>
  40. <th width="70"><input type="text" size="5" name="listorder[<?php echo $info['id']?>]" value="<?php echo $info['listorder']?>" id="listorder"></th>
  41. <td><?php echo $info['name']?></td>
  42. <td align="center"><?php echo $types[$info['type']]?></td>
  43. <td align="center"><?php echo $space['name']?></td>
  44. <td align="center"><?php if($info['disabled']) { echo L('stop'); } elseif((strtotime($info['enddate'])<SYS_TIME) && (strtotime($info['enddate'])>0)) { echo L('past'); } else { echo L('start'); }?></td>
  45. <td align="center"><?php echo $info['clicks']?></td>
  46. <td align="center"><?php echo format::date($info['addtime'], 1);?></td>
  47. <td align="center"><a href="index.php?m=poster&c=poster&a=edit&id=<?php echo $info['id'];?>&pc_hash=<?php echo $_SESSION['pc_hash'];?>&menuid=<?php echo $_GET['menuid']?>" ><?php echo L('edit')?></a>|<a href="?m=poster&c=poster&a=stat&id=<?php echo $info['id']?>&spaceid=<?php echo $_GET['spaceid'];?>"><?php echo L('stat')?></a></td>
  48. </tr>
  49. <?php
  50. }
  51. }
  52. ?>
  53. </tbody>
  54. </table>
  55. <div class="btn"><label for="check_box"><?php echo L('selected_all')?>/<?php echo L('cancel')?></label>
  56. <input name='submit' type='submit' class="button" value='<?php echo L('listorder')?>'>&nbsp;
  57. <input name='submit' type='submit' class="button" value='<?php echo L('start')?>' onClick="document.myform.action='?m=poster&c=poster&a=public_approval&passed=0'">&nbsp;
  58. <input name='submit' type='submit' class="button" value='<?php echo L('stop')?>' onClick="document.myform.action='?m=poster&c=poster&a=public_approval&passed=1'">&nbsp;
  59. <input name="submit" type="submit" class="button" value="<?php echo L('delete')?>" onClick="document.myform.action='?m=poster&c=poster&a=delete';return confirm('<?php echo L('confirm', array('message' => L('selected')))?>')">&nbsp;&nbsp;</div> </div>
  60. <div id="pages"><?php echo $this->db->pages;?></div>
  61. </form>
  62. </div>
  63. </body>
  64. </html>
  65. <script type="text/javascript">
  66. <!--
  67. function edit(id, name) {
  68. window.top.art.dialog({id:'edit'}).close();
  69. window.top.art.dialog({title:'<?php echo L('edit_ads')?>--'+name, id:'edit', iframe:'?m=poster&c=poster&a=edit&id='+id ,width:'600px',height:'430px'}, function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;// 使用内置接口获取iframe对象
  70. var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});
  71. }
  72. //-->
  73. </script>