?? zhuantiedit.asp
字號:
<!--#include file="conn.asp"-->
<%if session("bjxadmin")="" then
response.Write "<script language='javascript'>alert('網(wǎng)絡(luò)超時或您還沒有登陸!');window.location.href='login.asp';</script>"
response.End
else
if session("flag")=2 then
response.Write "<p align=center><font color=red>您沒有此項目管理權(quán)限!</font></p>"
response.End
end if
end if
%>
<%
NewsID=request("id")
if NewsID<>"" then
if not isnumeric(NewsID) then
response.write"<script>alert(""非法訪問!"");location.href=""../index.asp"";</script>"
response.end
end if
end if
if NewsID="" then
%>
<script language=javascript>
history.back()
alert("請輸入您要修改的文章ID!")
</script>
<%
Response.End
end if
set rs=server.CreateObject ("ADODB.RecordSet")
rs.Source="select * FROM BJX_zhuanti where NewsID=" & NewsID
rs.Open rs.source,conn,1,1
if rs.recordcount=0 then
%>
<script language=javascript>
history.back()
alert("非法文章ID,請確認(rèn)NewsID不超出當(dāng)前范圍!")
</script>
<%
Response.End
end if
%>
<html><head><title><%=redcaff%>-添加專題文章</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<script language="javascript">
<!--
function checkdata()
{
if (document.form1.title.value=="")
{
alert("對不起,請輸入文章標(biāo)題!")
document.form1.title.focus()
return false
}
if (document.form1.viewhtml.checked == true)
{
alert("對不起,請取消“查看HTML源代碼”后再添加!")
document.form1.viewhtml.focus()
return false
}
if (document.form1.Content.value.length==0)
{
alert("對不起,請輸入文章內(nèi)容!")
//document.form1.content.focus()
return false
}
}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<script language="JavaScript">
<!-- Hide from older browsers...
//Function to format text in the text box
function FormatText(command, option){
frames.message.document.execCommand(command, true, option);
frames.message.focus();
}
//Function to add image
function AddImage(){
imagePath = prompt('請輸入圖片地址', 'http://');
if ((imagePath != null) && (imagePath != "")){
frames.message.document.execCommand('InsertImage', false, imagePath);
frames.message.focus();
}
frames.message.focus();
}
//Function to clear form
function ResetForm(){
if (window.confirm('確認(rèn)要清空對話框內(nèi)容?')){
frames.message.document.body.innerHTML = '';
return true;
}
return false;
}
//Function to open pop up window
function openWin(theURL,winName,features) {
window.open(theURL,winName,features);
}
function setMode(newMode)
{
bTextMode = newMode;
var cont;
if (bTextMode) {
cleanHtml();
cleanHtml();
cont=message.document.body.innerHTML;
message.document.body.innerText=cont;
} else {
cont=message.document.body.innerText;
message.document.body.innerHTML=cont;
}
message.focus();
}
function cleanHtml()
{
var fonts = message.document.body.all.tags("FONT");
var curr;
for (var i = fonts.length - 1; i >= 0; i--) {
curr = fonts[i];
if (curr.style.backgroundColor == "#ffffff") curr.outerHTML = curr.innerHTML;
}
}
// -->
</script>
<script language="JavaScript">
function help()
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -