-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview_babysitter.php
70 lines (70 loc) · 2.91 KB
/
view_babysitter.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
<?php
require_once('config.php');
if(isset($_GET['id'])){
$qry = $conn->query("SELECT * FROM `babysitter_list` where id ='{$_GET['id']}' ");
if($qry->num_rows > 0 ){
$res = $qry->fetch_array();
foreach($res as $k => $v){
if(!is_numeric($k)){
$$k=$v;
}
}
$meta_qry = $conn->query("SELECT * FROM `babysitter_details` where babysitter_id = '{$_GET['id']}' ");
if($meta_qry->num_rows > 0 ){
while($row= $meta_qry->fetch_assoc()){
${$row['meta_field']} = $row['meta_value'];
}
}
}
}
?>
<style>
#uni_modal .modal-footer{
display:none !important;
}
#bs-img-modal{
width:10em;
height:10em;
object-fit:cover;
object-position:center center;
}
</style>
<div class="container-fluid">
<div class="row">
<div class="col-md-4">
<center>
<img id="bs-img-modal" src="<?= validate_image(isset($id) ? "uploads/babysitters/{$id}.png" : "").(isset($date_updated) ? "?v=".strtotime($date_updated) : "") ?>" alt="BS Image" class="bg-gradient-dark">
</center>
</div>
<div class="col-md-8">
<dl>
<dt class="text-primary">Babysitter's Code</dt>
<dd class="pl-4"><?= isset($code) ? $code : "" ?></dd>
<dt class="text-primary">Fullname</dt>
<dd class="pl-4"><?= isset($fullname) ? $fullname : "" ?></dd>
<dt class="text-primary">Gender</dt>
<dd class="pl-4"><?= isset($gender) ? $gender : "" ?></dd>
<dt class="text-primary">Email</dt>
<dd class="pl-4"><?= isset($email) ? $email : "" ?></dd>
<dt class="text-primary">Contact #</dt>
<dd class="pl-4"><?= isset($contact) ? $contact : "" ?></dd>
<dt class="text-primary">Address</dt>
<dd class="pl-4"><?= isset($address) ? $address : "" ?></dd>
<dt class="text-primary">Skills</dt>
<dd class="pl-4"><?= isset($skills) ? $skills : "" ?></dd>
<dt class="text-primary">Year of Experience</dt>
<dd class="pl-4"><?= isset($years_experience) ? $years_experience : "" ?></dd>
<dt class="text-primary">Achievements</dt>
<dd class="pl-4"><?= isset($achievement) ? $achievement : "" ?></dd>
<dt class="text-primary">Other Information</dt>
<dd class="pl-4"><?= isset($other) ? $other : "" ?></dd>
</dl>
</div>
</div>
<div class="row">
<div class="col-12 text-right">
<a href="<?=base_url?>enroller/?page=babysitters" class="btn rounded btn-sm btn-success" type="button" >Hire</a>
<button class="btn rounded btn-sm btn-danger" type="button" data-dismiss="modal"> Close</button>
</div>
</div>
</div>