<%@Page Language="C#" Inherits="IWMS.Admin.Main" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<!--#include file="inc/tiny_mce.inc" -->
	<script type="text/javascript" src="inc/admin_main.js"></script>
</asp:Content>

<asp:Content ContentPlaceHolderId="cphMain" runat="server">
	<div class="funcBar">
		常用功能： <a href="admin_articleAdd.aspx">发布新闻</a>　 <a href="admin_softAdd.aspx">发布软件</a>　 <a href="admin_article.aspx">管理内容</a>　
		<a href="admin_check.aspx">审核内容</a>　 <a href="admin_remark.aspx">管理评论</a>　 <a href="admin_remark_check.aspx">审核评论</a>　
		<a href="javascript:OpenHeadlineSummary();">修改首页头条简介</a>
	</div>
	
	<form runat="server">
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr valign="top"><td width="50%" style="padding-right:4px">
			<div class="mframe">
			<div class="tl"></div>
			<div class="rt"></div>
			<div class="tm">
				<span class="tt">统计数据</span>
			</div>
			<div class="wrapper">
			<div class="ml"></div>
			<div class="mr"></div>
			<div class="mm">
				<table width="100%" cellpadding="0" cellspacing="0" style="line-height:22px">
					<tr valign="top"><td width="50%">
						<div class="bigNum"><%=sState.NewsNum%> / <%=sState.UncheckNewsNum%></div><b>新闻数/待审</b><br/>
						<div class="bigNum"><%=sState.MemberNum%> / <%=sState.UncheckMemberNum%></div><b>会员数/待审</b><br/>
						<div class="bigNum"><%=sState.PostNum%> / <%=sState.UncheckPostNum%></div><b>帖子数/待审</b>
					</td><td>
						<div class="bigNum"><%=sState.SoftNum%> / <%=sState.UncheckSoftNum%></div><b>软件数/待审</b><br/>
						<div class="bigNum"><%=sState.RemarkNum%> / <%=sState.UncheckRemarkNum%></div><b>评论数/待审</b><br/>
						<div class="bigNum"><%=linkNum%> / <%=uncheckLinkNum%></div><b>友链数/待审</b>
					</td></tr>
				</table>
			</div>
			</div>
			<div class="bl"></div>
			<div class="br"></div>
			<div class="bm"></div>
			</div>
		</td><td>
			<div class="mframe">
			<div class="tl"></div>
			<div class="rt"></div>
			<div class="tm">
				<span class="tt">管理员权限</span>
			</div>
			<div class="wrapper">
			<div class="ml"></div>
			<div class="mr"></div>
			<div class="mm" style="line-height:22px">
				<%=CurUser.Name%>：<asp:Literal id="userPower" runat="server"/>
			</div>
			</div>
			<div class="bl"></div>
			<div class="br"></div>
			<div class="bm"></div>
			</div>
		</td></tr>
		<tr valign="top"><td style="padding-right:4px">
			<div class="mframe">
			<div class="tl"></div>
			<div class="rt"></div>
			<div class="tm">
				<span class="tt">会员工作排行</span>
			</div>
			<div class="wrapper">
			<div class="ml"></div>
			<div class="mr"></div>
			<div class="mm">
				<asp:GridView id="gvUser"
					Width="100%"
					CellPadding="6"
					CellSpacing="0"
					GridLines="both"
					ShowHeader="true"
					ShowFooter="false"
					AutoGenerateColumns="false"
					CssClass="grid"
					HeaderStyle-CssClass="gridHead"
					runat="server">
					<columns>
						<asp:TemplateField
							HeaderText="会员"
						>
							<ItemTemplate>
								<%#GetName(Eval("name").ToString())%>
							</ItemTemplate>
						</asp:TemplateField>
						<asp:BoundField
							HeaderText="发新闻"
							DataField="addnum"
							>
							<ItemStyle HorizontalAlign="right" width="50"/>
						</asp:BoundField>
						<asp:BoundField
							HeaderText="发帖子"
							DataField="postnum"
							>
							<ItemStyle HorizontalAlign="right" width="50"/>
						</asp:BoundField>
						<asp:BoundField
							HeaderText="最近登录"
							DataField="lastLog"
							DataFormatString="{0:yyyy MM-dd HH:mm}"
							>
							<ItemStyle HorizontalAlign="right" width="100"/>
						</asp:BoundField>
					</columns>
				</asp:GridView>
				
			</div>
			</div>
			<div class="bl"></div>
			<div class="br"></div>
			<div class="bm"></div>
			</div>
		</td><td>
			<div class="mframe">
			<div class="tl"></div>
			<div class="rt"></div>
			<div class="tm">
				<span class="tt">最近管理员登录</span>
			</div>
			<div class="wrapper">
			<div class="ml"></div>
			<div class="mr"></div>
			<div class="mm">
				<asp:GridView id="gvLogs"
					Width="100%"
					CellPadding="6"
					CellSpacing="0"
					GridLines="both"
					ShowHeader="true"
					ShowFooter="false"
					AutoGenerateColumns="false"
					CssClass="grid"
					HeaderStyle-CssClass="gridHead"
					BorderColor="#cccccc"
					runat="server" >
					<columns>
					<asp:BoundField
						HeaderText="会员"
						DataField="name"
						/>
					<asp:BoundField
						HeaderText="IP"
						DataField="ip"
						>
						<ItemStyle HorizontalAlign="center" width="100"/>
					</asp:BoundField>
					<asp:BoundField
						HeaderText="日期"
						DataField="logTime"
						DataFormatString="{0:yyyy MM-dd HH:mm}"
						>
						<ItemStyle HorizontalAlign="center" width="100"/>
					</asp:BoundField>
					</columns>
				</asp:GridView>
				
			</div>
			</div>
			<div class="bl"></div>
			<div class="br"></div>
			<div class="bm"></div>
			</div>
		</td></tr>
		<tr valign="top"><td style="padding-right:4px">
			<div class="mframe">
			<div class="tl"></div>
			<div class="rt"></div>
			<div class="tm">
				<span class="tt">服务器信息</span>
			</div>
			<div class="wrapper">
			<div class="ml"></div>
			<div class="mr"></div>
			<div class="mm" style="line-height:20px">
					<b>操作系统</b>：<%=System.Environment.OSVersion.ToString()%><br/>
					<b>信息服务软件</b>：<%=Request.ServerVariables["SERVER_SOFTWARE"]%><br/>
					<b>服务器名</b>：<%=System.Environment.MachineName%><br/>
					<b>AspNet 版本</b>：<%=System.Environment.Version%><br/>
					<b>服务器时区</b>：<%=(DateTime.Now-DateTime.UtcNow).TotalHours> 0 ? "+"+(DateTime.Now-DateTime.UtcNow).TotalHours.ToString() : (DateTime.Now-DateTime.UtcNow).TotalHours.ToString()%><br/>
					<b>脚本超时时间</b>：<%=Server.ScriptTimeout%> 秒
			</div>
			</div>
			<div class="bl"></div>
			<div class="br"></div>
			<div class="bm"></div>
			</div>
		</td><td>
			<div class="mframe">
			<div class="tl"></div>
			<div class="rt"></div>
			<div class="tm">
				<span class="tt">版本信息</span>
			</div>
			<div class="wrapper">
			<div class="ml"></div>
			<div class="mr"></div>
			<div class="mm" style="line-height:20px">
				<asp:Literal ID="SysInfo" runat="server"/>
				<div style='text-align:right;font-weight:bold'><a href='http://www.iwms.net/help/' target='_blank'>帮助中心</a></div>
			</div>
			</div>
			<div class="bl"></div>
			<div class="br"></div>
			<div class="bm"></div>
			</div>
		</td></tr>
	</table>
	</form>
</asp:Content>