SysManageProject.aspx
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:4k
源码类别:

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="SysManage_SysManageProject, App_Web_rlki_npp" theme="Normal" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>无标题页</title>
  6.     <script language="javascript">
  7.     function modelesswin(url,mwidth,mheight)
  8.      {
  9.        if (document.all&&window.print) 
  10.          { 
  11.             window.showModalDialog(url,"",'help:0;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px,location=no, status=no;');
  12.             window.location.reload();
  13.          }
  14.       }
  15.    
  16.  
  17.     </script> 
  18. </head>
  19. <body>
  20.     <form id="form1" runat="server">
  21.     
  22.      <TABLE width="100%" border="0" cellPadding="0" cellSpacing="0" >
  23.        <tr>
  24.           <td bgColor="#f7f7f7" width="100%" height="25px">
  25.              <strong>&nbsp;&nbsp;   项 目 分 类   </strong>
  26.            </td>
  27.        </tr>
  28.        <tr>
  29.          <td background="../Images/toolbarbg.jpg" height="25">
  30.             <img src="../Images/add.gif" height="15" align="absmiddle">
  31.             
  32.             <a href="javascript: modelesswin('ProjectAdd.aspx',420,350)">新建项目</a>
  33.            
  34.           </td> 
  35.        </tr>
  36.        <tr>
  37.         <td width="100%">
  38.              <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" DataKeyNames="SerialID" OnRowDataBound="GridView1_RowDataBound" Width="100%" 
  39.                         OnRowDeleting="GridView1_RowDeleting"  OnRowEditing="GridView1_RowEditing"  
  40.                         HeaderStyle-ForeColor="black"   HeaderStyle-Font-Size="12px"  HeaderStyle-Font-Underline="false"   AllowPaging="True" AllowSorting="True"
  41.                         PageSize="10" OnSorting="GridView1_Sorting"  OnPageIndexChanging="GridView1_PageIndexChanging">
  42.                                <Columns>
  43.                                         <asp:BoundField DataField="SerialName" HeaderText="项目名称">
  44.                                            <HeaderStyle Width="25%"/>
  45.                                         </asp:BoundField>
  46.                                         <asp:BoundField DataField="" HeaderText="描 述">
  47.                                             <HeaderStyle Width="45%"/>
  48.                                         </asp:BoundField> 
  49.                                         <asp:TemplateField HeaderText="操 作">
  50.                                             <ItemTemplate>
  51.                                             &nbsp; &nbsp; <asp:ImageButton ID="IB_Edit" ToolTip="编辑" runat="server" CommandName="edit" ImageUrl="~/Images/s_edit.gif"/> &nbsp; &nbsp;
  52.                                                 <asp:ImageButton ToolTip="删除" ID="IB_Del" runat="server" CommandName="Delete" ImageUrl="~/Images/s-del.gif"
  53.                                                     OnClientClick='<%#"return confirm("确认删除项目名称为『"+Eval("SerialName")+"』的记录吗?");" %>'/>
  54.                                             </ItemTemplate>
  55.                                             <HeaderStyle Width="10%" HorizontalAlign="Center"/>
  56.                                             <ItemStyle HorizontalAlign="Left"  BorderWidth="0px"/>
  57.                                         </asp:TemplateField>
  58.                                        
  59.                                     </Columns>
  60.                                    <PagerStyle ForeColor="#8C4510"  BackColor="#f5f5f5" HorizontalAlign="Center"></PagerStyle>
  61.                                     <PagerSettings FirstPageText="首页" LastPageText="尾页"  NextPageText="下一页" PreviousPageText="上一页" Mode="NextPreviousFirstLast" />
  62.                                         
  63.                                    <EmptyDataTemplate>
  64.                                      <center> 系统提示:请输入查询条件,也可以新增用户数据。</center>
  65.                                    </EmptyDataTemplate>
  66.             </asp:GridView>
  67.         
  68.         </td>
  69.        </tr>
  70.        
  71.     </TABLE>
  72.     
  73.     </form>
  74. </body>
  75. </html>