-
Notifications
You must be signed in to change notification settings - Fork 23
/
rep_dtr.php
72 lines (64 loc) · 2.36 KB
/
rep_dtr.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
<?php
include './Database/Controler.php';
include 'role.php';
$dr= $_SESSION["sem_stu_data"];
?>
<script language="javascript" type="text/javascript">
function getRn_res(rn)
{
var rn=rn;
if(rn)
{
$.ajax({
type:"GET",
url:"dropdown.php",
data:"semrp="+rn,
success:function(result)
{
$("#dataTables-example").html(result);
}
});
}
}
</script>
<form method="post">
<button type="submit" id="back4" name="back4" class="btn btn-primary">Back</button>
<button class="btn btn-success btn-circle" type="button" onclick="printDiv()" style="float: right;"><i class="fa fa-print fa-2x" style="color: white;"></i></button>
</form>
<h2>Semester Vise Report</h2>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<b>Select Roll Number:
<select class="form-control" id="ov_rn" name="ov_rn" style="width:50%;" onChange="return getRn_res(this.value)">
<option>Select Roll Number</option>
<?php
foreach($dr as $d)
{?>
<option value="<?php echo $d->s_enrl; ?>">
<?php echo $d->s_rn."-".$d->fnm." ".$d->lnm; ?></option>
<?php }?>
</select>
</b><br>
<div id="printthis">
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
</table>
</div>
</div>
<script type="text/javascript">
function printDiv(printthis) {
var printContents = document.getElementById('printthis').innerHTML;
var originalContents = document.body.innerHTML;
document.body.innerHTML = printContents;
window.print();
document.body.innerHTML = originalContents;
}
</script>
<?php
include 'footer.php';
?>