-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdasboard.php
181 lines (149 loc) · 6.31 KB
/
dasboard.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
<?php include('header.php'); ?>
<?php include('session.php'); ?>
<?php include('dbcon.php'); ?>
<?php include('navbar_dasboard.php'); ?>
<div class="container">
<div class="margin-top">
<div class="row">
<div class="span3">
<ul class="nav nav-tabs nav-stacked">
<li class="active">
<a href="#"><i class="icon-pencil icon-large"></i> Create Account</a>
</li>
</ul>
<p><strong>Today is:</strong></p>
<div class="alert alert-success">
<i class="icon-calendar icon-large"></i>
<?php
$Today = date('d:m:y');
$new = date('l, F d, Y', strtotime($Today));
echo $new;
?>
</div>
<div class="alert alert-info">Time Guide for Each Number</div>
<p>Number 1 - 9:30 - 10:00</p>
<p>Number 2 - 10:00 - 10:30</p>
<p>Number 3 - 10:30 - 11:00</p>
<p>Number 4 - 11:30 - 12:00</p>
<p>Number 5 - 12:30 - 1:00</p>
<p>Number 6 - 3:00 - 3:30</p>
<p>Number 7 - 3:30 - 4:00</p>
<p>Number 8 - 4:30 - 5:00</p>
<div class="alert alert-info">Office Hours</div>
<p>Monday - Firday (9:30 am to 1:00 pm)</p>
<p>Monday - Friday (3:00 pm to 5:00 pm)</p>
<p>Room 312</p>
<p>Saturday(half day)</p>
<p>(9:30 pm to 1:00 pm)</p>
<p>Alpha Tower</p>
<p>Sheikh Zayed Road</p>
<div class="alert alert-info">Testimonial</div>
<div class="testimonial_div">
<p>
I was delighted with the services offered. Despite me being a somewhat timid person, the counselors and tutos really accommodating and helpful in not only listening to my true requirments but also effectively facilitating the coordination of each session.
</p>
</div>
</div>
<div class="span6">
<br>
<br>
<div class="alert alert-info">Select Date of Appointment and Service Offer</div>
<!-- reservation -->
<?php
if (isset($_POST['sub'])){
$date = $_POST['date'];
$service = $_POST['service'];
$query = mysqli_query($conn,"select * from schedule where date = '$date' and member_id = '$session_id' ")or die(mysqli_error($conn));
$count = mysqli_num_rows($query);
/* echo $count; */
if ($count > 0){ ?>
<script>
alert('You have already schedule on this date');
</script>
<?php
}else{
$equal = $count + 1 ;
?>
<div class="question">
<div class="alert alert-success">You're the number <strong><?php echo $equal; ?></strong> client in this date <strong><?php echo $date; ?></strong></div>
<form method="POST" action="yes.php">
<input type="hidden" name="session_id" value="<?php echo $session_id; ?>" >
<input type="hidden" name="date1" value="<?php echo $date; ?>" >
<input type="hidden" name="service1" value="<?php echo $service; ?>" >
<input type="hidden" name="equal" value="<?php echo $equal; ?>" >
<p>Are you sure you want to set your Appointment on this date?</p>
<button name="yes" class="btn btn-success"><i class="icon-check icon-large"></i> Yes</button> <a href="dasboard.php" class="btn"><i class="icon-remove"></i> No</a>
</form>
</div>
<br>
<br>
<?php }} ?>
<!-- end reservation -->
<form class="form-horizontal" method="POST">
<div class="control-group">
<label class="control-label" for="inputEmail">Date</label>
<div class="controls">
<input type="text" class="w8em format-d-m-y highlight-days-67 range-low-today" name="date" id="sd" maxlength="10" style="border: 3px double #CCCCCC;" required/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputPassword">Service</label>
<div class="controls">
<select name="service" required>
<option></option>
<?php $query=mysqli_query($conn,"select * from service")or die(mysqli_error($conn));
while($row=mysqli_fetch_array($query)){
?>
<option value="<?php echo $row['service_id']; ?>"><?php echo $row['service_offer'] ?></option>
<?php } ?>
</select>
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" name="sub" class="btn btn-info"><i class="icon-check icon-large"></i> Submit</button>
</div>
</div>
</form>
</div>
<div class="span3">
<img src="img/32x32/facebook.png">
<img src="img/32x32/twitter.png">
<img src="img/32x32/rss.png">
<ul class="nav nav-list">
<div class="alert alert-danger"><li class="nav-header">NOTE</li></div>
<?php
$note_query = mysqli_query($conn,"select * from note ")or die(mysqli_error($conn));
$note_count =mysqli_num_rows($note_query);
while($note_row = mysqli_fetch_array($note_query)){
if ($note_count > 0){ ?>
<li><i class="icon-stop icon-large"></i> <?php echo $note_row['message'] ?></li>
<?php
} }
?>
</ul>
<br>
<div class="alert alert-info">List of Services</div>
<table class="table table-bordered">
<thead>
<tr>
<th>Service Offer</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<?php $user_query=mysqli_query($conn,"select * from service")or die(mysqli_error($conn));
while($row=mysqli_fetch_array($user_query)){
$id=$row['service_id']; ?>
<tr class="del<?php echo $id ?>">
<td><?php echo $row['service_offer']; ?></td>
<td><?php echo $row['price']; ?></td>
<?php } ?>
</tbody>
</table>
<div class="alert alert-info">SMART Counseling</div>
</div>
</div>
</div>
</div>
<?php include('footer.php') ?>