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

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

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="ListView.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Document.ListView" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>ListView</title>
  6. <meta content="True" name="vs_showGrid">
  7. <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  8. <meta content="C#" name="CODE_LANGUAGE">
  9. <meta content="JavaScript" name="vs_defaultClientScript">
  10. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  11. <LINK href="../../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  12. <script language="javascript">
  13. function MoveToTeam(a)
  14. {
  15. var ret;
  16. ret = window.showModalDialog("../MoveTeam/TreeView.aspx?FromID=<%=ClassID%>",window,"dialogHeight:400px;dialogWidth:300px;center:Yes;Help:No;Resizable:No;Status:Yes;Scroll:auto;Status:no;");
  17. if(ret>0)
  18. // frmAddRight.ObjID.value = ret;
  19. return false;
  20. }
  21. function CopyToTeam(a)
  22. {
  23. var ret;
  24. ret = ret = window.showModalDialog("../CopyTeam/TreeView.aspx?FromID=<%=ClassID%>",window,"dialogHeight:400px;dialogWidth:300px;center:Yes;Help:No;Resizable:No;Status:Yes;Scroll:auto;Status:no;");
  25. if(ret>0)
  26. // frmAddRight.ObjID.value = ret;
  27. return false;
  28. }
  29. function selectAll(){
  30. var len=document.Form1.elements.length;
  31. var i;
  32.     for (i=0;i<len;i++){
  33. if (document.Form1.elements[i].type=="checkbox"){
  34.         document.Form1.elements[i].checked=true;
  35.  }
  36. }
  37. }
  38. function unSelectAll(){
  39.           var len=document.Form1.elements.length;
  40.           var i;
  41.           for (i=0;i<len;i++){
  42.                if (document.Form1.elements[i].type=="checkbox"){
  43.                   document.Form1.elements[i].checked=false; 
  44.                }   
  45.           } 
  46.     }
  47. var ball1 = new Image();
  48. var ball2 = new Image();
  49. ball1.src = 'images/ball1.gif';
  50. ball2.src = 'images/ball2.gif';
  51. var active = new Image();
  52. var nonactive = new Image();
  53. active.src = '../../../images/maillistbutton2.gif';
  54. nonactive.src = '../../../images/maillistbutton1.gif';
  55. function onMouseOver(img)
  56. {
  57. document.images[img].src = ball2.src;
  58. }
  59. function onMouseOut(img)
  60. {
  61. document.images[img].src = ball1.src;
  62. }
  63. function onOverBar(bar)
  64. {
  65. if (bar != null) {
  66. bar.style.backgroundImage = "url("+active.src+")";
  67. }
  68. }
  69. function onOutBar(bar)
  70. {
  71. if (bar != null) {
  72. bar.style.backgroundImage = "url("+nonactive.src+")";
  73. }
  74. }
  75. </script>
  76. <script language="JavaScript" src="../../../Css/tr.js"></script>
  77. </HEAD>
  78. <body MS_POSITIONING="GridLayout">
  79. <form id="Form1" method="post" runat="server">
  80. <FONT face="宋体">
  81. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  82. <tr>
  83. <td colSpan="2">
  84. <table cellSpacing="0" cellPadding="0" width="500" border="0">
  85. <tr height="25">
  86. <td id=bar1 align=center width=90 
  87.           background='<% Response.Write(DisplayType=="0"?"../../../images/maillistbutton2.gif":"../../../images/maillistbutton1.gif"); %>' 
  88.           >&nbsp;<A href="ListView.aspx?ClassID=<%=ClassID%>&amp;DisplayType=0" class=Newbutton>已归档</A></td>
  89. <td id=bar2 align=center width=90 
  90.           background='<% Response.Write(DisplayType=="1"?"../../../images/maillistbutton2.gif":"../../../images/maillistbutton1.gif"); %>' 
  91.           >&nbsp;<A href="ListView.aspx?ClassID=<%=ClassID%>&amp;DisplayType=1" class=Newbutton>未归档</A></td>
  92. <td id=bar3 align=center width=90 
  93.           background='<% Response.Write(DisplayType=="2"?"../../../images/maillistbutton2.gif":"../../../images/maillistbutton1.gif"); %>' 
  94.           >&nbsp;<A href="ListView.aspx?ClassID=<%=ClassID%>&amp;DisplayType=2" class=Newbutton>我的上传</A></td>
  95. <td id=bar4 align=center width=90 
  96.           background='<% Response.Write(DisplayType=="3"?"../../../images/maillistbutton2.gif":"../../../images/maillistbutton1.gif"); %>' 
  97.           >&nbsp;<A href="ListView.aspx?ClassID=<%=ClassID%>&amp;DisplayType=3" class=Newbutton>回收站</A></td>
  98. <td width="136"></td>
  99. </tr>
  100. </table>
  101. </td>
  102. </tr>
  103. <tr>
  104. <td vAlign="top"><asp:datagrid id="dgDocList" runat="server" DataKeyField="DocID" OnSortCommand="DataGrid_Sort"
  105. CellPadding="3" BorderWidth="1px" BorderColor="#93BEE2" PageSize="15" OnPageIndexChanged="DataGrid_PageChanged"
  106. PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages" AllowPaging="True" AutoGenerateColumns="False"
  107. AllowSorting="True" Width="100%">
  108. <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
  109. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Height="10px" ForeColor="White" VerticalAlign="Top"
  110. BackColor="#337FB2"></HeaderStyle>
  111. <FooterStyle Font-Size="XX-Small" HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
  112. <Columns>
  113. <asp:TemplateColumn HeaderText="选择">
  114. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center" Height="20px" Width="60px"></ItemStyle>
  115. <ItemTemplate>
  116. <asp:CheckBox id="Checkbox1" Checked="False" Runat="server"></asp:CheckBox>
  117. </ItemTemplate>
  118. </asp:TemplateColumn>
  119. <asp:TemplateColumn SortExpression="DocTitle" HeaderText="文档主题">
  120. <HeaderStyle Font-Underline="True"></HeaderStyle>
  121. <ItemStyle Font-Size="X-Small"></ItemStyle>
  122. <ItemTemplate>
  123. <a href="#" onclick='window.showModalDialog("BrowseDocument.aspx?DocId=<%# DataBinder.Eval(Container.DataItem,"DocID") %>",window,"dialogWidth:700px;DialogHeight=590px;status:no")'>
  124. <%# (DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Length>30)?DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Substring(0,30)+"...":DataBinder.Eval(Container.DataItem,"DocTitle").ToString() %>
  125. </a>
  126. </ItemTemplate>
  127. </asp:TemplateColumn>
  128. <asp:BoundColumn DataField="DocApprover" SortExpression="DocApprover" HeaderText="审批人">
  129. <ItemStyle Font-Size="X-Small"></ItemStyle>
  130. </asp:BoundColumn>
  131. <asp:BoundColumn DataField="DocAddedBy" SortExpression="DocAddedBy" HeaderText="上传人">
  132. <ItemStyle Font-Size="X-Small"></ItemStyle>
  133. <FooterStyle Font-Size="X-Small"></FooterStyle>
  134. </asp:BoundColumn>
  135. <asp:BoundColumn DataField="DocAddedDate" SortExpression="DocAddedDate" HeaderText="上传日期">
  136. <ItemStyle Font-Size="X-Small"></ItemStyle>
  137. </asp:BoundColumn>
  138. <asp:BoundColumn DataField="DocViewedTimes" SortExpression="DocViewedTimes" HeaderText="浏览次数">
  139. <HeaderStyle Font-Size="X-Small"></HeaderStyle>
  140. <ItemStyle Font-Size="X-Small"></ItemStyle>
  141. <FooterStyle Font-Size="XX-Small"></FooterStyle>
  142. </asp:BoundColumn>
  143. <asp:BoundColumn DataField="DocLastViewer" SortExpression="DocLastViewer" HeaderText="最后浏览者">
  144. <ItemStyle Font-Size="X-Small"></ItemStyle>
  145. </asp:BoundColumn>
  146. <asp:BoundColumn Visible="False" DataField="DocLastViewDate" SortExpression="DocLastViewDate" HeaderText="浏览日期">
  147. <HeaderStyle Font-Underline="True"></HeaderStyle>
  148. <ItemStyle Font-Size="X-Small"></ItemStyle>
  149. <FooterStyle Font-Size="XX-Small"></FooterStyle>
  150. </asp:BoundColumn>
  151. </Columns>
  152. <PagerStyle Font-Size="12px" BorderColor="#E0E0E0" BorderStyle="Dotted" HorizontalAlign="Right"
  153. BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
  154. </asp:datagrid></td>
  155. </tr>
  156. <tr>
  157. <td vAlign="top">&nbsp;<font size="X-Small"><A onclick="selectAll()" href="#"><FONT size="2">全部选择</FONT></A>
  158. &nbsp; <A onclick="unSelectAll()" href="#"><FONT size="2">全部取消</FONT></A>&nbsp;</font>&nbsp;&nbsp;
  159. <asp:linkbutton id="lnkbtnDelete" runat="server" Font-Size="X-Small" CausesValidation="False">丢弃</asp:linkbutton>&nbsp;&nbsp;&nbsp;
  160. <FONT size="2"><A onclick="MoveToTeam()" href="#">
  161. <asp:label id="lblRemove" runat="server" Font-Size="X-Small"> 目录移动</asp:label></A><FONT size="3">&nbsp;
  162. <A onclick="CopyToTeam()" href="#">
  163. <asp:Label id="lblCopy" runat="server">目录复制</asp:Label></A>&nbsp;&nbsp;&nbsp;
  164. </FONT><A href="../Switch.aspx?ClassID=<%=ClassID%>&amp;Action=0" >
  165. <asp:label id="lblDeliveryDoc" runat="server" Font-Size="X-Small">投递文档</asp:label></A><FONT size="3">&nbsp;
  166. </FONT><A href="../oClassNode.aspx?Action=3&amp;ClassID=<%=ClassID%>" >
  167. <asp:label id="lblManageDirectory" runat="server" Font-Size="X-Small"> 目录管理</asp:label></A><FONT size="3">&nbsp;
  168. </FONT><A href="../MemberListView.aspx?TeamID=<%=ClassID%>" >
  169. <asp:label id="lblShowMember" runat="server" Font-Size="X-Small">显示组员</asp:label></A><FONT size="3">&nbsp;
  170. </FONT><A 
  171.       href="../../AssignRule/RightListView.aspx?ObjID=<%=ClassID%>&amp;displayType=1">
  172. <asp:label id="lblManagePermission" runat="server" Font-Size="X-Small"> 权限管理</asp:label></A></FONT></td>
  173. </tr>
  174. </table>
  175. </FONT>
  176. </form>
  177. </body>
  178. </HTML>