-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddClass.aspx
170 lines (153 loc) · 10.6 KB
/
AddClass.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<%@ Page EnableEventValidation="false" Title="" Language="C#" MasterPageFile="~/admin/adminmaster.master" AutoEventWireup="true" CodeFile="AddClass.aspx.cs" Inherits="admin_ViewClass" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpadmin" runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<ajaxToolkit:TabContainer ID="TabContainer1" runat="server">
<ajaxToolkit:TabPanel ID="tb1" runat="server" HeaderText="Add Class">
<ContentTemplate>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>Add Class</strong> </div>
<div class="panel-body">
<%--<form class="form-horizontal">--%>
<div class="form-group">
<div class="col-xs-4">
<label class="control-label">Select Group</label>
<asp:DropDownList ID="ddlgrpselec" runat="server" CssClass="form-control mb" ValidationGroup="grp1">
<asp:ListItem>Select Group</asp:ListItem>
<asp:ListItem>Nursery</asp:ListItem>
<asp:ListItem>Kinder Garden</asp:ListItem>
<asp:ListItem>Primary (I-IV)</asp:ListItem>
<asp:ListItem>Middle (V-VIII)</asp:ListItem>
<asp:ListItem>Secondary (IX - X)</asp:ListItem>
<asp:ListItem>Oxford (Olevels)</asp:ListItem>
</asp:DropDownList>
<%--<input type="text" placeholder="Default input" class="form-control mb">--%>
</div>
</div>
<div class="form-group">
<div class="col-xs-4">
<label class="control-label">Add Level</label>
<asp:TextBox ID="Txtlevel" runat="server" CssClass="form-control mb" ValidationGroup="grp1"></asp:TextBox>
<%--<input type="text" placeholder="Default input" class="form-control mb">--%>
</div>
</div>
<div class="form-group">
<div class="col-xs-4">
<label class="control-label">Add Section</label>
<asp:TextBox ID="txtsec" runat="server" CssClass="form-control mb" ValidationGroup="grp1"></asp:TextBox>
<%--<input type="text" placeholder="Default input" class="form-control mb">--%>
</div>
</div>
<div class="form-group">
<div class="col-xs-4">
<label class="control-label">Number of Course to be taught</label>
<asp:TextBox ID="txtcoursenum" runat="server" CssClass="form-control mb" ValidationGroup="grp1"></asp:TextBox>
<%--<input type="text" placeholder="Default input" class="form-control mb">--%>
</div>
</div>
<div class="form-group">
<div class="col-xs-4">
<label class="control-label">Number of Students Allowed</label>
<asp:TextBox ID="Txtstrength" runat="server" CssClass="form-control mb" TextMode="Number" ValidationGroup="grp1"></asp:TextBox>
<%--<input type="text" placeholder="Default input" class="form-control mb">--%>
</div>
</div>
<div class="col-sm-8 col-sm-offset-2">
<asp:Button ID="submitclass" runat="server" CssClass="btn btn-primary" Text="Submit CLass" ValidationGroup="grp1" OnClick="submitclass_Click" />
<%--<button class="btn btn-primary" type="submit">Save changes</button>--%>
</div>
<%--</form>--%>
</div>
</div>
</div>
</div>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<%-- <div class="form-control">
<div class="col-xs-4">
<asp:CheckBox ID ="chk1" runat="server" Checked="false" Text=" Update / Delete Class" CssClass="check-mark" OnCheckedChanged="chk1_CheckedChanged" />
</div>
</div>--%>
<ajaxToolkit:TabPanel ID="tb2" runat="server" HeaderText="Manage Class">
<ContentTemplate>
<div class="row">
<div class="col-md-12">
<div class="panel panel-info">
<div class="panel-heading"><strong>Class Information</strong> </div>
<div class="panel-body">
<div class="form-group">
<div class="col-xs-4">
<label class="control-label">Select Level</label>
<asp:DropDownList ID="DropDownList1" runat="server" CssClass="form-control mb" AutoPostBack="true" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"></asp:DropDownList>
</div>
</div>
</div>
<div class="panel-body">
<div class="form-group">
<div class="col-xs-3">
<label class="control-label">Subjects Taught Currently </label>
<asp:Label ID="lblstc" runat="server" CssClass="control-label"></asp:Label>
</div>
</div>
<div class="form-group">
<div class="col-xs-3">
<label class="control-label">Max Subjects Allowed</label><br />
<asp:Label ID="Lblsuball" runat="server" CssClass="control-label"></asp:Label>
</div>
</div>
<div class="form-group">
<div class="col-xs-3">
<label class="control-label">Max Class Strength</label><br />
<asp:Label ID="lblstr" runat="server" CssClass="control-label"></asp:Label>
</div>
</div>
<div class="form-group">
<div class="col-xs-3">
<label class="control-label">Current # of Enrollments</label>
<asp:Label ID="lblallstu" runat="server" CssClass="control-label"></asp:Label>
</div>
</div>
<div class="col-sm-12">
<asp:Button ID="btnrem" runat="server" CssClass="btn btn-danger" Text="Remove class" OnClick="btnrem_Click" />
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>Update Class</strong></div>
<div class="panel-body">
<div class="form-group">
<div class="col-xs-4">
<label class="control-label">Number of Course to be taught</label>
<asp:TextBox ID="txtclupd1" runat="server" CssClass="form-control mb" ValidationGroup="grp2"></asp:TextBox>
<%--<input type="text" placeholder="Default input" class="form-control mb">--%>
</div>
</div>
<div class="form-group">
<div class="col-xs-4">
<label class="control-label">Number of Students Allowed</label>
<asp:TextBox ID="txtclupd2" runat="server" CssClass="form-control mb" TextMode="Number" ValidationGroup="grp2"></asp:TextBox>
<%--<input type="text" placeholder="Default input" class="form-control mb">--%>
</div>
</div>
<div class="col-sm-8 col-sm-offset-2">
<asp:Button ID="clupd" runat="server" CssClass="btn btn-primary" Text="Update CLass" ValidationGroup="grp2" OnClick="clupd_Click" />
<%--<button class="btn btn-primary" type="submit">Save changes</button>--%>
</div>
</div>
</div>
</div>
</div>
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
</asp:Content>