114 lines
		
	
	
		
			5.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			114 lines
		
	
	
		
			5.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								<%@ Page Language="C#" MasterPageFile="../masterPage.master" AutoEventWireup="true" CodeFile="LessonCategory.aspx.cs" Inherits="LessonCategory" %>
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
							 | 
						|||
| 
								 | 
							
								<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
							 | 
						|||
| 
								 | 
							
								    Namespace="System.Web.UI" TagPrefix="asp" %>
							 | 
						|||
| 
								 | 
							
								<EFBFBD><EFBFBD>
							 | 
						|||
| 
								 | 
							
								<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
							 | 
						|||
| 
								 | 
							
								<table width="100%" class="Table_NoBorder">
							 | 
						|||
| 
								 | 
							
								    
							 | 
						|||
| 
								 | 
							
								    <tr><td>
							 | 
						|||
| 
								 | 
							
								    <table width="70%" 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   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" 
							 | 
						|||
| 
								 | 
							
								                        DataKeyNames="ID"
							 | 
						|||
| 
								 | 
							
								                        OnRowDeleting="GridView1_RowDeleting" 
							 | 
						|||
| 
								 | 
							
								                        AllowPaging="True" 
							 | 
						|||
| 
								 | 
							
								                        OnPageIndexChanging="GridView1_PageIndexChanging"  
							 | 
						|||
| 
								 | 
							
								                        OnSorting="GridView1_Sorting"  OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="100%" 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 ReadOnly="True" DataField="ID" HeaderText="<22><><EFBFBD><EFBFBD>id" visible="false"  SortExpression="ID"  ></asp:BoundField>
							 | 
						|||
| 
								 | 
							
												<asp:BoundField DataField="lc_name" HeaderText="<22><><EFBFBD><EFBFBD>" SortExpression="lc_name" ></asp:BoundField>
							 | 
						|||
| 
								 | 
							
												<asp:BoundField DataField="lc_desc" HeaderText="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" SortExpression="lc_desc" ></asp:BoundField>
							 | 
						|||
| 
								 | 
							
											    <asp:BoundField DataField="dr" HeaderText="<22><><EFBFBD><EFBFBD>" SortExpression="dr" Visible="False" ></asp:BoundField>
							 | 
						|||
| 
								 | 
							
											 
							 | 
						|||
| 
								 | 
							
												<asp:CommandField HeaderText="<22>ࡡ<EFBFBD><E0A1A1>" ShowDeleteButton="True" DeleteText="<img src=../Images/Delete.gif border=0 title=ɾ<><C9BE> onclick='return delete_click()'>" <20><>ShowHeader="True" ShowSelectButton="True" SelectText="<img src=../Images/edit.gif border=0 title=<3D><EFBFBD>  >">
							 | 
						|||
| 
								 | 
							
								                    <HeaderStyle HorizontalAlign="Center" Width="15%" />
							 | 
						|||
| 
								 | 
							
								                    <ItemStyle HorizontalAlign="Center" Width="15%" />
							 | 
						|||
| 
								 | 
							
								                </asp:CommandField>
							 | 
						|||
| 
								 | 
							
											</Columns>
							 | 
						|||
| 
								 | 
							
								            <PagerStyle HorizontalAlign="Right" />
							 | 
						|||
| 
								 | 
							
								            
							 | 
						|||
| 
								 | 
							
								        </asp:gridview>
							 | 
						|||
| 
								 | 
							
								         <asp:Button ID="btn_addNew" runat="server" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼" CssClass="Button" OnClick="btnAddnew_Click" />
							 | 
						|||
| 
								 | 
							
								         
							 | 
						|||
| 
								 | 
							
								          <asp:Panel ID ="DataDetail" runat="server" Width="100%" Visible="false">
							 | 
						|||
| 
								 | 
							
								       
							 | 
						|||
| 
								 | 
							
								        <!------ THE ADD /DELETE AREA ------>
							 | 
						|||
| 
								 | 
							
								        <table class="Table_NoBorder" width="100%">
							 | 
						|||
| 
								 | 
							
								          <tr>
							 | 
						|||
| 
								 | 
							
								            <td  colspan ="2" class="ALine"  >
							 | 
						|||
