Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 89

A Project Report on : ONLINE BOOK

STORE

SPM LAB

Submitted By: VAAMICA MAHAJAN (0809713091) VAISHALI VERMA (0809713092) VIKRANT AGAWAL (0809713420)

ACKNOWLEDGEMENT
We express our heartfelt gratitude to our faculty incharge Mrs. Aprajita for her valuable suggestions and for helping us at every step in the making of this project.We would also like to thank our college GALGOTIAS COLLEGE OF ENGG AND TECHNOLOGY and its academic staff for giving us this opportunity and providing us with all the required resources.

TABLE OF CONTENTS
Introduction Business Value Objectives Requirement Specifications Module Description Use case Diagram Data Flow Diagrams Work based structure Gantt Chart Screen Shots Coding Refrences

INTRODUCTION
Online Book Store is to enable consumers directly buy books from a seller in real-time, without an intermediary service, over the Internet. It is a form of electronic commerce. An online shop, eshop, e-store, internet shop, webshop, webstore, online store, or virtual store evokes the physical analogy of buying products or services at a bricks-and-mortar retailer or in a shopping mall. It maintains a virtual book store where people can search and buy books of their choice.

BUSINESS VALUE
Develop a community where people can share their interests in different books. It will provide the owner of the book store the freedom of selecting the books to be sold. It will provide the users a convenient online book shopping option.

It will serve to establish the reputation of an owner as an important part of local business.

OBJECTIVES
Good User friendly Website To provide a comprehensive collection of old and new books To maintain updations about recent and new releases. To provide category specific idea of books. To promote reading and book purchasing through a convenient option.

REQIUREMENT SPECIFICATIONS
SOFTWARE REQUIREMENTS FRONT END:
PHP

BACK END:
SQL SERVER

HARDWARE REQUIREMENTS:

INTEL,Core2Duo processor

1 GB RAM 4 GB or higher memory storage

MODULE DESCRIPTION
LOGIN DATABASE:
It contains all the information about a registered user and entries are added to it for a new user. Example : password, name. I.D and other required information.

BOOK STORE:
It contains information about : Available Books

New Releases Special Books Category Books

FRONT PAGES OF THE WEBSITE:


Home Page Registration Page Login Page Book View Pages

USE CASE DIAGRAM

CONTEXT DIAGRAM

DATA FLOW DIAGRAMLEVEL 1

WORK BASED STRUCTURE

USER ACCOUNT MANAGEMENT

SEARCH BOOK

NEW RELEASE

GANTT CHART

SCREEN SHOTS

HOME PAGE

CATEGORY PAGE

SIGN IN PAGE

SIGN UP PAGE

CODING

<?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows1252" /> <title>Book Store</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="wrap">

<div class="header"> <div class="logo"><a href="index1.php"><img src="images/logo.gif" alt="" title="" border="0" /></a></div> <div id="menu"> <ul>

<li class="selected"><a href="index1.php">Home</a></li> <li><a href="about.php">About Us</a></li> <li><a href="category.php">Books</a></li> <li><a href="accer.php">New Releases</a></li> <li><a href="details.php">Search Books</a></li> <?php if(isset($_SESSION['Email'])) {

echo "<li><a href='myaccount_update.php'>My Account</a></li>"; echo "<li><a href='user_signout.php'>Sign out</a></li>"; } else { echo "<li><a href='myaccount.php'>Sign in</a></li>"; echo "<li><a href='register.php'>Sign up</a></li>"; } ?>

<!-- <li><a href="myaccount.php">SignIn</a></li>--> <!-- <li><a href="register.php">SignUp</a></li>-->

</ul> </div>

</div>

<div class="center_content"> <div class="left_content"> <div class="title"><span class="title_icon"><img src="images/bullet1.gif" alt="" title="" /></span>About us</div>

<div class="feat_prod_box_details"> <p class="details"> <img src="images/about.gif" alt="" title="" class="right" /> After graduating in 2003 we decided to put our minds &amp; hands to work. The result of which, was our very own little store. Focusing on text as a theme, the store features many lovely things designed and built by us. <br /><br /> Apart from a name change, Kobo has some new features. Now you can browse by category, choose from a new Top-50 e-books list, New York Times bestsellers, Oprah&rsquo;s book-club picks and more. The app also has recommended reading lists (right now there is a &ldquo;Season&rsquo;s Readings&rdquo; section, and a splendid &ldquo;Canadian, eh&rdquo; list) and a better search function.<br /> It&rsquo;s very easy to browse, and the Kobo app puts Amazon&rsquo;s rushed-out Kindle for iPhone application to shame. It&rsquo;s all done with full artwork for covers, and usually you can read the first chapter of a book (although a lot of the time, you only get to read the end-matter and not any actual content). Reading books is equally elegant, and greatly

cleaned-up since the original Shortcovers app. Page turning is animated and actually looks like paper pages flipping.</p>

</div>

<div class="clear"></div> </div><!--end of left content-->

<div class="right_content">

<div class="languages_box"> <span class="red">Languages:</span> <a href="#"><img src="images/gb.gif" alt="" title="" border="0" /></a> <a href="#"><img src="images/fr.gif" alt="" title="" border="0" /></a> <a href="#"><img src="images/de.gif" alt="" title="" border="0" /></a> </div> <div class="currency"> <?php if(isset($_SESSION['Email'])) {

echo "Welcome::".$_SESSION['Email']; } ?> </div>

<div class="cart"> <div class="title"><span class="title_icon"><img src="images/cart.gif" alt="" title="" /></span>My cart</div> <div class="home_cart_content"> <?php if(isset($_SESSION['total_item'])) echo $_SESSION['total_item']; else echo 0; ?> x items | <span class="red">TOTAL: <?php if(isset($_SESSION['tatal_amount'])) echo $_SESSION['tatal_amount']; else echo 0;

?>$</span> </div> <a href="cart.php" class="view_cart">view cart</a>

</div>

<div class="title"><span class="title_icon"><img src="images/bullet3.gif" alt="" title="" /></span>About Our Store</div> <div class="about"> <p> <img src="images/about.gif" alt="" title="" class="right" /> After graduating in 2003 we decided to put our minds &amp; hands to work. The result of which, was our very own little store. Focusing on text as a theme, the store features many lovely things designed and built by us. </p>

</div>

<div class="right_box">

<div class="title"><span class="title_icon"><img src="images/bullet4.gif" alt="" title="" /></span>Promotions</div> <div class="new_prod_box"> <a href="details.php" title="Search for this book">Digital Photography</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span> <a href="details.php" title="Search for this book"><img src="images/thumb1.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

<div class="new_prod_box">

<a href="details.php" title="Search for this book">Fixing Global Finance</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span> <a href="details.php" title="Search for this book"><img src="images/thumb2.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

<div class="new_prod_box"> <a href="details.php" title="Search for this book">Simple Food</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span> <a href="details.php" title="Search for this book"><img src="images/thumb3.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

</div>

<div class="right_box">

<div class="title"><span class="title_icon"><img src="images/bullet5.gif" alt="" title="" /></span>Categories</div>

<ul class="list">

<li><a href="accer.php">accesories</a></li> <li><a href="bookgift.php">books gifts</a></li> <li><a href="specialbook.php">specials</a></li> <li><a href="holidaygift.php">hollidays gifts</a></li> <li><a href="accer.php">accesories</a></li> <li><a href="bookgift.php">books gifts</a></li> <li><a href="specialbook.php">specials</a></li> <li><a href="holidaygift.php">hollidays gifts</a></li> </ul>

<div class="title"><span class="title_icon"><img src="images/bullet6.gif" alt="" title="" /></span>Partners</div>

<ul class="list"> <li><a href="http://flipkart.com" target="_blank">Flipkart</a></li> <li><a href="http://ebay.com" target="_blank">Ebay</a></li> <li><a href="http://amazon.com" target="_blank">Amazon</a></li> <li><a href="http://wikipedia.com" target="_blank">Wikipedia</a></li> </ul>

</div>

</div><!--end of right content-->

<div class="clear"></div> </div><!--end of center content-->

<?php require_once("footer.php") ?>

</div>

</div>

</body> </html>

ABOUT PAGE

<?php session_start(); $con=@mysqli_connect("localhost","prakash","choudhary","book_store");

if(isset($_SESSION['Email'])){ $var=$_SESSION['cart_no'];

?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows1252" /> <title>Book Store</title> <link rel="stylesheet" type="text/css" href="style.css" /> <script type="text/javascript"> function calculate(x1,x2) { //var x1=document.getElementById('pri').value; //alert("Value of x1 is :: "+x1); x2=document.getElementById('qt').value;

document.getElementById('total').innerHTML=x1*x2; }

function loadValidate() { var x1 = "<?php echo $var4 ?>"

alert("No items:::"x1);

if(x1>0) { //alert("You have not selected any product");

return true; } else { alert("You have not selected any product"); return false; } } </script> </head> <body> <div id="wrap">

<div class="header"> <div class="logo"><a href="index1.php"><img src="images/logo.gif" alt="" title="" border="0" /></a></div> <div id="menu">

<ul> <li class="selected"><a href="index1.php">Home</a></li> <li><a href="about.php">About Us</a></li> <li><a href="category.php">Books</a></li> <li><a href="accer.php">New Releases</a></li> <li><a href="details.php">Search Books</a></li>

<?php if(isset($_SESSION['Email'])) { echo "<li><a href='myaccount_update.php'>My Account</a></li>"; echo "<li><a href='user_signout.php'>Sign out</a></li>";

} else { echo "<li><a href='myaccount.php'>Sign in</a></li>"; echo "<li><a href='register.php'>Sign up</a></li>"; } ?>

<!-- <li><a href="myaccount.php">SignIn</a></li>--> <!-- <li><a href="register.php">SignUp</a></li>-->

</ul> </div>

</div>

<div class="center_content"> <div class="left_content"> <div class="title"><span class="title_icon"><img src="images/bullet1.gif" alt="" title="" /></span>My cart</div>

<div class="feat_prod_box_details"> <table class="cart_table"> <tr class="cart_title"> <td>Item pic</td> <td>Book name</td> <td>Unit price</td> <td>Qty</td> <td>Ship Charge</td> <td>Total</td> </tr> <?php if(isset($_SESSION['Email'])){

$sum=0; $num_item=0; $sql="SELECT * FROM cart where cart_id=$var";

//echo $sql; $result=@mysqli_query($con,$sql);

$total_s=0;

// $r= @mysqli_fetch_array($result,MYSQLI_ASSOC); $i=1; while($row1=@mysqli_fetch_array($result,MYSQLI_ASSOC)) { $var1=$row1['item_image']; $var2=$row1['item_title']; $var3=$row1['item_price']; $var4=$row1['item_qty']; $var5=$row1['s_cost']; $num_item=$num_item+$var4; $total_s=$total_s+$var5; ?>

<tr>

<td><img src='<?php echo $var1 ?>' width="70px" height="110px" alt="" title="" border="0" class="cart_thumb" /></a></td> <td><?php echo $var2 ?></td> <td id="pri"><?php echo $var3.'$' ?></td> <td ><input type="text" readonly="readonly" name="nm" value='<?php echo $var4 ?>' id="qt" maxlength="2" size="1" onkeyup="calculate(<?php echo $var3; ?>)"/></td> <?php $sum=$sum+($var3*$var4); ?> <td ><?php echo $var5.'$'; ?></td> <td id="total"><?php echo ($var3*$var4).'$'; ?></td> </tr> <?php } $_SESSION['total_item']=$num_item; $_SESSION['tatal_amount']=$sum+$total_s; } ?> <tr>

<td colspan="5" class="cart_total"><span class="red">TOTAL SHIPPING :</span></td> <td> <?php if(isset($_SESSION['total_item'])) { echo $total_s; }?> </td> </tr>

<tr> <td colspan="5" class="cart_total"><span class="red">TOTAL :</span></td>

<td> <?php if(isset($_SESSION['total_item'])) echo $sum+$total_s ?></td> </tr>

</table> <a href="details.php" class="continue">&lt; Go Back</a> <?php if(isset($_SESSION['tatal_amount'])) echo "<a href='payment.php' class='checkout'>Checkout &gt;</a>"; else echo "<a href='#' class='checkout'>No Item Selected !</a>";

?>

</div>

<div class="clear"></div> </div><!--end of left content-->

<div class="right_content">

<div class="languages_box"> <span class="red">Languages:</span> <a href="#"><img src="images/gb.gif" alt="" title="" border="0" /></a> <a href="#"><img src="images/fr.gif" alt="" title="" border="0" /></a> <a href="#"><img src="images/de.gif" alt="" title="" border="0" /></a> </div> <div class="currency"> <?php if(isset($_SESSION['Email'])) { echo "Welcome::".$_SESSION['Email']; } ?> </div>

<div class="cart"> <div class="title"><span class="title_icon"><img src="images/cart.gif" alt="" title="" /></span>My cart</div> <div class="home_cart_content"> <?php if(isset($_SESSION['total_item'])) echo $_SESSION['total_item']; else

echo 0; ?> x items | <span class="red">TOTAL: <?php if(isset($_SESSION['tatal_amount'])) echo $_SESSION['tatal_amount']; else echo 0;

?>$</span> </div> <a href="cart.php" class="view_cart">view cart</a>

</div>

<div class="title"><span class="title_icon"><img src="images/bullet3.gif" alt="" title="" /></span>About Our Store</div> <div class="about"> <p> <img src="images/about.gif" alt="" title="" class="right" /> After graduating in 2003 we decided to put our minds &amp; hands to work. The result of which, was our very own little store. Focusing on text as a theme, the store features many lovely things designed and built by us. </p>

</div>

<div class="right_box">

<div class="title"><span class="title_icon"><img src="images/bullet4.gif" alt="" title="" /></span>Promotions</div> <div class="new_prod_box"> <a href="details.html">Digital Photography</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span> <a href="details.php" title="Search for this book"><img src="images/thumb1.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

<div class="new_prod_box"> <a href="details.php" title="Search for this book">Fixing Global Finance</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span> <a href="details.php" title="Search for this book"><img src="images/thumb2.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

<div class="new_prod_box"> <a href="details.php" title="Search for this book">Simple Food</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span>

<a href="details.html"><img src="images/thumb3.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

</div>

<div class="right_box">

<div class="title"><span class="title_icon"><img src="images/bullet5.gif" alt="" title="" /></span>Categories</div>

<ul class="list"> <li><a href="#">accesories</a></li> <li><a href="#">books gifts</a></li> <li><a href="#">specials</a></li> <li><a href="#">hollidays gifts</a></li> <li><a href="#">accesories</a></li> <li><a href="#">books gifts</a></li> <li><a href="#">specials</a></li> <li><a href="#">hollidays gifts</a></li> <li><a href="#">accesories</a></li> <li><a href="#">books gifts</a></li> <li><a href="#">specials</a></li> </ul>

<div class="title"><span class="title_icon"><img src="images/bullet6.gif" alt="" title="" /></span>Partners</div>

<ul class="list"> <li><a href="http://flipkart.com" target="_blank">Flipkart</a></li> <li><a href="http://ebay.com" target="_blank">Ebay</a></li> <li><a href="http://amazon.com" target="_blank">Amazon</a></li> <li><a href="http://wikipedia.com" target="_blank">Wikipedia</a></li> </ul>

</div>

</div><!--end of right content-->

<div class="clear"></div> </div><!--end of center content-->

<?php require_once("footer.php") ?>

</div>

</body> </html> CART PAGE

<?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows1252" /> <title>Book Store</title> <link rel="stylesheet" type="text/css" href="style.css" />

</head> <body> <div id="wrap">

<div class="header"> <div class="logo"><a href="index1.php"><img src="images/logo.gif" alt="" title="" border="0" /></a></div> <div id="menu"> <ul> <li class="selected"><a href="index1.php">Home</a></li> <li><a href="about.php">About Us</a></li> <li><a href="category.php">Books</a></li> <li><a href="accer.php">New Releases</a></li> <li><a href="details.php">Search Books</a></li> <?php

if(isset($_SESSION['Email'])) {

echo "<li><a href='myaccount_update.php'>My Account</a></li>"; echo "<li><a href='user_signout.php'>Sign out</a></li>";

} else { echo "<li><a href='myaccount.php'>Sign in</a></li>"; echo "<li><a href='register.php'>Sign up</a></li>"; } ?>

<!-- <li><a href="myaccount.php">SignIn</a></li>--> <!-- <li><a href="register.php">SignUp</a></li>-->

</ul> </div>

</div>

<div class="center_content"> <div class="left_content">

<div class="title"><span class="title_icon"><img src="images/bullet1.gif" alt="" title="" /></span>Top Books</div>

<div class="new_products">

<?php

$con=@mysqli_connect("localhost","prakash" ,"choudhary","book_store"); $sql="SELECT * FROM book"; $result=@mysqli_query($con,$sql); $row_cnt = mysqli_num_rows($result); //printf("<br><h5>About --> %d book\n</h3>", $row_cnt); while($row1=@mysqli_fetch_array($result,MYSQLI_ASSOC)) { $img=$row1['path'];

$tit=$row1['title'];

?>

<div class="new_prod_box">

<?php echo $tit ?> <div class="new_prod_bg"> <a href="details.php"><img src="<?php echo $img ?>" width="80px" height="100px" alt="" title="" class="thumb" border="0" /></a>

</div>

</div>

<?php

?>

<!-- <div class="new_prod_box">

<a href="details.php" title="Search for this book">product name</a> <div class="new_prod_bg"> <a href="details.php" title="Search for this book"><img src="images/thumb1.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div> -->

</div>

<div class="clear"></div> </div><!--end of left content-->

<div class="right_content"> <div class="languages_box"> <span class="red">Languages:</span> <a href="#"><img src="images/gb.gif" alt="" title="" border="0" /></a> <a href="#"><img src="images/fr.gif" alt="" title="" border="0" /></a> <a href="#"><img src="images/de.gif" alt="" title="" border="0" /></a> </div> <div class="currency">

<?php if(isset($_SESSION['Email'])) { echo "Welcome::".$_SESSION['Email']; } ?></div>

<div class="cart"> <div class="title"><span class="title_icon"><img src="images/cart.gif" alt="" title="" /></span>My cart</div> <div class="home_cart_content"> <?php if(isset($_SESSION['total_item'])) echo $_SESSION['total_item']; else echo 0; ?> x items | <span class="red">TOTAL: <?php if(isset($_SESSION['tatal_amount'])) echo $_SESSION['tatal_amount']; else echo 0;

?>$</span> </div> <a href="cart.php" class="view_cart">view cart</a>

</div>

<div class="title"><span class="title_icon"><img src="images/bullet3.gif" alt="" title="" /></span>About Our Store</div> <div class="about"> <p> <img src="images/about.gif" alt="" title="" class="right" /> After graduating in 2003 we decided to put our minds &amp; hands to work. The result of which, was our very own little store. Focusing on text as a theme, the store features many lovely things designed and built by us. </p>

</div>

<div class="right_box">

<div class="title"><span class="title_icon"><img src="images/bullet4.gif" alt="" title="" /></span>Promotions</div> <div class="new_prod_box"> <a href="details.php" title="Search for this book">Digital Photography</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span> <a href="details.php" title="Search for this book"><img src="images/thumb1.gif" alt="" title="" class="thumb" border="0" /></a> </div>

</div>

<div class="new_prod_box"> <a href="details.php" title="Search for this book">Fixing Global Finance</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span> <a href="details.php" title="Search for this book"><img src="images/thumb2.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

<div class="new_prod_box"> <a href="details.php" title="Search for this book">Simple Food</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span> <a href="details.php" title="Search for this book"><img src="images/thumb3.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

</div>

<div class="right_box">

<div class="title"><span class="title_icon"><img src="images/bullet5.gif" alt="" title="" /></span>Categories</div>

<ul class="list"> <li><a href="accer.php">accesories</a></li> <li><a href="bookgift.php">books gifts</a></li> <li><a href="specialbook.php">specials</a></li> <li><a href="holidaygift.php">hollidays gifts</a></li> <li><a href="accer.php">accesories</a></li> <li><a href="bookgift.php">books gifts</a></li> <li><a href="specialbook.php">specials</a></li> <li><a href="holidaygift.php">hollidays gifts</a></li> </ul>

<div class="title"><span class="title_icon"><img src="images/bullet6.gif" alt="" title="" /></span>Partners</div>

<ul class="list"> <li><a href="http://flipkart.com" target="_blank">Flipkart</a></li> <li><a href="http://ebay.com" target="_blank">Ebay</a></li> <li><a href="http://amazon.com" target="_blank">Amazon</a></li> <li><a href="http://wikipedia.com" target="_blank">Wikipedia</a></li> </ul>

</div>

</div><!--end of right content-->

<div class="clear"></div> </div><!--end of center content-->

<?php require_once("footer.php") ?>

</div>

</div>

</body> </html> CAREGORY PAGE

<?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows1252" /> <title>Book Store</title> <link rel="stylesheet" type="text/css" href="style.css" />

<script type="text/javascript"> function validateForm() {

var x=document.getElementById('email').value; var y=document.getElementById('pwd').value; var y1=document.getElementById('cpwd').value; var y2=document.getElementById('nm').value; var y3=document.getElementById('phno').value; var y4=document.getElementById('address1').value; var y5=document.getElementById('check').value;

if (x=="") { alert("Not a valid e-mail address"); //header("location: register.php"); return false; } else if(y1!=y) { alert("Password Mismatched"); //header("location: register.php"); return false; } else if(y2=="") { alert("Enter the name"); //header("location: register.php"); return false; } else if(y3=="") { alert("Enter the phone number"); //header("location: register.php"); return false; } else if(y4=="") {

alert("Enter the address"); //header("location: register.php"); return false; }

} </script> </head> <body> <div id="wrap">

<div class="header"> <div class="logo"><a href="index1.php"><img src="images/logo.gif" alt="" title="" border="0" /></a></div> <div id="menu"> <ul> <li class="selected"><a href="index1.php">Home</a></li> <li><a href="about.php">About Us</a></li> <li><a href="category.php">Books</a></li> <li><a href="accer.php">New Releases</a></li> <li><a href="details.php">Search Books</a></li> <li><a href="myaccount.php">Sign in</a></li>

<?php if(isset($_SESSION['Email'])) echo "<li><a href='user_signout.php'></a></li>";

else echo "<li><a href='myaccount.php'>Sign up</a></li>"; ?>

<!-- <li><a href="register.php">SignUp</a></li>-->

</ul> </div>

</div>

<div class="center_content"> <div class="left_content"> <div class="title"><span class="title_icon"><img src="images/bullet1.gif" alt="" title="" /></span>Sign up</div>

<div class="feat_prod_box_details"> <p class="details"> Please Enter the following details to sign up on our website. Please note that you can purchase books only if you have signed up on this website and you have valid user id for this website. <br />If you have already signed up, then <a href="myaccount.php">Sign in !</a> </p>

<div class="contact_form"> <div class="form_subtitle">Create new account</div> <form name="register" onsubmit="return validateForm(this)" method="post" action="register_process.php" > <div class="form_row"> <label class="contact"><strong>Email Id :</strong></label> <input type="text" name="email_id" id="email" class="contact_input" /> </div>

<div class="form_row"> <label class="contact"><strong>Password :</strong></label> <input type="password" name="password" id="pwd" class="contact_input" /> </div>

<div class="form_row"> <label class="contact"><strong>Confirm :</strong></label> <input type="password" id="cpwd" class="contact_input" /> </div>

<div class="form_row"> <label class="contact"><strong>Name :</strong></label> <input type="text" name="name" id="nm" class="contact_input" />

</div>

<div class="form_row"> <label class="contact"><strong>Phone No :</strong></label> <input type="text" name="ph_no" id="phno" class="contact_input" /> </div>

<div class="form_row"> <label class="contact"><strong>Address :</strong></label> <input type="text" name="address" id="address1" class="contact_input" /> </div>

<div class="form_row"> <div class="terms"> <input type="checkbox" name="terms" id='check' /> I agree to the <a href="terms.php">terms &amp; conditions</a> </div> </div>

<div class="form_row"> <input type="submit" class="register" value="Sign up" /> </div> </form> </div>

</div>

<div class="clear"></div> </div><!--end of left content-->

<div class="right_content">

<div class="languages_box"> <span class="red">Languages:</span> <a href="#"><img src="images/gb.gif" alt="" title="" border="0" /></a> <a href="#"><img src="images/fr.gif" alt="" title="" border="0" /></a> <a href="#"><img src="images/de.gif" alt="" title="" border="0" /></a> </div> <div class="currency"> <?php if(isset($_SESSION['Email'])) { echo "Welcome::".$_SESSION['Email']; }

?> </div>

<div class="cart"> <div class="title"><span class="title_icon"><img src="images/cart.gif" alt="" title="" /></span>My cart</div> <div class="home_cart_content"> <?php if(isset($_SESSION['total_item'])) echo $_SESSION['total_item']; else echo 0; ?> x items | <span class="red">TOTAL: <?php if(isset($_SESSION['tatal_amount'])) echo $_SESSION['tatal_amount']; else echo 0; ?>$</span> </div> <a href="cart.php" class="view_cart">view cart</a>

</div>

<div class="title"><span class="title_icon"><img src="images/bullet3.gif" alt="" title="" /></span>About Our Store</div> <div class="about"> <p>

<img src="images/about.gif" alt="" title="" class="right" /> After graduating in 2003 we decided to put our minds &amp; hands to work. The result of which, was our very own little store. Focusing on text as a theme, the store features many lovely things designed and built by us. </p>

</div>

<div class="right_box">

<div class="title"><span class="title_icon"><img src="images/bullet4.gif" alt="" title="" /></span>Promotions</div> <div class="new_prod_box"> <a href="details.php" title="Search for this book">Digital Photography</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span> <a href="details.php" title="Search for this book"><img src="images/thumb1.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

<div class="new_prod_box"> <a href="details.php" title="Search for this book">Fixing Global Finance</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span>

<a href="details.php" title="Search for this book"><img src="images/thumb2.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

<div class="new_prod_box"> <a href="details.php" title="Search for this book">Simple Food</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span> <a href="details.php" title="Search for this book"><img src="images/thumb3.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

</div>

<div class="right_box">

<div class="title"><span class="title_icon"><img src="images/bullet5.gif" alt="" title="" /></span>Categories</div>

<ul class="list"> <li><a href="accer.php">accesories</a></li> <li><a href="bookgift.php">books gifts</a></li> <li><a href="specialbook.php">specials</a></li> <li><a href="holidaygift.php">hollidays gifts</a></li>

<li><a href="accer.php">accesories</a></li> <li><a href="bookgift.php">books gifts</a></li> <li><a href="specialbook.php">specials</a></li> <li><a href="holidaygift.php">hollidays gifts</a></li> </ul>

<div class="title"><span class="title_icon"><img src="images/bullet6.gif" alt="" title="" /></span>Partners</div>

<ul class="list"> <li><a href="http://flipkart.com" target="_blank">Flipkart</a></li> <li><a href="http://ebay.com" target="_blank">Ebay</a></li> <li><a href="http://amazon.com" target="_blank">Amazon</a></li> <li><a href="http://wikipedia.com" target="_blank">Wikipedia</a></li> </ul>

</div>

</div><!--end of right content-->

<div class="clear"></div>

</div><!--end of center content-->

<?php require_once("footer.php") ?>

</div>

</body> </html> REGISTRATION PAGE

<?php session_start(); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows1252" /> <title>Book Store</title> <link rel="stylesheet" type="text/css" href="style.css" />

</head> <body> <div id="wrap">

<div class="header"> <div class="logo"><a href="index1.php"><img src="images/logo.gif" alt="" title="" border="0" /></a></div> <div id="menu"> <ul> <li class="selected"><a href="index1.php">Home</a></li> <li><a href="about.php">About Us</a></li> <li><a href="category.php">Books</a></li> <li><a href="accer.php">New Releases</a></li> <li><a href="details.php">Search Books</a></li>

<li><a href="myaccount.php">Sign in</a></li>

<?php if(isset($_SESSION['Email'])) echo "<li><a href='user_signout.php'></a></li>"; else echo "<li><a href='myaccount.php'>Sign up</a></li>"; ?>

<!-- <li><a href="register.php">SignUp</a></li>-->

</ul> </div>

</div>

<div class="center_content"> <div class="left_content">

<div class="title"><span class="title_icon"><img src="images/bullet1.gif" alt="" title="" /></span>Featured books</div>

<div class="feat_prod_box">

<div class="prod_img"><a href="details.html"><img src="images/prod1.gif" alt="" title="" border="0" /></a></div>

<div class="prod_det_box"> <div class="box_top"></div> <div class="box_center"> <div class="prod_title">Product name</div> <p class="details">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.</p> <a href="details.html" class="more">- more details -</a> <div class="clear"></div> </div>

<div class="box_bottom"></div> </div> <div class="clear"></div> </div>

<div class="feat_prod_box">

<div class="prod_img"><a href="details.html"><img src="images/prod2.gif" alt="" title="" border="0" /></a></div>

<div class="prod_det_box"> <div class="box_top"></div> <div class="box_center">

<div class="prod_title">Product name</div> <p class="details">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.</p> <a href="details.html" class="more">- more details -</a> <div class="clear"></div> </div>

<div class="box_bottom"></div> </div> <div class="clear"></div> </div>

<div class="title"><span class="title_icon"><img src="images/bullet2.gif" alt="" title="" /></span>New books</div>

<div class="new_products">

<div class="new_prod_box"> <a href="details.html">product name</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/new_icon.gif" alt="" title="" /></span> <a href="details.html"><img src="images/thumb1.gif" alt="" title="" class="thumb" border="0" /></a> </div>

</div>

<div class="new_prod_box"> <a href="details.html">product name</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/new_icon.gif" alt="" title="" /></span> <a href="details.html"><img src="images/thumb2.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

<div class="new_prod_box"> <a href="details.html">product name</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/new_icon.gif" alt="" title="" /></span> <a href="details.html"><img src="images/thumb3.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

</div>

<div class="clear"></div> </div><!--end of left content-->

<div class="right_content"> <div class="languages_box"> <?php echo "Welcome :: ".$_SESSION['Email']; ?> </div> <div class="currency"></div>

<div class="cart"> <div class="title"><span class="title_icon"><img src="images/cart.gif" alt="" title="" /></span>My cart</div> <div class="home_cart_content"> 3 x items | <span class="red">TOTAL: 100$</span> </div> <a href="cart.php" class="view_cart">view cart</a>

</div>

<div class="title"><span class="title_icon"><img src="images/bullet3.gif" alt="" title="" /></span>About Our Store</div> <div class="about"> <p> <img src="images/about.gif" alt="" title="" class="right" />

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud. </p>

</div>

<div class="right_box">

<div class="title"><span class="title_icon"><img src="images/bullet4.gif" alt="" title="" /></span>Promotions</div> <div class="new_prod_box"> <a href="details.html">product name</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span> <a href="details.html"><img src="images/thumb1.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

<div class="new_prod_box"> <a href="details.html">product name</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span> <a href="details.html"><img src="images/thumb2.gif" alt="" title="" class="thumb" border="0" /></a> </div>

</div>

<div class="new_prod_box"> <a href="details.html">product name</a> <div class="new_prod_bg"> <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span> <a href="details.html"><img src="images/thumb3.gif" alt="" title="" class="thumb" border="0" /></a> </div> </div>

</div>

<div class="right_box">

<div class="title"><span class="title_icon"><img src="images/bullet5.gif" alt="" title="" /></span>Categories</div>

<ul class="list"> <li><a href="#">accesories</a></li> <li><a href="#">books gifts</a></li> <li><a href="#">specials</a></li> <li><a href="#">hollidays gifts</a></li> <li><a href="#">accesories</a></li> <li><a href="#">books gifts</a></li> <li><a href="#">specials</a></li>

<li><a href="#">hollidays gifts</a></li> <li><a href="#">accesories</a></li> <li><a href="#">books gifts</a></li> <li><a href="#">specials</a></li> </ul>

<div class="title"><span class="title_icon"><img src="images/bullet6.gif" alt="" title="" /></span>Partners</div>

<ul class="list"> <li><a href="#">accesories</a></li> <li><a href="#">books gifts</a></li> <li><a href="#">specials</a></li> <li><a href="#">hollidays gifts</a></li> <li><a href="#">accesories</a></li> <li><a href="#">books gifts</a></li> <li><a href="#">specials</a></li> <li><a href="#">hollidays gifts</a></li> <li><a href="#">accesories</a></li> </ul>

</div>

</div><!--end of right content-->

<div class="clear"></div> </div><!--end of center content-->

<?php require_once("footer.php") ?>

</div>

</body> </html>

HOME PAGE

REFERENCES
Wikipedia.org

Scribd.com www.PHP.net Embedding PHP in HTML". O'Reilly.

You might also like