📄 pictures_mod.asp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--#include file="../Inc/Conn.asp" -->
<!--#include file="Check.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="style.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</head>
<body leftmargin=0 bottommargin=0 rightmargin=0 topmargin=0>
<script src="images/admin.js" type="text/javascript"></script>
<div class=menuskin id=popmenu
onmouseover="clearhidemenu();highlightmenu(event,'on')"
onmouseout="highlightmenu(event,'off');dynamichide(event)" style="Z-index:100"></div>
<div align=center>
<!--#include file="Top.asp" -->
<%
ID=Request("ID")
Set rs=server.CreateObject("adodb.recordset")
rs.open "select * from Pictures where ID="&ID,Conn,1,1
%>
<form name="AddForm" method="post" action="Pictures_Save.asp">
<table cellpadding="2" cellspacing="1" border="0" width="96%" class="tableBorder" align=center>
<tr>
<th colspan=3 height=25>修改图片</th>
</tr>
<tr><td class=BodyTitle colspan=3 height=23 style="FONT-SIZE: 9pt; FILTER: dropshadow(color=#FFFFFF,offx=1,offy=1); COLOR: #000000;"> </td>
</tr>
<tr>
<td width="26%" height="38" align="right" class="forumRowHighlight">图片名称:</td>
<td width="45%" align="left" class="forumRowHighlight"><input name="Title" type="text" id="Title" value="<%=rs("Title")%>" size="40">
<span class="forumRowHighlight">
<input name="act" type="hidden" id="act" value="mod">
<input name="Picture" type="hidden" id="Picture" value="<%=rs("Picture")%>">
<input name="ID" type="hidden" id="ID" value="<%=ID%>">
</span></td>
<td width="29%" rowspan="3" class="forumRow"><img src="/Pictures/<%=rs("Picture")%>" alt="" name="Pictures" width="160" height="100" id="Pictures"></td>
</tr>
<tr>
<td height=29 align="right" class="forumRowHighlight">英文名称:</td>
<td class="forumRow"><span class="forumRowHighlight">
<input name="EnTitle" type="text" id="EnTitle" value="<%=rs("EnTitle")%>" size="40">
</span></td>
</tr>
<tr id="ShowLogo">
<td height=24 align="right" valign="bottom" class="forumRowHighlight">图片上传:</td>
<td align="left" valign="bottom" class="forumRow"><span class="STYLE2">
<input name=Picture1 id=Picture1 value="<%=rs("Picture")%>" size="29">
<input type="button" name="Submit3" value=" 上 传 " onClick="openWindow('1');">
</span></td>
</tr>
<tr>
<td height=31 colspan="3" align="center" class="forumRowHighlight"><span class="forumRow">
<input type="submit" onClick="return CheckForm();" name="Submit" value=" 提 交 ">
<input type="reset" name="Submit2" value=" 重 置 ">
</span></td>
</tr>
</table>
</form>
<%
rs.close
set rs=nothing
Conn.close
set Conn=nothing
%>
<BR>
<BR>
</div>
</body></html>
<SCRIPT language=javascript>
function openWindow(ID) {
var stly="toolbar=no,top=200,left=300,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=420,height=180";
url="xgsoft.asp?ID="+ID
window.open(url,"new",stly);
}
function CheckForm()
{
if (document.AddForm.Title.value == "")
{
alert("您修改的图片名称不能空!");
document.AddForm.Title.focus();
return false;
}
}
</SCRIPT>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -