?? admin_alertedit.asp
字號:
<!--#include file="head.asp"-->
<!--#include file="AdminSession.asp"-->
<%
'ON ERROR RESUME NEXT
if request("method") = 1 then
channel=trim(request("channel"))
if Trim(Request.Form("content")) = "" then
response.write "<script>alert('請輸入內容.');document.URL='?channel="&channel&"';</script>"
response.end
else
Content = checkStr(Trim(Request.Form("content")))
end if
sql="update Notice set ["&channel&"]='"& content &"'"
Conn.execute(Sql)
Response.Write("<script>alert(""操作成功"");location.href=""?channel="&channel&""";</script>")
Response.End()
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="css/css.css" type=text/css rel=stylesheet>
<title>修改內容</title>
</head>
<%
dim channel
dim content
channel=trim(request("channel"))
sql="select ["&channel&"] from Notice"
set rs=conn.execute (sql)
if not rs.eof then
content=server.HTMLEncode(rs(0))
rs.close
end if
%>
<body onMouseOver="window.status='歡迎來到<%=NetName%>!';return true">
<script laugauge=javascript>
function checkform(){
myform.content.value=getHTML();
if (Checkblank.test(myform.content.value)){
alert("內容不能為空!");
eWebEditor1.eWebEditor.focus();
return false;
}
}
function getHTML() {
var html;
if((eWebEditor1.sCurrMode=="EDIT")||(eWebEditor1.sCurrMode=="VIEW")){
html = eWebEditor1.eWebEditor.document.body.innerHTML;
}else{
html = eWebEditor1.eWebEditor.document.body.innerText;
}
if (eWebEditor1.sCurrMode!="TEXT"){
if ((html.toLowerCase()=="<p> </p>")||(html.toLowerCase()=="<p></p>")){
html = "";
}
}
return html;
}
</script>
<script src="js/forms.js"></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="98%" border="0" cellpadding="6" cellspacing="1" bgcolor="#0099CC" align="center">
<form name="myform" action="" method="post" onSubmit="return checkform()">
<tr align="center" bgcolor="e9effe">
<td colspan="2">
<input type=hidden name=content value="<%=content%>">
<input type=hidden name=channel value="<%=channel%>">
<input type=hidden name=method value=1>
+<strong> 修 改 說 明 +</strong></td>
</tr>
<tr bgcolor="e9effe">
<td width="15%" align="right">內容:</td>
<td>
<IFRAME ID="eWebEditor1" SRC="ewebeditor/ewebeditor.asp?id=content&style=s_newssystem2" FRAMEBORDER="0" SCROLLING="no" WIDTH="650" HEIGHT="350"></IFRAME>
</td>
</tr>
<tr bgcolor="e9effe">
<td width="15%" align="right"> </td>
<td align="center">
<input type="submit" name="Submit" value=" 修 改 " class="tbutton">
<input type="reset" name="Submit2" value=" 重 置 " class="tbutton"></td>
</tr>
<tr bgcolor="e9effe">
<td width="15%"> </td>
<td> </td>
</tr></form>
</table>
</body>
</html>
<SCRIPT language=javascript>
var menu=new Array(["修改內容"]);
drawMenu(menu);
setFrameActive();
</SCRIPT>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -