ipbanned_add.tpl.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  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. $("#ip").formValidator({onshow:"<?php echo L('input').L('ipbanned')?>",onfocus:"<?php echo L('input').L('ipbanned')?>"}).inputValidator({min:1,onerror:"<?php echo L('input').L('ipbanned')?>"}).regexValidator({regexp:"notempty",datatype:"enum",param:'i',onerror:"<?php echo L('three_types')?>"}).ajaxValidator({type : "get",url : "",data :"m=admin&c=ipbanned&a=public_name",datatype : "html",async:'false',success : function(data){ if( data == "1" ){return true;}else{return false;}},buttons: $("#dosubmit"),onerror : "<?php echo L('ip_exit')?>",onwait : "<?php echo L('connecting')?>"});
  10. $("#expires").formValidator({onshow:"<?php echo L('input').L('deblocking_time')?>",onfocus:"<?php echo L('input').L('deblocking_time')?>",oncorrect:"<?php echo L('time_isok')?>"}).inputValidator({min:1,onerror:"<?php echo L('time_ismust')?>"});
  11. })
  12. //-->
  13. </script>
  14. <div class="pad_10">
  15. <form action="?m=admin&c=ipbanned&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">IP :</th>
  19. <td><input type="text" name="info[ip]" id="ip" size="25"></td>
  20. </tr>
  21. <tr>
  22. <th><?php echo L('deblocking_time')?> :</th>
  23. <td><?php echo form::date('info[expires]', '', '')?></td>
  24. </tr>
  25. <input type="submit" name="dosubmit" id="dosubmit" class="dialog" value=" <?php echo L('submit')?> ">
  26. </table>
  27. </form>
  28. </div>
  29. </body>
  30. </html>