www.gusucode.com > 山寨版广告信息招贴网源码程序 > 山寨版广告信息招贴网源码程序/ewuyi/dir_发布/user/adfabu.asp

    <!-- #include file="conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>免费发布信息 - <%=sitetitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="<%=sitekey%>" />
<meta name="description" content="<%=sitemeta%>" />
<meta http-equiv="Content-Language" content="zh-cn" />
<link href="/css/accounts.css" type="text/css" rel="stylesheet" />
<script src="dir.asp" type="text/javascript"></script>
<SCRIPT LANGUAGE="JavaScript">
<!--//
function checkadd()
{ 
if (document.postart.dtitle.value.length<4)
{
 alert("请您填写广告标题,6-20字!");
 document.postart.dtitle.focus();
 return false;
}
if (document.postart.ClassID_id.value=="6700B0700B101407208A")
 { 
alert("请选择一级类别!");
document.postart.ClassID_id.focus();
return false;
}
if (document.postart.ClassID.value=="6700B0700B101407208A")
{
alert("请选择二级类别!");
document.postart.ClassID.focus();
return false;
}
if (document.postart.dtext.value.length<12)
 {
 alert("请填写内容,字数控制在15-200字!");
 document.postart.dtext.focus();
 return false;
}
 if (document.postart.dtext.value.length>250)
{
 alert("请把广告内容的字数控制在15-200字!");
 document.postart.dtext.focus();
 return false;
}
if (document.postart.dusername.value.length == 0)
{
alert("请您填写联系人姓名!");
document.postart.dusername.focus();
return false;
}
var str="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ,./'[]{}`1234567890-=\~!@#$%^&*()_+|?><:";
var errorChar
errorChar = isCharsInBag(postart.dusername.value,str)
if (errorChar != "" )
{
alert('联系人姓名必须是中文!');
postart.dusername.focus();
return false;
} 
function isCharsInBag (s, bag)
{ 
var i,c;
for (i = 0; i < s.length; i++)
{ 
c = s.charAt(i);//字符串s中的字符
if (bag.indexOf(c) > -1) 
return c;
}
return "";
}
if(document.postart.dusername.value.length<2||document.postart.dusername.value.length>4){
alert("联系人姓名不能少于2字多于4字!");
document.postart.dusername.focus();
return false;
}
if (document.postart.dtel.value.length<1)
{
 alert("请填写您的联系电话!");
 document.postart.dtel.focus();
 return false;
}
if (isNaN(postart.dtel.value)){
alert('电话号码必须是数字');
postart.dtel.focus();
return false;
}
if (document.postart.dstop.value=="选择有效期")
{
 alert("请您选择有效期限!");
 document.postart.dstop.focus();
 return false;
}
}
//-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF">
<DIV id=Head>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
 <td width="220" align="center" style="padding:1px 0px 0px 0px;"><a href="<%=siteurl%>" onfocus="this.blur();"><img src="<%=sitelogo%>" width=206 vspace="7" border="0" alt="XX县广告招贴网" /></a></td>
 <td valign="top" style="padding:1px 0px 0px 0px;"><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
 <tr>
 <td align="right" valign="top" style="padding:6px 16px 0px 0px;">
<a href="../index.asp" class="linkNo">首页</a>
 </td>
 </tr>
</table>
</td>
 </tr>
</table> 
 <table width="100%" border="0" cellpadding="2" cellspacing="1" style="border-top:1px solid #99B2CC; border-bottom:1px solid #99B2CC;">
 <tr>
 <td height="20" bgcolor="#DBE9F4">&nbsp;您的位置:信息提交</td>
 </tr>
 </table>
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td width="160" valign="top" style="padding:6px 0px 0px 0px;">
 <table width="100%" border="0" cellspacing="1" cellpadding="2">
 <tr>
<td nowrap="nowrap" class="f60b14" style="padding:3px 0px 3px 6px;">我的服务</td>
 </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
 <tr>
 <td height="1" background="/img/dot_line.gif"></td>
 </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
 <tr>
 <td width="10" bgcolor="#CCCCFF"></td>
<td nowrap="nowrap" style="padding:3px 0px 3px 16px;">
</td>
 </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
 <tr>
 <td height="1" background="/img/dot_line.gif"></td>
 </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="2" style="margin-bottom:30px;">
 <tr>
 <td height="1" background="/img/dot_line.gif"></td>
 </tr>
