-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmodal_sample.php
87 lines (74 loc) · 2.2 KB
/
modal_sample.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
<?php
include('session.php');
include('db.php');
$survey_maxcount_qry = mysqli_query($con,"SELECT survey_maxattemp FROM `survey_maxcount` WHERE survey_ownerID = '$login_id'");
$survey_maxattemp = mysqli_fetch_array($survey_maxcount_qry);
$page = 'statistic';
if ($login_level == '1')
{
$result = mysqli_query($con,"SELECT * FROM `user_student_detail` WHERE student_userID = $login_id");
$data = mysqli_fetch_array($result);
$data_img = $data['student_img'];
}
else if ($login_level == '2')
{
$result = mysqli_query($con,"SELECT * FROM `user_teacher_detail` WHERE teacher_userID = $login_id");
$data = mysqli_fetch_array($result);
$data_img = $data['teacher_img'];
}
else if ($login_level == '3')
{
$result = mysqli_query($con,"SELECT * FROM `user_admin_detail` WHERE admin_userID = $login_id");
$data = mysqli_fetch_array($result);
$data_img = $data['admin_img'];
}
else
{}
?><!DOCTYPE html>
<html>
<head>
<?php include('meta.php');?>
<?php include('style_css.php');?>
<title>Statistic</title>
</head>
<?php
$data = "darren";
/**
*
*/
class modal
{
function deleteModal()
{
?>
<div id="editcomment" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Modal Header</h4>
</div>
<div class="modal-body">
<center>
<div class="btn-group ">
<button type="button" class="btn btn-primary">EDIT</button>
<button type="button" class="btn btn-danger">DELETE</button>
</div>
</center>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<?php
}
}
$modal = new modal;
?>
<i class="fa fa-edit" data-toggle="modal" data-target="<?php $modal->deleteModal('#editcomment'); ?>" >____________```</i>
<?php include('footer.php');?>
<!-- /#footer -->
<?php include ('script.php');?>