<!--#include file="../main.asp" -->
<!--#include file="../IsLogin.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>管理中心-这里是所有管理的入口</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="images/global.css" type=text/css rel=stylesheet><LINK 
href="images/main.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.3790.218" name=GENERATOR>
<script language="javascript">
<!--
function CheckData()
{
  if (document.form1.bokename.value=="")
  {
    alert("对不起，文章名称不能为空！");
	document.form1.bokename.focus();
	return false;
   }
     if (document.form1.boke_sort.value=="")
  {
    alert("对不起，大类不能为空！");
	document.form1.boke_sort.focus();
	return false;
   }
     if (document.form1.sortid.value=="")
  {
    alert("对不起，类别不能为空！");
	document.form1.sortid.focus();
	return false;
   }

}

//-->
</script></HEAD>
<BODY id=main background="../images/bj.gif">
<%
dim m_UserID
m_UserID = Request.Cookies("aspxnet")("CurUserID")

%>
<DIV id=wrapper>
<!--#include file="top.asp"-->
<DIV class=row>
<!--#include file="left.asp"-->
<DIV class=right_side>
<DIV class=col id=bulletin>
<DIV class=col_head>
<H3><IMG height=16 alt=a hspace=3 src="images/ico_dots.gif" 
width=20 align=left vspace=3>博客管理</H3>
<SPAN class=float_right><STRONG><a href="boke_add.asp">添加博客</a></STRONG></SPAN><SPAN class=float_right>------</SPAN>
<SPAN class=float_right><STRONG><a href="rj_diarylist.asp">管理博客</a></STRONG></SPAN><SPAN class=float_right>------</SPAN>
<SPAN class=float_right><STRONG><a href="boke_sort.asp">博客类别</a></STRONG></SPAN>
</DIV>
<DIV class=col_body>
<form name="form1" method="post" action="boke_save.asp" onSubmit="return CheckData()">
<P>
<DIV class="col promo" id=member_match><DIV class=col_head>
<H3><IMG height=16 alt=a hspace=3 src="images/ico_dots.gif" 
width=20 align=left vspace=3>文章标题:</h3><input name="bokename" type="text" id="bokename" size="40" maxlength="40"></DIV></DIV>
<DIV class="col promo" id=member_match><DIV class=col_head>
<H3><IMG height=16 alt=a hspace=3 src="images/ico_dots.gif" 
width=20 align=left vspace=3>是否公开:</h3><input type="radio" name="key2" value="1" checked="checked"> 是<input type="radio" name="key2" value="0" />
否
  大类:<select name="boke_sort"><%sql="select * from boke_sort_admin order by id desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof then%>
<option value="" selected>请先添加您的博客分类</option>
<%else%>
<option value="" selected>请选择...</option>
<%while not rs.eof%>
<option value="<%=rs("id")%>"><%=rs("bsort")%></option>
<%rs.movenext
wend
end if
rs.Close()
%></select> 小类:<select name="sortid">
<%sql="select * from boke_sort where user_id="&m_UserID&" order by date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof then%>
<option value="" selected>请先添加您的博客分类</option>
<%else%>
<option value="" selected>请选择...</option>
<%while not rs.eof%>
<option value="<%=rs("id")%>"><%=rs("bokesort")%></option>
<%rs.movenext
wend
end if
rs.Close()
%> 
</select> 如没有请先<a href=boke_sort.asp class=red><font color="#FF0000">添加分类</font></a></DIV></DIV>
<DIV class="col promo" id=member_match><DIV class=col_head>
<H3><IMG height=16 alt=a hspace=3 src="images/ico_dots.gif" 
width=20 align=left vspace=3>内容:</H3><INPUT type="hidden" name="bokejg" value=""> 
         <IFRAME ID="LatticeEditDocument" SRC="../WebEditor/ewebeditor.asp?id=bokejg&style=standard_blue" FRAMEBORDER="0" SCROLLING="no" WIDTH="590" HEIGHT="400"></IFRAME></DIV></DIV>
<input type="submit" name="Submit" value="添 加" class="input1">
</P></form>
</DIV>
</DIV>
</DIV>
</DIV>
<!--#include file="bottom.asp"-->

</DIV></BODY></HTML>
