-
Notifications
You must be signed in to change notification settings - Fork 1
/
userProfile.php
88 lines (76 loc) · 2.8 KB
/
userProfile.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
require_once 'core/init.php';
$handle='';
$rs=array();
$user2=new user();
if(!$user2->isLoggedIn()){
Redirect::to('index.php');
}
$user3 = new user();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>
<meta charset="utf-8">
<meta name = "format-detection" content = "telephone=no" />
<link rel="icon" href="images/favicon.png" type="image/x-icon">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/grid.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="camera/style.css">
<link rel="stylesheet" href="css/fontello.css">
<link rel="stylesheet" href="css/animation.css">
<link rel="stylesheet" href="css/fontello-codes.css">
<link rel="stylesheet" href="css/fontello-embedded.css">
<link rel="stylesheet" href="css/fontello-ie7.css">
<link rel="stylesheet" href="css/fontello-ie7-codes.css">
<link type="text/css" rel="Stylesheet" href="css/imageslidermaker.css" />
<link href="http://fonts.googleapis.com/css?family=Ubuntu:400|Titillium+Web:300" rel="stylesheet" type="text/css">
</head>
<body>
<!--========================================================
HEADER
=========================================================-->
<?php
include 'includes/header.php';
?>
<div class="box3">
<div class="container">
<?php
?>* id : <?php echo $user3->data()->id,'<br>';
?> * name : <?php echo $user3->data()->name,'<br>';
?> * username : <?php echo $user3->data()->username,'<br>';
?> * mobile : <?php echo $user3->data()->Mobile,'<br>';
?> * email : <?php echo $user3->data()->email,'<br>';
?> * joined : <?php echo $user3->data()->joined,'<br>';
?> * address : <?php echo $user3->data()->Address,'<br>';
$reservation=DB::getInstance()->get('reservation',array('user_id','=',$user3->data()->id));
if($reservation->count()){
foreach ($reservation->results()as $res ) {
echo "date : ",$res->date,'<br>';
echo "start : ",$res->start,'<br>';
echo "status : ",$res->status,'<br>';
}
}
?>
</div>
<table style="border: none; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0">
<tr>
<?php
if($user2->data()->user_type_id==2 || $user2->data()->user_type_id==4){
?>
<td><a class="more_btn btn1" href="pdfcontrol.php">reports</a></td>
<?php }
else{
?>
<td><a class="more_btn btn1" href="invoice_test.php">invoice</a></td>
<td><a class="more_btn btn1" href="reschedual.php">change my reservation</a></td>
<td><a class="more_btn btn1" href="uploadfile.php">update file</a></td>
<?php }?>
</tr>
</table>
</div>
<?php
include 'includes/footer.php';
?>