downservers_list.tpl.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header');?>
  4. <div class="pad-lr-10">
  5. <form name="downform" action="?m=admin&c=downservers&a=init" method="post" >
  6. <table width="100%" cellspacing="0" class="search-form">
  7. <tbody>
  8. <tr>
  9. <td><div class="explain-col"><?php echo L('downserver_name')?> <input type="text" value="<?php echo $sitename?>" class="input-text" name="info[sitename]"> <?php echo L('downserver_url')?> <input type="text" value="<?php echo $siteurl?>" class="input-text" name="info[siteurl]" size="50"> <?php echo L('downserver_site');?> <?php echo form::select($sitelist,self::get_siteid(),'name="info[siteid]"',$default)?> <input type="submit" value="<?php echo L('add');?>" class="button" name="dosubmit">
  10. </div>
  11. </td>
  12. </tr>
  13. </tbody>
  14. </table>
  15. </form>
  16. <form name="myform" action="?m=admin&c=downservers&a=listorder" method="post">
  17. <div class="table-list">
  18. <table width="100%" cellspacing="0">
  19. <thead>
  20. <tr>
  21. <th width="10%" align="left"><?php echo L('listorder');?></th>
  22. <th width="10%" align="left">ID</th>
  23. <th width="20%"><?php echo L('downserver_name')?></th>
  24. <th width="35%"><?php echo L('downserver_url')?></th>
  25. <th width="15%"><?php echo L('downserver_site')?></th>
  26. <th width="15%"><?php echo L('posid_operation');?></th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. <?php
  31. if(is_array($infos)){
  32. foreach($infos as $info){
  33. ?>
  34. <tr>
  35. <td width="10%">
  36. <input name='listorders[<?php echo $info['id']?>]' type='text' size='2' value='<?php echo $info['listorder']?>' class="input-text-c">
  37. </td>
  38. <td width="10%"><?php echo $info['id']?></td>
  39. <td width="20%" align="center"><?php echo $info['sitename']?></td>
  40. <td width="35%" align="center"><?php echo $info['siteurl']?></td>
  41. <td width="15%" align="center"><?php echo $info['siteid'] ? $sitelist[$info['siteid']] : L('all_site')?></td>
  42. <td width="15%" align="center">
  43. <a href="javascript:edit(<?php echo $info['id']?>, '<?php echo new_addslashes($info['sitename'])?>')"><?php echo L('edit')?></a> |
  44. <a href="javascript:confirmurl('?m=admin&c=downservers&a=delete&id=<?php echo $info['id']?>', '<?php echo L('downserver_del_cofirm')?>')"><?php echo L('delete')?></a>
  45. </td>
  46. </tr>
  47. <?php
  48. }
  49. }
  50. ?>
  51. </tbody>
  52. </table>
  53. <div class="btn"><input type="submit" class="button" name="dosubmit" value="<?php echo L('listorder')?>" /></div> </div>
  54. </form>
  55. <div id="pages"> <?php echo $pages?></div>
  56. </div>
  57. </div>
  58. </body>
  59. <a href="javascript:edit(<?php echo $v['siteid']?>, '<?php echo $v['name']?>')">
  60. </html>
  61. <script type="text/javascript">
  62. <!--
  63. function edit(id, name) {
  64. window.top.art.dialog({title:'<?php echo L('edit')?>--'+name, id:'edit', iframe:'?m=admin&c=downservers&a=edit&id='+id ,width:'520px',height:'150px'}, function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;
  65. var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});
  66. }
  67. //-->
  68. </script>