1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- defined('IN_ADMIN') or exit('No permission resources.');
- include $this->admin_tpl('header');
- ?>
- <div class="pad_10">
- <div class="table-list">
- <table width="100%" cellspacing="0">
- <thead>
- <tr>
- <th width="80">ID</th>
- <th align="left" ><?php echo L('release_point_name')?></th>
- <th align="left" ><?php echo L('server_address')?></th>
- <th align="left" ><?php echo L("username")?></th>
- <th width="150"><?php echo L('operations_manage')?></th>
- </tr>
- </thead>
- <tbody>
- <?php
- if(is_array($list)):
- foreach($list as $v):
- ?>
- <tr>
- <td width="80" align="center"><?php echo $v['id']?></td>
- <td><?php echo $v['name']?></td>
- <td><?php echo $v['host']?></td>
- <td><?php echo $v['username']?></td>
- <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>
- </tr>
- <?php
- endforeach;
- endif;
- ?>
- </tbody>
- </table>
- </div>
- </div>
- <div id="pages"><?php echo $pages?></div>
- <script type="text/javascript">
- <!--
- function edit(id, name) {
- window.top.art.dialog({id:'edit'}).close();
- 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()});
- }
- //-->
- </script>
- </body>
- </html>
|