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

📄 sca_edit.asp

📁 站完全依据SEO技术建立
💻 ASP
字号:
<!--#include file="top.asp"--><%usertopview%>
<%if userflag2=0 then
response.redirect"ok.asp?action=flag"
end if%>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
<tr>
<td width="160" valign=top bgcolor=#efefef>
<!--==============-->
<!--#include file="left.asp"-->
<!--==============-->
</td>
<td width="600" valign=top>
<!--==============-->
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><td height=25>您现在的位置是:管理中心 > 商贸机会</td></tr>
<tr>
<td>
<!--####################################-->
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=#6C94D1>
<tr>
<td height=25 bgcolor=#6C94D1>  <font color=white>商贸机会修改</font></td>
</tr>
<tr>
<td bgcolor=#ffffff height=25>
<!--======-->
<%sql = "select *  from SMT_ypxxtwo order by SMT_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1%>

<script language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
<%count = 0
do while not rs.eof%>
subcat[<%=count%>] = new Array("<%= trim(rs("SMT_ypxxtwo"))%>","<%= trim(rs("SMT_ypxxone_id"))%>","<%= trim(rs("SMT_ypxxtwo_id"))%>");
<%count = count + 1
rs.movenext
loop
rs.close
set rs=nothing%>
onecount=<%=count%>;

function changelocation(ypxxone)
{
document.addform.ypxxtwo_id.length = 0;

var ypxxone_id=ypxxone_id;
var i;
document.addform.ypxxtwo_id.options[0] = new Option('请选择小类','');
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == ypxxone)
{
document.addform.ypxxtwo_id.options[document.addform.ypxxtwo_id.length] = new Option(subcat[i][0], subcat[i][2]);
}
}

}
</script>
<%sql = "select *  from SMT_ypaddtwo order by SMT_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1%>
<script language = "JavaScript">
var onecount1;
onecount1=0;
subcat1 = new Array();
<%count = 0
do while not rs.eof%>
subcat1[<%=count%>] = new Array("<%= trim(rs("SMT_addtwo"))%>","<%= trim(rs("SMT_addone_id"))%>","<%= trim(rs("SMT_addtwo_id"))%>");
<%count = count + 1
rs.movenext
loop
rs.close
set rs=nothing%>
onecount1=<%=count%>;

function changelocation1(addone)
{
document.addform.addtwo_id.length = 0;

var addone_id=addone_id;
var i;
document.addform.addtwo_id.options[0] = new Option('请选择市','');
for (i=0;i < onecount1; i++)
{
if (subcat1[i][1] == addone)
{
document.addform.addtwo_id.options[document.addform.addtwo_id.length] = new Option(subcat1[i][0], subcat1[i][2]);
}
}

}
</script>
<%sql1="select * from SMT_sca where SMT_id="&request("id")
set rs1=server.createobject("adodb.recordset")
rs1.open sql1,conn,1,1%>
<table width="80%" border="0" cellspacing="0" cellpadding="0" align=center>
<form name="addform" method="post" action="sca_save.asp?action=edit&page=<%=request("page")%>">
<input name="id" type="hidden" value="<%=request("id")%>">

<input name="ypxxone_id_" type="hidden" value="<%=rs1("SMT_ypxxone_id")%>">
<input name="ypxxtwo_id_" type="hidden" value="<%=rs1("SMT_ypxxtwo_id")%>">
<input name="addone_id_" type="hidden" value="<%=rs1("SMT_addone_id")%>">
<input name="addtwo_id_" type="hidden" value="<%=rs1("SMT_addtwo_id")%>">

<input name="begindate" type="hidden" value="<%=rs1("SMT_begindate")%>">

