platform/Training/Lesson.aspx

193 lines
14 KiB
Plaintext

<%@ 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="¿Î³ÌÀà±ð" 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='ûÓÐÊý¾Ý¡£'>
<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="ÈËÔ±id" SortExpression="ID" ></asp:BoundField>
<asp:BoundField DataField="le_name" HeaderText="¿Î³Ì" SortExpression="le_name">
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundField DataField="le_startdate" HeaderText="¿ªÊ¼ÈÕÆÚ" 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="½áÊøÈÕÆÚ" 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="µØµã" SortExpression="le_location">
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundField DataField="le_xuefen" HeaderText="ѧ·Ö" SortExpression="le_xuefen">
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundField DataField="le_trainer" HeaderText="½²Ê¦" SortExpression="le_trainer">
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundField DataField="dr" HeaderText="¿ÉÓÃ" SortExpression="dr" Visible="False" ></asp:BoundField>
<asp:CommandField HeaderText="±à¡¡¼­" ShowDeleteButton="True" DeleteText="&lt;img src=../Images/Delete.gif border=0 title=ɾ³ý onclick='return delete_click()'&gt;" ¡¡ShowHeader="True" ShowSelectButton="True" SelectText="&lt;img src=../Images/edit.gif border=0 title=ÐÞ¸Ä &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="ÐÂÔö¼Ç¼" CssClass="Button" OnClick="btnAddnew_Click" />
<asp:Button ID="Button1" runat="server" Text="µ¼³ö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='¿Î³Ì'></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="¿Î³ÌÃû³Æ²»¿ÉÒÔΪ¿Õ" ValidationGroup="1">£ª</asp:RequiredFieldValidator></td>
<td nowrap colspan="4"> </td>
</tr>
<tr>
<td nowrap>
<asp:Label ID="lbstartdate" runat="server" CssClass="Label" Text='¿ªÊ¼ÈÕÆÚ'></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="½áÊøÈÕÆÚ" /></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="ѧ·Ö"></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="ÇëÊäÈëѧ·Ö" ValidationGroup="1">£ª</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtXunFen"
ErrorMessage="ѧ·ÖӦΪ´óÓÚµÈÓÚÁãµÄÕûÊý" ValidationExpression="^[1-9]\d*|0$" ValidationGroup="1">£ª
</asp:RegularExpressionValidator>
</td>
<td>
<asp:Label ID="Label11" runat="server" CssClass="Label" Text="½²Ê¦"></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="¸ºÔðÈË" 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="µØµã" />
</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="¿Î³Ì½éÉÜ" />
</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="±£´æÊý¾Ý" OnClick="btnSubmit_Click" ValidationGroup="1" />
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td align="left">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="´íÎóÌáʾ" 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>