USBKey_setup.aspx
上传用户:xuming1973
上传日期:2014-02-27
资源大小:17511k
文件大小:6k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="USBKey_setup.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.USBKey.USBKey_setup" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>USBKey_setup</title>
  6. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  7. <meta content="C#" name="CODE_LANGUAGE">
  8. <meta content="JavaScript" name="vs_defaultClientScript">
  9. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  10. <LINK href="../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  11. <script language="JavaScript" src="../../Css/meizzDate.js"></script>
  12. <script language="JavaScript" src="../../Css/calendar.js"></script>
  13. <script language="javascript">
  14. var t=false;
  15. function selectAll(){
  16. var len=document.Form1.elements.length;
  17. var i;
  18. t=!t;
  19.     for (i=0;i<len;i++){
  20. if (document.Form1.elements[i].type=="checkbox"){
  21.         document.Form1.elements[i].checked=t;
  22. }
  23. }
  24.     }
  25.     
  26. //设置Datagrid列宽可以被拖动的函数
  27. function SyDG_moveOnTd(td)
  28. {
  29. if(event.offsetX>td.offsetWidth-10)
  30. td.style.cursor='w-resize';
  31. else
  32. td.style.cursor='default';
  33. if(td.mouseDown!=null && td.mouseDown==true)
  34. {
  35. if(td.oldWidth+(event.x-td.oldX)>0)
  36. td.width=td.oldWidth+(event.x-td.oldX);
  37. td.style.width=td.width;
  38. td.style.cursor='w-resize';
  39. table=td;
  40. while(table.tagName!='TABLE') table=table.parentElement;
  41. table.width=td.tableWidth+(td.offsetWidth-td.oldWidth);table.style.width=table.width;
  42. }
  43. }
  44. function SyDG_downOnTd(td)
  45. {
  46. if(event.offsetX>td.offsetWidth-10)
  47. {
  48. td.mouseDown=true;
  49. td.oldX=event.x;
  50. td.oldWidth=td.offsetWidth;
  51. table=td;while(table.tagName!='TABLE')table=table.parentElement;
  52. td.tableWidth=table.offsetWidth;
  53. }
  54. }
  55. </script>
  56. </HEAD>
  57. <body MS_POSITIONING="GridLayout">
  58. <form id="Form1" method="post" runat="server">
  59. <FONT face="宋体">
  60. <TABLE id="Table1" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 32px" cellSpacing="0"
  61. cellPadding="0" width="100%" border="0">
  62. <TBODY>
  63. <TR>
  64. <TD>
  65. <TABLE class="gbtext" id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
  66. <TR>
  67. <TD align=center width=90 
  68.           background='<% Response.Write(DisplayType==1?"../../images/maillistbutton1.gif":"../../images/maillistbutton2.gif"); %>' 
  69.           height=24 style="WIDTH: 90px"><asp:linkbutton id="lbOnline" runat="server" CssClass="Newbutton">没有KEY</asp:linkbutton></TD>
  70. <TD align=center width=90 
  71.           background='<% Response.Write(DisplayType==0?"../../images/maillistbutton1.gif":"../../images/maillistbutton2.gif"); %>' 
  72.           height=24><asp:linkbutton id="lbOffLine" runat="server" CssClass="Newbutton">有KEY</asp:linkbutton></TD>
  73. <TD align="right"><asp:checkbox id="cb_selectAll" runat="server" Text="全选"></asp:checkbox>&nbsp;
  74. <asp:button id="cmdUsR_key" runat="server" CssClass="redbuttoncss" Text="开始使用KEY" Width="100px"></asp:button>&nbsp;<asp:button id="cmdNotUse_key" runat="server" CssClass="redbuttoncss" Text="停止使用KEY" Width="100px"></asp:button>&nbsp;&nbsp;</TD>
  75. </TR>
  76. </TABLE>
  77. </TD>
  78. </TR>
  79. <TR>
  80. <TD>
  81. <asp:datagrid id="dbStaffList" runat="server" Width="100%" CellPadding="3" BackColor="White" BorderStyle="None"
  82. BorderColor="#93BEE2" BorderWidth="1px" PageSize="15" AutoGenerateColumns="False" AllowPaging="True"
  83. DataKeyField="Staff_ID" OnPageIndexChanged="DataGrid_PageChanged">
  84. <SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
  85. <AlternatingItemStyle Font-Size="X-Small" BackColor="#E8F4FF"></AlternatingItemStyle>
  86. <ItemStyle Font-Size="X-Small" ForeColor="#003399" BackColor="White"></ItemStyle>
  87. <HeaderStyle Font-Size="X-Small" Font-Bold="True" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
  88. <FooterStyle Font-Size="X-Small" HorizontalAlign="Right" ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
  89. <Columns>
  90. <asp:TemplateColumn HeaderText="ID">
  91. <HeaderStyle Width="20px"></HeaderStyle>
  92. <ItemTemplate>
  93. <asp:CheckBox id="Staff_ID" runat="server"></asp:CheckBox>
  94. </ItemTemplate>
  95. </asp:TemplateColumn>
  96. <asp:BoundColumn DataField="RealName" HeaderText="真实姓名"></asp:BoundColumn>
  97. <asp:BoundColumn DataField="Position_Name" HeaderText="所在职位">
  98. <HeaderStyle Width="150px"></HeaderStyle>
  99. </asp:BoundColumn>
  100. <asp:BoundColumn DataField="RQ" HeaderText="注册日期">
  101. <HeaderStyle Width="80px"></HeaderStyle>
  102. </asp:BoundColumn>
  103. </Columns>
  104. <PagerStyle Font-Size="X-Small" HorizontalAlign="Right" ForeColor="#003399" BackColor="#E8F4FF"
  105. Mode="NumericPages"></PagerStyle>
  106. </asp:datagrid></TD>
  107. </TR>
  108. </TBODY>
  109. </TABLE>
  110. <TABLE id="Table3" style="Z-INDEX: 102; LEFT: 0px; POSITION: absolute; TOP: 0px" borderColor="#111111"
  111. height="1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  112. <TR height="30">
  113. <TD class="GbText" width="18" background="../../Images/treetopbg.jpg" bgColor="#c0d9e6"
  114. style="WIDTH: 18px"><FONT color="#003366" size="3"><IMG alt="" src="../../DataImages/usbkey2.gif"></FONT></TD>
  115. <TD class="GbText" background="../../Images/treetopbg.jpg" bgColor="#c0d9e6"><font color="#006699">USB_KEY 
  116. 管理</font></TD>
  117. </TR>
  118. </TABLE>
  119. </form>
  120. </FONT>
  121. </body>
  122. </HTML>