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

📄 addfree03.asp

📁 信息类网站的不错选择
💻 ASP
字号:
<!--#include file="conn1.asp"-->
<!--#include file="err.asp"-->
<!--#include file="config.asp"-->
<%if   ykfb<>"1"  then   
response.write   "对不起,游客发布信息功能暂时关闭!"
response.end 
end if%>
<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
}
INPUT {
	FONT-SIZE: 9pt; LINE-HEIGHT: 13pt
}
-->
</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  &&
	 !document.sign.wtype[2].checked  &&
	 !document.sign.wtype[3].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;
    }
	var temp = document.sign.content.value.toLowerCase();
    if(temp.indexOf('<',0) != -1 || temp.indexOf('>',0) != -1)
    {
                   alert("请不要使用tag语句!\n可能会干扰调页!");
                   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.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.kind.value=="")
	{
		alert("请填写商品类型。");
		document.sign.kind.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>


<body topmargin="0">
<!--#include file=usertop.asp-->
<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="addfreechk.asp?class1=14" 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="mm.style.display=''" type=radio 
      value=4 name=wtype style="font-size: 9pt; line-height: 13pt" checked> 求租&nbsp; 
	<INPUT onclick="mm.style.display='none'" 
      type=radio value=2 name=wtype style="font-size: 9pt; line-height: 13pt"> 求购&nbsp; 
	<INPUT 
      onclick="mm.style.display=''" type=radio value=3 name=wtype style="font-size: 9pt; line-height: 13pt"> 出租&nbsp; 
      <INPUT onclick="mm.style.display='none'" type=radio value=8 name=wtype style="font-size: 9pt; line-height: 13pt"> 转让 
      &nbsp;&nbsp; <FONT color=#ff0000>*</FONT> </TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD colSpan=2>标题:&nbsp;&nbsp; &nbsp; <INPUT class=inText maxLength=25 
      size=30 name=title> &nbsp;<FONT color=#ff0000>*</FONT> </TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD>什么商品: <INPUT class=inText maxLength=10 size=10 name=kind> <FONT 
      color=#ff0000>*</FONT> ( 如 轿车,小灵通) </TD>
    <TD>&nbsp;&nbsp;品牌型号: <INPUT class=inText maxLength=15 name=serie> </TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD colSpan=2>简要状况: <INPUT class=inText maxLength=15 size=30 name=status> 
      ( 如几成新、使用时间、特点简述等) </TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD colSpan=2>价格:&nbsp;&nbsp;&nbsp;&nbsp; <INPUT class=inText maxLength=6 
      size=15 name=price> &nbsp; 元 <SPAN id=mm style="DISPLAY: none">/每 <SELECT 
      class=inText name=htime> <OPTION value=日 selected>日</OPTION> <OPTION 
        value=周>周</OPTION> <OPTION value=月>月</OPTION> <OPTION 
      value=年>年</OPTION></SELECT> </SPAN><FONT color=red>(需要价格面议请不填写此项) 
    </FONT></TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD colSpan=2>联系人: &nbsp; <INPUT class=inText maxLength=10 name=pName> 
      <FONT color=#ff0000>* </FONT></TD></TR>
  <TR bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD colSpan=2>联系电话: <INPUT class=inText maxLength=25 name=phone> <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 colSpan=2>电子邮件: <INPUT class=inText maxLength=28 name=email> </TD></TR>
  <TR vAlign=top bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD colSpan=2 height=105>详情: &nbsp;&nbsp; <TEXTAREA class=inText name=content rows=5 cols=50></TEXTAREA> </TD></TR>
  <TR align=middle bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD colSpan=2><span lang="zh-cn">欲享受更多服务,请注册本站会员。</span></TD></TR>
  <TR align=middle bgColor=#f1fae6 style="font-size: 9pt; line-height: 13pt">
    <TD colSpan=2><INPUT class=button style="WIDTH: 100px" type=reset value=我要重写> <INPUT class=button style="WIDTH: 150px" type=submit value=提交资料> 
  </TD></TR></TBODY></TABLE>
<INPUT type=hidden value=1 name=subtype style="font-size: 9pt; line-height: 13pt"> 
<INPUT 
type=hidden value=3 name=ptype style="font-size: 9pt; line-height: 13pt"> </FORM>
		<p> </td>
    </tr>
  </table>
  </center>
</div>
<SCRIPT language=javascript>
if( document.sign.wtype[0].checked || document.sign.wtype[2].checked )  
	 mm.style.display = 'none'
	else mm.style.display = "" 
</SCRIPT>

	<!--#include file=end.htm-->

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

⌨️ 快捷键说明

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