<%sql="select *  from SMT_ypxxtwo where SMT_ypxxtwo_id="&rs1("SMT_ypxxtwo_id")
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
ypxxone=rs("SMT_ypxxone")
ypxxtwo=rs("SMT_ypxxtwo")
rs.close%>
<%sql="select *  from SMT_ypaddtwo where SMT_addtwo_id="&rs1("SMT_addtwo_id")
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
addone=rs("SMT_addone")
addtwo=rs("SMT_addtwo")
rs.close%>
<tr>
<td height=30 align="center" colspan="2"><font color=#666666>带 * 为必填项</font></td>
</tr>
<tr>
<td width="21%" height=30 align=right><font color=red>*</font>商机标题: &nbsp;</td>
<td width="79%"><input name="scatitle" type="text" size="35" maxlength="15" value="<%=replace(rs1("SMT_scatitle"),"""","“")%>"> <font color=#666666>限15个字符</font></td>
</tr>
<%if userflag33<>1 then%>
<tr>
<td height=30 colspan=2 align=center><textarea name="scas" style="height:220;width:450"><%=rs1("SMT_sca")%></textarea></td>
</tr>
<%else%>
<tr>
<td height=30 colspan=2 align=center><INPUT type="hidden" name="scas" value="<%=Server.HTMLEncode(rs1("SMT_sca"))%>"><IFRAME ID="eWebEditor1" src="../oledit/ewebeditor.asp?id=scas&style=s_mini&action=yes" frameborder="0" scrolling="no" width="450" height="250"></IFRAME></td>
</tr>
<%end if%>
<tr>
<td height=30 align=right>商机分类: &nbsp;</td>
<td><select name="scasort">
<option value=0<%if rs1("SMT_scasort")=0 then%> selected<%end if%>>不分类</option>
<%sql="select * from SMT_scasort order by SMT_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
<option value="<%=rs("SMT_id")%>"<%if rs1("SMT_scasort")=rs("SMT_id") then%> selected<%end if%>><%=rs("SMT_scasort")%></option>
<%rs.movenext
wend
rs.Close()%>
</select></td>
</tr>
<%lastdate=cdate(year(rs1("SMT_lastdate"))&"-"&month(rs1("SMT_lastdate"))&"-"&day(rs1("SMT_lastdate")))
begindate=cdate(year(rs1("SMT_begindate"))&"-"&month(rs1("SMT_begindate"))&"-"&day(rs1("SMT_begindate")))
ldate=cint(lastdate-begindate)%>
<tr>
<td height=30 align=right>有效期: &nbsp;</td>
<td><input type="radio" name="ldate" value="7" class=radio<%if ldate=7 then%> checked<%end if%>>一周 <input type="radio" name="ldate" value="15" class=radio<%if ldate=15 then%> checked<%end if%>>两周
<input type="radio" name="ldate" value="30" class=radio<%if ldate=30 then%> checked<%end if%>>一月 <input type="radio" name="ldate" value="90" class=radio<%if ldate=90 then%> checked<%end if%>>三月
<input type="radio" name="ldate" value="180" class=radio<%if ldate=180 then%> checked<%end if%>>半年<%if ldate<>7 and ldate<>15 and ldate<>30 and ldate<>90 and ldate<>180 then%> <input type="radio" name="ldate" value="<%=ldate%>" class=radio checked><%=ldate%>天<%end if%></td>
</tr>
<tr>
<td height=30 align=right>商机状态: &nbsp;</td>
<td><input type="radio" name="key" value=1 class=radio<%if rs1("SMT_key")=1 then%> checked<%end if%>> 开通 <input type="radio" name="key" value=1 class=radio<%if rs1("SMT_key")=1 then%> checked<%end if%>> 不开通</td>
</tr>
<tr>
<td height=50 align=right>选择行业: &nbsp;</td>
<td><p style="line-height:180%"><%=ypxxone%> > <%=ypxxtwo%><br><select name="ypxxone_id" onChange="changelocation(document.addform.ypxxone_id.options[document.addform.ypxxone_id.selectedIndex].value)">
<option value="" selected>请选择大类</option>
<%
sql="select *  from SMT_ypxxone order by SMT_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
<option value="<%=rs("SMT_ypxxone_id")%>"><%=rs("SMT_ypxxone")%></option>
<%rs.movenext
wend
rs.Close()
%>
</select>
<select name="ypxxtwo_id">
<option selected value="">请选择小类</option>
</select><br><font color=#666666>如不选则默认为您上次所选的行业</font></td>
</tr>
<tr>
<td height=50 align=right>选择地区: &nbsp;</td>
<td><p style="line-height:180%"><%=addone%> > <%=addtwo%><br><select name="addone_id" onChange="changelocation1(document.addform.addone_id.options[document.addform.addone_id.selectedIndex].value)">
<option value="" selected>请选择省</option>
<%
sql="select *  from SMT_ypaddone order by SMT_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
<option value="<%=rs("SMT_addone_id")%>"><%=rs("SMT_addone")%></option>
<%rs.movenext
wend
rs.Close()
%>
</select>
<select name="addtwo_id">
<option selected value="">请选择市</option>
</select><br><font color=#666666>如不选则默认为您上次所选的地区</font></td>
</tr>
<tr>
<td height=30 align="center" colspan="2"><input type="submit" name="Submit" value="提 交" class="input1">
<font color="#FF0000">(注意:若一次提交没成功,请再点击一次)</font></td>
</tr>
</form>
</table>
<%rs1.close%>
<script language="javascript">
changelocation(document.addform.ypxxone_id.options[document.addform.ypxxone_id.selectedIndex].value);
</script>
<script language="javascript">
changelocation1(document.addform.addone_id.options[document.addform.addone_id.selectedIndex].value);
</script>
<!--======-->
</td>
</tr>
</table>
<!--####################################-->
</td>
</tr>
<tr><td height=25></td></tr>
</table>
<!--==============-->
</td>
</tr>
</table>
<!--====== bottom ========-->
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor=#ffffff>
<tr><td height=2 bgcolor=#6C94D1></td></tr>
<tr>
<td align="center" height=80><%=citybottom%></td>
</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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