Documente Academic
Documente Profesional
Documente Cultură
[HOP-N-SHOP.COM- PROJECT
DOCUMENTATION]
Shopper’s Heaven On-Line
Project Documentation
Developed by:
Suplab Debnath
Developed Under:-
EJOBINDIA PVT LTD.
Hop-n-Shop.com- Project Documentation
ACKNOWLEDGEMENT
We would also like to thank Narula Institute of Technology and our faculty
members without whom this project would have been a distant reality. We also
extend our heartfelt thanks to our teammates who worked for the successful
completion of this project.
Suplab Debnath
______________________
______________________
Page 1
Hop-n-Shop.com- Project Documentation
EJOBINDIA
KOLKATA, WEST BENGAL, INDIA.
BATCH- IT/PHP/JULY-10
This project is a partial fulfillment requirement for the PHP SUMMER TRAINING
course in EJOBINDIA.
____________________________
Page 2
Hop-n-Shop.com- Project Documentation
PROJECT OBJECTIVE
Buyers can search items according to their requirements and can contact
Sellers for getting the item.
Page 3
Hop-n-Shop.com- Project Documentation
REQUIREMENT SPECIFICATIONS
The developed website utilizes different files and their information from
the database resides with the site. The detailed description of the registered
buyers and sellers is recorded in the database. The system is completely web-
based, linking every available webpage with the back-end database and is
running in a standard web browser.
Functional requirements are those which are provided to the user of the
site, i.e. what processes can be operated by the buyer, seller and the viewer of
the website.
I. The website should contain two separate form – Buyers form & Sellers
form. Buyers form should contain buyer name, address, state, city, zip code,
mobile no, email id, website and preferred category information. Seller
form also contains all the above information as well as item description
field and the business organization name.
II. Buyer /Seller can search the website according to category, location (state
& city).
III. Administrator can login into the admin section by secret password.
Page 4
Hop-n-Shop.com- Project Documentation
Non-functional requirements are not functional in nature, i.e. these are the
constraints of the system, within which it should function.
Page 5
Hop-n-Shop.com- Project Documentation
IMPLEMENTATION TECHNOLOGY
Page 6
Hop-n-Shop.com- Project Documentation
Photoshop CS5
It is used to create website headers, body and other image related
sections.
a. Picasa 3.6
This software is used as an image viewer and editor and can be used to
take screen shots.
Page 7
Hop-n-Shop.com- Project Documentation
BuyerName
me SellerName
BuyerAddress
BuyerID SellerID Item
BuyerEmail SellerEmail description
Password
Username
Chooses Manages
Administrator
AffiliateID
Category
CategoryTitle Description
CategoryID
Page 8
Hop-n-Shop.com- Project Documentation
Online Login
Search query Shopping ADMIN
Affiliates
System
Logout
Affiliation
Search
Search Results
Result
Level 1 diagram:
Affiliation Manage
Affiliation Admin updates &
System Database deletes
0.3
0.1
DATABASE
Searching ADMIN
Admin login
Search query System validation
0.2 0.4
Page 9
Hop-n-Shop.com- Project Documentation
SAMPLE CODE
Code of Index.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<head>
</head>
<body>
<div id="page-background-glare">
<div id="page-background-glare-image"></div>
</div>
<div id="main">
<div class="Sheet">
<div class="Sheet-tl"></div>
<div class="Sheet-tr"></div>
Page 10
Hop-n-Shop.com- Project Documentation
<div class="Sheet-bl"></div>
<div class="Sheet-br"></div>
<div class="Sheet-tc"></div>
<div class="Sheet-bc"></div>
<div class="Sheet-cl"></div>
<div class="Sheet-cr"></div>
<div class="Sheet-cc"></div>
<div class="Sheet-body">
<div class="Header">
<div class="Header-png"></div>
<div class="Header-jpeg"></div>
<div class="Logo">
</div>
</div>
<?php include('nav.php');?>
<div class="contentLayout">
<div class="content">
<div class="Post">
<?php
//$a=$_REQUEST['pagenm'];
if($a){
$b=$a.".php";
include($b);
else{
include("home.php");
?>
</div>
</div>
<div class="sidebar1">
Page 11
Hop-n-Shop.com- Project Documentation
<div class="Block">
<div class="Block-tl"></div>
<div class="Block-tr"></div>
<div class="Block-bl"></div>
<div class="Block-br"></div>
<div class="Block-tc"></div>
<div class="Block-bc"></div>
<div class="Block-cl"></div>
<div class="Block-cr"></div>
<div class="Block-cc"></div>
<div class="Block-body">
<div class="BlockHeader">
<div class="l"></div>
<div class="r"></div>
<div class="header-tag-icon">
<div class="t">Highlights</div>
</div>
</div>
<div class="BlockContent">
<div class="BlockContent-body">
<div>
<?php include("admin/connect.php");
while($row_cat=mysql_fetch_array($sql))
{?>
<div class="sidelinks">
</div>
<?php } ?>
</div>
Page 12
Hop-n-Shop.com- Project Documentation
<div class="cleared"></div>
</div>
</div>
<div class="cleared"></div>
</div>
</div>
<div class="Block">
<div class="Block-tl"></div>
<div class="Block-tr"></div>
<div class="Block-bl"></div>
<div class="Block-br"></div>
<div class="Block-tc"></div>
<div class="Block-bc"></div>
<div class="Block-cl"></div>
<div class="Block-cr"></div>
<div class="Block-cc"></div>
<div class="Block-body">
<div class="BlockContent">
<div class="BlockContent-body">
<div>
<table width="100%">
<tr>
</tr>
</table>
</div>
Page 13
Hop-n-Shop.com- Project Documentation
<div class="cleared"></div>
</div>
</div>
<div class="cleared"></div>
</div>
</div>
</div>
</div>
<div class="Footer-inner">
<div class="Footer-text">
</div>
</div>
<div class="Footer-background"></div>
</div>
<div class="cleared"></div>
</div>
</div>
<div class="cleared"></div>
</div>
</body>
</html>
Page 14
Hop-n-Shop.com- Project Documentation
SCREENSHOTS
User Section
Page 15
Hop-n-Shop.com- Project Documentation
Page 16
Hop-n-Shop.com- Project Documentation
Page 17
Hop-n-Shop.com- Project Documentation
Page 18
Hop-n-Shop.com- Project Documentation
Page 19
Hop-n-Shop.com- Project Documentation
Page 20
Hop-n-Shop.com- Project Documentation
Admin Section
Page 21
Hop-n-Shop.com- Project Documentation
Page 22
Hop-n-Shop.com- Project Documentation
Page 23
Hop-n-Shop.com- Project Documentation
Page 24
Hop-n-Shop.com- Project Documentation
Page 25
Hop-n-Shop.com- Project Documentation
PAGE CONTENTS
User Section:
PHP Pages
ajax.php Contains php code for state and city loading in buyer and seller form.
index.php First page of the website containing header, header menu, side menu, footer
and a blank dashboard. Each time the page will be loaded, the dashboard
section only changes and other section remains intact.
reg_buyer.php Contains php code to insert information from buyerform.php into database.
reg_seller.php Contains php code to insert information from sellerform.php into database.
Page 26
Hop-n-Shop.com- Project Documentation
CSS Pages
Javascript Pages
sub.js Contains AJAX code for state and city loading in buyer and seller
form.
Page 27
Hop-n-Shop.com- Project Documentation
PHP Pages
ajax.php Contains php code for state and city loading in buyer and seller form.
dashboard.php Main page of the admin containing header, side menu, footer, and a
blank dashboard. Each time the page will be loaded, the dashboard
section only changes and other section remains intact.
Page 28
Hop-n-Shop.com- Project Documentation
edit_pass.php Shadow page to check old password and insert new password.
CSS Pages
Javascript Pages
sub.js Contains AJAX code for state and city loading in buyer and seller form.
Page 29
Hop-n-Shop.com- Project Documentation
DATABASE
Database Structure:-
Database Name: dbhopnshop.
No. of Tables: 6.
CityName varchar(20) No
StateID varchar(100) No
Username varchar(200) No
Password varchar(100) No
SessionID varchar(300) No
Page 30
Hop-n-Shop.com- Project Documentation
StateName varchar(100) No
BuyerName varchar(100) No
BuyerAddress varchar(200) No
BuyerState varchar(40) No
BuyerCity varchar(20) No
BuyerZip varchar(6) No
BuyerCountry varchar(40) No
BuyerPhone varchar(10) No
BuyerEmail varchar(100) No
BuyerWeb varchar(60) No
BuyerCategory varchar(200) No
Page 31
Hop-n-Shop.com- Project Documentation
CatBanner text No
CatTitle varchar(50) No
CatLink text No
CatDesc text No
CatPageTitle varchar(50) No
SellerBusiness varchar(150) No
seller_name varchar(100) No
address varchar(200) No
state varchar(40) No
city varchar(20) No
zipcode varchar(6) No
country varchar(40) No
mobileno varchar(10) No
email varchar(100) No
website varchar(60) No
category varchar(200) No
description varchar(500) No
Page 32
Hop-n-Shop.com- Project Documentation
FUTURE IMPROVEMENTS
Although the system has been developed taking care of every common aspect
related to a buyer-seller portal website and its daily activities as real life as possible,
there is still scope of further improvement.
Page 33
Hop-n-Shop.com- Project Documentation
CONCLUSION
At the end of venture of one month during our project development we learnt a lot
in the related field of web development using PHP and MySQL.
During this term we learned how things work in real world. We are acquainted with
the lot of technicalities that are implemented in real life scenario. Thanks to our
project guide for his valuable guidance and suggestions. We will never forget
EJOBINDIA PVT LTD, SECTOR-II, SALTLAKE, the institute which give us a space to
develop our knowledge.
The development of the project was a real fun and we enjoying every bit of it while
gathering knowledge of real time website development.
Page 34
Hop-n-Shop.com- Project Documentation
BIBLIOGRAPHY
2. HTML—the definitive guide by Chuck Musciano & Bill Kennedy; ISBN 1-56592-
492-4.
4. Professional CSS Cascading Style Sheets for Web Design by Christopher Schmitt,
Mark Trammel, Ethan Marcotte (Wiley Publishing Inc.).
5. http://www.php.net
Page 35