<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Bottom.aspx.cs" Inherits="TotCms.Web.Office.Bottom" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="../js/jquery-1.5.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
  $(function getmessage() {
    $.ajax(
    {
      type: 'get',
      datatype: 'xml',
      cache: false, //不从缓存中去数据
      url: 'Stat/GetOnlineUserNum.aspx',
      data: 'name=xiaocai',
      success:
      function (xml) {
        var n = $(xml).find("onlinenum").text();
        //alert($('#liUserNum').text());
        $('#liUserNum').text(n + '');
      },
      beforeSend:
      function () {

      },
      complete:
      function () {
        setTimeout("getmessage()", 10000); //定时器
      },
      error:
      function (m) {
        
      }
    })
  });
</script>

<style type="text/css">
<!--
body{ margin:0px; padding:0px; font-size:12px;}
a{font-size:12px; text-decoration:none;}
#root {
	width: 100%;
	height: 25px;
	margin-right: auto;
	margin-left: auto;
	background-image:url(../images/root_bg.gif);
	color: #FFF;
	font-family: "宋体";
	font-size: 12px;
	line-height: 30px;
	float: left;
	clear: left;
}
#root_bq {
	width: 250px;
	float: right;
}
#root_dqyh {
	float: left;
	margin-left: 25px;
	background-image: url(images/tl_r51_c5.jpg);
	background-repeat: no-repeat;
	background-position: 10px center;
	padding-left:35px;
}
a.white:link{ color:White; font-size:12px;}
a.white:hover{ color:White; font-size:12px;}
a.white:visited{ color:White; font-size:12px;}
-->
  </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="root">

<div id="root_dqyh">当前用户：<asp:Literal ID="liUser" runat="server"></asp:Literal>&nbsp;&nbsp; &nbsp;所属部门：<asp:Literal 
    ID="liDept" runat="server"></asp:Literal>
  &nbsp;&nbsp; &nbsp;在线人数：[<asp:HyperLink ID="liUserNum" runat="server" CssClass="white">0</asp:HyperLink>]
  人</div> 
    <div id="root_bq"><asp:HyperLink ID="HyperLink1" runat="server" 
        ForeColor="White" Target="_blank"></asp:HyperLink></div>
    <iframe src="IFrame.aspx" width="0" height="0" frameborder="0"></iframe>
  </div>
    </form>
</body>
</html>
