📄 mod_pro.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
on error resume next
%>
<!--#include file="checkadmin.asp" -->
<!--#include file="open.asp" -->
<%
id = request("id")
if id="" then
Response.end
end if
dim title(5)
title(1)="新闻修改"
title(2)="公告修改"
title(3)="产品修改"
title(4)="案例修改"
title(5)="客户修改"
tid=Request("tid")
if tid="news" then
subject=title(1)
elseif tid="gg" then
subject=title(2)
elseif tid="product" then
subject=title(3)
elseif tid="project" then
subject=title(4)
else
subject=title(5)
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.text {
font-size: 12px;
line-height: 22px;
color: #333333;
text-decoration: none;
cursor: help;
}
A.a01 {
font-size: 12px; color: #333333;text-decoration: none;}
A.a01:hover { font-size: 12px;
color: #CC9900;
text-decoration: underline;}
A {
font-size: 12px;
line-height: 22px;
color: #333333;
text-decoration: none;
}
A:hover {
font-size: 12px;
line-height: 22px;
color: #FF6600;
text-decoration: underline;
}
.form {
font-size: 12px;
color: #333333;
text-decoration: none;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #666666;
border-right-color: #efefef;
border-bottom-color: #efefef;
border-left-color: #666666;
}
.button {
font-size: 12px;
color: #FFFFFF;
text-decoration: none;
background-color: #FF9933;
border: 1px solid #c6c6c6;
}
.form2 {
font-size: 12px;
color: #333333;
text-decoration: none;
background-color: #f7f7f7;
border-top: 1px solid #CCCCCC;
border-right: 1px solid #666666;
border-bottom: 1px solid #666666;
border-left: 1px solid #CCCCCC;
}
.text2 {
font-size: 12px;
color: #4D5743;
text-decoration: none;
line-height: 22px;
}
-->
</style>
<link href="image/myweb.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-color: #F7F7F7;
}
-->
</style></head>
<body style="margin:0" >
<%
SQL="Select * from product where id="&id
Set rs=Server.CreateObject("ADODB.RecordSet")
rs.Open SQL,con,1,1
if rs.Eof then
Response.End
end if
%>
<form action="mod_pho.asp" method="post" enctype="multipart/form-data" name="form1" id="form1" >
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="ececec" class="text">
<tr bgcolor="f7f7f7">
<td height="24" colspan="2" align="center"><%=subject%></td>
</tr>
<tr bgcolor="f7f7f7">
<td height="24" align="right">标题:</td>
<td height="24">
<input name="title" type="text" id="title" value="<%=rs("title")%>"></td>
</tr>
<tr bgcolor="f7f7f7">
<td width="29%" align="right">图片上传:</td>
<td width="71%">
<input name="img" type="file" class="web_ipt" id="img"> <input name="temp" type="hidden" id="temp" value="temp">
<input name="id" type="hidden" id="id" value="<%=id%>">
<div id=image1></div></td>
</tr>
<tr bgcolor="f7f7f7">
<td align="right">内容:</td>
<td>
<textarea name="content" cols="45" rows="10" id="content"><%=rs("content")%></textarea>
</td>
</tr>
<tr bgcolor="f7f7f7">
<td align="right"> </td>
<td height="40">
<input name="Submit" type="submit" value="提交">
<input name="Submit2" type="reset" value="重置"> </td>
</tr>
</table>
</form>
<script>
<%
if vartype(rs("img"))<>1 and rs("img")<>"" then
Response.Write("document.all.image1.innerHTML='<img src=img/"&rs("img")&">"&"'"&chr(13))
end if
%>
</script>
<%
rs.close
Set rs=nothing
%>
</body>
</html>
<!--#include file="close.asp" -->
<%
if err.number<>0 then
response.write(err.description)
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -