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.Task.Task" %>
  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.Task.elements.length;
  13. var i;
  14.     for (i=0;i<len;i++){
  15. if (document.Task.elements[i].type=="checkbox"){
  16.         document.Task.elements[i].checked=true;
  17.  }
  18. }
  19. }
  20. function unSelectAll(){
  21.           var len=document.Task.elements.length;
  22.           var i;
  23.           for (i=0;i<len;i++){
  24.                if (document.Task.elements[i].type=="checkbox"){
  25.                   document.Task.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="Task" 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></TD>
  42. <TD class="GbText" background="../../../Images/treetopbg.jpg" bgColor="#e8f4ff" align="right"><FONT face="宋体">
  43. <asp:panel id="PanFunction" runat="server">
  44. <INPUT class="redButtonCss" onclick="selectAll()" type="button" value="全部选择"></FONT>
  45. <INPUT class="redButtonCss" onclick="unSelectAll()" type="button" value="全部取消"></asp:panel></FONT></TD>
  46. </TR>
  47. </TABLE>
  48. </td>
  49. </tr>
  50. <TR>
  51. <TD>
  52. <TABLE class="gbtext" id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
  53. <TR>
  54. <TD align="center" width="90" background="../../../images/maillistbutton2.gif" height="24"
  55. style="WIDTH: 90px" valign="middle"><FONT face="宋体">&nbsp;</FONT><a href="../Task/Listview.aspx" class="Newbutton">我的参与</a></TD>
  56. <TD align="center" width="90" background="../../../images/maillistbutton1.gif" height="24"
  57. style="WIDTH: 90px" valign="middle" class="Newbutton"><FONT face="宋体">&nbsp;</FONT><a href="../Subscription/Listview.aspx" class="Newbutton">我的关注</a></TD>
  58. <TD align="right"><FONT face="宋体">&nbsp;&nbsp; </FONT>
  59. </TD>
  60. </TR>
  61. </TABLE>
  62. <asp:datagrid id="dgMyTask" runat="server" CellPadding="3" BorderColor="#93BEE2" AllowCustomPaging="True"
  63. PageSize="15" OnPageIndexChanged="DataGrid_PageChanged" AutoGenerateColumns="False" AllowSorting="True"
  64. AllowPaging="True" Width="100%" HorizontalAlign="Justify" BorderWidth="1px">
  65. <SelectedItemStyle Font-Size="X-Small"></SelectedItemStyle>
  66. <EditItemStyle Font-Size="X-Small"></EditItemStyle>
  67. <AlternatingItemStyle Font-Size="X-Small" Height="22px" BackColor="#E8F4FF"></AlternatingItemStyle>
  68. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left" Height="22px" BackColor="White"></ItemStyle>
  69. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Height="24px" ForeColor="White" VerticalAlign="Middle"
  70. BackColor="#337FB2"></HeaderStyle>
  71. <FooterStyle Font-Size="X-Small"></FooterStyle>
  72. <Columns>
  73. <asp:TemplateColumn HeaderText="ID">
  74. <HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
  75. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  76. <HeaderTemplate>
  77. <FONT face="宋体">◎</FONT>
  78. </HeaderTemplate>
  79. <ItemTemplate>
  80. <FONT face="宋体">
  81. <asp:CheckBox id="ClassID" Runat="server"></asp:CheckBox></FONT>
  82. </ItemTemplate>
  83. <EditItemTemplate>
  84. <FONT face="宋体"></FONT>
  85. </EditItemTemplate>
  86. </asp:TemplateColumn>
  87. <asp:HyperLinkColumn Text="任务名称" Target="_self" DataNavigateUrlField="ClassID" DataNavigateUrlFormatString="../Project.aspx?ClassID={0}"
  88. DataTextField="ClassName" HeaderText="项目名称">
  89. <HeaderStyle HorizontalAlign="Left" Width="25%"></HeaderStyle>
  90. </asp:HyperLinkColumn>
  91. <asp:BoundColumn DataField="FILECOUNT" HeaderText="已归档">
  92. <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
  93. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  94. </asp:BoundColumn>
  95. <asp:BoundColumn DataField="Status" HeaderText="状态">
  96. <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
  97. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  98. </asp:BoundColumn>
  99. <asp:BoundColumn DataField="Scale" HeaderText="所占比例">
  100. <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
  101. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  102. </asp:BoundColumn>
  103. <asp:BoundColumn DataField="StartDate" HeaderText="起始日期">
  104. <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
  105. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  106. </asp:BoundColumn>
  107. <asp:BoundColumn DataField="EndDate" HeaderText="截止日期">
  108. <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
  109. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  110. </asp:BoundColumn>
  111. </Columns>
  112. <PagerStyle NextPageText="下一页" Font-Size="Smaller" PrevPageText="上一页" HorizontalAlign="Right"
  113. BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
  114. </asp:datagrid></TD>
  115. </TR>
  116. <TR>
  117. <TD></TD>
  118. </TR>
  119. </TABLE>
  120. </form>
  121. </body>
  122. </HTML>