Courier Managment Software
Courier Managment Software
PROJECT ON
Courier Management System
For partial fulfillment of the requirement of award
Of
SUBMITTED TO : SUBMITTED BY :
Mr. AASHIS NEGI ARJUN TOMAR
ACKNOWLEDGEMENT
First and foremost we would like to express our gratitude to our guide
MR.AashisNegi& other faculty member for giving us wonderful
opportunity to work on the project. We are very thankful to him who
was always ready to lend their helping hand to us. This project has
giving us fair exposure to some of the very interesting features of
“Courier Management System” and “PHP” along beyond doubt it will
help us in the short and long run. We are very grateful to him
introducing me to some of very exciting features of “Courier
Management System”.
THAKING YOU………
DECLARATION
I hereby declare that this project report entitled
“Courier Management System” submitting for partially
fulfillment of the requirement for the MCA VI
SEM.This report is only for educational purpose and
not for any other purpose.
“Courier Management System”
INDEX
Sr no. Topics Page no.
1. Introduction
2 Objective
3 Requirement Analysis
4 Hardware & Software requirement
5 A Word about PHP
6 SDLC
7 System analysis
8 Feasibility study
9 System design
10 E – R diagram
12 Project layout
13 Database
14 Benefits
15 Coding
16 TESTING
17 SCREEN SHOT
18 FUTURISTIC SCOPE
19 BIBLIOGRAPHY
20 CONCLUSION
INTRODUCTION
Courier Management System
Project Features
Software Requirement
Installation Steps
Download Project
WAMP Server
XAMPP Server
MAMP Server
LAMP Server
Installation Steps:
P – planning :this deals with the idea at thinking and which are required for
project.
E – Engineering :Awell educated engineer can do this work in a better way to find
out better result. Hence the project is as engineer function.
C – Cooperation :To make the project successfully, it is necessary for its success
and completion of project.
T – Technique :It must as it gives a better shape. It is not possible to complete the
project without technique.
The project is a system that gives the systematic way of planning and working.
Or
It representing the temporary task, in a scientific manner carried out of
engineers to achieve a goal.
REQUIREMENT ANALYSIS
Commitment
Successful blogging requires a massive amount of sweat equity and dedication. Building a
successful blog requires more than just publishing a new post a few times a week. The most
successful blogs are updated frequently (often several times each day), and the bloggers behind
those blogs work relentlessly to promote their blogs and drive traffic to them.
Time
Building a successful blog requires a massive time investment. Growing a blog doesn't stop with
publishing post. Top bloggers spend a lot of time everyday promoting their blogs, researching
and reading to drive traffic to it.
A Desire to Network
Socializing is a critical component of developing a successful blog. Blogging by nature is a
social medium, and successful blogs become so primarily because of the strong sense of
community surrounding them. Top bloggers take time to respond to comments and interact with
their blogs' readers as well as network on social sites, forums and more all in an effort to further
promote their blogs.
Creativity
A successful blog is typically updated very frequently. That means successful blogs always
provide fresh, unique content to their readers. Writing that new content requires a great deal of
creativity to keep readers from feeling bored or from feeling like the blog does not bring them
any value.
Patience
Blogging success does not happen overnight. Be prepared to stay dedicated to promoting your
blog for the long haul. Eventually, your hard work should pay off with increased traffic and a
significant growth in popularity of your blog. The key is to not give up.
HARDWARE & SOFTWARE
REQUIREMENT
2 GB or more
RAM 4 GB or more recommended especially
for Microsoft Windows Vista, 7 and 8
Microsoft Windows XP
Supported Operating Systems Microsoft Windows Vista
Microsoft Windows 7 32/64 bit
What is PHP?
PHP (Hypertext Preprocessor) is a widely-used open source general-purpose
scripting language that is especially suited for web development and can be
embedded into HTML.
The best things in using PHP are that it is extremely simple for a newcomer, but
offers many advanced features for a professional programmer. Don't be afraid
reading the long list of PHP's features. You can jump in, in a short time, and start
writing simple scripts in a few hours.
With PHP you are not limited to output HTML. You can output images, PDF files,
and even flash movies. You can also output any text, such as XHTML and XML.
Why PHP?
PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.) PHP is
compatible with almost all servers used today (Apache, IIS, etc.) PHP supports a
wide range of databases. PHP is free. Download it from the official PHP
resource: www.php.net. PHP is easy to learn and runs efficiently on the server side
Install PHP
Planning:
The most important parts of software development, requirement gathering or
requirement analysis are usually done by the most skilled and experienced software
engineers in the organization. After the requirements are gathered from the client, a
scope document is created in which the scope of the project is determined and
documented.
Implementation:
The software engineers start writing the code according to the client's
requirements.
Testing:
This is the process of finding defects or bugs in the created software.
Documentation:
Every step in the project is documented for future reference and for the
improvement of the software in the development process. The design
documentation may include writing the application programming interface (API).
Maintaining:
Software maintenance is done for future reference. Software improvement and
new requirements (change requests) can take longer than the time needed to create
the initial development of the software.
Waterfall Model:
This model involves finishing the first phase completely before commencing the
next one. When each phase is completed successfully, it is reviewed to see if the
project is on track and whether it is feasible to continue.
V-Shaped Model:
This model focuses on execution of processes in a sequential manner, similar to
the waterfall model but with more importance placed on testing. Testing
procedures are written even before the commencement of writing code. A system
plan is generated before starting the development phase.
Incremental Model:
This life cycle model involves multiple development cycles. The cycles are
divided up into smaller iterations. These iterations can be easily managed and go
through a set of phases including requirements, design, implementation and testing.
A working version of the software is produced during the first iteration, so working
software is created early in the development process.
SYSTEM ANALYSIS
System analysis is the process of examining a business situation for the purpose of
developing a system solution to a problem or devising improvements to such a
situation. Before the development of any system can begin, a project proposal is
prepared by the users of the potential system and/or by systems analysts and
submitted to an appropriate managerial structure within the organization.
Keeping in view the problems and new requirements workout the pros and cons
including new areas of the system.
Functional hierarchy showing the function to be performed by the new system and
their relationship with each other.
Function network which are similar to function hierarchy but they highlight the
those functions which are common to more than one procedure.
FEASIBILITY STUDY
The feasibility study investigates the problem and the information needs of the
stakeholders. It seeks to determine the resources required to provide an information
systems solution, the cost and benefits of such a solution, and the feasibility of
such a solution. The analyst conducting the study gathers information using a
variety of methods, the most popular of which are:
Economic feasibility :
The economic viability of the proposed system. The proposed project's cost and
benefits are evaluated. Tangible costs include fixed and variable costs, while
tangible benefits include cost savings, increased revenue, and increased profit. A
project is approved only if it covers its cost in a given period of time. However, a
project may be approved only on its intangible benefits such as those relating to
government regulations, the image of the organization, or similar considerations.
Technical feasibility :
The possibility that the organization has or can procure the necessary resources.
This is demonstrated if the needed hardware and software are available in the
marketplace or can be developed by the time of implementation.
Operational feasibility:
The ability, desire, and willingness of the stakeholders to use, support, and operate
the proposed computer information system. The stakeholders include management,
employees, customers, and suppliers. The stakeholders are interested in systems
that are easy to operate, make few, if any, errors, produce the desired information,
and fall within the objectives of the organization.
SYSTEM DESIGN
What is systems design?
Systems design is simply the design of systems. It implies a systematic and
rigorous approach to design—an approach demanded by the scale and complexity
of many systems problems.
Entity
A data entity is anything real or abstract about which we want to store data. Entity
types fall into five classes: roles, events, locations, tangible things or concepts. E.g.
employee, payment, campus, book. Specific examples of an entity are
called instances. E.g. the employee John Jones, Mary Smith's payment, etc.
Relationship
A data relationship is a natural association that exists between one or more entities.
E.g. Employees process payments. .
Attribute
A data attribute is a characteristic common to all or most instances of a particular
entity. Synonyms include property, data element, field. E.g. Name, address, Employee
Number, pay rate are all attributes of the entity employee. An attribute or combination
of attributes that uniquely identifies one and only one instance of an entity is called
aprimary key or identifier. E.g. Employee Number is a primary key for Employee.
DATA FLOW DIAGRAM
A Data Flow Diagram (DFD) is a graphical representation of the "flow" of data
through an information system. A DFD is often used as a preliminary step to
create an overview of the system. DFDs can also be used for the visualization of
data processing (structured design).
A DFD shows what kind of information will be input to and output from the
system, where the data will come from and go to, and where the data will be
stored. It does not show information about the timing of process or information
about whether processes will operate in sequence or in parallel.
History
Data flow diagrams were proposed by Larry Constantine. The original developer
of structured design, based on Martin and Estrin's "Data Flow Graph" model of
computation. Starting in the 1970s, data flow diagrams (DFD) became a popular
way to visualize the major steps and data involved in software system processes.
DFDs were usually used to show data flows in a computer system, although they
could in theory be applied to business process modeling. DFD were useful to
document the major data flows or to explore a new high-level design in terms of
data flow.
Data flow diagram Symbols:
External entities: rectangular box
Data flow: arrow headed lines
Process/ function: bubble/ circle.
Data store: narrow opened rectangle.
PROJECT PLAN:
The Project Plan (sometimes called project initiation document or project scoping
report) is produced by the Project Manager following a brief Scoping Project
Study. It should establish:
A typical format is given below. As you may notice, the first five items (Part A)
focus on what the project is to achieve whilst the last four items (Part B) go into
more depth about how the project should be carried out.
Project Plan
Part A
1. Title of project,
2. Background to the Project
3. Terms of Reference & Key Objectives
4. Benefits & Costs Analysis
5. Risk Assessment
Part B
Project Plan
Part A
1. Title of project,
Together with the names of the Project Manager and Project Sponsor.
5. Risk Assessment
The main risks - implementation issues which may delay the project. The priority
items should be identified with suggestions as to how they could be averted or their
impact lessened.
One of the simplest and best ways of doing this is to create a ‘risk register’
identifying all the events that could cause problems for the project, and then
mapping these onto a Hi-Lo diagram.
Part B
6. Resources likely to be needed
The resources, money and peoples time, which the project manager will need to
carry out this project.
7. Costs
A good estimate of overall costs to be incurred and the required budget.
Also, if the project warrants project review meetings, when they should take place
and who should be involved.
9. Time Schedule
A time plan showing the key activities which need to take place and estimates of
when the activity needs to be carried out, with key milestone dates.
Best done with one of the planning techniques - Gantt Charts, Milestone Plans,
Stages Diagram, or even Critical Path Analysis if the project warrants it.
BENEFITS
20 years ago, internet didn’t exist. Today, there are over 150 million of them.
Still, I get a lot of puzzled looks when I tell people that having a blog is the single
most important thing a exam cause, or person can do to advance online. Even
though ‘examination’ has hit it big, most people don’t get what makes customer so
powerful, helpful, and beneficial.
To put an end to that, I’ve compile a list of the 20 biggest benefits of having a blog
below. If you’re among the uninitiated, prepare to be enlightened. If you’ve
already started a blog of your own then you can consider this an affirmation of why
you do what you — and a good place to direct people who still think that a blog is
just a pointless public diary.
CODING……
courier.php
<?php
session_start();
include("header.php");
include("dbconnection.php");
$results = mysql_query("SELECT * FROM accounts where customerid='98683'");
while($arrow = mysql_fetch_array($results))
{
$acno = $arrow[accno];
$arrow[customerid];
$status = $arrow[accstatus];
$primaryacc = $arrow[primaryacc];
$accopen = $arrow[accopendate];
$acctype = $arrow[accounttype];
$accbal = $arrow[accountbalance];
$unclearbalance = $arrow[unclearbalance];
$accruedinterest = $arrow[accuredinterest];
}
?>
<div id="templatemo_main"><span class="main_top"></span>
<div id="templatemo_content">
<h2> </h2>
<table width="560" border="1">
<tr>
<thcolspan="2" scope="col">ACCOUNT DETAIL - <?php echo
$_SESSION[customername] ?></th>
</tr>
<tr>
<td width="282" height="38">ACCOUNT NUMBER</td>
<td width="262"> <?php echo $acno ; ?></td>
</tr>
<tr>
<td height="36">ACCOUNT TYPE</td>
<td> <?php echo $acctype ; ?></td>
</tr>
<tr>
<td height="37">ACCOUNT STATUS</td>
<td> <?php echo $status ; ?></td>
</tr>
<tr>
<td height="38">PRIMARY ACCOUNT</td>
<td> <?php echo $primaryacc; ?></td>
</tr>
<tr>
<td height="34">ACCOUNT HOLDER</td>
<td> <?php echo $_SESSION[customername] ?></td>
</tr>
<tr>
<td height="34">ACCOUNT OPEN DATE</td>
<td> <?php echo $accopen ; ?></td>
</tr>
<tr>
<td height="39">ACCOUNT BALANCE</td>
<td> <?php echo $accbal ; ?></td>
</tr>
</table>
<div class="cleaner_h30"></div>
<div class="cleaner_h60"></div>
</div><!-- end of content -->
<div id="templatemo_sidebar">
<?php
include("myaccountssidebar.php");
?>
<div class="cleaner_h40"></div>
<h2> </h2>
</div>
<div class="cleaner"></div>
</div><!-- end of main -->
<div id="templatemo_main_bottom"></div><!-- end of main -->
<?php
include("footer.php");
?>
Home.php
<?php
include("header.php");
include("dbconnection.php");
?>
<script type="text/javascript">
function valid()
{
if(parseInt(document.form1.acc.value) <= 0 )
{
alert("numbers must be greater than 0");
return false;
}
if(isNaN(document.form1.acc.value))
{
alert("enter the numeric value for account number");
return false;
}
if(document.form1.acc.value=="")
{
alert("INVALID ACCOUNT NUMBER");
return false;
}
if(document.form1.accstatus.value=="")
{
alert("PLEASE SELECT ACCOUNT STATUS ");
return false;
}
if(document.form1.accopendate.value=="")
{
alert("INVALID ACCOUNT OPENDATE");
return false;
}
if(document.form1.balance.value=="")
{
alert("INVALID BALANCE");
return false;
}
if(document.form1.unclearbalance.value=="")
{
alert("INVALID UNCLEAR BALANCE");
return false;
}
if(document.form1.accuredinterest.value=="")
{
alert("INVALID ACCURED INTEREST");
return false;
}
}
</script>
<?php
$m=date("Y-m-d");
if(isset($_POST["button"]))
{
$sql="INSERT INTO accounts(
accno,accstatus,primaryacc,accopendate,accounttype,accountbalance,unclearbalance,accu
redinterest)
VALUES
('$_POST[acc]','$_POST[accstatus]','$_POST[primaryacc]','$_POST[accopendate]','$_POST[acc
type]','$_POST[balance]','$_POST[unclearbalance]','$_POST[accuredinterest]')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
if(mysql_affected_rows() == 1)
{
$accres= "1 NEW ACCOUNT ADDED SUCCESSFULLY ........";
}
}
?>
<form onsubmit="return valid()" id="form1" name="form1" method="post" action="">
<div id="templatemo_main"><span class="main_top"></span>
<div id="templatemo_content">
<p><?php
echo $accres;
?></p>
<p> </p>
<p> </p>
<table width="583" border="0">
<tr>
<th scope="row">ACCOUNT NUMBER</th>
<td><input type="text" name="acc" id="acc" /></td>
</tr>
<tr>
<th width="303" scope="row">ACCOUNT STATUS</th>
<td width="268"><select name="accstatus" id="accstatus">
<option value="">Select</option>
<option value="active">active</option>
<option value="inactive">inactive</option>
</select></td>
</tr>
<tr>
<th scope="row">PRIMARY ACCOUNT</th>
<td><select name="primaryacc" id="primaryacc">
<option value="YES">YES</option>
<option value="NO">NO</option>
</select></td>
</tr>
<tr>
<th scope="row">ACCOUNT OPENDATE
<label for="accopendate3"></label>
(YYYY-MM-DD)</th>
<td><input type="text" name="accopendate" id="accopendate" /></td>
</tr>
<tr>
<th scope="row">ACCOUNT TYPE</th>
<td><select name="acctype" id="acctype">
<option value="SAVING">SAVING</option>
<option value="CURRENT">CURRENT</option>
</select></td>
</tr>
<tr>
<th scope="row">BALANCE</th>
<td><input type="text" name="balance" id="balance" /></td>
</tr>
<tr>
<th scope="row">UNCLEAR BALANCE</th>
<td><input type="text" name="unclearbalance" id="unclearbalance" /></td>
</tr>
<tr>
<th scope="row">ACCUREDINTEREST</th>
<td><input type="text" name="accuredinterest" id="accuredinterest" /></td>
</tr>
<tr>
<thcolspan="2" scope="row"><input type="submit" name="button" id="button"
value="SUBMIT" /></th>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</form>
<p> </p>
<p> </p>
<p> </p>
</div><!-- end of content -->
<div id="templatemo_sidebar">
<?php
include("myaccountssidebar.php");
?>
<div class="cleaner_h40"></div>
<blockquote> </blockquote>
</div>
<div class="cleaner"></div>
</div><!-- end of main -->
<div id="templatemo_main_bottom"></div><!-- end of main -->
<?php
include("footer.php");
?>
Accountalert.php
<?php
session_start();
include("header.php");
include("dbconnection.php");
$dts = date("Y-m-d h:i:s");
mysql_query("UPDATE customers SET lastlogin='$dts' WHERE
customerid='$_SESSION[customerid]'");
$sqlq = mysql_query("select * from transaction where paymentstat='Pending'");
$mailreq = mysql_query("select * from mail");
?>
<div id="templatemo_main"><span class="main_top"></span>
<div id="templatemo_content">
<h2>Alerts and messages</h2>
<table width="548" border="0">
<tr>
<thcolspan="2" scope="col">Alerts</th>
</tr>
<tr>
<td width="293">Customer Name</td>
<td width="245"><?php echo $_SESSION[customername]; ?></td>
</tr>
<tr>
<td>Branch code</td>
<td> <?php echo $_SESSION[ifsccode];?></td>
</tr>
<tr>
<td>User logged on</td>
<td><?php echo $_SESSION[lastlogin]; ?></td>
</tr>
<tr>
<td>Pending payments</td>
<td><?php echo mysql_num_rows($sqlq); ?></td>
</tr>
<tr>
<td>Unread mails</td>
<td><?php echo mysql_num_rows($mailreq); ?></td>
</tr>
</table>
<p> </p>
<p> </p>
<div class="cleaner_h30"></div>
<div class="cleaner_h60"></div>
</div><!-- end of content -->
<div id="templatemo_sidebar">
<?php
include("myaccountssidebar.php");
?>
<div class="cleaner_h40"></div>
</div>
<div class="cleaner"></div>
</div><!-- end of main -->
<div id="templatemo_main_bottom"></div><!-- end of main -->
<?php
include("footer.php");
?>
Accounysummary.php
<?php
session_start();
include("header.php");
include("dbconnection.php");
$results = mysql_query("SELECT * FROM accounts WHERE
customerid='$_SESSION[customerid]'");
?>
<div id="templatemo_main"><span class="main_top"></span>
<div id="templatemo_content">
<h2 align="center">ACCOUNTS SUMMARY</h2>
<table width="616" border="1">
<tr>
<th scope="col">ACCOUNT TYPE</th>
<th scope="col">NAME</th>
<th scope="col">ACCOUNT NUMBER</th>
<th scope="col">BRANCH</th>
<th scope="col">CURRENCY</th>
<th scope="col">A/C BALANCE</th>
</tr>
<?php
while($arrow = mysql_fetch_array($results))
{
echo "<tr><td>$arrow[accounttype]</td>
<td>$_SESSION[customername]</td>
<td>$arrow[accno]</td>
<td>$_SESSION[ifsccode]</td>
<td>INR</td>
<td>$arrow[accountbalance]</td></tr>";
}
?>
</table><p> </p>
<p> </p>
<div class="cleaner_h30"></div>
<div class="cleaner_h60"></div>
</div><!-- end of content -->
<div id="templatemo_sidebar">
<?php
include("myaccountssidebar.php");
?>
<div class="cleaner_h40"></div>
<h2> </h2>
</div>
<div class="cleaner"></div>
</div><!-- end of main -->
<div id="templatemo_main_bottom"></div><!-- end of main -->
<?php
include("footer.php");
?>
Addbranch.php
<?php
include("header.php");
include("dbconnection.php");
?>
<script type="text/javascript">
function valid()
{
if(document.form1.ifsccode.value=="")
{
alert("Invalid ifsccode");
return false;
}
if(document.form1.branchname.value=="")
{
alert("Invalid branchname");
return false;
}
if(document.form1.city.value=="")
{
alert("Invalid city");
return false;
}
(document.form1.branchaddress.value=="")
{
alert("Invalid branchaddress");
return false;
}
(document.form1.country.value=="")
{
alert("Invalid country");
return false;
}
(document.form1.state.value=="")
{
alert("Invalid state");
return false;
}
}
functionisNumberKey(evt)
{
varcharCode = (evt.which) ? evt.which :event.keyCode
//alert(charCode);
if (charCode> 65 &&charCode< 91 )
{
return true;
}
else if (charCode> 96 &&charCode< 122 )
{
return true;
}
else
{
alert("should be alphabet");
return false;
}
}
</script>
<?php
$m=date("Y-m-d");
if(isset($_POST["addbranch"]))
{
$sql="INSERT INTO branch (ifsccode, branchname,city,branchaddress, state,country)
VALUES
('$_POST[ifsccode]','$_POST[branchname]','$_POST[city]','$_POST[branchaddress]','$_POST[
country]','$_POST[state]')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "1 record added";
}
?>
<div id="templatemo_main"><span class="main_top"></span>
<div id="templatemo_content">
<?php include("topmenu.php"); ?>
<p>
<label for="ifsccode"></label>
<form onsubmit="return valid()" id="form1" name="form1" method="post" action="">
<table width="739" border="0">
<tr>
<th height="36" scope="row">IFSC CODE </th>
<td><input type="text" name="ifsccode" id="ifsccode" /></td>
</tr>
<tr>
<th height="38" scope="row">BRANCH NAME</th>
<td><input type="text" name="branchname" id="branchname" onKeyPress="return
isNumberKey(event)"/></td>
</tr>
<tr>
<th height="32" scope="row"><label for="city">CITY</label></th>
<td><input type="text" name="city" id="city" onKeyPress="return
isNumberKey(event)"/></td>
</tr>
<tr>
<th height="97" scope="row"><label for="branchaddress2">BRANCH
ADDRESS</label></th>
<td><textarea name="branchaddress" id="branchaddress" cols="45" rows="5"></textarea></td>
</tr>
<tr>
<th height="39" scope="row"><label for="country2">COUNTRY</label></th>
<td><select name="country" id="country">
<option value="PAKISTAN">PAKISTAN</option>
<option value="ENGLAND">ENGLAND</option>
<option value="India">India</option>
</select></td>
</tr>
<tr>
<th height="37" scope="row"><label for="state2">STATE</label></th>
<td><select name="state" id="state">
<option value="MAHARASTRA">MAHARASTRA</option>
<option value="TAMILNAD">TAMILNAD</option>
<option value="Karnataka">Karnataka</option>
</select></td>
</tr>
<tr>
<th scope="row"> </th>
<td> </td>
</tr>
<tr>
<th scope="row"> </th>
<td><input type="submit" name="addbranch" id="addbranch" value="ADD BRANCH" /></td>
</tr>
</table>
</form>
<?php
include("footer.php");
?>
Addemployee.php
<?php
include("header.php");
include("dbconnection.php");
?>
<script language="javascript">
functionisNumberKey(evt)
{
</script>
<script type="text/javascript">
function valid()
{
if(isNaN(document.form1.contno2.value))
{
alert("ENTER THE NUMERIC VALUE FOR CONTACT NUMBER");
return false;
}
if(document.form1.contno2.value=="")
{
alert("INVALID CONTACT NUMBER");
return false;
}
if(document.form1.empname.value=="")
{
alert("INVALID EMPLOYEE NAME");
return false;
}
if(document.form1.lgid.value=="")
{
alert("INVALID LOGIN ID ");
return false;
}
if(document.form1.password.value=="")
{
alert("INVALID PASSWORD");
return false;
}
if(document.form1.cnpassword.value=="")
{
alert("INVALID CONFIRM PASSWORD");
return false;
}
if(document.form1.emid.value=="")
{
alert("INVALID E-MAIL ID");
return false;
}
}
</script>
<?php
$i=date("Y-m-d");
if(isset($_POST["button2"]))
{
$sql="INSERT INTO employees (employee_name, loginid, password,
emailid,contactno,createdat)
VALUES
('$_POST[empname]','$_POST[lgid]','$_POST[password]','$_POST[emid]','$_POST[contno]','$i
')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
if(mysql_affected_rows() == 1)
{
$succ = "EMPLOYEE RECORD ADDED SUCCESSFULLY...";
}
}
?>
<div id="templatemo_main"><span class="main_top"></span>
<div id="templatemo_content">
<p>
<?php include("topmenu.php"); ?>
</p>
<p> </p>
<p><strong><h2>ADD EMPLOYEE</h2></strong></p>
<p>
<?php
echo $succ;
?>
</p>
<blockquote>
<form onsubmit="return valid()"id="form1" name="form1" method="post" action="">
<table width="407" border="0">
<tr>
<th scope="col"><div align="left">EMPLOYEE NAME </div></th>
<th scope="col"><label for="empname"></label>
<div align="left">
<input type="text" name="empname" onKeyPress="return isNumberKey(event)"id="empname"
>
</div></th>
</tr>
<tr>
<th scope="row"><div align="left">LOGIN ID </div></th>
<td><label for="lgid"></label>
<input type="text" name="lgid" id="lgid" ></td>
</tr>
<tr>
<th scope="row"><div align="left">PASSWORD</div></th>
<td><label for="password"></label>
<input type="password" name="password" id="password" ></td>
</tr>
<tr>
<th scope="row"><div align="left">CONFIRM PASSWORD</div></th>
<td><label for="cnpassword"></label>
<input type="password" name="cnpassword" id="cnpassword" ></td>
</tr>
<tr>
<th scope="row"><div align="left"> CONTACT NUMBER</div></th>
<td><label for="contno2"></label>
<input type="text" name="contno2" id="contno2"></td>
</tr>
<tr>
<th scope="row"><div align="left">E-MAIL ID </div></th>
<td><label for="emid"></label>
<div align="left">
<input type="text" name="emid" id="emid" >
</div></td>
</tr>
<tr>
<thcolspan="2" scope="row"><div align="center">
<input type="submit" name="button2" id="button2" value="ADD" />
</div></th>
</tr>
</table>
</form>
</div><!-- end of content -->
<div class="cleaner"></div>
</div><!-- end of main -->
<div id="templatemo_main_bottom"></div><!-- end of main -->
<?php
include("footer.php");
?>
Custprofile.php
<?php
session_start();
include("header.php");
include("dbconnection.php");
$result = mysql_query("select * from customers WHERE
customerid='$_SESSION[customerid]'");
$rowrec = mysql_fetch_array($result);
?>
<div id="templatemo_content">
<h2>Customer profile</h2>
<tr>
<th scope="row">Account Open Date</th>
<td> <?php echo $rowrec[accopendate]; ?></td>
</tr>
<tr>
<th scope="row">Last Login</th>
<td> <?php echo $rowrec[lastlogin]; ?></td>
</tr>
</table>
</form>
<div class="cleaner_h50"></div>
</div><!-- end of content -->
<div id="templatemo_sidebar">
<?php
include("custsidebar.php");
personalise();
?>
<div class="cleaner_h40"></div>
<h2> </h2>
</div>
<div class="cleaner"></div>
</div><!-- end of main -->
<div id="templatemo_main_bottom"></div><!-- end of main -->
<?php
include("footer.php");
?>
LOGIN.PHP
<?php
session_start();
$name=$_SESSION['eid'];
include("config.php");
$catg=$_REQUEST['cat'];
$subcatg=$_REQUEST['subcat'];
$img=$_FILES['file']['tmp_name'];
$itemno=$_REQUEST['t1'];
$price=$_REQUEST['t2'];
$desc=$_REQUEST['text'];
$t=date("d-m-y h-i-s");
if($_REQUEST['sub'])
move_uploaded_file($_FILES['file']['tmp_name'],"itempics/$itemno.jpg");
else
{
echo "item is not inserted";
?><head>
<script>
functionAjaxFunction(cat_id)
varhttpxml;
try
httpxml=new XMLHttpRequest();
catch (e)
// Internet Explorer
try
httpxml=new ActiveXObject("Msxml2.XMLHTTP");
catch (e)
try
{
httpxml=new ActiveXObject("Microsoft.XMLHTTP");
catch (e)
return false;
functionstateck()
if(httpxml.readyState==4)
varmyarray=eval(httpxml.responseText);
for(j=document.testform.subcat.options.length-1;j>=0;j--)
document.testform.subcat.remove(j);
for (i=0;i<myarray.length;i++)
{
varoptn = document.createElement("OPTION");
optn.text = myarray[i];
optn.value = myarray[i];
document.testform.subcat.options.add(optn);
varurl="dd.php";
url=url+"?cat_id="+cat_id;
url=url+"&sid="+Math.random();
httpxml.onreadystatechange=stateck;
httpxml.open("GET",url,true);
httpxml.send(null);
</script>
</head>
<style type="text/css">
<!--
-->
</style>
<body>
<br><br><br>
<br><br>
<center><fieldset style="width:50%">
<table align="center">
<?php
while($n=mysql_fetch_array($q)){
?>
</select></td>
</tr>
<td><select name=subcat>
</select></td>
</tr>
<tr>
<td><span class="style3">Image:</span></td>
<tr>
<td><label>
</label></td>
</tr>
<tr>
<td><span class="style3">Price:</span></td>
<td><label>
</label></td>
</tr>
<tr>
<td><span class="style3">Description:</span></td>
</table>
</form>
</fieldset></center>
</body>
</html>
Screen shots
TESTING
Module testing:
Here testing is done at each module level. Each case has been
thoroughly tested to discover pitfalls.
System testing:
Here testing is done after all the modules have been integrated.
IMPLEMENTATION
The future of this project depend on whether the author has enough
spare time over the next 2 month to continue with the developing.
The author feels that last few remaining features would round off
the system. If the author was to try to sell this system then more
system testing would have to be done, in a particular a more
comprehensive real – world. Testing environment would have to be
adopted along with some real words usage. Multiple concurrent
users would be command in real world usage but have been difficult
to test for considering there was only tester involved in this project.
This type of system would benefit for the hardware in case of a
system failure for the software in case of newly found bugs, in
return of a subscription free.
BIBLIOGRAPHY
PHP 6.0 AND MY SQL : PHP 6.0 & PHP AND MY SQL