-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_account.php
61 lines (33 loc) · 1.21 KB
/
my_account.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
<!------------ Header starts --------------------->
<?php include('includes/header.php'); ?>
<!------------ Header ends ----------------------->
<!------------ Navigation Bar ends -------------->
<!------------ Content wrapper starts -------------->
<div class="content_wrapper">
<?php if(isset($_SESSION['user_id'])){ ?>
<div class="user_container">
<?php if($_GET['action'] !='purchase_history' && $_GET['action'] !='view_receipt' ){ ?>
<div class="user_content">
<?php
if(isset($_GET['action'])){
$action = $_GET['action'];
}else{
$action = '';
}
/*if($_GET['action'] == 'edit_account'){
echo $action;
}*/
?>
<?php }elseif($_GET['action'] == 'purchase_history'){ ?>
<?php include 'users/purchase_history.php'; ?>
<?php }elseif($_GET['action'] == 'view_receipt'){ ?>
<?php include 'users/receipt.php'; ?>
<?php } ?>
</div><!-- /.user_container-->
<?php }else{ ?>
<h1>Account Setting Page</h1>
<h5><a href="index.php?action=login">Log In </a> to Your Account!</h5>
<?php } ?>
</div><!-- /.content_wrapper-->
<!------------ Content wrapper ends -------------->
<?php include ('includes/footer.php'); ?>