space_list.tpl.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. $show_dialog = $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)) echo '<a class="add fb" href="'.$big_menu[0].'"><em>'.$big_menu[1].'</em></a> ';?>
  9. <?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>
  10. </div>
  11. </div>
  12. <div class="pad-lr-10">
  13. <form name="myform" action="?m=poster&c=space&a=delete" method="post" id="myform">
  14. <div class="table-list">
  15. <table width="100%" cellspacing="0">
  16. <thead>
  17. <tr>
  18. <th width="6%" align="center"><input type="checkbox" value="" id="check_box" onclick="selectall('spaceid[]');"></th>
  19. <th><?php echo L('boardtype')?></th>
  20. <th width="12%" align="center"><?php echo L('ads_type')?></th>
  21. <th width='10%' align="center"><?php echo L('size_format')?></th>
  22. <th width="10%" align="center"><?php echo L('ads_num')?></th>
  23. <th align="center" width="13%"><?php echo L('description')?></th>
  24. <th width="28%" align="center"><?php echo L('operations_manage')?></th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. <?php
  29. if(is_array($infos)){
  30. foreach($infos as $info){
  31. ?>
  32. <tr>
  33. <td align="center">
  34. <input type="checkbox" name="spaceid[]" value="<?php echo $info['spaceid']?>">
  35. </td>
  36. <td><?php echo $info['name']?></td>
  37. <td align="center"><?php echo $TYPES[$info['type']]?></td>
  38. <td align="center"><?php echo $info['width']?>*<?php echo $info['height']?></td>
  39. <td align="center"><?php echo $info['items']?></td>
  40. <td align="center"><?php echo $info['description']?></td>
  41. <td align="center">
  42. <a href="?m=poster&c=space&a=public_preview&spaceid=<?php echo $info['spaceid']?>" target="_blank"><?php echo L('preview')?></a> | <a href="javascript:call(<?php echo $info['spaceid']?>);void(0);"><?php echo L('get_code')?></a> | <a href='?m=poster&c=poster&a=init&spaceid=<?php echo $info['spaceid']?>&menuid=<?php echo $_GET['menuid']?>' ><?php echo L('ad_list')?></a> |
  43. <a href="###" onclick="edit(<?php echo $info['spaceid']?>, '<?php echo addslashes(new_html_special_chars($info['name']))?>')" title="<?php echo L('edit')?>" ><?php echo L('edit')?></a> |
  44. <a href='?m=poster&c=space&a=delete&spaceid=<?php echo $info['spaceid']?>' onClick="return confirm('<?php echo L('confirm', array('message' => addslashes(new_html_special_chars($info['name']))))?>')"><?php echo L('delete')?></a>
  45. | <a href="index.php?m=poster&c=poster&a=add&spaceid=<?php echo $info['spaceid']?>&menuid=<?php echo $_GET['menuid']?>&pc_hash=<?php echo $_SESSION['pc_hash']?>">添加广告</a>
  46. </td>
  47. </tr>
  48. <?php
  49. }
  50. }
  51. ?>
  52. </tbody>
  53. </table>
  54. <div class="btn"><label for="check_box"><?php echo L('selected_all')?>/<?php echo L('cancel')?></label>
  55. <input name="submit" type="submit" class="button" value="<?php echo L('remove_all_selected')?>" onClick="return confirm('<?php echo L('confirm', array('message' => L('selected')))?>')">&nbsp;&nbsp;</div> </div>
  56. <div id="pages"><?php echo $pages?></div>
  57. </form>
  58. </div>
  59. <script type="text/javascript">
  60. <!--
  61. function edit(id, name){
  62. window.top.art.dialog({title:'<?php echo L('edit_space')?>--'+name, id:'testIframe'+id, iframe:'?m=poster&c=space&a=edit&spaceid='+id ,width:'540px',height:'320px'}, function(){var d = window.top.art.dialog({id:'testIframe'+id}).data.iframe;// 使用内置接口获取iframe对象
  63. var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'testIframe'+id}).close()});
  64. };
  65. function call(id) {
  66. window.top.art.dialog({id:'call'}).close();
  67. window.top.art.dialog({title:'<?php echo L('get_code')?>', id:'call', iframe:'?m=poster&c=space&a=public_call&sid='+id, width:'600px', height:'470px'}, function(){window.top.art.dialog({id:'call'}).close();}, function(){window.top.art.dialog({id:'call'}).close();})
  68. }
  69. //-->
  70. </script>
  71. </body>
  72. </html>