📄 gonggao_edit.asp
字号:
<!--#include file="check_admin.asp"-->
<!--#include file="conn_admin.asp" -->
<%
id=Request.QueryString("id")
sql = "SELECT * FROM gonggao where id="&id
Set rs = Server.CreateObject("ADODB.Recordset")
rs.OPEN sql,Conn,1,1
id=rs("id")
gonggao_tit=rs("gonggao_tit")
editorvalue=rs("txtcontent")
rs.close
Set rs=Nothing
function html_1(fString)
fString = Replace(fString, "</P><P>" , CHR(10) & CHR(10))
fString = Replace(fString, "<BR>" , CHR(10))
html_1= fString
end function
%>
<html>
<head>
<title>公告栏添加窗口</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<link href="sys_admin.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#EEFFEE">
<style type="text/css">
<!--
.clsCursor { cursor: hand}
-->
</style>
<form name="fHtmlEditor" method="POST" action="save_gonggao_edit.asp?id=<%=id%>">
<table width="100%" border=1 cellPadding=0 cellSpacing=0 bordercolor="#666666" borderColorLight="#666666" borderColorDark=#ffffff bgcolor="#EEFFEE">
<tr bgcolor="#006600">
<td height="20" colspan="2"><div align="center"><strong><font color="#FFFFFF">公告栏添加窗口</font></strong></div></td>
</tr>
<tr>
<td width="112" height="30" align="right"><b>公告标题:</b></td>
<td width="858"> <input name="gonggao_tit" type="text" id="gonggao_tit" value="<%=gonggao_tit%>" size="20" maxlength="50">
*</td>
</tr>
<tr>
<td colspan="2"> <textarea name="EditorValue" style="display: none;"><%=editorvalue%></textarea>
<script language="JavaScript">
var errorString = "本系统要求在WINDOW95或IE5.0以上才可以正常显示。"
var Ok = "false";
var name = navigator.appName;
var version = parseFloat(navigator.appVersion);
var platform = navigator.platform;
if (platform == "Win32" && name == "Microsoft Internet Explorer" && version >= 4){
Ok = "true";
} else {
Ok= "false";
}
if (Ok == "false") {
alert(errorString);
}
function ColorPalette_OnClick(colorString){
cpick.bgColor=colorString;
document.all.colourp.value=colorString;
doFormat('ForeColor',colorString);
}
function initToolBar(ed) {
var eb = document.all.editbar;
if (ed!=null) {
eb._editor = window.frames['myEditor'];
}
}
function doFormat(what) {
var eb = document.all.editbar;
if(what == "FontName"){
if(arguments[1] != 1){
eb._editor.execCommand(what, arguments[1]);
document.all.font.selectedIndex = 0;
}
} else if(what == "FontSize"){
if(arguments[1] != 1){
eb._editor.execCommand(what, arguments[1]);
document.all.size.selectedIndex = 0;
}
} else {
eb._editor.execCommand(what, arguments[1]);
}
}
function swapMode() {
var eb = document.all.editbar._editor;
eb.swapModes();
}
function create() {
var eb = document.all.editbar;
eb._editor.newDocument();
}
function newFile(){
create();
}
function makeUrl(){
sUrl = document.all.what.value + document.all.url.value;
doFormat('CreateLink',sUrl);
}
function copyValue() {
var theHtml = "" + document.frames("myEditor").document.frames("textEdit").document.body.innerHTML + "";
document.all.EditorValue.value = theHtml;
}
function SwapView_OnClick(){
if(document.all.btnSwapView.value == "显示页面"){
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -