-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgetcredentials.php
179 lines (120 loc) · 4.74 KB
/
getcredentials.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
<?php include("../conecton.php"); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>GNDPC | Dashboard</title>
<?php
include("common_css.php");
?>
<script type="text/javascript">
function getlist(){
var Batch = document.getElementById("year").value;
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("showall").innerHTML = this.responseText;
}
};
xmlhttp.open("GET", "AJAX/getcredentials.php?Batch="+Batch, true);
xmlhttp.send();
}
function getexcel()
{
var Batch = document.getElementById("year").value;
window.location="AJAX/getcredentials_excel.php?Batch="+Batch;
// var xmlhttp = new XMLHttpRequest();
// xmlhttp.onreadystatechange = function() {
// if (this.readyState == 4 && this.status == 200) {
// document.getElementById("showall").innerHTML = this.responseText;
// }
// };
// xmlhttp.open("GET", "AJAX/getcredentials_excel.php?Batch="+Batch, true);
// xmlhttp.send();
}
</script>
</head>
<body class="skin-blue">
<!-- Site wrapper -->
<div class="wrapper">
<?php include('../header.php'); ?>
<?php include('../sidebar.php'); ?>
<!-- =============================================== -->
<!-- Right side column. Contains the navbar and content of the page -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Subject Allotment
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<!-- Default box -->
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">Enter the details carefully</h3>
<div class="box-tools pull-right">
<button class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse"><i class="fa fa-minus"></i></button>
</div>
</div>
<div class="box-body">
<form method="post">
<div class="row">
<div class="col-md-4">
<h5>Select Branch</h5>
<select class="select-style Type" name="year" onclick="getlist();" required id="year" onselect="getlist();">
<?php
$GetClass_sql="SELECT DISTINCT batch from student";
$GetClass_query=mysqli_query($conn,$GetClass_sql);
while ($GetClass_Fetch=mysqli_fetch_array($GetClass_query)) {
$Batch=$GetClass_Fetch['batch'];
echo '<option value="'.$Batch.'">'.$Batch.'</option>';
}
?>
</select>
</div>
<div class="col-md-2">
<!-- <h5>Select Semester</h5>
<select class="select-style Type" name="sem" required id="sem" onselect="getlist();" onkeydown="getlist();" onclick="getlist();" >
<option value="1">Semester 1 </option>
<option value="2">Semester 2 </option>
<option value="3">Semester 3 </option>
<option value="4">Semester 4 </option>
<option value="5">Semester 5 </option>
<option value="6">Semester 6 </option>
</select> -->
<!-- Select Batch -->
</div>
<!-- <div class="col-md-3">
<h5>Student List</h5>
<div>
<select class="select-style Type" name="id" id="list" required="">
<option value="">Select the previous fields </option>
</select>
Press Go!
</div>
</div> -->
<div class="col-md-4">
<h5> </h5>
<button type="button" name="entbtn" onclick="getexcel();" class="btn btn-success">Get Excel</button>
</div>
</form>
</div>
<div id="showall">
</div>
</div><!-- /.box-body -->
<div class="box-footer">
Enter the details carefully
</div><!-- /.box-footer-->
</div><!-- /.box -->
</section><!-- /.content -->
</div><!-- /.content-wrapper -->
<?php include("../footer.php"); ?>
</div><!-- ./wrapper -->
<?php include("common_jquery.php"); ?>
</body>
</html>