-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmca_Admin.php
215 lines (195 loc) · 11.4 KB
/
mca_Admin.php
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<?php
include 'excelSheetServer.php';
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "1234";
$db = "application_portal";
$conn = new mysqli($dbhost,$dbuser,$dbpass,$db);
if(!$conn)
{
die("Connection failed: ". mysqli_connect_error());
}
$selectSQL = 'SELECT * FROM `mca_details`';
# Execute the SELECT Query
if( !( $selectRes = mysqli_query( $conn,$selectSQL ) ) ){
echo 'Retrieval of data from Database Failed - #';
}else{
?>
<html>
<head>
<title>MCA Database</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css"
integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="Admin.css">
<script src="Admin.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" id="header-nav">
<a class="navbar-brand" href="#"><img src="iglogo1.png" /></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="#">Welcome User!</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Logout</a>
</li>
</ul>
</div>
</nav>
<div class="container-fluid">
<h3 class="topic">Details of Students enrolled in MCA</h3>
<div class="row">
<div class="panel panel-primary filterable">
<div class="panel-heading">
<h3 class="panel-title"> </h3>
<div class="pull-right">
<button class="btn-dark btn-default btn-xs btn-filter"><span><i class="fas fa-filter fa-lg"></i></span> Filter</button>
</div>
</div>
<table class="table">
<thead class="thead-dark">
<tr class="header">
<th><h5>Application No.</h5></th>
<th><h5>Name</h5></th>
<th><h5>Father's Name</h5></th>
<th><h5>Mother's Name</h5></th>
<th><h5>Date of Birth</h5></th>
<th><h5>Gender</h5></th>
<th><h5>Category 1</h5></th>
<th><h5>Category 2</h5></th>
<th><h5>Nationality</h5></th>
<th><h5>Contact No. 1</h5></th>
<th><h5>Contact No. 2</h5></th>
<th><h5>Email id</h5></th>
<th><h5>Address</h5></th>
<th><h5>City</h5></th>
<th><h5>State</h5></th>
<th><h5>Pincode</h5></th>
<th><h5>Tenth Board</h5></th>
<th><h5>Tenth Subject</h5></th>
<th><h5>Passing Year</h5></th>
<th><h5>Tenth Percentage</h5></th>
<th><h5>Twelfth Board</h5></th>
<th><h5>Twelfth Subject</h5></th>
<th><h5>Passing Year</h5></th>
<th><h5>Twelfth Percentage</h5></th>
<th><h5>University</h5></th>
<th><h5>Degree</h5></th>
<th><h5>Year of graduation</h5></th>
<th><h5>Percentage</h5></th>
<th><h5>Transaction Number</h5></th>
<th><h5>Transaction Reference</h5></th>
<th><h5>Transaction Date</h5></th>
<th><h5>Photo</h5></th>
<th><h5>Signature</h5></th>
<th><h5>Thumb Impression</h5></th>
<th><h5>Fee Reciept</h5></th>
</tr>
<tr class="filters">
<th><input type="text" class="form-control" placeholder="Application No." disabled></th>
<th><input type="text" class="form-control" placeholder="Name" disabled></th>
<th><input type="text" class="form-control" placeholder="Father's Name" disabled></th>
<th><input type="text" class="form-control" placeholder="Mother's Name" disabled></th>
<th><input type="text" class="form-control" placeholder="Date of Birth" disabled></th>
<th><input type="text" class="form-control" placeholder="Gender" disabled></th>
<th><input type="text" class="form-control" placeholder="Category 1" disabled></th>
<th><input type="text" class="form-control" placeholder="Category 2" disabled></th>
<th><input type="text" class="form-control" placeholder="Nationality" disabled></th>
<th><input type="text" class="form-control" placeholder="Contact No." disabled></th>
<th><input type="text" class="form-control" placeholder="Contact No. 2" disabled></th>
<th><input type="text" class="form-control" placeholder="Email id" disabled></th>
<th><input type="text" class="form-control" placeholder="Address" disabled></th>
<th><input type="text" class="form-control" placeholder="City" disabled></th>
<th><input type="text" class="form-control" placeholder="State" disabled></th>
<th><input type="text" class="form-control" placeholder="Pincode" disabled></th>
<th><input type="text" class="form-control" placeholder="Tenth Board" disabled></th>
<th><input type="text" class="form-control" placeholder="Tenth Subject" disabled></th>
<th><input type="text" class="form-control" placeholder="Passing Year" disabled></th>
<th><input type="text" class="form-control" placeholder="Tenth Percentage" disabled></th>
<th><input type="text" class="form-control" placeholder="Twelfth Board" disabled></th>
<th><input type="text" class="form-control" placeholder="Twelfth Subject" disabled></th>
<th><input type="text" class="form-control" placeholder="Passing Year" disabled></th>
<th><input type="text" class="form-control" placeholder="Twelfth Percentage" disabled></th>
<th><input type="text" class="form-control" placeholder="University" disabled></th>
<th><input type="text" class="form-control" placeholder="Degree" disabled></th>
<th><input type="text" class="form-control" placeholder="Year of graduation" disabled></th>
<th><input type="text" class="form-control" placeholder="Percentage" disabled></th>
<th><input type="text" class="form-control" placeholder="Transaction Number" disabled></th>
<th><input type="text" class="form-control" placeholder="Transaction Reference" disabled></th>
<th><input type="text" class="form-control" placeholder="Transaction Date" disabled></th>
<th><input type="text" class="form-control" placeholder="Photo" disabled></th>
<th><input type="text" class="form-control" placeholder="Signature" disabled></th>
<th><input type="text" class="form-control" placeholder="Thumb Impression" disabled></th>
<th><input type="text" class="form-control" placeholder="Fee Reciept" disabled></th>
</tr>
</thead>
<tbody>
<?php
while( $row = mysqli_fetch_assoc( $selectRes ) ){
echo "<tr>
<td>{$row['Application_No']}</td>
<td>{$row['Name']}</td>
<td>{$row['FathersName']}</td>
<td>{$row['MothersName']}</td>
<td>{$row['Dateofbirth']}</td>
<td>{$row['Gender']}</td>
<td>{$row['Category1']}</td>
<td>{$row['Category2']}</td>
<td>{$row['Natonality']}</td>
<td>{$row['ContactNumber']}</td>
<td>{$row['AlternateContactNumber']}</td>
<td>{$row['Email-id']}</td>
<td>{$row['Address']}</td>
<td>{$row['City']}</td>
<td>{$row['State']}</td>
<td>{$row['Pincode']}</td>
<td>{$row['Board_Tenth']}</td>
<td>{$row['Subject_Tenth']}</td>
<td>{$row['Year_of_completion_Tenth']}</td>
<td>{$row['Percentage_Tenth']}</td>
<td>{$row['Board_Twelfth']}</td>
<td>{$row['Subject_Twelfth']}</td>
<td>{$row['Year_of_completion_Twelfth']}</td>
<td>{$row['Percentage_Twelfth']}</td>
<td>{$row['University_UG']}</td>
<td>{$row['Subject_UG']}</td>
<td>{$row['Year_of_graduation_UG']}</td>
<td>{$row['Percentage_UG']}</td>
<td>{$row['Transaction_Number']}</td>
<td>{$row['Transaction_Reference']}</td>
<td>{$row['Transaction_Date']}</td>
<td>{$row['Upload_Photo']}</td>
<td>{$row['Upload_Signature']}</td>
<td>{$row['Upload_Thumb_Impression']}</td>
<td>{$row['Upload_Fee_Reciept']}</td>
</tr>\n";
}
?>
</tbody>
</table>
</div>
</div>
</div>
<div class="btn">
<form action="mca_excel.php" method="post">
<button type="submit" id="btnExport" name='export_mca'
value="Export to Excel" class="btn btn-info">Export to
excel</button>
</form>
</div>
</body>
</html>
<?php
}
?>