-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_group_list.jsp
92 lines (78 loc) · 2.71 KB
/
admin_group_list.jsp
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
<%@page import="db.tables.Group_Settings"%>
<%@page import="util.Variables"%>
<%@page import="java.util.ArrayList"%>
<%@page import="db.DBProcess"%>
<%
Object obj= session.getAttribute("al");
if(obj==null)response.sendRedirect("admin_login.jsp");
%>
<html>
<head>
<title>Course List</title>
</head>
<body >
<center>
<h1 ><font color="#366092"><%=Variables.prjName%></font></h1>
<%@include file="admin_menu.jsp" %>
<h2><font color="#366092">Course List</font></h2>
<a href="admin_group_add.jsp" >Add Course</a><br><br>
<form>
<%
//3. group_settings - id,g_name,g_descp,dt
%>
<table border="1">
<tr>
<th>ID</th>
<th> Name </th>
<th> Description </th>
<th> Date </th>
<th> Action </th>
</tr>
<%
DBProcess dbp =new DBProcess();
dbp.open();
ArrayList<Group_Settings> gsList = dbp.selectAll_group_settings();
dbp.close();
if(gsList.size()==0){
%>
<tr>
<td>No</td>
<td>Data</td>
<td>----</td>
<td>----</td>
<td>----</td>
</tr>
<%
}
else{
for(Group_Settings gs:gsList){
%>
<tr>
<td><%=gs.id%></td>
<td>
<%=gs.g_name%>
</td>
<td>
<%=gs.g_descp%>
</td>
<td>
<%=gs.dt%>
</td>
<td>
<a href="admin_group_edit.jsp?id=<%=gs.id%>">Update</a> |
<a href="admin_group_delete_action.jsp?id=<%=gs.id%>">Delete</a> |
<a href="admin_group_subject_list.jsp?id=<%=gs.id%>">Subjects</a> |
<a href="admin_group_mark_list.jsp?id=<%=gs.id%>">Marks</a>
</td>
</tr>
<%
}
}
dbp.close();
%>
</table>
</form>
<a href="admin_group_add.jsp" >Add Course</a>
</center>
</body>
</html>