downservers_edit.tpl.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header');?>
  4. <script type="text/javascript">
  5. <!--
  6. $(function(){
  7. $.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
  8. $("#sitename").formValidator({onshow:"<?php echo L('input').L('mirrors_name')?>",onfocus:"<?php echo L('mirrors_name').L('downserver_not_empty')?>"}).inputValidator({min:1,max:999,onerror:"<?php echo L('downserver_name').L('downserver_not_empty')?>"});
  9. $("#siteurl").formValidator({onshow:"<?php echo L('mirror_address')?>",onfocus:"<?php echo L('mirror_address')?>"}).inputValidator({onerror:"<?php echo L('downserver_error')?>"}).regexValidator({regexp:"([a-zA-Z]+):\/\/(.+)[^\/]$",onerror:"<?php echo L('downserver_error')?>"});
  10. })
  11. //-->
  12. </script>
  13. <div class="pad_10">
  14. <div class="common-form">
  15. <form name="myform" action="?m=admin&c=downservers&a=edit" method="post" id="myform">
  16. <input type="hidden" name="id" value="<?php echo $id?>"></input>
  17. <table width="100%" class="table_form">
  18. <tr>
  19. <td width="80"><?php echo L('mirrors_name')?></td>
  20. <td><input type="text" name="info[sitename]" class="input-text" value="<?php echo $sitename?>" id="sitename"></input></td>
  21. </tr>
  22. <tr>
  23. <td width="80"><?php echo L('mirror_address')?></td>
  24. <td><input type="text" name="info[siteurl]" class="input-text" value="<?php echo $siteurl?>" id="siteurl" size="40"></input></td>
  25. </tr>
  26. <tr>
  27. <td><?php echo L('site_select')?></td>
  28. <td><?php echo form::select($sitelist,$siteid,'name="info[siteid]"',$default)?></td>
  29. </tr>
  30. </table>
  31. <input name="dosubmit" type="submit" value="<?php echo L('submit')?>" class="dialog" id="dosubmit">
  32. </form>
  33. </div>
  34. </div>
  35. </body>
  36. </html>