<%@ Page Language="C#" ContentType="text/html" Inherits="Ycbw.Data.OleDbClient" %>

<script language="c#" runat="server">
public void Page_Load(object sender,EventArgs e)
{
	if( Session["admin"] == null )
	{
		Response.Write("请先<a href=login.aspx target=_parent>登录</a>！");
		Response.End();
	}
	
	this.BindList("select * from [b_article_categories] where depth = 0 order by lft asc", "categories", data_list);
}    
</script>

<html>
<head>
<link href="css/default.css" rel="stylesheet" type="text/css">
</head>

<body class="border_right" bgcolor="#f8fbff">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="padding:5px">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="title5"><a href="#"><b>内容管理</b></a></td>
	  </tr>
	  <tr>
	    <td>
		  <table width="100%" border="0" cellspacing="0" cellpadding="0" id="menu_articles">
		  <tr>
			<td>
			<asp:DataList ID="data_list" BorderWidth="0" CellSpacing="0" CellPadding="0" runat="server">
			  <itemtemplate>
			  <div class="list1"><a href="articles/list-<%# Eval("id") %>.aspx" target="list"><%# Eval("name") %></a> | <a href="articles/add-<%# Eval("id") %>.aspx" target="list">添加</a></div>
			  </itemtemplate>
			</asp:DataList>			</td>
		  </tr>
		  </table>
		</td>
	  </tr>
	</table>
	
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td height="5"></td>
	  </tr>
	</table>

	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="title5"><a href="others/guests.aspx" target="list" onClick="document.getElementById('menu_guests').style.display=''"><b>其他管理</b></a></td>
	  </tr>
	  <tr>
	    <td>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" id="menu_guests">
		  <tr>
			<td class="list1"><a href="others/messages.aspx" target="list">留言管理</a> | <a href="others/messages.aspx?verify=0" target="list">审核</a></td>
		  </tr>
		  <tr>
			<td class="list1"><a href="others/comments.aspx" target="list">评论管理</a> | <a href="others/comments.aspx?state=0" target="list">审核</a></td>
		  </tr>
		</table>
		</td>
	  </tr>
	</table>
	
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td height="5"></td>
	  </tr>
	</table>

	<asp:Panel OnPreRender="GetVisibleByLevel" TabIndex="4" runat="server">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="title5"><a href="#" onClick="document.getElementById('menu_others').style.display=''"><b>系统管理</b></a></td>
      </tr>
	  <tr>
	    <td>
		  <table width="100%" border="0" cellspacing="0" cellpadding="0" id="menu_others">
		  <tr>
		    <td class="list1"><a href="system/config.aspx" target="list">基本信息设置</a></td>
		  </tr>
		  <tr>
			<td class="list1"><a href="articles/categories.aspx" target="list">网站栏目管理</a></td>
		  </tr>
		  <tr>
			<td class="list1"><a href="system/links.aspx" target="list">友情链接管理</a></td>
		  </tr>
		  <tr>
			<td class="list1"><a href="system/admin.aspx" target="list">后台用户管理</a></td>
		  </tr>
		  </table>
		</td>
	  </tr>
    </table>
	</asp:Panel>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="5"></td>
      </tr>
    </table>
	</td>
  </tr>
</table>

</body>
</html>