forked from RohithUdutha17/ExamBranch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudentresults.html
More file actions
137 lines (130 loc) · 4.39 KB
/
studentresults.html
File metadata and controls
137 lines (130 loc) · 4.39 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="/fontawesome-free-5.15.3-web\css\all.css">
<link rel="stylesheet" href="/styles.css">
</head>
<body>
<div class="header">
<div class="container">
<div class="row">
<div class="col3">
<img src="/images/jntu.jpg" alt="">
</div>
<div class="col3">
<h1>JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY <br> HYDERABAD</h1>
</div>
<div class="col3">
<a href="/home"><i class="fas fa-home"></i>Home</a>
</div>
<div class="col3">
<a href="account"><i class="fas fa-user"></i> Profile</a>
</div>
</div>
</div>
</div>
<% if (data.length==0){ %>
<div class="search">
<form method="POST" action="/studentresults">
<div class="row">
<input type="text" placeholder="Hall Ticket" name="htno" required>
<select name="yearsem" required>
<option hidden>select year-sem</option>
<option value="1-1">1-1</option>
<option value="1-2">1-2</option>
<option value="2-1">2-1</option>
<option value="2-2">2-2</option>
<option value="3-1">3-1</option>
<option value="3-2">3-2</option>
<option value="4-1">4-1</option>
<option value="4-2">4-2</option>
</select>
<button type="submit">submit</button>
</div>
</form>
</div>
<h1 style="color: red;text-align: center;">Invalid Hallticket</h1>
<% }else { %>
<div class="search">
<form method="POST" action="/studentresults">
<div class="row">
<input type="text" placeholder="Hall Ticket" name="htno" value="<%= data[0].Roll_no %>" required>
<select name="yearsem" required>
<option hidden><%= data[0].YearSem %></option>
<option value="1-1">1-1</option>
<option value="1-2">1-2</option>
<option value="2-1">2-1</option>
<option value="2-2">2-2</option>
<option value="3-1">3-1</option>
<option value="3-2">3-2</option>
<option value="4-1">4-1</option>
<option value="4-2">4-2</option>
</select>
<button type="submit">submit</button>
</div>
</form>
</div>
<h1 style="text-align: center;">Result</h1>
<div class="details">
<div class="maindetails">
<div class="row">
<div class="col2">
<h3>Hall Ticket</h3>
<h3>Branch </h3>
<h3>Secured Credits</h3>
<h3>SGPA</h3>
<h3>Result Status</h3>
<hr>
</div>
<div class="col2">
<h3><%=data[0].Roll_no %></h3>
<h3><%=data[0].Deptname %></h3>
<% var sgpa=0.0 %>
<% var res ='T' %>
<% var sc = 0.0 %>
<% data.forEach((i)=>{ sgpa+=i.Gradepoint;sc+=i.Credits;if(i.Grade == 'F'){res='F'}}) %>
<h3><%= sc %></h3>
<h3><%= (sgpa/data.length).toFixed(2) %></h3>
<h3><%= res %></h3>
<hr>
</div>
</div>
</div>
<div class="individual">
<table>
<tr>
<th>Subject Code</th>
<th>Subject</th>
<th>Int_marks</th>
<th>Ext_marks</th>
<th>Total_marks</th>
<th>Credits</th>
<th>Grade Point</th>
<th>Grade</th>
</tr>
<% if (data.length==0){ %>
<h1>Invalid Hallticket</h1>
<% } else { %>
<% data.forEach((i)=>{ %>
<tr>
<td><%= i.sub_code %></td>
<td><%= i.sub_name %></td>
<td><%= i.Int_marks %></td>
<td><%= i.Ext_marks %></td>
<td><%= i.Total %></td>
<td><%= i.Credits %></td>
<td><%= i.Gradepoint %></td>
<td><%= i.Grade %></td>
</tr>
<% }) %>
<% } %>
</table>
</div>
</div>
<% } %>
</body>
</html>