Beruflich Dokumente
Kultur Dokumente
This program is a menu driven program. When we click the main menu the different forms
will be enabled.
The program consists of the following modules:
Source listing
This module is suppose to identify the products by their discription.
Add products
This module is suppose to take the inputs from an input device.
Add customers
This module is capable of adding customers in the specified formats.
Update and delete products
This module will update and delete products.
Update and delete customers
This module will be able to update and delete customers
Searching
In this module the admin or emplyee can search the customer or products from the database
based on criterias
Transactions
This module will take up transactions like selling products, buying products from supplier
updating cash and updating the bills.Appropriate actions will be taken.
Report Generation
This is a client program which will request for reports.
1
FUNCTIONAL COMPONENTS OF THE PROJECT :Administrator or Staff needs to register to the application and login in order to access the
software.
There are two types of users in the system
Administrator
Customer
As soon as the user logs in to the system the home page is displayed. The home page should
be a dashboard from where the user can go to any of the other functionality available in the
site
1) Contents of Home Page
Search textbox with a go Button to search for individual items
A list of all Categories available in the system. It will also show in brackets the items
up for sale in this category
Sell an Item link
2) Functional specification for Search
The search should be a case insensitive search for items which contain the search key word.
The search results should display all the items which matched the search criteria. It will
return only those items which are up for sale currently.
3) Sell an Item
When the user clicks on Sell an item link, then a page comes up which allows the user to do
the following: Provide a title for the item and a description of the Item.
There will be Upload Image Button which the user uses to upload an image of the
item. There will be an Upload text button by which the user can upload a word
document giving the description/specification of the item.
A text box to put in the minimum price
2
PROJECT REVIEW
The web site or web portal is developed to manage the boutique system named as
Boutique. Boutique is placed in Moga, Punjab (India). It provides the rich gallery of new
designs. A user can get the information of the latest designs of suits etc. especially for ladies.
With this portal, a user can book for the home delivery, in the domestic areas like Ludhiana
and Moga.
The Boutique is establishing in 2005 and is very popular in Moga and near areas in
Punjab. The head of the boutique is Miss. Ramandeep Kaur in this boutique five workers are
working with this boutique.
CHARACTERISTICS
1. Rich gallery of new designs is available for the customers.
2. A customer / user can check and verify his/ her measurement for stitching and can
contact for any modification.
3. Unauthorized users cannot access any option until he/she doesnt go through
registration process.
4. With map facility, boutique location can be easily found.
Database:
MYSQL
Server Script
PHP
Flash player
Shockwave, macromedia.
RAM
512 MB or above
HDD
80 GB or Above
Display
CRT,LCD or LED
AMD or Celeron
RAM
64MB or above
HDD
10 GB or Above
Display
CRT,LCD or LED
Web Browser
INTRODUCTION TO HTML
HTML (Hyper Text Markup Language) documents are written in plain text (ASCII)
with special markup codes embedded right in the text. This means HTML files contain
nothing but printable characters and HTML markup codes. This is unlike a Word file which
can contain special characters for formatting functions.
What distinguishes an HTML file from any other plain - text file is the presence of
markup codes. Markup codes are typed into a document and control the formatting and
layout of your finished document. The markup codes that are typed into a document are
enclosed within these angle brackets: "< >". The angle brackets and the markup codes
together constitute a tag. When your are talking about an HTML document you refer to it as a
"source" document. Here is an example of the "source" of a simple HTML document:
<HTML>
<HEAD>
<TITLE>Simple HTML document</TITLE>
</HEAD>
<BODY>
This is a very simple html document.
</BODY>
</HTML>
Every Web page that you see on the World Wide Web is an HTML document. The Web pages
you see don't look like the source displayed above. The reason for this is because the source
is viewed through a Web Browser.
BASIC TAGS USED
CREATING A SIMPLE HTML DOCUMENT
You will create your HTML document using the text editor Notepad. In addition,
make sure you still have two Internet Explorer windows open. The window displaying the
tutorial should take up half of the screen and the experimental window should be resized to
6
take up only a half of the other part of the screen (that is one quarter of the whole screen).
The tutorial is very easy to follow.
Find and open Notepad. Position the Notepad window in the remaining quarter of
open screen. You should now have three windows displayed on your screen. Before you start
you need to know what HTML tags are HTML Tags Required in all HTML Documents.
There are some basic HTML tags that must appear in all HTML documents. They are:
The <HTML> and </HTML> Tags
Every HTML document must begin with the <HTML> tag. This tag is declaring the
document an HTML document. The <HTML> tag must be paired with its closing tag </HTML>, which will be the last tag in the document.
The <HEAD> and </HEAD> Tags.
An HTML document is divided into two parts, the head and body. Web browsers need to
distinguish the different parts of the document and these tags will inform the browser.
Generally, the <HEAD> and its closing tag </HEAD> will contain the title of your HTML
document.
The <BODY> and </BODY> Tags.
The <BODY> tag and it's closing tag </BODY> will contain the majority of your HTML
document.
The <TITLE> and </TITLE> Tags.
The Web browser always displays a title for each document it encounters. The title displayed
is taken from the content of the <TITLE> tag and its closing tag </TITLE>. The <TITLE>
and </TITLE>. always appears within the <HEAD> and </HEAD> tags.
<HTML>
<HEAD>
7
PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL,
Generic ODBC, etc.)
Released Date
Size
PHP 5.3.18
10.81 MB
PHP 5.4.8
13.33 MB
PHP 5.3.17
10.8 MB
PHP 5.4.7
10.53 MB
PHP 5.4.6
13.32 MB
PHP 5.4.3
10.63 MB
PHP 5.4.2
10.92 MB
PHP 5.4.1
10.63 MB
PHP 5.4.0
10.91 MB
PHP 5.3.10
14.68 MB
PHP 5.3.9
11.16 MB
PHP 5.3.6
10.44 MB
PHP 5.3.5
10.31 MB
PHP 5.2.17
8.67 MB
Version Name
Released Date
Size
PHP 5.3.3
10.17 MB
PHP 5.2.14
EasyPHP 5.3.9
EasyPHP 5.3.9 is a complete software package allowing you to use all the power and the
flexibility that dynamic languages like PHP offer, as well as the efficient use of databases.
Package includes an Apache server, a MySQL database, a full PHP execution, as well as easy
development tools for your web site or your applications
2.6 APACHE
The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP
server for modern operating systems including UNIX and Windows NT. The goal of this
10
project is to provide a secure, efficient and extensible server that provides HTTP services in
sync with the current HTTP standards.
The Apache HTTP Server Project is a collaborative software development effort aimed at
creating a robust, commercial-grade, featureful, and freely-available source code
implementation of an HTTP (Web) server. The project is jointly managed by a group of
volunteers located around the world, using the Internet and the Web to communicate, plan,
and develop the server and its related documentation. This project is part of the Apache
Software Foundation. In addition, hundreds of users have contributed ideas, code, and
documentation to the project. This file is intended to briefly describe the history of the
Apache HTTP Server and recognize the many contributors.
CSS
CSS Syntax
A CSS rule has two main parts: a selector, and one or more declarations:
11
MySQL is released under an open-source license. So you have nothing to pay to use
it.
MySQL is a very powerful program in its own right. It handles a large subset of the
functionality of the most expensive and powerful database packages.
MySQL works on many operating systems and with many languages including PHP,
PERL, C, C++, JAVA etc.
12
MySQL works very quickly and works well even with large data sets.
MySQL is very friendly to PHP, the most appreciated language for web development.
PROJECT WORK
SOFTWARE DEVELOPMENT METHODOLOGY
A software life cycle is the series of identifiable stages that a software product undergoes
during its lifetime .A software lifecycle model is a descriptive and diagrammatic
representation of the software life cycle .A life cycle model represents all the activities
required to make a software product transit through its lifecycle phases .It also captures the
order in which these activities are to be taken .
13
2.records table
14
E.R DIAGRAMS:
password
DOB
Username
Email
Secret code
Code
Username/passwo
rd
15
Cname
City
Length
ghera
Muri
Customer
Information
Shoulder
Chak
Bealt
Gala
16
Hip
CODING
Login page:
Coding:
<!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=iso-8859-1" />
<title>Untitled Document</title>
</head>
<frameset rows="30%,70%,20%">
<frame src="banner.html" scrolling="no" bordercolor="#00FF66" >
</frame>
<frameset cols="20%,*,25%" >
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("tailor", $con);
//$res=mysql_query($sql,$con);
//print_r(mysql_fetch_row($res));
$res=mysql_query("select * from register where username='$_POST[usr]'and
password='$_POST[psd]'");
if(!$res)
{
echo"not executed query";
}
if(mysql_num_rows($res)<1)
{
echo "wrong username or password";
}
while($row=mysql_fetch_array($res))
{
if($row['username']==$_POST["usr"] && $row['password']==$_POST["psd"] &&
$row['username']=="admin")
{
echo "<a href='frame.html' target='as'>Admin Panel</a><br><br>";
echo "<a href='sublogin.html' >Back</a>";
}
if($row['username']==$_POST["usr"] && $row['password']==$_POST["psd"] &&
$row['username']!="admin")
{
18
19
<tr><td>Ghera</td>
<td><input type="text" name="t2"></td></tr>
<tr><td>chak</td>
<td><input type="text" name="t3"></td></tr>
<tr><td>Hip</td>
<td><input type="text" name="t4"></td></tr>
<tr><td>shouldar</td>
<td><input type="text" name="t5"></td></tr>
<tr><td>Gala</td>
21
22
Delete Record:
Coding:
<html>
<body background="gd.jpg">
</html>
<?php
if (!isset($_POST['s1']))
{
//If not isset -> set with dumy value
$_POST['s1'] = "undefine";
}
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("tailor", $con);
$sql="select * from records";
$res=mysql_query($sql);
echo "<form method=post action=del.php>";
echo "<select name=s1>";
while($row=mysql_fetch_array($res))
{
echo "<option value=$row[cname]>$row[cname]</option>";
}
echo "</select>";
23
24
View record:
Coding:
<body background="gd.jpg">
<?php
if (!isset($_POST['s1']))
{
//If not isset -> set with dumy value
$_POST['s1'] = "undefine";
}
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("tailor", $con);
$sql="select * from records";
$res=mysql_query($sql);
echo "<form method=post action=view.php>";
echo "<select name=s1>";
echo"<br><br><br>";
while($row=mysql_fetch_array($res))
{
echo "<option value=$row[cname]>$row[cname]</option>";
}
echo"<table bgcolor='red' border=3 b
><tr><th>cname</th><th>city</th><th>length</th><th>ghera</th><th>chak</th><th>hip</
th><th>shouldar</th><th>gala</th><th>bealt</th><th>muri</th></tr>";
25
echo "</select>";
echo "<br><br><input type=submit value=select><br><br><br>";
if($_POST["s1"])
{
$sql="select * from records where cname='$_POST[s1]'";
$res=mysql_query($sql);
while($row=mysql_fetch_array($res))
{
echo"<tr><td>".$row['cname']."</td><td>".$row['city']."</td><td>".
$row['length']."</td><td>".$row['ghera']."</td><td>".$row['chak']."</td><td>".
$row['hip']."</td><td>".$row['shouldar']."</td><td>".$row['gala']."</td><td>".
$row['bealt']."</td><td>".$row['muri']."</td></tr>";
}
}
mysql_close($con);
?>
26
Update Record:
Coding:
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("tailor", $con);
$res1= mysql_query($sql);
if(!$res1)
{
echo"query not executed";
}
echo "record updated";
mysql_close($con);
?>
27
FORGET PASSWORD:
Coding:
mysql_select_db("tailor", $con);
$res=mysql_query("select * from register2 where uname='$_POST[usr]' and
code='$_POST[sc1]' ");
if(!$res)
{
echo"not executed query";
}
while($row=mysql_fetch_array($res))
{
29
REGISTRATION FORM:
CODING:
<html>
<body id="as1" background="gd.jpg">
<form method="post"action="reg.php">
<table border="0"align="center">
<tr><td>Username</td>
<td><input type="text" name="usr"></td><br></tr>
<tr><td>Password</td>
<td><input type="password" name="psd"></td><br></tr>
<tr><td>DateofBirth</td>
<td>
<select name="day" class="contTxt">
<option value="0">Day</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
30
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="month" class="contTxt">
<option value="0">Month</option>
<option value="1">Jan</option>
<option value="2">Feb</option>
<option value="3">Mar</option>
<option value="4">Apr</option>
31
<option value="5">May</option>
<option value="6">Jun</option>
<option value="7">Jul</option>
<option value="8">Aug</option>
<option value="9">Sep</option>
<option value="10">Oct</option>
<option value="11">Nov</option>
<option value="12">Dec</option>
</select>
<select name="year" class="borderB">
<option value="" selected>Year</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
</select>
</td><br></tr>
<tr><td>EmailId</td>
32
echo"<a href='login.html'>Back</a>";
exit();
}
mysql_select_db("tailor", $con);
mysql_query("INSERT INTO register1
VALUES ('$_POST[usr]', '$_POST[psd]','$_POST[year]-$_POST[month]$_POST[day]','$_POST[eml]','$_POST[sc]')");
echo "new record inserted<br><br>";
echo"<a href='login.html'>Back</a>";
mysql_close($con);
?>
34
CHANGE PASSWORD:
CODING:
<!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=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body id="dd" background="gd.jpg">
<center><br><br><br><br><br>
<form name="form1" method="post" action="cngpas.php">
User Name <input type="text" name="usr"><br><br>
Curent Pasword <input type="text" name="pas1"><br><br>
New Pasword <input type="text" name="pas2"><br><br>
<input type="submit" value="Register">
<br><br><a href="login.html">Back</a><br><br>
<a href="JavaScript:window.close()">Close</a>
</body>
</html>
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("tailor", $con);
35
36
37
38
39
40
41
42
43
44
45
FUTURE SCOPE
have fully equipped with all the relevant features. With the
passage of time, it can be enhanced with regular updations, search facility, Blogs, RSS,
tracking Facility to the customers.
46
REFERENCE
1. HTML BLACKBOOK by Steven Holzner
2. The Complete Reference SQL Second Edition
3. PHP 5 Wrox Press.
47