📄 expo_post.asp
字号:
<td valign="top" bgcolor="#ffffde"> <textarea name="undertake" cols="60" rows="8"><%=Replace_Text(request.form("undertake"))%></textarea> </td>
</tr>
<tr>
<td align="right" bgcolor="#EFF7FF" class=C> 支持协办单位:</td>
<td valign="top" bgcolor="#ffffde"> <textarea name="aidance" cols="60" rows="8"><%=Replace_Text(request.form("aidance"))%></textarea> </td>
</tr>
</table>
<br>
<table border="0" width="100%" cellpadding="4" cellspacing="0" align="center" bgcolor="#4296CE" style="border-bottom:#E7E7E7 5 solid;">
<tr>
<td width="180" align="center" class=M><font color="#ffffff">展会简介</font></td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td bgcolor="#f6f6f6" colspan="2"></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="2">
<tr>
<td width="180" align="right" bgcolor="#EFF7FF" class=C><font color="#FF0000">* </font>展会简介 </td>
<td valign="top" bgcolor="#ffffde"> <textarea name="brief" rows="8" cols="60"><%=Replace_Text(request.form("brief"))%></textarea></td>
</tr>
</table>
<br>
<table border="0" width="100%" cellpadding="4" cellspacing="0" align="center" bgcolor="#4296CE" style="border-bottom:#E7E7E7 5 solid;">
<tr>
<td width="180" align="center" class=M><font color="#ffffff">参展范围</font></td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td bgcolor="#f6f6f6" colspan="2"></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="2">
<tr>
<td width="180" align="right" bgcolor="#EFF7FF" class=C><font color="#FF0000">* </font>参展范围</td>
<td valign="top" bgcolor="#ffffde"> <textarea name="product" rows="8" cols="60"><%=Replace_Text(request.form("product"))%></textarea></td>
</tr>
</table>
<br>
<table border="0" width="100%" cellpadding="4" cellspacing="0" align="center" bgcolor="#4296CE" style="border-bottom:#E7E7E7 5 solid;">
<tr>
<td width="180" align="center" class=M><font color="#ffffff">收费标准</font></td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td bgcolor="#f6f6f6" colspan="2"></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="2">
<tr>
<td width="180" align="right" bgcolor="#EFF7FF"> </td>
<td valign="top" bgcolor="#ffffde"> <textarea name="charge" rows="8" cols="60"><%=Replace_Text(request.form("charge"))%></textarea></td>
</tr>
</table>
<br>
<table border="0" width="100%" cellpadding="4" cellspacing="0" align="center" bgcolor="#4296CE" style="border-bottom:#E7E7E7 5 solid;">
<tr>
<td width="180" align="center" class=M><font color="#FFFFFF">展会现场活动</font></td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td bgcolor="#f6f6f6" colspan="2"></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="2">
<tr>
<td width="180" align="right" bgcolor="#EFF7FF"> </td>
<td valign="top" bgcolor="#ffffde"> <textarea name="activity" rows="8" cols="60"><%=Replace_Text(request.form("activity"))%></textarea></td>
</tr>
</table>
<br>
<table border="0" width="100%" cellpadding="4" cellspacing="0" align="center" bgcolor="#4296CE" style="border-bottom:#E7E7E7 5 solid;">
<tr>
<td width="180" align="center" class=M><font color="#ffffff">联系资料</font></td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td bgcolor="#f6f6f6" colspan="2"></td>
</tr>
</table>
<table width="100%" align="center" bordercolordark="#eeeeee" cellspacing="2" border="0" cellpadding="3">
<tr>
<td bgcolor="#EFF7FF" width="180" class=C align="right"> <font color="#FF0000">*</font> 联系人:</td>
<td bgcolor="#ffffde" valign="top"> <input name="linkman" size="30" value="<%=Replace_Text(request.form("linkman"))%>" maxlength="16"> </td>
</tr>
<tr>
<td bgcolor="#EFF7FF" class=C align="right"> 公司名称:</td>
<td bgcolor="#ffffde" valign="top"> <input name="company" value="<%=Replace_Text(request.form("company"))%>" size="45" maxlength="128"> </td>
</tr>
<tr>
<td bgcolor="#EFF7FF" class=C align="right"> <font color="#FF0000">*</font> 国家或地区:</td>
<td bgcolor="#ffffde" valign="top"> <SELECT style="WIDTH: 90px"
onchange=javascript:changeCountry1(this); name=country1> </SELECT> </td>
</tr>
<tr>
<td bgcolor="#EFF7FF" class=C align="right"> 省/州:</td>
<td bgcolor="#ffffde" valign="top"> <SELECT style="WIDTH: 60px"
onchange=changeProvince(this); name=province>
<OPTION value=""
selected>省份</OPTION>
</SELECT> </td>
</tr>
<tr>
<td bgcolor="#EFF7FF" class=C align="right"> 城 市:</td>
<td bgcolor="#ffffde" 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 bgcolor="#EFF7FF" class=C align="right"> <font color="#FF0000">*</font> 联系地址:</td>
<td bgcolor="#ffffde" valign="top"> <input name="address" value="<%=Replace_Text(request.form("address"))%>" size="45" maxlength="128"> </td>
</tr>
<tr>
<td bgcolor="#EFF7FF" class=C align="right"> 邮 编:</td>
<td valign="top" bgcolor="#ffffde"> <input name="zip" value="<%=Replace_Text(request.form("zip"))%>" size="16" maxlength="16"> </td>
</tr>
<tr>
<td bgcolor="#EFF7FF" class=C align="right"> <font color="#FF0000">*</font> 固定电话:</td>
<td valign="top" bgcolor="#ffffde"> <input name="phone" size="30" value="<%=Replace_Text(request.form("phone"))%>" maxlength="32"> </td>
</tr>
<tr>
<td bgcolor="#EFF7FF" class=C align="right"> 传 真:</td>
<td valign="top" bgcolor="#ffffde"> <input name="fax" value="<%=Replace_Text(request.form("fax"))%>" size="30" maxlength="32"> </td>
</tr>
<tr>
<td bgcolor="#EFF7FF" class=C align="right"> 移动电话:</td>
<td bgcolor="#ffffde" valign="top"> <input name="mobile" size="30" value="<%=Replace_Text(request.form("mobile"))%>" maxlength="32"> </td>
</tr>
<tr>
<td bgcolor="#EFF7FF" class=C align="right"> 电子邮件:</td>
<td bgcolor="#ffffde" valign="top"> <input name="email" size="45" value="<%=Replace_Text(request.form("email"))%>" maxlength="64"> </td>
</tr>
<tr>
<td bgcolor="#EFF7FF" class=C align="right"> 网 址:</td>
<td bgcolor="#ffffde" valign="top"> <input name="homepage" value="<%=Replace_Text(request.form("homepage"))%>" size="45" maxlength="128"> </td>
</tr>
</table>
<br>
<table width="100%" align="center">
<tr>
<td align="center" height="50"> <input type="submit" value=" 一切完成,我要发布!" name="Post" class=C> </td>
</tr>
</table>
</form></td>
</tr>
</table>
<BR>
<BR>
</TABLE>
<IMG
height=10 src="/member/images/bottom.gif" width=778><BR>
<%
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&"' and gsid="&session("id")&""
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("dateandtime")=now()
rs("gsid")=session("id")
rs.update
response.redirect ("/member/modify/modify_mine.asp")
end if
end if
end sub
%>
<!--#include virtual="/member/end.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -