⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xinxiedit02.asp

📁 信息类网站的不错选择
💻 ASP
字号:
<!--#include file="conn1.asp"-->
<!--#include file="err.asp"-->
<!--#include file=usercookies.asp-->
<!--#include file="config.asp"-->
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=title%>-信息发布</title>
<link href="../inc_style.css" rel="stylesheet" type="text/css">
<style>
<!--
.pt9 {
	FONT-SIZE: 9pt; COLOR: #000000
}
.pt9 {
	FONT-SIZE: 9pt; COLOR: #000000
}
.inText {
	BORDER-RIGHT: #999999 1px inset; BORDER-TOP: #999999 1px inset; FONT-SIZE: 9pt; BORDER-LEFT: #999999 1px inset; LINE-HEIGHT: 13pt; BORDER-BOTTOM: #999999 1px inset
}
.button {
	BORDER-RIGHT: #333333 1px outset; BORDER-TOP: #333333 1px outset; BORDER-LEFT: #333333 1px outset; BORDER-BOTTOM: #333333 1px outset
}
.button {
	BORDER-RIGHT: #333333 1px outset; BORDER-TOP: #333333 1px outset; BORDER-LEFT: #333333 1px outset; BORDER-BOTTOM: #333333 1px outset
}
-->
</style>
</head>
<SCRIPT language=JavaScript src="../function.js"></SCRIPT>


<SCRIPT language=JavaScript>
<!--
var clickNo = 0;


function check()
{
 	var temp = document.sign.content.value;
    if( temp.length > 500 )
    {
                   alert("内容长度超过限制,请减少长度!");
                   return false;
    }
	  
		   
	if( !document.sign.wtype[0].checked  &&
     !document.sign.wtype[1].checked  )
      {
		alert("您希望张贴招聘还是求职的信息?");
	   return false
	   }
	   
	if (document.sign.title.value=="")
	{
		alert("请填写您的主题。");
		document.sign.title.focus();
		return false;
	}  

	if (!checkChar(document.sign.title.value))
	{
		alert("请不要在标题中使用特殊字符");
		document.sign.title.focus();
		return false;
	} 

	if (document.sign.job.value=="")
	{
		alert("请填写您需要的工作岗位。");
		document.sign.job.focus();
		return false;
	}
	   
   if( !document.sign.jtype[0].checked  &&
     !document.sign.jtype[1].checked  )
      {
		alert("请选择工作类型,兼职还是专职?");
	   return false
	   }
	if (document.sign.skill.value=="")
	{
		alert("请填写经验及技能项目。");
		document.sign.skill.focus();
		return false;
	}  	   
	age1 =	document.sign.age1.value
	age2 =	document.sign.age2.value

	
	if( (age1 != "" && isNaN(parseInt(age1))) || (age2 != "" &&   isNaN(parseInt(age2)) )     )
	{

		alert("年龄请填写阿拉伯数字,或者不填写。");
		return false;
	}


	if( !document.sign.gender[0].checked  &&
     !document.sign.gender[1].checked && 
	 ( document.sign.wtype[1].checked  ||!document.sign.gender[2].checked ))
      {
		alert("请选择性别。");
	   return false
	   }  
	  if( !document.sign.con[0].checked  &&
     !document.sign.con[1].checked )
      {
		alert("请选择户口。");
	   return false
	   }   			
	var temp = document.sign.title.value.toLowerCase();
    if(temp.indexOf('<',0) != -1 || temp.indexOf('>',0) != -1)
    {
                   alert("请不要使用tag语句!\n可能会干扰调页!");
                   return false;
    }
	temp = document.sign.content.value.toLowerCase();
    if(temp.indexOf('<',0) != -1 || temp.indexOf('>',0) != -1)
    {
                   alert("请不要使用tag语句!\n可能会干扰调页!");
                   return false;
    }
	temp = document.sign.com.value.toLowerCase();
    if(temp.indexOf('<',0) != -1 || temp.indexOf('>',0) != -1)
    {
                   alert("请不要使用tag语句!\n可能会干扰调页!");
                   return false;
    }
	temp = document.sign.skill.value.toLowerCase();
    if(temp.indexOf('<',0) != -1 || temp.indexOf('>',0) != -1)
    {
                   alert("请不要使用tag语句!\n可能会干扰调页!");
                   return false;
    }
	temp = document.sign.addr.value.toLowerCase();
    if(temp.indexOf('<',0) != -1 || temp.indexOf('>',0) != -1)
    {
                   alert("请不要使用tag语句!\n可能会干扰调页!");
                   return false;
    }	
	if (document.sign.pName.value==""){
		alert("请填写您的姓名以方便联系。");
		document.sign.pName.focus();
		return false;
	}

	if (!isCHN(document.sign.pName.value)){
		alert("请填写有效的姓名。");
		document.sign.pName.focus();
		return false;
	}	
  
  	if ((document.sign.title.value.length>34)||((document.sign.title.value.length>24)&&(document.sign.content.value=="")))
	{
		alert("文章主题的字数太多了.....\n\n发言无内容时,主题最长为12个汉字\n\n发言有内容时,主题最长为17个汉字\n\n请精简主题内容:)");
		document.sign.title.focus();
		return false;
	}
	a=parseInt(document.sign.phone.value);
    if (isNaN(a)) 
	{
		alert("请填写有效的电话号码。");
		document.sign.phone.focus();
		return false;
	 }
	 b=document.sign.email.value;
	 if( b.length>0 && (b.indexOf("@")==-1 || b.length<4 ))
	 {
		alert("请填写有效的Email地址,或者不填写。");
		document.sign.email.focus();
		return false;
	 }
	if (confirm('跳蚤市场声明:\n1)禁止发布违法、淫秽、反动、危害国家和社会公共利益的信息;\n2)禁止发布与各类证件办理业务有关的信息;\n3)禁止发布非交易类广告信息。\n一经发现一律予以删除,收费信息不予退费、不提供任何其他补偿。\n\n您是否要发布?')==0)
    {   return false;
	   document.sign.title.focus();
     }
	clickNo ++;
        if (clickNo<=2) { 
          return true;
        }
        else { alert("同一条信息不能发布2次以上。");
		return false;
		}
return true;
}
// -->
</SCRIPT>

