platform/Training/Lesson.aspx

193 lines
14 KiB
Plaintext
Raw Permalink Normal View History

2024-02-18 23:33:54 +08:00
<%@ Page Language="C#" MasterPageFile="../masterPage.master" EnableEventValidation="false"
AutoEventWireup="true" CodeFile="Lesson.aspx.cs" Inherits="Lesson" %>
<%@ 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 ------>
<table width="90%">
<tr>
<td>
<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_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><EFBFBD><E0A1A1>" ShowDeleteButton="True" DeleteText="&lt;img src=../Images/Delete.gif border=0 title=ɾ<><C9BE> onclick='return delete_click()'&gt;" <20><>ShowHeader="True" ShowSelectButton="True" SelectText="&lt;img src=../Images/edit.gif border=0 title=<3D>޸<EFBFBD> &gt;">
<HeaderStyle HorizontalAlign="Center" Width="10%" />
<ItemStyle HorizontalAlign="Center" Width="10%" />
</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:Button ID="Button1" runat="server" Text="<22><><EFBFBD><EFBFBD>Excel" CssClass="Button" OnClick="Excel_Click" />
</td>
</tr>
<tr>
<td align="center">
<!------ THE ADD /DELETE AREA ------>
<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">
</asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
ErrorMessage="<22>γ<EFBFBD><CEB3><EFBFBD><EFBFBD>Ʋ<EFBFBD><C6B2><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>" ValidationGroup="1"><3E><></asp:RequiredFieldValidator></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">
</asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender1" CssClass="MyCalendar" runat="server"
TargetControlID="txtStartDate" FirstDayOfWeek="Monday">
</cc1:CalendarExtender>
</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">
</asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender4" CssClass="MyCalendar" runat="server"
TargetControlID="txtEndDate" FirstDayOfWeek="Monday">
</cc1:CalendarExtender>
</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">0</asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtXunFen"
ErrorMessage="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>" ValidationGroup="1"><3E><></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtXunFen"
ErrorMessage="ѧ<><D1A7>ӦΪ<D3A6><CEAA><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" ValidationExpression="^[1-9]\d*|0$" ValidationGroup="1"><3E><>
</asp:RegularExpressionValidator>
</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">
</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">
</asp:TextBox></td>
</tr>
<tr>
<td colspan="6" 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>
&nbsp;</td>
<td align="left">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ" ValidationGroup="1" />
&nbsp;</td>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Content>