Online.aspx
上传用户:cha0314
上传日期:2014-03-02
资源大小:12522k
文件大小:3k
源码类别:

C#编程

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="Online.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Online" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>Online</title>
  6. <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
  7. <meta name="CODE_LANGUAGE" Content="C#">
  8. <meta name="vs_defaultClientScript" content="JavaScript">
  9. <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  10. <LINK href="../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  11. <script language="javascript">
  12. function SetCookie(sName, sValue)
  13. {
  14. document.cookie = sName + "=" + escape(sValue) + "; ";
  15. }
  16. function GetCookie(sName)
  17. {
  18. var aCookie = document.cookie.split("; ");
  19. for (var i=0; i < aCookie.length; i++)
  20. {
  21. var aCrumb = aCookie[i].split("=");
  22. if (sName == aCrumb[0]) 
  23. return unescape(aCrumb[1]);
  24. }
  25. }
  26. function opendialwin()
  27. {
  28. var newdialoguewin = window.showModalDialog("../SM/Setup.aspx",window,"dialogWidth:500px;DialogHeight=140px;status:no");
  29. if(newdialoguewin!=null){
  30. }
  31. }
  32. function show_sm()
  33. {
  34. if (typeof(msgwin)!="undefined" && msgwin.open && !meizz.closed)
  35. {
  36. msgwin.focus();
  37. }
  38. else
  39. {
  40. mytop=screen.availHeight-246;
  41. myleft=0;
  42. var msgwin = window.open("../SM/MsgManage.aspx","auto_call_show","height=170,width=350,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
  43. }
  44. }
  45. function showonline()
  46. {
  47. onlinewin=window.open("onlineperson.aspx","online","width:500,height:800,toolbar=no,status=no,resizable=yes")
  48. onlinewin.moveTo(20,20)
  49. onlinewin.resizeTo(600,500)
  50. }
  51. function re()
  52. {
  53. location.reload();
  54. }
  55. function setup()
  56. {
  57. opendialwin();
  58. }
  59. </script>
  60. </HEAD>
  61. <body style="BACKGROUND-POSITION: right 50%; BACKGROUND-ATTACHMENT: fixed; BACKGROUND-REPEAT: no-repeat"
  62. leftMargin="0" background="../../Images/lefttreebg.gif" topMargin="0" bgcolor="#0051a5"
  63. onload='setInterval("re()",(GetCookie("UDS_RefreshTime"))==null?30000:GetCookie("UDS_RefreshTime"))'>
  64. <form id="Online" method="post" runat="server">
  65. <table width="222" border="0" height="29" style="WIDTH: 222px; HEIGHT: 29px">
  66. <tr>
  67. <td width="12%" style="WIDTH: 33px">&nbsp;<a href="#" onclick="setup()"><img src="../../Images/person.gif" border="0" style="WIDTH: 20px; HEIGHT: 19px" height="19"
  68. width="20"></a></td>
  69. <td width="34%"><FONT size="2" color=white>在线人数:</FONT></td>
  70. <td width="15%"><a href="javascript:showonline()">
  71. <asp:Label id="lblOnlineCount" runat="server" ForeColor="Red" Font-Size="X-Small"></asp:Label></a></td>
  72. <td width="39%"> <asp:Literal id="lit" runat="server"></asp:Literal></td>
  73. </tr>
  74. </table>
  75. </form>
  76. </body>
  77. </HTML>