171 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			171 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
|  | <%@ Page Language="C#" MasterPageFile="../masterPage.master" EnableEventValidation = "false" AutoEventWireup="true" CodeFile="LessonView.aspx.cs" Inherits="LessonView" %> | |||
|  | <%@   MasterType   VirtualPath="~/masterPage.master"   %>    | |||
|  | 
 | |||
|  | <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> | |||
|  |   | |||
|  | <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> | |||
|  |   | |||
|  | <table width="100%" class="Table_NoBorder"> | |||
|  |     | |||
|  |     <tr><td> | |||
|  |     <table width="100%" class="Table_Border"> | |||
|  |     <tr><td width="50" height="200" align="left"  valign="top"> | |||
|  |         <asp:TreeView ID="TreeDept" runat="server" ShowLines="True" OnSelectedNodeChanged="TreeDept_SelectedNodeChanged" ImageSet="Arrows"> | |||
|  |             <Nodes> | |||
|  |                 <asp:TreeNode Text="<22>γ<EFBFBD><CEB3><EFBFBD><EFBFBD><EFBFBD>" Value="0" Expanded="True" Selected="True"></asp:TreeNode> | |||
|  |             </Nodes> | |||
|  |             <SelectedNodeStyle BackColor="Azure" BorderColor="Transparent" /> | |||
|  |         </asp:TreeView> | |||
|  |     </td><td width="1" class="VLine" ></td> | |||
|  |     <td    align="left" valign="top"> <!------ THE DATA GRID AREA ------> | |||
|  |          | |||
|  |          | |||
|  |         | |||
|  |         <asp:gridview   id="GridView1"  CssClass="DataGrid"    | |||
|  | 							 PageSize="10" PagerStyle-HorizontalAlign="Right" | |||
|  |                         runat="server"  | |||
|  |                         AutoGenerateColumns="False"  | |||
|  |                         OnRowEditing="GridView1_RowEditing"  | |||
|  |                         DataKeyNames="ID" | |||
|  |                         OnRowDeleting="GridView1_RowDeleting"  | |||
|  |                         AllowPaging="True"  | |||
|  |                         OnPageIndexChanging="GridView1_PageIndexChanging"   | |||
|  |                         OnSorting="GridView1_Sorting"  OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="99%" ShowFooter="True" EmptyDataText='û<><C3BB><EFBFBD><EFBFBD><EFBFBD>ݡ<EFBFBD>'> | |||
|  |                          | |||
|  |                         <SelectedRowStyle CssClass="SelectedItemStyle"></SelectedRowStyle> | |||
|  | 							<HeaderStyle CssClass="HeaderStyle" HorizontalAlign="Center"></HeaderStyle> | |||
|  | 							<RowStyle CssClass="ItemStyle" HorizontalAlign="Center"></RowStyle> | |||
|  | 							<AlternatingRowStyle CssClass="AlternatingItemStyle"></AlternatingRowStyle> | |||
|  | 						  | |||
|  |             <Columns> | |||
|  | 				<asp:BoundField  Visible="False"  ReadOnly="True" DataField="ID" HeaderText="<22><>Աid" SortExpression="ID" ></asp:BoundField> | |||
|  | 				<asp:BoundField DataField="le_name" HeaderText="<22>γ<EFBFBD>" SortExpression="le_name"> | |||
|  |                     <ItemStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField> | |||
|  | 				<asp:BoundField DataField="le_desc" HeaderText="˵<><CBB5>" SortExpression="le_desc" HtmlEncode="False"    > | |||
|  |                     <ItemStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField> | |||
|  | 				<asp:BoundField DataField="le_startdate" HeaderText="<22><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>" SortExpression="le_startdate"  DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False"> | |||
|  |                     <ItemStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField> | |||
|  |                 	<asp:BoundField DataField="le_enddate" HeaderText="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" SortExpression="le_enddate" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" > | |||
|  |                     <ItemStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField> | |||
|  | 				<asp:BoundField DataField="le_location" HeaderText="<22>ص<EFBFBD>" SortExpression="le_location"> | |||
|  |                     <ItemStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField> | |||
|  | 				<asp:BoundField DataField="le_xuefen" HeaderText="ѧ<><D1A7>" SortExpression="le_xuefen"> | |||
|  |                     <ItemStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField> | |||
|  | 				<asp:BoundField DataField="le_trainer" HeaderText="<22><>ʦ" SortExpression="le_trainer"> | |||
|  |                     <ItemStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField> | |||
|  | 			 | |||
|  | 				<asp:BoundField DataField="dr" HeaderText="<22><><EFBFBD><EFBFBD>" SortExpression="dr" Visible="False" ></asp:BoundField> | |||
|  | 			  | |||
|  | 				<asp:CommandField HeaderText="<22>鿴"<22><>ShowHeader="True" ShowSelectButton="True" SelectText="<img src=../Images/detail.gif border=0 title=<3D>鿴  >"> | |||
|  |                     <HeaderStyle HorizontalAlign="Center" Width="10%" /> | |||
|  |                     <ItemStyle HorizontalAlign="Center" Width="10%" /> | |||
|  |                 </asp:CommandField> | |||
|  | 			</Columns> | |||
|  |             <PagerStyle HorizontalAlign="Right" /> | |||
|  |              | |||
|  |         </asp:gridview> | |||
|  |         <asp:Button ID="Button1" runat="server" Text="<22><><EFBFBD><EFBFBD>Excel" CssClass="Button" OnClick="Excel_Click" /> | |||
|  |        <asp:Panel ID="DataDetail" runat="server" Width="100%" Visible="false"> | |||
|  |                                             <!------ THE ADD /DELETE AREA ------> | |||
|  |                                             <table    align="left"> | |||
|  |                                              <tr> | |||
|  |                                               <td class="ALine" nowrap colspan="6" > | |||
|  |                                                </td> | |||
|  |                                               </tr> | |||
|  |                                                 <tr> | |||
|  |                                                     <td> | |||
|  |                                                         <asp:Label ID="Label2" runat="server" CssClass="Label" Text='<27>γ<EFBFBD>'></asp:Label></td> | |||
|  |                                                     <td nowrap align="left"> | |||
|  |                                                         <asp:TextBox ID="txtName" runat="server" CssClass="TextBox" MaxLength="25" ReadOnly="True"></asp:TextBox> | |||
|  |                                                         </td> | |||
|  |                                                         <td nowrap colspan="4">     </td> | |||
|  |                                                      </tr> | |||
|  |                                                      <tr>        | |||
|  |                                                     <td nowrap> | |||
|  |                                                         <asp:Label ID="lbstartdate" runat="server" CssClass="Label" Text='<27><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>'></asp:Label></td> | |||
|  |                                                     <td align="left"> | |||
|  |                                                         <asp:TextBox ID="txtStartDate" CssClass="TextBox" runat="server" MaxLength="25" ReadOnly="True"></asp:TextBox>  | |||
|  |                                                     </td> | |||
|  |                                                     <td nowrap> | |||
|  |                                                         <asp:Label ID="lbEndDate" runat="server" CssClass="Label" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" /></td> | |||
|  |                                                     <td  > | |||
|  |                                                         <asp:TextBox ID="txtEndDate" CssClass="TextBox" runat="server" MaxLength="25" ReadOnly="True"></asp:TextBox>  | |||
|  |                                                     </td> | |||
|  |                                                 </tr> | |||
|  |                                                 <tr> | |||
|  |                                                     <td > | |||
|  |                                                         <asp:Label ID="Label1" runat="server" CssClass="Label" Text="ѧ<><D1A7>"></asp:Label></td> | |||
|  |                                                     <td align="left"> | |||
|  |                                                         <asp:TextBox ID="txtXunFen" CssClass="TextBox" runat="server" MaxLength="25" ReadOnly="True">0</asp:TextBox> | |||
|  |                                                           | |||
|  |                                                     </td> | |||
|  |                                                     <td> | |||
|  |                                                         <asp:Label ID="Label11" runat="server" CssClass="Label" Text="<22><>ʦ"></asp:Label></td> | |||
|  |                                                     <td> | |||
|  |                                                         <asp:TextBox ID="txtTrainer" runat="server" CssClass="TextBox" MaxLength="25" ReadOnly="True"></asp:TextBox></td> | |||
|  |                                                     <td nowrap> | |||
|  |                                                         <asp:Label ID="Label3" runat="server" CssClass="Label" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" visible="false"></asp:Label></td> | |||
|  |                                                     <td> | |||
|  |                                                         <asp:TextBox ID="txtMaster" CssClass="TextBox" runat="server" MaxLength="25" visible="false"> | |||
|  |                                                         </asp:TextBox></td> | |||
|  |                                                 </tr> | |||
|  |                                                 <tr> | |||
|  |                                                     <td> | |||
|  |                                                         <asp:Label ID="lblocation" runat="server" CssClass="Label" Text="<22>ص<EFBFBD>" /> | |||
|  |                                                     </td> | |||
|  |                                                     <td colspan="5" align="left"> | |||
|  |                                                         <asp:TextBox ID="txtLocation" CssClass="TextBox" runat="server" MaxLength="300" Width="478px"> | |||
|  |                                                         </asp:TextBox></td> | |||
|  |                                                 </tr> | |||
|  |                                                 <tr> | |||
|  |                                                     <td nowrap> | |||
|  |                                                         <asp:Label ID="lbDesc" runat="server" CssClass="Label" Text="<22>γ̽<CEB3><CCBD><EFBFBD>" /> | |||
|  |                                                     </td> | |||
|  |                                                     <td colspan="5" align="left"> | |||
|  |                                                         <asp:TextBox ID="txtDesc" CssClass="TextBox" runat="server" MaxLength="500" Height="104px" | |||
|  |                                                             TextMode="MultiLine" Width="478px" ReadOnly="True"></asp:TextBox></td> | |||
|  |                                                 </tr> | |||
|  |                                                 <tr> | |||
|  |                                                     <td colspan="6" align="center"> | |||
|  |                                                          </td> | |||
|  |                                                 </tr> | |||
|  |                                                 <tr> | |||
|  |                                                     <td> | |||
|  |                                                          </td> | |||
|  |                                                     <td align="left"> | |||
|  |                                                           </td> | |||
|  |                                                     <td> | |||
|  |                                                          </td> | |||
|  |                                                     <td> | |||
|  |                                                          </td> | |||
|  |                                                     <td> | |||
|  |                                                          </td> | |||
|  |                                                     <td> | |||
|  |                                                          </td> | |||
|  |                                                 </tr> | |||
|  |                                             </table> | |||
|  |                                         </asp:Panel> | |||
|  |        </td></tr> | |||
|  |      | |||
|  |   <20><> | |||
|  |          | |||
|  |    </table> | |||
|  |    </td></tr> | |||
|  |  </table>    | |||
|  |  </asp:Content> | |||
|  | 
 |