123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- defined('IN_ADMIN') or exit('No permission resources.');
- include $this->admin_tpl('header');
- ?>
- <script type="text/javascript">
- <!--
- $(function(){
- $.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();})}});
- $("#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');?>"});
- $("#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');?>"});
- })
- //-->
- </script>
- <div class="pad_10">
- <form action="?m=admin&c=copyfrom&a=add" method="post" name="myform" id="myform" >
- <table width="100%" cellpadding="2" cellspacing="1" class="table_form">
- <tr>
- <th width="60"><?php echo L('copyfrom_name');?> :</th>
- <td><input type="text" name="info[sitename]" id="sitename" size="25"></td>
- </tr>
- <tr>
- <th><?php echo L('copyfrom_url')?> :</th>
- <td><input type="text" name="info[siteurl]" id="siteurl" size="25"></td>
- </tr>
- <tr>
- <th><?php echo L('copyfrom_logo')?> :</th>
- <td><?php echo form::images('info[thumb]', 'thumb', '', 'admin')?></td>
- </tr>
- <input type="submit" name="dosubmit" id="dosubmit" class="dialog" value=" <?php echo L('submit')?> ">
- </table>
- </form>
- </div>
- </body>
- </html>
|