| 
								 | 
							
								            </td>
							 | 
						|||
| 
								 | 
							
								            </tr>
							 | 
						|||
| 
								 | 
							
											<tr><td>
							 | 
						|||
| 
								 | 
							
								                <asp:Label ID="Label2" runat="server"  CssClass="Label" Text="<22><><EFBFBD><EFBFBD>"></asp:Label></td>
							 | 
						|||
| 
								 | 
							
								                <td  >
							 | 
						|||
| 
								 | 
							
								                 
							 | 
						|||
| 
								 | 
							
													<asp:TextBox ID="txtName" runat="server"  CssClass="TextBox" MaxLength="25"></asp:TextBox>
							 | 
						|||
| 
								 | 
							
								                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
							 | 
						|||
| 
								 | 
							
								                    ErrorMessage="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> " ValidationGroup="1"><3E><></asp:RequiredFieldValidator>
							 | 
						|||
| 
								 | 
							
								                    </td>
							 | 
						|||
| 
								 | 
							
											 
							 | 
						|||
| 
								 | 
							
											</tr>
							 | 
						|||
| 
								 | 
							
											<tr>
							 | 
						|||
| 
								 | 
							
											  <td>
							 | 
						|||
| 
								 | 
							
								                         <asp:Label ID="Label3" runat="server"  CssClass="Label" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></asp:Label></td>
							 | 
						|||
| 
								 | 
							
								                         <td  >
							 | 
						|||
| 
								 | 
							
								                        <asp:TextBox ID="txtDesc"  CssClass="Long_TextBox" runat="server" MaxLength="50" Width="333px"></asp:TextBox></td>
							 | 
						|||
| 
								 | 
							
								              </tr>
							 | 
						|||
| 
								 | 
							
								           
							 | 
						|||
| 
								 | 
							
											  <tr>
							 | 
						|||
| 
								 | 
							
								            <td  colspan ="2" class="ALine"  >
							 | 
						|||
| 
								 | 
							
								            </td>
							 | 
						|||
| 
								 | 
							
								            </tr>
							 | 
						|||
| 
								 | 
							
								            
							 | 
						|||
| 
								 | 
							
								          <!------ BUTTONS ------>
							 | 
						|||
| 
								 | 
							
											  <tr>
							 | 
						|||
| 
								 | 
							
								            <td  colspan ="2"  align="center" >
							 | 
						|||
| 
								 | 
							
								            <asp:Button ID="btnSubmit" runat="server" CssClass="Button" Text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" OnClick="btnSubmit_Click" ValidationGroup="1" />
							 | 
						|||
| 
								 | 
							
								                 
							 | 
						|||
| 
								 | 
							
								                
							 | 
						|||
| 
								 | 
							
								            </td>
							 | 
						|||
| 
								 | 
							
								            </tr>
							 | 
						|||
| 
								 | 
							
								            <tr>
							 | 
						|||
| 
								 | 
							
								            <td>
							 | 
						|||
| 
								 | 
							
								            
							 | 
						|||
| 
								 | 
							
								            </td>
							 | 
						|||
| 
								 | 
							
								            <td align="left">
							 | 
						|||
| 
								 | 
							
								                                                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ" ValidationGroup="1" />
							 | 
						|||
| 
								 | 
							
								                                                         </td>
							 | 
						|||
| 
								 | 
							
								                                                    <td>
							 | 
						|||
| 
								 | 
							
								            </tr>
							 | 
						|||
| 
								 | 
							
								            </table>
							 | 
						|||
| 
								 | 
							
								            </asp:Panel>
							 | 
						|||
| 
								 | 
							
								              
							 | 
						|||
| 
								 | 
							
								       </td></tr>
							 | 
						|||
| 
								 | 
							
								    
							 | 
						|||
| 
								 | 
							
								    
							 | 
						|||
| 
								 | 
							
								        
							 | 
						|||
| 
								 | 
							
								   </table>
							 | 
						|||
| 
								 | 
							
								   </td></tr>
							 | 
						|||
| 
								 | 
							
								 </table>   
							 | 
						|||
| 
								 | 
							
								 </asp:Content>
							 | 
						|||
| 
								 | 
							
								
							 |