This repository has been archived by the owner on Mar 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kundenkonto.php
88 lines (81 loc) · 3.81 KB
/
kundenkonto.php
1
<?phprequire_once('config.php');if (isset($_SESSION['user']) && strlen($_SESSION['user'])) { $customer_account = new customer_account(); $customer_account->customer_id = $_SESSION['user']; $customer_account->get_customer_data(); $customer_account->customer_data; $customer_orders = new customer_orders(); $customer_orders->customer_id = $_SESSION['user']; $customer_orders->get_carts(); if (isset($_POST['set_customer_data']) && strlen($_POST['set_customer_data'])) { $customer_account->customer_data_post = $_POST; $customer_account->set_customer_data(); } elseif (isset($_GET['od']) && strlen($_GET['od'])) { $customer_orders = new customer_orders(); $customer_orders->customer_id = $_SESSION['user']; $customer_orders->customer_orders_all = false; $customer_orders->customer_orders_ordernr = trim($_GET['od']); $customer_orders->get_carts(); $customer_orders->calc_order_amounts(); }} else { header('Location: ' . HTTP_HOST . ROOT_URL . PROJECT_NAME);}?><!DOCTYPE html><html> <head> <?php include 'inc/inc-meta.php'; ?> <?php $set_meta_tags = new set_meta_tags(); $set_meta_tags->seo_array['title'] = "Kundenkonto - Placeholder - Shop"; $set_meta_tags->seo_array['description'] = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa."; $set_meta_tags->seo_array['keywords'] = "Lorem, ipsum, dolor, sit, amet, consectetuer, adipiscin, elit, Aenean commodo"; $set_meta_tags->seo_array['index_allow'] = false; $set_meta_tags->set_meta_tags_index(true); ?> </head> <body> <?php include 'inc/inc-header.php'; ?> <div class="content"> <div class="haeder_logo"> <img src="<?php echo HTTP_HOST . ROOT_URL . PROJECT_NAME; ?>/img/register-login.jpg" alt="Kundenkonto"> </div> <div class="container"> <div class="wrapper"> <?php if (!isset($_GET['od'])) { ?> <h1>Kundenkonto</h1> <div class="row"> <div class="col-12"> <h2><?php echo $customer_account->gen_salutation_string(); ?></h2> <p>In Ihrem Kundenkonto können Sie Ihre Stammdaten abändern und aktualisieren, ebenfalls können Sie jederzeit den Status Ihrer bei uns aufgegebenen Bestellungen über Ihr Kundenkonto einsehen.</p> <?php include 'inc/inc-usererrors.php'; ?> </div> </div> <div class="row"> <div class="col-6"> <h3>Meine Versandadresse</h3> <?php include 'inc/inc-userdata.php'; ?> </div> <div class="col-6"> <h3>Meine Bestellungen</h3> <?php include 'inc/inc-userorders.php'; ?> </div> </div> <?php } else { ?> <h1>Versandadresse</h1> <div class="row"> <div class="col-12"> <?php include 'inc/inc-userorder-detail.php'; ?> </div> </div> <?php } ?> </div> </div> </div> <?php include 'inc/inc-footer.php'; ?> <script src="<?php echo HTTP_HOST . ROOT_URL . PROJECT_NAME; ?>/js/js_functions.js" type="text/javascript"></script> <?php include "inc/inc-debug-console.php"; ?> </body></html>