?? editnotice.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="conn.asp" -->
<%
' if (session("userright")="") then
' response.Redirect("error.asp?err_on=5")
' end if
%>
<html>
<head>
<title>修改欄目</title>
<link rel="stylesheet" href="css/admin.css" type="text/css">
</head>
<body>
<script language="JavaScript">
<!--
function check_null()
{
if(document.editnotice.title.value=="")
{
alert("請輸入消息的標題!");
return false;
}
if(document.editnotice.content.value=="")
{
alert("請輸入消息的內容!");
return false;
}
return true;
}
-->
</script>
<%
Dim Aid
Aid=request.QueryString("noticeid")
Dim rs
Dim strSQL
%>
<p> </p>
<p> </p>
<form action="updatenotice.asp" method="post" name="editnotice" onsubmit="javascript: return check_null();">
<%
'strSQL="SELECT * FROM notice where id='"&Aid&"'"
strSQL="SELECT * FROM notice where id="&Aid
set rs=server.createobject("adodb.recordset")
rs.open strSQL,db,1,1
do while not rs.eof
%>
<table width="595" height="2%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" align="center"><font color="#FFFFFF" size="+1">最新消息修改</font> </td>
</tr>
</table>
<table width="631" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
<tr valign="middle" bgcolor="#799ae1">
<td width="42" height="29" align="center"><font color="#FFFFFF">ID</font></td>
<td width="212" align="center"><font color="#FFFFFF">標題</font></td>
<td width="369" align="center"><font color="#FFFFFF">內容</font></td>
</tr>
<tr>
<td height="30" align="center"> <%=Aid %>
<input name="noticeid" type="hidden" value="<%=Aid %>"></td>
<td>
<input name="title" type="text" value="<%= rs("title")%>" size="30">
</td>
<td>
<textarea name="content" cols="45" rows="8"><%=rs("content")%></textarea>
</td>
</tr>
</table>
<%
rs.movenext
loop
%>
<table width="632" height="7%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td width="627" height="33" align="center">
<input type="submit" name="Submit" value="修改">
<input type="reset" name="Submit2" value="重置"></td>
</tr>
</table>
</form>
<p> </p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -