Esempio n. 1
0
//
// Author: Natanael Sanchez Melchor
//
// (c) Copyright:
//               Natanael Sanchez Melchor
//               http://www.natanaelsanchez.comxa.com
//               natanaelsm83@gmail.com
//==============================================================+
//Verify is the session is created
session_start();
$GLOBALS["nav"] = '';
if (empty($_SESSION['customer_id'])) {
    header("Location: cklogin.php");
}
require_once 'storeScripts/store_functions.php';
$page = new Page_Class();
/*
 * ab_id INT(11) NOT NULL AUTO_INCREMENT,	
    ab_customer_id INT(11) NOT NULL,
    ab_full_name VARCHAR(255) NOT NULL,
    ab_street_address1 VARCHAR(255) NOT NULL,
    ab_street_address2 VARCHAR(255),
    ab_city VARCHAR(255) NOT NULL,
    ab_state VARCHAR(255) NOT NULL,
    ab_zipcode INT(11) NOT NULL,
    ab_country VARCHAR(255) NOT NULL,
    ab_phone VARCHAR(150) NOT NULL,
 * */
/////////////////////////////////////////////////////////////////////////////////
if (!empty($_SESSION['customer_id'])) {
    $cid = $_SESSION['customer_id'];
Esempio n. 2
0
//Verify is the session is created
session_start();
//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"> 
Esempio n. 3
0
        //To display the image
        $query = "SELECT * FROM product_image WHERE product_id = {$id} AND image_status = 1 LIMIT 1";
        $image = mysql_fetch_array(mysql_query($query));
        $alt = $image["alt"];
        $out .= '<li>';
        $out .= '<a class="product_image" href="product_details.php?id=' . $id . '"><img src="images/' . $image['image_name'] . '" title="' . $product_name . '" alt="' . $alt . '"  width="265" height="265" /></a>';
        $out .= '<div class="product_info">';
        $out .= '<h3><a href="product_details.php?id=' . $id . '">' . $data['product_name'] . '</a></h3>';
        $out .= '</div>';
        $out .= '<div class="price_info"> <a href="storeScripts/process_wishlist.php?product_name=' . $product_name . '&id=' . $id . '&price=' . $price . '">+ Add to wishlist</a>';
        $out .= '<button onclick="addToCart(' . $id . ')" class="price_add" title="" type="button"><span class="pr_price">' . $configuration->getCurrency() . '&nbsp;' . number_format($data['product_price'], 2) . '</span><span class="pr_add">Add to Cart</span></button>';
        $out .= '</div>';
        $out .= '</li>';
    }
    //Set Meta Data
    $page = new Page_Class();
    $page->setPageTitle('Index Page [buy anything you want in this online store]');
    $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> <!-- BEGIN BANNER -->
Esempio n. 4
0
        $image = mysql_fetch_array(mysql_query($query));
        $alt = $image["alt"];
        $out .= '<li>';
        $out .= '<a class="product_image" href="product_details.php?id=' . $id . '"><img src="images/' . $image['image_name'] . '" alt="' . $alt . '"  title="' . $product_name . '"  width="265" height="265" /></a>';
        $out .= '<div class="product_info">';
        $out .= '<h3><a href="product_details.php?id=' . $id . '">' . $data['product_name'] . '</a></h3>';
        $out .= '</div>';
        $out .= '<div class="price_info"> <a href="storeScripts/process_wishlist.php?product_name=' . $product_name . '&id=' . $id . '&price=' . $price . '">+ Add to wishlist</a>';
        //To add product to the cart throught addToCart javascript function
        $out .= '<button onclick="addToCart(' . $id . ')" class="price_add" title="" type="button"><span class="pr_price">' . $configuration->getCurrency() . '&nbsp;' . number_format($data['product_price'], 2) . '</span><span class="pr_add">Add to Cart</span></button>';
        $out .= '</div>';
        $out .= '</li>';
    }
}
//Set the Meta Data
$page = new Page_Class();
$page->setPageTitle('Listing Categories');
$page->setPageDescription('e-comerce site');
$page->setPageKeywords('buy, sales, specials, etc');
$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>
Esempio n. 5
0
        $out .= '<p style="text-align: justify;">' . nl2br($data['product_long_description']) . '</p>';
        $out .= '</div><br /><br />';
    }
    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){
Esempio n. 6
0
//               http://www.natanaelsanchez.comxa.com
//               natanaelsm83@gmail.com
//==============================================================+
//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-->
Esempio n. 7
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