<SCRIPT language=vbscript>
function type1

	span0.innerhtml = "经验及技能要求:"
	span1.style.display=""
	span2.style.display=""
	comp.style.display=""
	span3.innerhtml = "需"
	span4.innerhtml = "不需"
end function

function type2

	document.sign.age2.value=""
	document.sign.com.value=""
	span0.innerhtml = "经验及技能专长:"
	span1.style.display="none"
	span2.style.display="none"
	comp.style.display="none"
	span3.innerhtml = "有"
	span4.innerhtml = "无"
end function

</SCRIPT>


<body topmargin="0">
<!--#include file=usertop.asp-->
<%
dim rs
dim sql,i,id
id=trim(request("id"))
set rs=server.createobject("adodb.recordset")
sql = "select * from xinxi where id="&cstr(id)
rs.open sql,conn,1,1
if rs.eof then
response.write "参数错误!"
response.end
end if


%>

<div align="center">
  <center>
  <br>
 <table border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="601" bgcolor="#FFFFFF">

    <tr>
      <td width="601" height="533">
<FORM name=sign onsubmit="return check()" action="xinxi_editchk.asp?id=<%=id%>" method=post> 
<TABLE class=pt9 cellSpacing=1 cellPadding=3 width=600 bgColor=#666666 
  border=0 id="table1"><TBODY>
  <TR vAlign=center align=middle style="font-size: 9pt; line-height: 13pt">
    <TD bgColor=#cbdcb6 colSpan=2 height=50><B><FONT 
      color=#003399>招聘信息修改界面</FONT></B> <BR> </TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD align=middle colSpan=2>
	<INPUT onclick=type1() type=radio value=6 
      name=wtype style="font-size: 9pt; line-height: 13pt" <%if   rs("leixing")=6  then%>checked<%end if%>> 招聘 &nbsp;&nbsp;&nbsp; 
	<INPUT onclick=type2() type=radio 
      value=5 name=wtype style="font-size: 9pt; line-height: 13pt"   <%if   rs("leixing")=5  then%>checked<%end if%>> 求职&nbsp;<FONT color=#ff0000>*</FONT></TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD colSpan=2>标题:&nbsp;&nbsp;&nbsp;&nbsp; 
	<INPUT class=inText maxLength=25 
      size=30 name=title value="<%=rs("biaoti")%>"> &nbsp;<FONT color=#ff0000>*</FONT> </TD></TR>
  <TR id=comp bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD colSpan=2>单位:&nbsp;&nbsp;&nbsp;&nbsp; 
	<INPUT class=inText maxLength=25 
      size=30 name=com value="<%=rs("com")%>"> &nbsp; </TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD>工作岗位: 
	<INPUT class=inText maxLength=10 size=15 name=job value="<%=rs("job")%>"> <FONT 
      color=#ff0000>*</FONT> </TD>
    <TD>&nbsp;&nbsp; 
	<INPUT type=radio value=1 name=jtype style="font-size: 9pt; line-height: 13pt" <%if   rs("jtype")=1  then%>checked<%end if%>> 专职 &nbsp; 
	<INPUT 
      type=radio value=2 name=jtype style="font-size: 9pt; line-height: 13pt"  <%if   rs("jtype")=2  then%>checked<%end if%>> 兼职<FONT color=#ff0000>*</FONT></TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD bgColor=#f1fae6 colSpan=2><SPAN id=span0>经验及技能要求:</SPAN> 
	<INPUT 
      class=inText maxLength=50 size=70 name=skill value="<%=rs("skill")%>"> <FONT color=#ff0000>*</FONT> 
    </TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD bgColor=#f1fae6 colSpan=2>年龄:&nbsp;&nbsp;&nbsp;&nbsp; 
	<INPUT 
      class=inText maxLength=2 size=2 name=age1 value="<%=rs("age1")%>"> 岁<SPAN id=span1>到 
	<INPUT 
      class=inText maxLength=2 size=2 name=age2 value="<%=rs("age2")%>"> 岁 <FONT 
      color=#ff0000>(类型为招聘时,只填写前项为要求大于此年龄,只填写后项为要求小于此年龄)</FONT></SPAN> </TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD>性别: 
	<INPUT type=radio value=1 name=gender style="font-size: 9pt; line-height: 13pt" <%if   rs("gender")=1  then%>checked<%end if%>> 男 
	<INPUT type=radio value=2 
      name=gender style="font-size: 9pt; line-height: 13pt"  <%if   rs("gender")=2  then%>checked<%end if%>> 女<SPAN id=span2> 
	<INPUT type=radio value=3 name=gender style="font-size: 9pt; line-height: 13pt"    <%if   rs("gender")=3  then%>checked<%end if%>> 
      不要求</SPAN><FONT color=#ff0000>*</FONT> </TD>
    <TD align=left width=200>户口: 
	<INPUT type=radio value=1 name=con style="font-size: 9pt; line-height: 13pt" <%if   rs("con")=1  then%>checked<%end if%>> <SPAN 
      id=span3>需</SPAN> 
	<INPUT type=radio value=2 name=con style="font-size: 9pt; line-height: 13pt"  <%if   rs("con")=2  then%>checked<%end if%>> <SPAN 
      id=span4>不需</SPAN> <FONT color=#ff0000>*</FONT></TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD bgColor=#f1fae6 colSpan=2>待遇:&nbsp;&nbsp;&nbsp;&nbsp; 
	<INPUT 
      class=inText maxLength=30 size=50 name=pay value="<%=rs("pay")%>"> </TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD>联系人: &nbsp; 
	<INPUT class=inText maxLength=10 name=pName value="<%=rs("name")%>" size="20"> <FONT 
      color=#ff0000>* </FONT></TD>
    <TD>联系地址: &nbsp; 
	<INPUT class=inText maxLength=30 size=50 name=addr value="<%=rs("addr")%>"> 
</TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD bgColor=#f1fae6 colSpan=2>联系电话: 
	<INPUT class=inText maxLength=25 
      name=phone value="<%=rs("phone")%>" size="20"> <FONT color=#ff0000>*</FONT> <!--(<a href="http://mark.yalaso.net/ad/#新功能二" target="_blank"><font color=red>小灵通用户可以使用临时联络方式了,免除骚扰烦恼,快快行动!</font></a>)--></TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD bgColor=#f1fae6 colSpan=2>电子邮件: 
	<INPUT class=inText maxLength=28 
      name=email value="<%=rs("email")%>" size="20"> </TD></TR>
  <TR vAlign=top bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD bgColor=#f1fae6 colSpan=2 height=105>详情: &nbsp;&nbsp; <TEXTAREA class=inText name=content rows=5 cols=50><%=rs("memo")%></TEXTAREA> </TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD bgColor=#f1fae6 colSpan=2><table width="100%" border="0" id="table2">
                                <tr>
                                  <td width="33%"  align="center"> 
									<input type="radio"  value="1" name="zd">
                                    <span lang="zh-cn">置顶</span>&nbsp;&nbsp;
                                    <input type="radio" value="0" checked name="zd">
									不置顶&nbsp;</td>
                                  <td width="67%">消费虚拟货币数:<%=hb_zd%>(VIP会员自由发布)</td>
                                </tr>
                              </table>
                        </TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD bgColor=#f1fae6 colSpan=2>
                      <table width="100%" border="0" id="table3">
                        <tr>
                          <td width="33%"  align="center">
							<input type="radio"  value="1" name="yz">
							验证&nbsp;&nbsp;
                        <input type="radio" value="0" checked name="yz">
							不验证</td>
                          <td width="67%">消费虚拟货币数:<%=hb_yz%>(VIP会员自由发布)</td>
                        </tr>
                      </table>
                      </TD></TR>
  <TR align=middle bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD bgColor=#f1fae6 colSpan=2><INPUT class=button style="WIDTH: 100px" type=reset value=我要重写 name=reset> 
<INPUT class=button style="WIDTH: 150px" type=submit value=提交资料 name=submit> 
    </TD></TR></TBODY></TABLE>
<INPUT type=hidden value=2 name=ptype style="font-size: 9pt; line-height: 13pt"> 
</FORM>
		<p> </td>
    </tr>
  </table>
  </center>
</div>
<SCRIPT language=javascript>
 if( document.sign.wtype[1].checked  )  type2();
</SCRIPT>

	<!--#include file=end.htm-->
<%rs.close
set   rs=nothing%>

</body>
</html>
<%
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -