<%@ Page CodeBehind="right.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.right" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
		<META http-equiv="Content-Type" content="text/html; charset=gb2312">
		<% @ Import Namespace="Webdisk" %>
		<link href="<%=xml.GetStyle()%>" rel="stylesheet" type="text/css">
			<script language="javascript">
		function SizeCount()
		{
			try{
				Webdisk.right.DirFileCount(SizeCountResult_callback);
			}
			catch(e){
				alert('IIS缺少默认的ashx扩展名支持！无法启用ajax，请在网站属性->目录->配置里，添加.ashx的扩展名，路径要设定到c:\\windows\\microsoft.net\\framework\\v1.1.4322\\aspnet_isapi.dll，若为.net2.0版本，中间的版本号要改为v2.0.50727，添加时一定要把\“确认文件是否存在\”的对勾去掉!');
			}
		}
		function SizeCountResult_callback(res)
		{
			var arr = res.value.split("|");
			document.getElementById('lblsize').innerHTML = arr[0];
			document.getElementById('dircount').innerHTML = arr[2];
			document.getElementById('filecount').innerHTML = arr[1];
			document.getElementById('IMG1').width = parseInt(arr[3])*3;
			document.getElementById('per').innerHTML = arr[3];
			document.getElementById('sharedir').innerHTML = arr[4];
			document.getElementById('sharefile').innerHTML = arr[5];
		}
			</script>
</head>
<body onLoad="SizeCount();"><br>
<form id="Form1" runat="server">
<table width="98%" border="0" cellspacing="0">
  <tr>
    <td class="title_left" width="10">&nbsp;</td>
    <td width="577" class="title_font">用户信息</td>
    <td width="200" class="title_font"><div align="right"><%=newmail%>&nbsp;</div></td>
  </tr>
</table>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="title_font1">您的登录帐号是:<STRONG>
      <asp:Label ID="curruser" runat="server"></asp:Label>
    </STRONG></td>
    </tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0" id="msg" style="margin-left:30px;margin-top:5px">
  <tr>
    <th width="20%" align="left">用户等级:</th>
    <td width="30%"><asp:Label ID="currlevel" runat="server"></asp:Label></td>
    <th width="20%" align="left">使用空间:</th>
    <td><asp:Label ID="lblsize" runat="server">统计中…</asp:Label>
/
  <asp:Label ID="totalspace" runat="server"></asp:Label></td>
  </tr>
  <tr>
    <th align="left">单个文件:</th>
    <td><asp:Label id="uploadsize" runat="server"></asp:Label></td>
    <th align="left">有效期:</th>
    <td><asp:Label ID="enddate" runat="server"></asp:Label></td>
  </tr>
  <tr>
    <th align="left">我的目录数:</th>
    <td><DIV align="center" id="dircount">统计中…</DIV></td>
    <th align="left">我的文件数:</th>
    <td><DIV align="center" id="filecount">统计中…</DIV></td>
  </tr>
  <tr>
    <th align="left">共享给我的目录数:</th>
    <td><a href="allfolder.aspx?me=1"><font color="#FF0000"><span align="left" id="sharedir">统计中…</span></font></a></td>
    <th align="left">共享给我的文件数:</th>
    <td><a href="allshare.aspx?me=1"><font color="#FF0000"><span align="left" id="sharefile">统计中…</span></font></a></td>
  </tr>
  <tr>
    <th align="left">空间使用:</th>
    <td colspan="3" align="left" style=" padding-left:20px"><table id="msg" width="300" height="12" border="0" align="left" cellpadding="1" cellspacing="0"
																				bgcolor="#ffffff" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid">
                                                      <tr>
                                                        <td height="10" align="left"><img id="IMG1" height="8" src="pics\progress.GIF" width="0" runat="server" align="left"></td>
                                                      </tr>
                                                    </table><div align="left"><asp:Label id="per" runat="server">统计中…</asp:Label>%</td>
  </tr>
</table>
<div align="right"><br>
    <img src="pics/contral_12.gif" width="17" height="17"><a href="ContentPane.aspx"><font color="#ff0000">点击这里进入文件管理页面</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
											<%=adv2%><table width="98%" border="0" cellspacing="0">
  <tr>
    <td class="title_left" width="10">&nbsp;</td>
    <td width="1155" class="title_font">系统公告</td>
  </tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0" style="margin-left:10px;margin-top:10px">
  <tr>
    <td><asp:DataList ID="DataList" runat="server" CellPadding="0" Width="100%">
															<itemtemplate>
																<table cellspacing="3" cellpadding="2" width="100%" border="0" align="center">
																	<tr>
																		<td width="5"><img src="pics/dot3.gif" width="13" height="13"></td>
																		<td><div>
																				<asp:HyperLink id="Hyperlink2" Target="_blank" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"title")%>' NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "ID","gg_show.aspx?id={0}") %>'>																				</asp:HyperLink>&nbsp;&nbsp;[<%# DataBinder.Eval(Container.DataItem, "datetime") %>]</div>																		</td>
																	</tr>
																	<tr>
																	<td colspan="2" background="pics/underline.gif"  style="height:1px;padding:0px">																	</tr>
																</table>
															</itemtemplate>
														</asp:DataList></td>
  </tr>
</table>
</form>
</body>
</html>