</table>
 
 </td>
 <td width="1" background="/img/dot_line.gif"></td>
 <td valign="top" style="padding:10px 16px 10px 16px;"><font color="red">信息提交注意事项:</font><br>
  1、本站只提供XX县本地的信息服务,<font color=#CC0000>非金华市的信息一律删除</font>;<br>
  2、请不要提交含有反动、色情等包含非法不良内容的信息;<br>
  3、请认真按照要求填写相关信息,不要带有无关的文字和符号;<br>
  4、本站有权将不符合以上条件的广告删除。
 <br>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<form name="postart" method="post" action="AdSave.asp" onSubmit="return checkadd()">
<input type="hidden" name="action" value="add" />
<tr> 
<td colspan=2 valign="middle"><b>提交信息基本信息:</b></td>
 </tr>
 <tr>
 <td valign="top"> 
 <table width="100%" border="0" cellspacing="2" cellpadding="2" bgcolor="#FFFFFF" style="margin-bottom:6px;">
 <tr bgcolor="#FFFFFF"> 
<td height="25" align="right" nowrap><strong>信息标题:</strong></td>
 <td class="gray"><input type="text" name="dtitle" class=box maxlength="25" value="" onfocus="select()"><font color="#FF0000">* 20字以内</font></td>
 </tr><tr bgcolor="#FFFFFF"> 
<td height="25" align="right" nowrap bgcolor="#FFFFFF"><strong>所属信息:</strong></td>
<td bgcolor="#FFFFFF">
<SELECT onchange=change_dir(this.options[this.selectedIndex].value) size=1 name=ClassID_id id="ClassID_id">
 <OPTION value="6700B0700B101407208A">一级类别</OPTION><script>
for (var i=0;i<onecount_yi;i++)
if(""==subcat_yi[i][0])
document.write("<option value='"+subcat_yi[i][1]+"' selected>"+subcat_yi[i][0]+"</option>")
else
document.write("<option value='"+subcat_yi[i][1]+"'>"+subcat_yi[i][0]+"</option>")
</script>
 </SELECT> 
 <SELECT id=ClassID name=ClassID>
 <OPTION value="6700B0700B101407208A">二级类别</OPTION>
 </SELECT></td>
 </tr> 
 <tr bgcolor="#FFFFFF"> 
<td height="25" align="right" nowrap bgcolor="#FFFFFF"><strong>信息截图:</strong></td>
<td bgcolor="#FFFFFF" class="gray"><iframe src="upload.asp" width="100%" frameborder="0" height="30" scrolling="no"></iframe><font color="#FF0000">支持gif,jpg格式,建议尺寸185*110,大小100K以内</font><input name="upfile" type="hidden" id="upfile" /></td>
 </tr>
 <tr bgcolor="#FFFFFF"> 
<td height="25" align="right" nowrap bgcolor="#FFFFFF"><strong>信息内容:</strong></td>
<td bgcolor="#FFFFFF"><textarea rows="5" name="dtext" cols="50" maxlength="300"></textarea><br>
<span class="gray">200个字符以内,不要加入无关文字和符号。</span></td>
 </tr>
<tr bgcolor="#FFFFFF"> 
<td height="25" align="right" nowrap bgcolor="#FFFFFF"><strong>联 系 人:</strong></td>
<td bgcolor="#FFFFFF" class="gray"><input name="dusername" type="text" class="inputborder" value="" size="20" maxlength="20"></td>
 </tr>
<tr bgcolor="#FFFFFF"> 
<td height="25" align="right" nowrap bgcolor="#FFFFFF"><strong>联系电话:</strong></td>
<td bgcolor="#FFFFFF" class="gray"><input name="dtel" type="text" class="inputborder" value="" size="20" maxlength="20"></td>
 </tr>
<tr bgcolor="#FFFFFF"> 
<td height="25" align="right" nowrap bgcolor="#FFFFFF"><strong>有 效 期:</strong></td>
<td bgcolor="#FFFFFF" class="gray"><select size="1" name="dstop">
 <option selected value="选择有效期">选择有效期</option>
 <option value="7">一星期</option>
 <option value="15">半个月</option>
 <option value="31">一个月</option>
 <option value="61">两个月</option>
 <option value="92">三个月</option>
 <option value="183">半年</option>
 <option value="365">一年</option>
 </select></td>
 </tr>
 </table>
 <div style="padding:0px 0px 0px 160px;">
 <input type="submit" name="Submit" value=" 提交 ">
<input type="reset" name="reset" value=" 重填 " ><br><br></div>
 </td>
 </tr>
 </form>
 </table>
 </td>
 </tr>
 </table>
<%call footer%>
</div>
</body>
</html>