📄 addad.asp
字号:
rsi.close
set rsi = nothing
%>
</select>
<select name="city_two" id="city_two" onChange="changelocation4(document.postart.city_two.options[document.postart.city_two.selectedIndex].value,document.postart.city_one.options[document.postart.city_one.selectedIndex].value)">
<%if session("twoid")<>0 then
set rsi=conn.execute("select * from china_city where id="&session("oneid")&" and twoid="&session("twoid")&" and threeid=0")
response.write "<option value='"&rsi("twoid")&"'>"&rsi("city")&"</option>"
rsi.close
set rsi = nothing
else
set rsi=conn.execute("select * from china_city where id="&session("oneid")&" and twoid<>0 and threeid=0")
if rsi.eof or rsi.bof then
response.write "<option value=''>没有分类</option>"
else
do until rsi.eof
response.write "<option value='"&rsi("twoid")&"'>"&rsi("city")&"</option>"
rsi.movenext
loop
%><option value="" selected>选择城市</option>
<%end if
rsi.close
set rsi = nothing
end if
%>
</select>
<select name="city_three" id="city_three">
<%if session("threeid")<>0 then
set rsi=conn.execute("select * from china_city where id="&session("oneid")&" and twoid="&session("twoid")&" and threeid="&session("threeid")&"")
response.write "<option value='"&rsi("threeid")&"'>"&rsi("city")&"</option>"
rsi.close
set rsi = nothing
else
set rsi=conn.execute("select * from china_city where id="&session("oneid")&" and twoid="&session("twoid")&" and threeid<>0")
if rsi.eof or rsi.bof then
response.write "<option value=''>没有分类</option>"
else
do until rsi.eof
response.write "<option value='"&rsi("threeid")&"'>"&rsi("city")&"</option>"
rsi.movenext
loop
%><option value="" selected>选择城市</option>
<%end if
rsi.close
set rsi = nothing
end if
%>
</select>
<font color="#FF0000">*</font> </td>
</tr>
<tr>
<td width="27%" height="26" align="right" bgcolor="#FFFFFF">信息类别:</td>
<td height="26" colspan="2" bgcolor="#FFFFFF">
<%
set rsi=conn.execute("select * from china_type where id>0 and twoid>0 and threeid=0")
%>
<script language = "JavaScript">
var onecount2;
onecount2=0;
subcat2 = new Array();
<%
dim count2:count2 = 0
do while not rsi.eof
%>
subcat2[<%=count2%>] = new Array("<%=rsi("name")%>","<%=rsi("id")%>","<%=rsi("twoid")%>");
<%
count2 = count2 + 1
rsi.movenext
loop
rsi.close
set rsi = nothing
%>
onecount2=<%=count2%>;
</script>
<%
set rsi=conn.execute("select * from china_type where id>0 and twoid>0 and threeid>0")
%>
<script language = "JavaScript">
var onecount3;
onecount3=0;
subcat3 = new Array();
<%
dim count3:count3 = 0
do while not rsi.eof
%>
subcat3[<%=count3%>] = new Array("<%=rsi("name")%>","<%=rsi("id")%>","<%=rsi("twoid")%>","<%=rsi("threeid")%>");
<%
count3 = count3 + 1
rsi.movenext
loop
rsi.close
set rsi = nothing
%>
onecount3=<%=count3%>;
function changelocation2(locationid)
{
document.postart.type_two.length = 0;
document.postart.type_two.options[0] = new Option('选择信息','');
document.postart.type_three.length = 0;
document.postart.type_three.options[0] = new Option('选择信息','');
var locationid=locationid;
var i;
for (i=0;i < onecount2; i++)
{
if (subcat2[i][1] == locationid)
{
document.postart.type_two.options[document.postart.type_two.length] = new Option(subcat2[i][0], subcat2[i][2]);
}
}
}
function changelocation3(locationid,locationid1)
{
document.postart.type_three.length = 0;
document.postart.type_three.options[0] = new Option('选择信息','');
var locationid=locationid;
var locationid1=locationid1;
var i;
for (i=0;i < onecount3; i++)
{
if (subcat3[i][2] == locationid)
{
if (subcat3[i][1] == locationid1)
{
document.postart.type_three.options[document.postart.type_three.length] = new Option(subcat3[i][0], subcat3[i][3]);
}
}
}
}
</script>
<select name="type_one" size="1" id="select3" onChange="changelocation2(document.postart.type_one.options[document.postart.type_one.selectedIndex].value)">
<option value="" selected>选择信息</option>
<%set rsi=conn.execute("select * from china_type where id>0 and twoid=0")
if rsi.eof and rsi.bof then
response.write "<option value=''>没有分类</option>"
else
do until rsi.eof
response.write "<option value='"&rsi("id")&"'>"&rsi("name")&"</option>"
rsi.movenext
loop
type_oneid=HtmlEncode(trim(request.form("type_one")))
response.Write(type_oneid)
end if
rsi.close
set rsi = nothing
conn.close
set conn= nothing
%>
</select>
<select name="type_two" id="select4" onChange="changelocation3(document.postart.type_two.options[document.postart.type_two.selectedIndex].value,document.postart.type_one.options[document.postart.type_one.selectedIndex].value)">
<option value="" selected>选择信息</option>
</select>
<select name="type_three" id="select5">
<option value="" selected>选择信息</option>
</select>
</td>
</tr>
<tr>
<td width="27%" height="26" align="right" bgcolor="#FFFFFF">信息形式:</td>
<td height="26" colspan="2" bgcolor="#FFFFFF">
<input type="radio" value="no" name="dispic" checked>
文字信息
<input type="radio" value="yes" name="dispic">
图片信息 <font color="#FF0000">(注:设置为</font><font color="#008080">图片信息</font><font color="#FF0000">将会在</font><font color="#008080">全部分类</font><font color="#FF0000">栏目以图片方式显示)</font></td>
</tr>
<tr>
<td width="27%" height="26" align="right" bgcolor="#FFFFFF">图片路径:</td>
<td height="26" colspan="2" bgcolor="#FFFFFF">
<input type="text" name="dpic" size="30" value="">
<iframe style="top:2px" ID="UploadFiles" src="../upload_Photo.asp?PhotoUrlID=0" frameborder=0 scrolling=no width="320" height="25"></iframe></td>
</tr>
<tr>
<td width="27%" align="right" valign="top" bgcolor="#FFFFFF">信息内容:
</td>
<td colspan="2" bgcolor="#FFFFFF">
<textarea rows="14" name="dtext" cols="60" onKeyDown="checkMaxInput(this.form)" onKeyUp="checkMaxInput(this.form)"></textarea>
<font color="#FF0000">* </font> <font color="#FF0000"><br>
目前还可写
<input readonly type=text name=remLen size=4 maxlength=4 value="1500" style="border: 1 solid #888888">
个字!</font></td>
</tr>
<tr>
<td height="26" align="right" bgcolor="#FFFFFF">联系人:</td>
<td height="26" colspan="2" bgcolor="#FFFFFF">
<input name="dusername" type="text" id="dusername" size="20" maxlength="30" value="<%=session("china_city")%>站长">
<font color="#FF0000">* </font></td>
</tr>
<tr <%if webcardid="0" then%>style="display:none"<%end if%>>
<td height="26" align="right" bgcolor="#FFFFFF">身份证号:</td>
<td height="26" colspan="2" bgcolor="#FFFFFF">
<input name="dcardid" type="text" id="dcardid" size="20" maxlength="18">
<font color="#FF0000">* </font></td>
</tr>
<tr>
<td height="26" align="right" bgcolor="#FFFFFF">联系电话:</td>
<td height="26" colspan="2" bgcolor="#FFFFFF">
<input name="dtel" type="text" id="dtel" size="20" maxlength="20">
<font color="#FF0000">* </font></td>
</tr>
<tr>
<td width="27%" height="26" align="right" bgcolor="#FFFFFF">有效期至:</td>
<td height="26" colspan="2" bgcolor="#FFFFFF">
<select size="1" name="dstop">
<option value="选择有效期">选择有效期</option>
<option value="7">一星期</option>
<option value="15">半个月</option>
<option value="31">一个月</option>
<option value="61">两个月</option>
<option value="92" selected>三个月</option>
<option value="183">半年</option>
<option value="365">一年</option>
<option value="3650">长期</option>
</select>
</td>
</tr>
<tr>
<td width="27%" height="26" align="right" bgcolor="#FFFFFF">是否固顶:</td>
<td height="26" colspan="2" bgcolor="#FFFFFF">
<input type="radio" value="0" name="dtop" checked>
否
<input type="radio" value="1" name="dtop">
是 <font color="#FF0000">(注:设置为此属性将在排列在同栏目的首位显示,并同时显示在首页滚动</font><font color="#008080">左侧</font><font color="#FF0000">)</font></td>
<tr bgcolor="#FFFFFF">
<td height="26" align="right">是否首页滚动显示:</td>
<td height="26" colspan="2">
<input name="dshouye" type="radio" value="0" checked>
否
<input type="radio" value="1" name="dshouye">
是 <font color="#FF0000">(注:首页滚动</font><font color="#008080">右侧</font><font color="#FF0000">显示)</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="26" align="right">是否图文信息:</td>
<td height="26" colspan="2">
<input name="dlift" type="radio" value="0" checked>
否
<input type="radio" value="1" name="dlift">
是 <font color="#FF0000">(注:在首页右侧显示为图片及文字混合显示,如 旅游/餐饮/招生)</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="26" align="right">热点分类信息:</td>
<td height="26" colspan="2">
<input name="dhot" type="radio" value="0" checked>
否
<input type="radio" value="1" name="dhot">
是 <font color="#FF0000">(注:在首页"热点分类信息"处显示)</font></td>
</tr>
<tr>
<td width="27%" height="26" align="right" bgcolor="#FFFFFF">竟价费用:</td>
<td height="26" colspan="2" bgcolor="#FFFFFF">
<input name="dmoney" size="15" maxlength="50">
元 <font color="#FF0000">(注:金额越大,排列位置越靠前)</font> </td>
</tr>
<tr>
<td width="27%" height="30" align="right" bgcolor="#FFFFFF"> </td>
<td height="30" colspan="2" align="right" bgcolor="#FFFFFF">
<p align="left">
<input type="submit" value="提交" name="submit">
<input type="reset" value="取消" name="reset">
<input type="button" value="返回" name="back" onclick="javascript:history.back()">
</td>
</tr>
</table>
</form>
</div>
<br>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -