gyhlw_dotnet/网站项目/VRS/Management/School_Add.aspx

133 lines
7.0 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="School_Add.aspx.cs" Inherits="VRS.Management.School_Add" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加学校</title>
<link href="../../Css/BaseStyle.css" type="text/css" rel="Stylesheet" />
<link href="../../Assets/Layui/css/bootstrap.min.css" rel="stylesheet" />
<style type="text/css">
.RadRadioButton.RadButton .rbText,   .RadCheckBox.RadButton .rbText  {
padding-left: 0px !important;
}
</style>
</head>
<script type="text/javascript">
//关闭模式窗口
function CloseAndRebind(args) {
GetRadWindow().Close();
GetRadWindow().BrowserWindow.refreshGrid(args);
}
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)
return oWindow;
}
//关闭模式窗口
function CloseRadWindow() {
GetRadWindow().Close();
}
</script>
<script type="text/javascript" id="telerikClientEvents1">
//<![CDATA[
function btnSure_Clicked(sender, args) {
//Add JavaScript handler code here
CloseRadWindow();
}
//]]>
</script>
<script type="text/javascript" id="telerikClientEvents2">
//<![CDATA[
function btnCancel_Clicked(sender, args) {
//Add JavaScript handler code here
CloseRadWindow();
}
</script>
<body>
<br />
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>
</Scripts>
</telerik:RadScriptManager>
<asp:HiddenField ID="UseFor" runat="server" Value="Sim" />
<div>
<table class="table-form">
<tr>
<td class="table-td-name"><span class="span_danger">*</span>学校名称:</td>
<td class="table-td-content" colspan="3">
<telerik:RadTextBox ID="name" runat="server" Skin="Bootstrap" Width="240px">
</telerik:RadTextBox>
</td>
</tr>
<tr>
<td class="table-td-name">老师lisence</td>
<td class="table-td-content" style="width:150px;">
<telerik:RadRadioButtonList runat="server" ID="radio_no_limit_teacher" AutoPostBack="true" OnSelectedIndexChanged="radio_limit_teacher_SelectedIndexChanged" Skin="Bootstrap" Width="150" Direction="Horizontal">
<Items>
<telerik:ButtonListItem Text="无限制" Value="1" Selected="true" />
<telerik:ButtonListItem Text="限制数量" Value="0" />
</Items>
</telerik:RadRadioButtonList>
</td>
<td style="width:200px;">
<telerik:RadNumericTextBox ID="num_teacher" Enabled="false" runat="server" Skin="Bootstrap" Width="150px" MinValue="1" NumberFormat-GroupSeparator="" placeholder="请输入大于0的数字" NumberFormat-DecimalDigits="0" ></telerik:RadNumericTextBox>
</td>
</tr>
<tr>
<td class="table-td-name">学生lisence</td>
<td class="table-td-content" style="width:150px;">
<telerik:RadRadioButtonList runat="server" ID="radio_no_limit_student" OnSelectedIndexChanged="radio_limit_student_SelectedIndexChanged" AutoPostBack="true" Skin="Bootstrap" Width="150" Direction="Horizontal" >
<Items>
<telerik:ButtonListItem Text="无限制" Value="1" Selected="true" />
<telerik:ButtonListItem Text="限制数量" Value="0" />
</Items>
</telerik:RadRadioButtonList>
</td>
<td style="width:200px;">
<telerik:RadNumericTextBox ID="num_student" Enabled="false" runat="server" Skin="Bootstrap" Width="150px" MinValue="1" NumberFormat-GroupSeparator="" placeholder="请输入大于0的数字" NumberFormat-DecimalDigits="0" ></telerik:RadNumericTextBox>
</td>
</tr>
<tr>
<td class="base-bottom" colspan="3">
<input class="mybtn btn btn-success" type="button" value="确定" onclick="$('#btnSure').click()" />
<input class="mybtn btn btn-danger" type="button" value="取消" onclick="CloseRadWindow()" />
<div class="hidden">
<telerik:RadButton ID="btnSure" runat="server" CssClass="btn btn-success" Skin="Bootstrap" Width="120px" Text="确定" AutoPostBack="true" OnClick="btnSure_Click"></telerik:RadButton>
<telerik:RadButton ID="btnCancel" runat="server" Skin="Bootstrap" Width="120px" Text="取消" AutoPostBack="False" OnClientClicked="CloseRadWindow" Style="position: relative;"></telerik:RadButton>
</div>
</td>
</tr>
</table>
</div>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="btnSure">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="btnSure" UpdatePanelCssClass="" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="radio_no_limit_teacher">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="num_teacher" UpdatePanelCssClass="" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="radio_no_limit_student">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="num_student" UpdatePanelCssClass="" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
</form>
</body>
</html>