Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if (!isset($_SESSION["customer_email"]))
- {
- header("location: checkout.php");
- }
- include("../includes/db.php");
- include("../functions/functions.php");
- include("../includes/header.php");
- ?>
- <section>
- <div class="container">
- <div class="row">
- <div class="col-sm-3">
- <div class="left-sidebar">
- <h2>My Account</h2>
- <div class="panel-group category-products" id="accordian"><!--category-products start-->
- <div class="category-tab ul li ">
- <ul class="nav nav-pills nav-stacked" id="categories">
- <?php
- if(isset($_SESSION['customer_email']))
- {
- $user_session=$_SESSION['customer_email'];
- $get_customer_pic = "select * from customers where customer_email='$user_session'";
- $run_customer=mysqli_query($con,$get_customer_pic);
- $row_customer = mysqli_fetch_array($run_customer);
- $customer_pic=$row_customer['customer_image'];
- echo "<img src='customer_photos/$customer_pic' width='255' height='180'>";
- }
- ?>
- <li> <a href="my_account.php?my_orders">My Orders </a></li>
- <li> <a href="my_account.php?edit_account">Edit Account </a></li>
- <li> <a href="my_account.php?change_pass">Change Password </a></li>
- <li> <a href="my_account.php?delete_account">Delete Account </a></li>
- <li> <a href="../logout.php">Logout </a></li>
- <br>
- <br>
- <br>
- <br><br>
- <br><br>
- <br><br>
- <br>
- </ul>
- </div>
- </div><!--/category-products ends-->
- </div>
- </div>
- <div class="col-sm-9 padding-right">
- <?php
- //$ip = getRealIpAddress();
- //echo $ip;
- $title = null;
- ?>
- <div class="features_items" id="products_box"><!--features_items start-->
- <?php
- if(isset($_GET['my_orders']))
- {
- $title="My Order";
- }
- if(isset($_GET['edit_account']))
- {
- $title="Update Account";
- }
- if(isset($_GET['change_pass']))
- {
- $title="Change Password";
- }
- if(isset($_GET['delete_account']))
- {
- $title="Delete Account";
- }
- ?>
- <h2 class="title text-center"><?php echo $title;?></h2>
- <?php
- getDefault();
- ?>
- <?php
- //THIS IS ALL FOR CUSTOMER ACCOUNT MANAGEMENT
- //THE PARAMETER WILL BE PASSED WHEN USER CLICKS THE LINK
- if(isset($_GET['my_orders']))
- {
- include("my_orders.php");
- }
- if(isset($_GET['edit_account']))
- {
- include("edit_account.php");
- }
- if(isset($_GET['change_pass']))
- {
- include("change_pass.php");
- }
- if(isset($_GET['delete_account']))
- {
- include("delete_account.php");
- }
- ?>
- </div><!--features_items Ends-->
- </div><!--/category-tab-->
- </div>
- </div>
- </div>
- </section>
- <?php include("../includes/footer.php");?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment