copyfrom_add.tpl.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header');
  4. ?>
  5. <script type="text/javascript">
  6. <!--
  7. $(function(){
  8. $.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}});
  9. $("#sitename").formValidator({onshow:"<?php echo L('input').L('copyfrom_name');?>",onfocus:"<?php echo L('input').L('copyfrom_name');?>"}).inputValidator({min:1,onerror:"<?php echo L('input').L('copyfrom_name');?>"});
  10. $("#siteurl").formValidator({onshow:"<?php echo L('input').L('copyfrom_url');?>",onfocus:"<?php echo L('input').L('copyfrom_url');?>",empty:false}).inputValidator({onerror:"<?php echo L('input').L('copyfrom_url');?>"}).regexValidator({regexp:"^http://",onerror:"<?php echo L('copyfrom_url_tips');?>"});
  11. })
  12. //-->
  13. </script>
  14. <div class="pad_10">
  15. <form action="?m=admin&c=copyfrom&a=add" method="post" name="myform" id="myform" >
  16. <table width="100%" cellpadding="2" cellspacing="1" class="table_form">
  17. <tr>
  18. <th width="60"><?php echo L('copyfrom_name');?> :</th>
  19. <td><input type="text" name="info[sitename]" id="sitename" size="25"></td>
  20. </tr>
  21. <tr>
  22. <th><?php echo L('copyfrom_url')?> :</th>
  23. <td><input type="text" name="info[siteurl]" id="siteurl" size="25"></td>
  24. </tr>
  25. <tr>
  26. <th><?php echo L('copyfrom_logo')?> :</th>
  27. <td><?php echo form::images('info[thumb]', 'thumb', '', 'admin')?></td>
  28. </tr>
  29. <input type="submit" name="dosubmit" id="dosubmit" class="dialog" value=" <?php echo L('submit')?> ">
  30. </table>
  31. </form>
  32. </div>
  33. </body>
  34. </html>