📄 admin_newsedit.asp
字号:
<!--#include file=inc/conn.asp-->
<!--#include file=../../inc/checkadmin.asp-->
<!--#include file=../../../ajaxLIB/ajaxLIB.asp-->
<%
AJAXshowLoader()
AJAXshowSweetTitles2()
%>
<%
id=request("id")
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from sys_data_xxprod where id="&id&"",conn,1,1
%>
<link href="css/my.css" rel="stylesheet" type="text/css">
<!------------------------------------------------div:new------------------------>
<div id="edit" style="filter:blendTrans(duration=1); position:absolute;visibility:hidden; width:774px; z-index:-1; left: 3px; top: 12px; ">
<table width="400" height="400" border="1" cellpadding="0" cellspacing="0" bordercolor="#999999" bgcolor="#D1D1D1">
<tr>
<td width="350" height="20" bordercolor="#999999" background="../../images/titbg.gif">
</td>
<td width="44" align="center" bordercolor="#999999" background="../../images/titbg.gif">
</td>
</tr>
<tr><td colspan=2>
<form method="POST" name="myform" action="admin_newsEdit_chk.asp" target="_self">
<table width="650" border="0" align="center" cellpadding="0" cellspacing="1">
<tr align="center">
<th height="30" colspan="2"><strong>产品修改</strong> </th>
</tr>
<tr bgcolor="#FFFFFF">
<td width="87" height="30" align="right">产品名称:</td>
<td width="560"> <input name="title" type="text" id="title" value="<%=rs("title")%>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="87" height="30" align="right">产品缩略图:</td>
<td width="560" align="left">
<input type="hidden" name="simagePath" value="<%=rs("smallpic")%>">
<iframe name=ad1 frameborder=0 width=90% height=25 scrolling=no src="sUpimgdododo.htm"></iframe><br>(图片大小在200*200左右)
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="87" height="30" align="right">产品类别:</td>
<td width="560">
<select name="newsClass">
<%
set rsy=server.CreateObject("adodb.recordset")
rsy.open "select * from sys_data_xxprod_class order by id desc",conn,1,1
do while not rsy.eof
%>
<option <%if cstr(rs("class"))=cstr(rsy("id")) and cstr(rs("di2_class"))="no" and cstr(rs("di3_class"))="no" then response.write "selected"%> value="<%=rsy("id")%>a">┣<%=rsy("news_type_name")%></option>
<%
set rs2=server.CreateObject("adodb.recordset")
rs2.open "select * from sys_data_xxprod_di2cen_class where di1_parent_id='"&rsy("id")&"'",conn,1,1
do while not rs2.eof
%>
<option <%if cstr(rs("class"))=cstr(rsy("id")) and cstr(rs("di2_class"))=cstr(rs2("id")) and cstr(rs("di3_class"))="no" then response.write "selected"%> value="<%=rs2("id")%>b"> ┃ ┣<%=rs2("class_name")%></option>
<%
set rs3=server.CreateObject("adodb.recordset")
rs3.open "select * from sys_data_xxprod_di3cen_class where parent_id_of_di2='"&rs2("id")&"'",conn,1,1
do while not rs3.eof
%>
<option <%if cstr(rs("class"))=cstr(rsy("id")) and cstr(rs("di2_class"))=cstr(rs2("id")) and cstr(rs("di3_class"))=cstr(rs3("id")) then response.write "selected"%> value="<%=rs3("id")%>c"> ┃ ┃ ┣<%=rs3("class_name")%></option>
<%
rs3.movenext
loop
rs2.movenext
loop
rsy.movenext
loop%>
</select>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="right">添加人:</td>
<td> <input name="adder" type="text" id="adder" value="<%=rs("adder")%>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="right">产品介绍:</td>
<td>
<textarea style="display:none;" id="connect" name="connect"><%=rs("connect")%></textarea>
<iframe ID="eWebEditor1" src="../../../ewebeditor/ewebeditor.asp?id=connect&style=s_coolblue1" frameborder="0" scrolling="no" width="550" HEIGHT="350"></iframe></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="right"><input name="id" type="hidden" id="id" value="<%=id%>"></td>
<td>
<input type="submit" name="Submit" value=" 修 改 "></td>
</tr>
</table>
</form>
</td></tr>
</table>
</div>
<!----------------------------end------div:new------------------------>
<script language=javascript>
AJAXfade(1,'edit')
</script>
<%
AJAXcloseLoader()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -