release_point_list.tpl.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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">ID</th>
  11. <th align="left" ><?php echo L('release_point_name')?></th>
  12. <th align="left" ><?php echo L('server_address')?></th>
  13. <th align="left" ><?php echo L("username")?></th>
  14. <th width="150"><?php echo L('operations_manage')?></th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. <?php
  19. if(is_array($list)):
  20. foreach($list as $v):
  21. ?>
  22. <tr>
  23. <td width="80" align="center"><?php echo $v['id']?></td>
  24. <td><?php echo $v['name']?></td>
  25. <td><?php echo $v['host']?></td>
  26. <td><?php echo $v['username']?></td>
  27. <td align="center" ><a href="javascript:edit(<?php echo $v['id']?>, '<?php echo new_addslashes($v['name'])?>')"><?php echo L('edit')?></a> | <a href="?m=admin&c=release_point&a=del&id=<?php echo $v['id']?>" onclick="return confirm('<?php echo new_addslashes(L('confirm', array('message'=>$v['name'])))?>')"><?php echo L('delete')?></a></td>
  28. </tr>
  29. <?php
  30. endforeach;
  31. endif;
  32. ?>
  33. </tbody>
  34. </table>
  35. </div>
  36. </div>
  37. <div id="pages"><?php echo $pages?></div>
  38. <script type="text/javascript">
  39. <!--
  40. function edit(id, name) {
  41. window.top.art.dialog({id:'edit'}).close();
  42. window.top.art.dialog({title:'<?php echo L('release_point_edit')?>《'+name+'》',id:'edit',iframe:'?m=admin&c=release_point&a=edit&id='+id,width:'700',height:'500'}, function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});
  43. }
  44. //-->
  45. </script>
  46. </body>
  47. </html>