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

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

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="Listview.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Subscription.Subscription" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>Listview</title>
  6. <meta content="Microsoft Visual Studio 7.0" 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. <script language="javascript">
  11. function selectAll(){
  12. var len=document.Subscription.elements.length;
  13. var i;
  14.     for (i=0;i<len;i++){
  15. if (document.Subscription.elements[i].type=="checkbox"){
  16.         document.Subscription.elements[i].checked=true;
  17.  }
  18. }
  19. }
  20. function unSelectAll(){
  21.           var len=document.Subscription.elements.length;
  22.           var i;
  23.           for (i=0;i<len;i++){
  24.                if (document.Subscription.elements[i].type=="checkbox"){
  25.                   document.Subscription.elements[i].checked=false; 
  26.                }   
  27.           } 
  28.     }
  29. </script>
  30. <LINK href="../../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  31. </HEAD>
  32. <body leftMargin="0" topMargin="0">
  33. <form id="Subscription" method="post" runat="server">
  34. <TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  35. <tr>
  36. <td vAlign="top" height="38"><TABLE borderColor="#111111" height="1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  37. <TR height="30">
  38. <TD class="GbText" width="20" background="../../../Images/treetopbg.jpg" bgColor="#c0d9e6"
  39. align="right"><FONT color="#003366" size="3"><IMG height="16" src="../../../DataImages/help_page.gif" width="16"></FONT></TD>
  40. <TD class="GbText" background="../../../Images/treetopbg.jpg" bgColor="#e8f4ff" width="60"
  41. align="right"><font color="#006699"><FONT color="#006699">我的项目</FONT></font></TD>
  42. <TD class="GbText" background="../../../Images/treetopbg.jpg" bgColor="#e8f4ff" align="right"><FONT face="宋体"><input type="button" onclick="selectAll()" value="全部选择" class="redButtonCss">
  43. &nbsp; <input type="button" onclick="unSelectAll()" value="全部取消" class="redButtonCss">&nbsp;
  44. <asp:Button id="btnDeleteSubscription" runat="server" Text="删除订阅" CssClass="redButtonCss"></asp:Button></FONT></TD>
  45. </TR>
  46. </TABLE>
  47. </td>
  48. </tr>
  49. <TR>
  50. <TD>
  51. <TABLE class="gbtext" id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
  52. <TR>
  53. <TD align="center" width="90" background="../../../images/maillistbutton1.gif" height="24"
  54. style="WIDTH: 90px" valign="middle"><a href="../Task/Listview.aspx" class="Newbutton">我的参与</a></TD>
  55. <TD align="center" width="90" background="../../../images/maillistbutton2.gif" height="24"
  56. style="WIDTH: 90px" valign="middle"><a href="../Subscription/Listview.aspx" class="Newbutton">我的关注</a></TD>
  57. <TD align="right"><FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></TD>
  58. </TR>
  59. </TABLE>
  60. </TD>
  61. </TR>
  62. <TR>
  63. <TD>
  64. <asp:datagrid id="dgMySubsciption" runat="server" BorderWidth="1px" HorizontalAlign="Justify"
  65. Font-Size="X-Small" Width="100%" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
  66. PageSize="15" OnPageIndexChanged="DataGrid_PageChanged" BorderColor="#93BEE2" CellPadding="3"
  67. DataKeyField="ClassID">
  68. <SelectedItemStyle Font-Size="X-Small"></SelectedItemStyle>
  69. <EditItemStyle Font-Size="X-Small"></EditItemStyle>
  70. <AlternatingItemStyle Font-Size="X-Small" Height="20px" BackColor="#E8F4FF"></AlternatingItemStyle>
  71. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center" BackColor="White"></ItemStyle>
  72. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Height="24px" ForeColor="White" VerticalAlign="Middle"
  73. BackColor="#337FB2"></HeaderStyle>
  74. <FooterStyle Font-Size="X-Small"></FooterStyle>
  75. <Columns>
  76. <asp:TemplateColumn HeaderText="ID">
  77. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Width="5%"></HeaderStyle>
  78. <HeaderTemplate>
  79. <FONT face="宋体">◎</FONT>
  80. </HeaderTemplate>
  81. <ItemTemplate>
  82. <FONT face="宋体">
  83. <asp:CheckBox id="ClassID" Runat="server"></asp:CheckBox></FONT>
  84. </ItemTemplate>
  85. <EditItemTemplate>
  86. <FONT face="宋体"></FONT>
  87. </EditItemTemplate>
  88. </asp:TemplateColumn>
  89. <asp:HyperLinkColumn Text="项目名称" Target="_self" DataNavigateUrlField="ClassID" DataNavigateUrlFormatString="../Project.aspx?Subscription=1&amp;ClassID={0}"
  90. DataTextField="ClassName" HeaderText="项目名称">
  91. <HeaderStyle HorizontalAlign="Left" Width="25%"></HeaderStyle>
  92. <ItemStyle HorizontalAlign="Left"></ItemStyle>
  93. </asp:HyperLinkColumn>
  94. <asp:BoundColumn DataField="FILECOUNT" HeaderText="已归档">
  95. <HeaderStyle Width="10%"></HeaderStyle>
  96. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  97. </asp:BoundColumn>
  98. <asp:BoundColumn DataField="Status" HeaderText="状态">
  99. <HeaderStyle Width="10%"></HeaderStyle>
  100. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  101. </asp:BoundColumn>
  102. <asp:BoundColumn DataField="Scale" HeaderText="所占比例">
  103. <HeaderStyle Width="10%"></HeaderStyle>
  104. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  105. </asp:BoundColumn>
  106. <asp:BoundColumn DataField="StartDate" HeaderText="起始日期">
  107. <HeaderStyle Width="20%"></HeaderStyle>
  108. </asp:BoundColumn>
  109. <asp:BoundColumn DataField="EndDate" HeaderText="截止日期">
  110. <HeaderStyle Width="20%"></HeaderStyle>
  111. </asp:BoundColumn>
  112. </Columns>
  113. <PagerStyle NextPageText="下一页" Font-Size="X-Small" PrevPageText="上一页" HorizontalAlign="Right"
  114. ForeColor="White" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
  115. </asp:datagrid></TD>
  116. </TR>
  117. </TABLE>
  118. <br>
  119. </form>
  120. </body>
  121. </HTML>