📄 product_add.asp
字号:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
if session("AdminName")="" then
response.redirect "index.asp"
end if
%>
<!--#include file="inc/conn.inc"-->
<link href="admin_style.css" rel="stylesheet" type="text/css">
<%
set rs=server.createobject("adodb.recordset")
sql="select * from product"
rs.open sql,conn,1,3
act=request("act")
if act="upd" then
product_title=request("product_title")
product_title_fan=request("product_title_fan")
product_title_en=request("product_title_en")
product_class_id=request("product_class_id")
img=request("img")
product_content=request("product_content")
product_content_fan=request("product_content_fan")
product_content_en=request("product_content_en")
rs("product_title")=product_title
rs("product_title_fan")=product_title_fan
rs("product_title_en")=product_title_en
rs("product_class_id")=product_class_id
rs("img")=img
rs("product_content")=product_content
rs("product_content_fan")=product_content_fan
rs("product_content_en")=product_content_en
rs.update
%>
<script language=javascript>
<!--
alert('添加成功!');
window.location="product_add.asp";
//-->
</script>
<%
response.end
end if
%>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="0" bordercolorlight="#326598" bordercolordark="#ffffff">
<form name="myform" method="post" action="?act=upd">
<tr background="image/tile_sub.gif">
<td height="25" colspan="2"> 添加新闻</td>
</tr>
<tr>
<td width="10%">* 标题:</td>
<td width="90%"><input name="product_title" type="text" class="input" size="30"> 繁体:<input name="product_title_fan" type="text" class="input" size="30"> 英文:<input name="product_title_en" type="text" class="input" size="30"></td>
</tr>
<tr>
<td valign="top">* 分类:</td>
<td><select name="product_class_id" id="product_class_id">
<option value="" selected>请选择类别</option>
<% set res=server.createobject("adodb.recordset")
sql="select * from product_class"
res.open sql,conn,1,1
do while not res.eof
%>
<option value="<%=res("product_class_id")%>"><%=res("product_class_z")%></option>
<% res.movenext
loop
res.close
set res=nothing
conn.close
set conn=nothing
%>
</select></td>
</tr>
<tr>
<td valign="top">* 产品图片:</td>
<td><INPUT name=img type=hidden><iframe marginwidth=0 framespacing=0 marginheight=0 frameborder=0 width="350" height=25 src="picture.asp"></iframe></td>
</tr>
<tr>
<td valign="top">* 内容:</td>
<td><input type="hidden" name="product_content" value=""> <IFRAME ID="eWebEditor1" SRC="eWebEditor/ewebeditor.asp?id=product_content&style=s_newssystem" FRAMEBORDER="0" SCROLLING="no" WIDTH="700" HEIGHT="350"></IFRAME></td>
</tr>
<tr>
<td valign="top">* 繁体:</td>
<td><input type="hidden" name="product_content_fan" value=""> <IFRAME ID="eWebEditor1" SRC="eWebEditor/ewebeditor.asp?id=product_content_fan&style=s_newssystem" FRAMEBORDER="0" SCROLLING="no" WIDTH="700" HEIGHT="350"></IFRAME></td>
</tr>
<tr>
<td valign="top">* 英文:</td>
<td><input type="hidden" name="product_content_en" value=""> <IFRAME ID="eWebEditor1" SRC="eWebEditor/ewebeditor.asp?id=product_content_en&style=s_newssystem" FRAMEBORDER="0" SCROLLING="no" WIDTH="700" HEIGHT="350"></IFRAME></td>
</tr>
<tr align="center">
<td height="39" colspan="2"><input type="submit" name="Submit" value=" 提 交 " class="input">
<input type="reset" name="Submit2" value=" 重 置 " class="input"> <input name=cnWords type=hidden ID="cnWords" value=""> <input name=imageNum type=hidden ID="imageNum" value="<%=mImageNum%>"> <input name=editFirstImageName type=hidden ID="editFirstImageName" value=""></td>
</tr>
</form>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -