gusucode.com > 爱美尔女性商城源码 1.0源码程序 > admintouch/zhuantiedit.asp

    <!--#INCLUDE file=../BJXeditor/index.asp -->
<!--#include file="conn.asp"-->
<%if session("bjxadmin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>"
response.End
else
if session("flag")=2 then
response.Write "<p align=center><font color=red>您没有此项目管理权限!</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,请确认NewsID不超出当前范围!")
</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("对不起,请输入文章标题!")
	  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("对不起,请输入文章内容!")
	  //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>
</head>
<body>
<form name="form1" method="post" action="zhuantiedit2.asp" OnSubmit="return checkdata()" onReset="return ResetForm();">
<table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#6a7f9a">
<tr> 
<td colspan="4" align="center" background="../images/admin_bg_1.gif"><b><font color="#ffffff">修改专题文章-该文章ID为:<%=NewsID%></font></b></td>
</tr>
<tr > 
<td width="20%" align="right" class="TableBody1" valign="top">文章标题:</td>
<td width="80%" class="TableBody1">
<input name="title" id=me type="TEXT" size=50 maxlength=100 style="background-color:ffffff;border: 1 double"  onMouseOver="window.status='在这里输入要添加的文章标题,必填';return true;" onMouseOut="window.status='';return true;" title='在这里输入要添加的文章标题,必填' value="<%=rs("title")%>">
<span style='cursor:hand' title='加长对话框' onClick='if (me.size<102)me.size=me.size+2'>+</span>
<span style='cursor:hand' title='缩短对话框' onClick='if (me.size>10)me.size=me.size-2'>-</span>
<br><SELECT size=1 id=title_color name=title_color LANGUAGE=javascript onchange="return title_color_onchange()" style="width:55">
<OPTION value="0" selected>颜色</OPTION>
<OPTION <%if rs("titlecolor")="#003399" then%>selected<%end if%> value="#000000" style="background-color:#003399"></OPTION>
<OPTION <%if rs("titlecolor")="#000000" then%>selected<%end if%> value="#000000" style="background-color:#000000"></OPTION>
<OPTION <%if rs("titlecolor")="#6a7f9a" then%>selected<%end if%> value="#6a7f9a" style="background-color:#6a7f9a"></OPTION>
<OPTION <%if rs("titlecolor")="#008000" then%>selected<%end if%> value="#008000" style="background-color:#008000"></OPTION>
<OPTION <%if rs("titlecolor")="#800000" then%>selected<%end if%> value="#800000" style="background-color:#800000"></OPTION>
<OPTION <%if rs("titlecolor")="#808000" then%>selected<%end if%> value="#808000" style="background-color:#808000"></OPTION>
<OPTION <%if rs("titlecolor")="#000080" then%>selected<%end if%> value="#000080" style="background-color:#000080"></OPTION>
<OPTION <%if rs("titlecolor")="#800080" then%>selected<%end if%> value="#800080" style="background-color:#800080"></OPTION>
<OPTION <%if rs("titlecolor")="#808080" then%>selected<%end if%> value="#808080" style="background-color:#808080"></OPTION>
<OPTION <%if rs("titlecolor")="#FFFF00" then%>selected<%end if%> value="#FFFF00" style="background-color:#FFFF00"></OPTION>
<OPTION <%if rs("titlecolor")="#00FF00" then%>selected<%end if%> value="#00FF00" style="background-color:#00FF00"></OPTION>
<OPTION <%if rs("titlecolor")="#00FFFF" then%>selected<%end if%> value="#00FFFF" style="background-color:#00FFFF"></OPTION>
<OPTION <%if rs("titlecolor")="#FF00FF" then%>selected<%end if%> value="#FF00FF" style="background-color:#FF00FF"></OPTION>
<OPTION <%if rs("titlecolor")="#FF0000" then%>selected<%end if%> value="#FF0000" style="background-color:#FF0000"></OPTION>
<OPTION <%if rs("titlecolor")="#0000FF" then%>selected<%end if%> value="#0000FF" style="background-color:#0000FF"></OPTION>
<OPTION <%if rs("titlecolor")="#008080" then%>selected<%end if%> value="#008080" style="background-color:#008080"></OPTION>
</SELECT>
<SELECT size=1 id=title_size name=title_size LANGUAGE=javascript onchange="return title_size_onchange()" style="width:55">
<OPTION value="0">大小</OPTION>
<OPTION <%if rs("titlesize")=1 then%>selected<%end if%> value="1">1(8px)</OPTION>
<OPTION <%if rs("titlesize")=2 then%>selected<%end if%> value="2">2(10px)</OPTION>
<OPTION <%if rs("titlesize")=3 then%>selected<%end if%> value="3">3(12px)</OPTION>
<OPTION <%if rs("titlesize")=4 then%>selected<%end if%> value="4">4(14px)</OPTION>
<OPTION <%if rs("titlesize")=5 then%>selected<%end if%> value="5">5(18px)</OPTION>
<OPTION <%if rs("titlesize")=6 then%>selected<%end if%> value="6">6(24px)</OPTION>
<OPTION <%if rs("titlesize")=7 then%>selected<%end if%> value="7">7(36px)</OPTION>
</SELECT>
<SELECT size=1 id=title_type name=title_type LANGUAGE=javascript onchange="return title_type_onchange()" style="width:55">
<OPTION value="0">类型</OPTION>
<OPTION <%if rs("titletype")="0" then%>selected<%end if%> value="0">普通</OPTION>
<OPTION <%if rs("titletype")="b" then%>selected<%end if%> value="b">加粗</OPTION>
<OPTION <%if rs("titletype")="i" then%>selected<%end if%> value="i">倾斜</OPTION>
<OPTION <%if rs("titletype")="u" then%>selected<%end if%> value="u">下划线</OPTION>
<OPTION <%if rs("titletype")="1" then%>selected<%end if%> value="1">加粗倾斜</OPTION>
</SELECT>
<SELECT size=1 id=title_face name=title_face LANGUAGE=javascript onchange="return title_face_onchange()" style="width:55">
<OPTION value="0">字体</OPTION>
<option <%if rs("titleface")="宋体" then%>selected<%end if%> value="宋体">宋体</option>
<option <%if rs("titleface")="楷体_GB2312" then%>selected<%end if%> value="楷体_GB2312">楷体</option>
<option <%if rs("titleface")="新宋体" then%>selected<%end if%> value="新宋体">新宋体</option>
<option <%if rs("titleface")="黑体" then%>selected<%end if%> value="黑体">黑体</option>
<option <%if rs("titleface")="隶书" then%>selected<%end if%> value="隶书">隶书</option>
<option <%if rs("titleface")="幼圆" then%>selected<%end if%> value="幼圆">幼圆</option>
</SELECT><img src="images/edit/FIELDSET.gif" onclick="insertbr('<br>')" title="添加换行" style='cursor:hand'>
</td>
</tr>
<tr > 
<td align="right" valign="top" class="TableBody1">文章内容:</td>
<td valign="top" class="TableBody1">
<%
dim bjxc,bjxi
bjxc	= rs("content")
bjxi    = "Content"
call bjxinto( bjxc,bjxi )
%>
</td>
</tr>
<tr >
<td height="30" class="TableBody2"></td> 
<td class="TableBody2" bgcolor="<%=m_top%>"> 
<input type="submit" value=" 修 改 " name="Submit" class="unnamed5" >&nbsp; 
<input type="reset" value=" 清 除 " name="Reset" class="unnamed5">&nbsp;
<input type="button" value=" 返 回 " onclick="javascript:history.go(-1)" class="unnamed5">
<input type="hidden" name="linkaddress" value="<%=request.servervariables("http_referer")%>">
<input type="hidden" name="newsid" value="<%=NewsID%>">
</td>
</tr>
</table>
</form>
<!--#include file="bjxfoot.asp"-->
</body>
</html>