-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnobat1.php
More file actions
58 lines (57 loc) · 2.47 KB
/
nobat1.php
File metadata and controls
58 lines (57 loc) · 2.47 KB
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
<?php
include_once("header.php");
$doctors = new DoctorController();
$doctor_view = new DoctorView();
$all_expertise = $doctors->GetAllExpertise();
?>
<nav>
<ol class="breadcrumb px-3 bg-light">
<li class="breadcrumb-item"><a href="asli.php">صفحه اصلی</a></li>
<li class="breadcrumb-item active">نوبت دهی آنلاین</li>
</ol>
</nav>
</header>
<div class="py-3" align="center">
<div class="container">
<?php
$actual_size = sizeof($all_expertise);
$size = 0;
if($actual_size % 2 == 0){
$size = $actual_size;
}
else{
$size = $actual_size - 1;
}
$counter = 0;
while($counter < $size){
$exp1 = $doctor_view->ConvertExpertiseNumber($all_expertise[$counter]);
$exp2 = $doctor_view->ConvertExpertiseNumber($all_expertise[$counter + 1]);
echo '<div class="row">';
echo '<div class="col-md-6">';
echo '<form action="nobat2.php" method="post">';
echo "<input type='submit' class='btn linkBtn1' name='exp' value = '$exp1'>";
echo '</form>';
echo '</div>';
echo '<div class="col-md-6">';
echo '<form action="nobat2.php" method="post">';
echo "<input type='submit' class='btn linkBtn2' name='exp' value = '$exp2'>";
echo '</form>';
echo '</div>';
echo'</div>';
echo '</br>';
$counter = $counter + 2;
}
if($actual_size % 2 != 0){
$exp1 = $doctor_view->ConvertExpertiseNumber($all_expertise[$counter]);
echo '<div class="row">';
echo '<div class="col-md-6">';
echo '<form action="nobat2.php" method="post">';
echo "<input type ='submit' class='btn linkBtn1' name='exp' value ='$exp1'>";
echo '</form>';
echo '</div>';
echo'</div>';
}
?>
</div>
</div>
<?php include_once('footer.php'); ?>