poster_template.tpl.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. <div class="table-list">
  14. <table width="100%" cellspacing="0">
  15. <thead>
  16. <tr>
  17. <th width="50" align="center"><?php echo L('template_name')?></th>
  18. <th width="24%" align="center"><?php echo L('operations_manage')?></th>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. <?php
  23. if(is_array($templates)){
  24. foreach($templates as $info){
  25. ?>
  26. <tr>
  27. <td><?php if ($poster_template[$info]['name']) { echo $poster_template[$info]['name'].' ('.$info.')'; } else { echo $info; }?></td>
  28. <td align="center">
  29. <a href="javascript:<?php if ($poster_template[$info]['iscore']) {?>check<?php } else {?>edit<?php }?>('<?php echo addslashes(new_html_special_chars($info))?>', '<?php echo addslashes(new_html_special_chars($poster_template[$info]['name']))?>');void(0);"><?php if ($poster_template[$info]['iscore']) { echo L('check_template'); } else { echo '<font color="#009933">'.L('setting_template').'</font>'; }?></a> | <a href="?m=poster&c=space&a=public_tempate_del&id=<?php echo $info?>"><?php echo L('delete')?></a>
  30. </td>
  31. </tr>
  32. <?php
  33. }
  34. }
  35. ?>
  36. </tbody>
  37. </table> </div>
  38. <div id="pages"><?php echo $this->pages?></div>
  39. </div>
  40. <script type="text/javascript">
  41. <!--
  42. function edit(id, name) {
  43. window.top.art.dialog({id:'testIframe'}).close();
  44. window.top.art.dialog({title:name, id:'testIframe', iframe:'?m=poster&c=space&a=public_tempate_setting&template='+id ,width:'540px',height:'360px'}, function(){var d = window.top.art.dialog({id:'testIframe'}).data.iframe;// 使用内置接口获取iframe对象
  45. var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'testIframe'}).close()});
  46. };
  47. function check(id, name) {
  48. window.top.art.dialog({id:'testIframe'}).close();
  49. window.top.art.dialog({title:name, id:'testIframe', iframe:'?m=poster&c=space&a=public_tempate_setting&template='+id ,width:'540px',height:'360px'})
  50. }
  51. //-->
  52. </script>
  53. </body>
  54. </html>