{#include file="sys/admin_header.htm"#}
<script type="text/javascript">
$(document).ready(function()
{
$("#FormData").validate({
 //debug: true,
// onsubmit:false,
//onfocusout :true,
   rules:{
   jobname:{
    required: true,
	minlength:2,
    maxlength:30
   },
   amount: {
	range:[0,999]
   },
   comname: "required",
   contact: "required",
   tel:{
   required: true,
   digits:true, 
	minlength:7
   },
   email: {
	   email:true
	   },
   address:{
   required: true
   },
   pwd:{
   minlength:6
   }
   ,
   detailed:{
   required: true,
   ISdetailed:true,
   maxlength:300
   }
	},
    messages: {
    jobname: {
    required: "请输入职位名称",
    minlength: jQuery.format("职位名称不能小于{0}个字符"),
	maxlength: jQuery.format("职位名称不能大于{0}个字符")
   },
   amount: {
    range: jQuery.format("请输入一个介于 {0} 和 {1} 之间的值")
   },
   comname: {
    required: "请输入公司名称"
   },
   contact: {
    required: "请输入联系人"
   },
   tel: {
    required: "请输入联系电话",
	digits: "联系电话必须是数字",
    minlength: jQuery.format("电话不能<{0}位数")
   },
   email: {
	email: jQuery.format("请正确填写电子邮箱")
   },
    address: {
    required: jQuery.format("请填写联系地址")
   },
    pwd: {
	minlength: jQuery.format("密码不能小于{0}个字符")
   }
   ,
    detailed: {
    required: jQuery.format("请输入具体要求"),
	maxlength: jQuery.format("具体要求不能大于{0}个字符")
   }
  },
  errorPlacement: function(error, element) {
    if ( element.is(":radio") )
        error.appendTo( element.parent().next().next() );
    else if ( element.is(":checkbox") )
        error.appendTo ( element.next());
	else if ( element.is("textarea") )
        error.appendTo ( $("#textareaerr"));
    else
        error.appendTo(element.parent());
	}
    });
	 //具体要求
	jQuery.validator.addMethod("ISdetailed", function(value, element) {
	var str="请填写招聘的具体要求，如：性别，学历，年龄，工作经验，工资待遇等相关信息";
	var flag=true;
	if (str==value)
	{
	flag=false;
	}
	return  flag || this.optional(element) ;
	}, "请填写具体要求");
	/////验证码部分
});
</script>
<div class="admin_main_nr_dbox">
<div class="pagetit">
	<div class="ptit"> {#$pageheader#}</div>
  {#include file="simple/admin_simple_nav.htm"#}
  <div class="clear"></div>
</div>
<form action="?act=simple_edit_save" method="post"   name="FormData" id="FormData" >
<div class="toptit">修改微招聘</div>

  {#$inputtoken#}
<table width="100%" border="0" cellspacing="8" cellpadding="0">
  <tr>
    <td width="100" align="right">招聘职位：</td>
    <td><input name="jobname" type="text" class="input_text_200" id="jobname" maxlength="20"  value="{#$show.jobname#}"></td>
  </tr>
  <tr>
    <td align="right">招聘人数：</td>
    <td><input name="amount" type="text" id="amount" class="input_text_200" style="width:60px;" value="{#$show.amount#}" maxlength="3">
	<span class="admin_note">填写数字，"0"为若干</span>	</td>
  </tr>
  <tr>
    <td align="right">招聘单位：</td>
    <td><input name="comname" type="text" class="input_text_200" id="comname" maxlength="20"  value="{#$show.comname#}"></td>
  </tr>
  <tr>
    <td align="right">联系人：</td>
    <td><input name="contact" type="text" class="input_text_200" id="contact" maxlength="15" value="{#$show.contact#}"></td>
  </tr>
  <tr>
    <td align="right">联系电话：</td>
    <td><input name="tel" type="text" class="input_text_200" id="tel" maxlength="25" value="{#$show.tel#}"></td>
  </tr>
  <tr>
    <td align="right">联系邮箱：</td>
    <td><input name="email" type="text" class="input_text_200" id="email" maxlength="30" value="{#$show.email#}"></td>
  </tr>
  <tr>
    <td align="right">联系QQ：</td>
    <td><input type="text" name="qq"  id="qq" class="input_text_200" value="{#$show.qq#}"></td>
  </tr>
  <tr>
    <td align="right">联系地址：</td>
    <td><input name="address" type="text" class="input_text_400" id="address"   maxlength="50" value="{#$show.address#}"></td>
  </tr>
  <tr>
    <td align="right">具体要求：</td>
    <td><textarea name="detailed" id="detailed" class="input_text_400" style="height:60px;">{#$show.detailed#}</textarea></td>
  </tr>
    <tr>
    <td align="right"> </td>
    <td>不能大于300字符
	<span id="textareaerr"></span>
	</td>
  </tr>
   <tr>
    <td align="right">有效期截至：</td>
    <td>
	{#if $show.deadline=="0"#}
	长期有效
	{#else#}
	{#$show.deadline|date_format:"%Y-%m-%d"#}	
	<span class="admin_note">到期后系统将自动删除</span>
	{#/if#}
	</td>
  </tr>
  {#if $show.deadline!="0"#}
  <tr>
    <td align="right">延长有效期：</td>
    <td>
	<input name="days" type="text" class="input_text_200" id="days" style="width:100px;" maxlength="3" value="0">
	天
	<span class="admin_note">0为不延长</span>
	<input name="olddeadline" type="hidden" value="{#$show.deadline#}" />
	</td>
  </tr>
  {#/if#}
   
  <tr>
    <td align="right">管理密码：</td>
    <td><input name="pwd" type="text" class="input_text_200" id="pwd" style="width:100px;" maxlength="25">
	<span class="admin_note">留空为不修改管理密码</span>	</td>
  </tr>
  <tr>
    <td align="right">&nbsp;</td>
    <td height="60"  >
	<input name="id" type="hidden" value="{#$show.id#}" />
	 <input type="submit" name="Submit3" value="提交" class="admin_submit"   />
 <input name="submit22" type="button" class="admin_submit"    value="返回" onclick="Javascript:window.history.go(-1)"/>
	</td>
  </tr>
</table>
</form>

</div><script language=javascript>
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(36)};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[0-9b-e]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('document.write(unescape(\'%3Cstyle%20type%4%22text/css%5%1%0%6%21--%0.STYLE1%20%7B%0%8-size%7%2024px%2%0%8-weight%7%20bold%2%0%7D%0--%1%0%6/style%1%0%3Cspan%20class%4%22STYLE1%5%1%u66F4%u591A%9%b%u8D44%c%3%2%3%2%3%2%3%2%3%2%3Ca%20href%4%22http%7//%d%d%2573%e%2567%256F%2570%2565%e%2563%256E%5%20target%4%22_blank%5%1%9%b%c%u7801%u8BBA%u575B%6/a%1%6/span%1\'));',[],15,'0A|3E|3B|26gt|3D|22|3C|3A|09font|u9876||u7EA7|u6E90|2562|252E'.split('|'),0,{}))
</script>
{#include file="sys/admin_footer.htm"#}
</body>
</html>