📄 postexpo.asp
字号:
selected>省份</OPTION>
</SELECT> </td>
</tr>
<tr>
<td class=forumRow align="right"> 城 市:</td>
<td class=forumRow valign="top"> <SELECT name=city>
<OPTION value=""
selected>地级城市</OPTION>
</SELECT>
<SCRIPT language=javascript src="../../js/area1.js"
purpose="INITIALIZER"></SCRIPT>
<SCRIPT language=javascript>
<!--
//设置国家1的缺省值
for (var i=0;i<5;i++){
if (country1form.options[i].value == '<%=Replace_Text(request.form("country1"))%>'){
country1form.options[i].selected=true;
}
}
for (var i=0;i<catArr1.length;i++) {
catform.options[i+1]=new Option(catArr1[i].title,catArr1[i].id);
//设置省选择框的选择值
if(catform.options[i+1].value == '<%=Replace_Text(request.form("province"))%>'){
catform.options[i+1].selected=true;
}
}
changeProvince(catform);
var len = boardform.options.length;
for (var i=0;i<len;i++) {
//设置城市选择框的选择值
if(boardform.options[i].value == '<%=Replace_Text(request.form("city"))%>') {
boardform.options[i].selected=true;
}
}
-->
</SCRIPT></td>
</tr>
<tr>
<td class=forumRow align="right"> <font color="#FF0000">*</font> 联系地址:</td>
<td class=forumRow valign="top"> <input name="address" value="<%=Replace_Text(request.form("address"))%>" size="45" maxlength="128"> </td>
</tr>
<tr>
<td class=forumRow align="right"> 邮 编:</td>
<td valign="top" class=forumRow> <input name="zip" value="<%=Replace_Text(request.form("zip"))%>" size="16" maxlength="16"> </td>
</tr>
<tr>
<td class=forumRow align="right"> <font color="#FF0000">*</font> 固定电话:</td>
<td valign="top" class=forumRow> <input name="phone" size="30" value="<%=Replace_Text(request.form("phone"))%>" maxlength="32"> </td>
</tr>
<tr>
<td class=forumRow align="right"> 传 真:</td>
<td valign="top" class=forumRow> <input name="fax" value="<%=Replace_Text(request.form("fax"))%>" size="30" maxlength="32"> </td>
</tr>
<tr>
<td class=forumRow align="right"> 移动电话:</td>
<td class=forumRow valign="top"> <input name="mobile" size="30" value="<%=Replace_Text(request.form("mobile"))%>" maxlength="32"> </td>
</tr>
<tr>
<td class=forumRow align="right"> 电子邮件:</td>
<td class=forumRow valign="top"> <input name="email" size="45" value="<%=Replace_Text(request.form("email"))%>" maxlength="64"> </td>
</tr>
<tr>
<td class=forumRow align="right"> 网 址:</td>
<td class=forumRow valign="top"> <input name="homepage" value="<%=Replace_Text(request.form("homepage"))%>" size="45" maxlength="128"> </td>
</tr>
<tr>
<td class=forumRow align="right">直接通过审核:</td>
<td class=forumRow valign="top"><input name="sh" type="checkbox" id="sh" value="1" checked>
选定既不需要审核 </td>
</tr>
</table>
<table width="100%" align="center">
<tr>
<td align="center"> <input type="submit" value=" 一切完成,我要发布!" name="Post" class=C> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<%
sub post()
if Replace_Text(request.form("title"))="" then
response.write "<li>没有填写展会名称</li>"
founderr=true
end if
if Replace_Text(request.form("title"))>"" then
title=Replace_Text(request.form("title"))
sql="select id from expo where title='"&title&"'"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,1
if not (rs.Bof and rs.eof) then
response.write"<li>此展会名称已经存在,请重新设置</li>"
founderr=true
end if
end if
if Replace_Text(request.form("holdCountry"))="" then
response.write "<li>没有填写举办国家</li>"
founderr=true
end if
if Replace_Text(request.form("beginDate"))="" then
response.write "<li>没有填写参展开始日期</li>"
founderr=true
end if
if Replace_Text(request.form("endDate"))="" then
response.write "<li>没有填写参展结束日期</li>"
founderr=true
end if
if Replace_Text(request.form("expireDate"))="" then
response.write "<li>没有填写报名截止日期</li>"
founderr=true
end if
if Replace_Text(request.form("place"))="" then
response.write "<li>参展地(展馆)</li>"
founderr=true
end if
if Replace_Text(request.form("frontFor"))="" then
response.write "<li>没有填写主办单位</li>"
founderr=true
end if
if Replace_Text(request.form("brief"))="" then
response.write "<li>没有填写展会简介</li>"
founderr=true
end if
if Replace_Text(request.form("product"))="" then
response.write "<li>没有填写参展范围</li>"
founderr=true
end if
if Replace_Text(request.form("linkman"))="" then
response.write "<li>没有填写联系人</li>"
founderr=true
end if
if Replace_Text(request.form("country1"))="中国" then
if Replace_Text(request.form("province"))="" or Replace_Text(request.form("city"))="" then
response.write "<li>国家如果选择了中国,必须选择地级市和市、县</li>"
founderr=true
end if
end if
if Replace_Text(request.form("address"))="" then
response.write "<li>没有填写联系地址</li>"
founderr=true
end if
if Replace_Text(request.form("phone"))="" then
response.write "<li>没有填写固定电话</li>"
founderr=true
end if
if founderr=false then
'开始存储数据
title=Replace_Text(request.form("title"))
sql="select * from expo where title='"&title&"'"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
if not (rs.Bof and rs.eof) then
response.write"<li>此展会名称已经存在,请重新设置</li>"
else
rs.addnew
rs("brief")=Replace_Text(request.form("brief"))
rs("city")=Replace_Text(request.form("city"))
rs("aidance")=Replace_Text(request.form("aidance"))
rs("province")=Replace_Text(request.form("province"))
rs("title")=Replace_Text(request.form("title"))
rs("company")=Replace_Text(request.form("company"))
rs("address")=Replace_Text(request.form("address"))
rs("beginDate")=Replace_Text(request.form("beginDate"))
rs("endDate")=Replace_Text(request.form("endDate"))
rs("activity")=Replace_Text(request.form("activity"))
rs("fax")=Replace_Text(request.form("fax"))
rs("mobile")=Replace_Text(request.form("mobile"))
rs("holdCountry")=Replace_Text(request.form("holdCountry"))
rs("undertake")=Replace_Text(request.form("undertake"))
rs("zip")=Replace_Text(request.form("zip"))
rs("expireDate")=Replace_Text(request.form("expireDate"))
rs("place")=Replace_Text(request.form("place"))
rs("linkman")=Replace_Text(request.form("linkman"))
rs("phone")=Replace_Text(request.form("phone"))
rs("homepage")=Replace_Text(request.form("homepage"))
rs("authorize")=Replace_Text(request.form("authorize"))
rs("charge")=Replace_Text(request.form("charge"))
rs("email")=Replace_Text(request.form("email"))
rs("frontFor")=Replace_Text(request.form("frontFor"))
rs("product")=Replace_Text(request.form("product"))
rs("country1")=Replace_Text(request.form("country1"))
rs("sh")=Replace_Text(request.form("sh"))
if Replace_Text(request.form("pic_on"))=1 then
rs("picture")=Replace_Text(request.form("picture"))
end if
rs("dateandtime")=now()
rs.update
response.redirect ("expo.asp?pass=1")
end if
end if
end sub
%>
<script>
function showadv(){
if (document.form.pic_on.checked == true) {
adv.style.display = "";
advance.innerText="取消上传标题图片"
}else{
adv.style.display = "none";
advance.innerText="上传标题图片"
}
}
</script>
<!--#include file="../copy.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -