urlrule_add.tpl.php 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. $("#file").formValidator({onshow:"<?php echo L('input').L('urlrule_file')?>",onfocus:"<?php echo L('input').L('urlrule_file')?>"}).regexValidator({regexp:"^([a-zA-Z0-9]|[_]){0,20}$",onerror:"<?php echo L('enter_the_correct_catname');?>"}).inputValidator({min:1,onerror:"<?php echo L('input').L('urlrule_file')?>"});
  10. $("#example").formValidator({onshow:"<?php echo L('input').L('urlrule_example')?>",onfocus:"<?php echo L('input').L('urlrule_example')?>"}).inputValidator({min:1,onerror:"<?php echo L('input').L('urlrule_example')?>"});
  11. $("#urlrule").formValidator({onshow:"<?php echo L('input').L('urlrule_url')?>",onfocus:"<?php echo L('input').L('urlrule_url')?>"}).inputValidator({min:1,onerror:"<?php echo L('input').L('urlrule_url')?>"});
  12. })
  13. //-->
  14. </script>
  15. <style type="text/css">
  16. .input-botton {
  17. border:none;
  18. border-bottom:1px dotted #E1A035;
  19. background:none;
  20. }
  21. </style>
  22. <div class="pad_10">
  23. <table width="100%" cellpadding="2" cellspacing="1" class="table_form">
  24. <form action="?m=admin&c=urlrule&a=add" method="post" name="myform" id="myform">
  25. <tr>
  26. <th width="20%"><?php echo L('urlrule_file')?> :</th>
  27. <td><input type="text" name="info[file]" id="file" size="20"></td>
  28. </tr>
  29. <tr>
  30. <th width="20%"><?php echo L('urlrule_module')?> :</th>
  31. <td><?php echo form::select($modules,'content',"name='info[module]' id='module'");?></td>
  32. </tr>
  33. <tr>
  34. <th width="20%"><?php echo L('urlrule_ishtml')?> :</th>
  35. <td>
  36. <input type="radio" value="1" name="info[ishtml]" /><?php echo L('yes');?>
  37. <input type="radio" value="0" name="info[ishtml]" checked="checked" /><?php echo L('no');?>
  38. </td>
  39. </tr>
  40. <tr>
  41. <th width="20%"><?php echo L('urlrule_example')?> :</th>
  42. <td><input type="text" name="info[example]" id="example" size="70"></td>
  43. </tr>
  44. <tr>
  45. <th width="20%"><?php echo L('urlrule_url')?> :</th>
  46. <td><input type="text" name="info[urlrule]" id="urlrule" size="70">
  47. </td>
  48. </tr>
  49. <tr>
  50. <th width="20%"><?php echo L('urlrule_func')?> :</th>
  51. <td><?php echo L('complete_part_path');?>: <input type="text" name="f1" value="{$categorydir}" size="15" class="input-botton">,<?php echo L('category_path');?>:<input type="text" name="f1" value="{$catdir}" size="10" class="input-botton">
  52. <div class="bk6"></div>
  53. <?php echo L('year');?>:<input type="text" name="f1" value="{$year}" size="7" class="input-botton"> <?php echo L('month');?>:<input type="text" name="f1" value="{$month}" size="9" class="input-botton">,<?php echo L('day');?>:<input type="text" name="f1" value="{$day}" size="7" class="input-botton"> ID:<input type="text" name="f1" value="{$id}" size="4" class="input-botton">, <?php echo L('paging');?>:<input type="text" name="f1" value="{$page}" size="7" class="input-botton">
  54. </td>
  55. </tr>
  56. <input type="submit" name="dosubmit" id="dosubmit" class="dialog" value=" <?php echo L('submit')?> ">
  57. </form>
  58. </table>
  59. </div>
  60. </body>
  61. </html>