Beispiel #1
0
//if(empty($_SESSION['customer_id'])){
//header("Location: customer.php");
//}
require_once 'storeScripts/db_connection.php';
$query = "SELECT * FROM customer";
$result = mysql_query($query);
if (!empty($_SESSION['customer_id'])) {
    header('Location: account.php');
}
require_once 'storeScripts/store_functions.php';
$query = "SELECT * FROM customer";
$result = mysql_query($query);
//Set Meta Data
$page = new Page_Class();
$page->setPageTitle('Create a New Account');
$page->setPageDescription('e-comerce site');
$page->setPageKeywords('buy, sales, specials, etc');
$page->setPropertyTitle('');
$page->setPropertyDesc('');
$page->setPropertyType('');
$page->setPropertyUrl('');
$page->setPropertySiteName('');
$page->setPropertyImage('');
$page->setCssLink(css());
$page->setJsLink(js());
$page->getPageHeader();
?>

<div class="section_container"> 
    <!--Mid Section Starts-->
    <section> 
Beispiel #2
0
        $resp .= "<tr>";
        $resp .= "<td><img src='images/" . $image["image_name"] . "' width='50' height='50' /></td>";
        $resp .= "<td>" . $product_name . "</td>";
        $resp .= "<td>US\$" . number_format($price, 2) . "</td>";
        $resp .= "<td>" . $each_item['quantity'] . "</td>";
        $resp .= "<td>US\$" . number_format($each_item['quantity'] * $price, 2) . "</td>";
        //$resp .= "<td><form action='cart.php' method='post'><input type='hidden' value='".$i." name='index_to_remove'><input type='submit' value='remove' /></form></td>";
        $resp .= "</tr>";
        $resp .= "<tr><td colspan='6'><div style='border-bottom: 1px black dashed;'></div></td></tr>";
        $i++;
    }
}
$_SESSION['item_total'] = $cart_item;
$cart_total = @number_format($total, 2);
$page->setPageTitle('Checkout');
$page->setPageDescription('Louis Vuitton for less');
$page->setPageKeywords('luis vuitton, bags, hand bags');
$page->setPropertyTitle('');
$page->setPropertyDesc('');
$page->setPropertyType('');
$page->setPropertyUrl('');
$page->setPropertySiteName('');
$page->setPropertyImage('');
$page->setCssLink(css());
$page->setJsLink(js());
$page->getPageHeader();
?>


<div class="section_container" style="border-color: white;"><!--Mid Section Starts-->
 <section>
Beispiel #3
0
//==============================================================+
//Verify is the session is created
session_start();
/*BEGIN SEARCH*/
if (!empty($_REQUEST['q'])) {
    $q = $_REQUEST['q'];
    header("Location: listing_categories.php?q={$q}");
    /*END SEARCH*/
}
/*END SEARCH*/
$GLOBALS["nav"] = 'contact';
require_once 'storeScripts/store_functions.php';
//Set the Meta Data
$page = new Page_Class();
$page->setPageTitle('Contact Us');
$page->setPageDescription('Contact Us Form');
$page->setPageKeywords('contact, us, contact us');
$page->setPropertyType('');
$page->setPropertyUrl('');
$page->setPropertySiteName('');
$page->setPropertyImage('');
$page->setCssLink(css());
$page->setCssLink(css());
$page->setJsLink(js());
$page->getPageHeader();
?>

<div class="section_container">
        <!--Mid Section Starts-->
        <section>
            <!--SIDE NAV STARTS-->
    }
    if (mysql_num_rows($result) < 0) {
        echo 'Sorry productID not found !!!';
        exit;
    }
    //Add 1 to product_viewed field in the product table
    mysql_query("UPDATE product SET product_viewed = product_viewed + 1 WHERE product_id = {$id}");
    if (!empty($_SESSION["customer_id"])) {
        $customer_id = $_SESSION["customer_id"];
        mysql_query("INSERT INTO product_log(product_id, product_name,price, customer_id, date_added) VALUES ({$id}, '{$product_name}', {$price}, {$customer_id}, now())");
    }
}
//Page header setting
$page = new Page_Class();
$page->setPageTitle($product_name);
$page->setPageDescription($descriptions);
$page->setPageKeywords($keywords);
$page->setPropertyTitle($product_name);
$page->setPropertyDesc($description);
$page->setPropertyType('product');
$page->setPropertyUrl('http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
$page->setPropertySiteName('http://' . $_SERVER['SERVER_NAME']);
$page->setPropertyImage('http://' . $_SERVER['SERVER_NAME'] . '/php/store/images/' . $image["image_name"]);
$page->getPageHeader();
?>

<script type="text/javascript">

function change_image(id){
	//alert('The ID: ' + id);
Beispiel #5
0
<?php

require_once 'storeScripts/store_functions.php';
$page = new Page_Class();
$page->setPageTitle('My Store');
$page->setPageDescription('Ecomerce Site');
$page->setPageKeywords('buy, sales, specials, etc');
$page->setCssLink(css());
$page->setJsLink(js());
$page->getPageHeader();
$page->setHeading('h1', 'Section 1');
?>

<p>fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text 
fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text 
fake text fake text fake text fake text fake text fake text fake text .</p>

<p>fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text 
fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text 
fake text fake text fake text fake text fake text fake text fake text .</p>

<p>fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text 
fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text 
fake text fake text fake text fake text fake text fake text fake text .</p>

<p>fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text 
fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text 
fake text fake text fake text fake text fake text fake text fake text .</p>

<p>fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text 
fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text fake text