<?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();})}});
		$("#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')?>"});
		$("#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')?>"});
		$("#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')?>"});

	})
//-->
</script>
<style type="text/css">
.input-botton {
	border:none;
	border-bottom:1px dotted #E1A035;
	background:none;
}
</style>
<div class="pad_10">
<table width="100%" cellpadding="2" cellspacing="1" class="table_form">
<form action="?m=admin&c=urlrule&a=edit" method="post" name="myform" id="myform">
	<tr> 
      <th width="20%"><?php echo L('urlrule_file')?> :</th>
      <td><input type="text" name="info[file]" id="file" size="20" value="<?php echo $file;?>"></td>
    </tr>
	<tr> 
      <th width="20%"><?php echo L('urlrule_module')?> :</th>
      <td><?php echo form::select($modules,$module,"name='info[module]' id='module'");?></td>
    </tr>
	<tr> 
      <th width="20%"><?php echo L('urlrule_ishtml')?> :</th>
      <td>
	   <input type="radio" value="1" name="info[ishtml]" <?php if($ishtml) echo 'checked';?>/><?php echo L('yes');?>
        <input type="radio" value="0" name="info[ishtml]" <?php if(!$ishtml) echo 'checked';?>/><?php echo L('no');?>
	</td>
    </tr>
	<tr> 
      <th width="20%"><?php echo L('urlrule_example')?> :</th>
       <td><input type="text" name="info[example]" id="example" size="70" value="<?php echo $example;?>"></td>
    </tr>
	<tr> 
      <th width="20%"><?php echo L('urlrule_url')?> :</th>
       <td><input type="text" name="info[urlrule]" id="urlrule" value="<?php echo $urlrule;?>" size="70">
	</td>
    </tr>
	<tr> 
      <th width="20%"><?php echo L('urlrule_func')?> :</th>
       <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">
	   <div class="bk6"></div>

<?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">
	</td>
    </tr>
		<input type="hidden" name="urlruleid" id="urlruleid" value="<?php echo $urlruleid;?>">
	  <input type="submit" name="dosubmit" id="dosubmit" class="dialog" value=" <?php echo L('submit')?> ">
	</form>
</table> 

</div>
</body>
</html>