site_list.tpl.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header');
  4. ?>
  5. <div class="pad_10">
  6. <div class="table-list">
  7. <table width="100%" cellspacing="0">
  8. <thead>
  9. <tr>
  10. <th width="80">Siteid</th>
  11. <th><?php echo L('site_name')?></th>
  12. <th><?php echo L('site_dirname')?></th>
  13. <th><?php echo L('site_domain')?></th>
  14. <th align="center"><?php echo L('godaddy')?></th>
  15. <th width="150"><?php echo L('operations_manage')?></th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. <?php
  20. if(is_array($list)):
  21. foreach($list as $v):
  22. ?>
  23. <tr>
  24. <td width="80" align="center"><?php echo $v['siteid']?></td>
  25. <td align="center"><?php echo $v['name']?></td>
  26. <td align="center"><?php echo $v['dirname']?></td>
  27. <td align="center"><?php echo $v['domain']?></td>
  28. <td align="center"><?php if ($v['siteid']!=1){?><?php echo pc_base::load_config('system', 'html_root')?>/<?php echo $v['dirname'];} else{echo '/';}?></td>
  29. <td align="center"><a href="javascript:edit(<?php echo $v['siteid']?>, '<?php echo new_addslashes(new_html_special_chars($v['name']))?>')"><?php echo L('edit')?></a> |
  30. <?php if($v['siteid']!=1) { ?><a href="?m=admin&c=site&a=del&siteid=<?php echo $v['siteid']?>" onclick="return confirm('<?php echo new_addslashes(new_html_special_chars(L('confirm', array('message'=>$v['name']))))?>')"><?php echo L('delete')?></a><?php } else { ?><font color="#cccccc"><?php echo L('delete')?></font><?php } ?></td>
  31. </tr>
  32. <?php
  33. endforeach;
  34. endif;
  35. ?>
  36. </tbody>
  37. </table>
  38. </div>
  39. </div>
  40. <div id="pages"><?php echo $pages?></div>
  41. <script type="text/javascript">
  42. <!--
  43. function edit(id, name) {
  44. window.top.art.dialog({id:'edit'}).close();
  45. window.top.art.dialog({title:'<?php echo L('edit_site')?>《'+name+'》',id:'edit',iframe:'?m=admin&c=site&a=edit&siteid='+id,width:'700',height:'500'}, function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;d.document.getElementById('dosubmit').click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});
  46. }
  47. //-->
  48. </script>
  49. </body>
  50. </html>