Sunteți pe pagina 1din 17

PROGRAM CODE

<!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=utf-8" />

<title>Durberry Shopping Mall Daily Transaction and Profit Analysis</title>

<link type="text/css" rel="stylesheet" href="css/index.css" />

</head>

<center>

<body bgcolor="#060">

<div id="wrapper">

<div id="header"></div>

<div id="marq"><marquee>Welcome to Durberry Shopping Mall Daily Transaction and Profit


Analysis System.</marquee></div>

<div id="link"><a href="index.php">Home


Page</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;<a href="admin.php">Login</a></div>

<div id="menu"><br><p><h1>WELCOME TO DURBERRY SHOPPING


MALL.</h1></p><br><p><h2 style="color:#0000FF">DAILY TRANSACTION AND
PROFIT ANALYSIS SYSTEM.</h3></p><br><p style="text-
align:left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;READ THE
FOLLOWING INSTRUCTIONS CAREFULLY:</p><p style="text-align:left; color:red

">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Please Note that, This is a


System Design for the inventory of durberry shopping mall. Only Authorised Personnel are
Allow Access. Please, all Information must be entered
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Correctly, because any Changes made
will Reflect.</p>

<br />
</div>

<?php include_once('footer.php'); ?>

</div>

<div id="footer"></div>

</div>

</body>

</center>

</html>

<?php

session_start();

include_once('functions/conn.php');

?>

<!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=utf-8" />

<title>Durberry Shopping Mall Daily Transaction and Profit Analysis</title>

<link type="text/css" rel="stylesheet" href="css/index.css" />

</head>

<center>

<body bgcolor="#060">

<div id="wrapper">
<div id="header"></div>

<div id="marq"><marquee>Welcome to Durberry Shopping Mall Daily Transaction and Profit


Analysis System.</marquee></div>

<div id="link"><a href="index.php">Home


Page</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;<a href="admin.php">Login</a></div>

<div id="menu"><br><br><b style="font-size:20px">Staff Administrator's


Login...</b><br><br>

<?php

echo $_SESSION['error'];

unset($_SESSION['error']);

?>

<div class="messaging"><p style="font-size:14px"><b>Enter your administrative Username and


Password...</b></p>

<form action="adminprocess.php" method="post">

<table cellpadding="3" cellspacing="3" width="65%" class="regform"


border="0">

<tr><td style="color:#990000"
height="50"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Username:</b></td><td>&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;<input type="text" name="username" size="30" /></td></tr>

<tr><td
style="color:#990000"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Password:</b></td><td>&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;<input type="password" name="password" size="30" /></td></tr>

<tr><td></td><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit"
name="submit" value="Login" /><input type="reset" name="reset" value="Reset" /></td></tr>
</table>

<br>

</form>

</div>

</div><?php include_once('footer.php'); ?>

</div>

<div id="footer"></div>

</div>

</body>

</center>

</html>

<?php

session_start();

include_once('functions/conn.php');

?>

<!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=utf-8" />

<title>Durberry Shopping Mall Daily Transaction and Profit Analysis</title>

<link type="text/css" rel="stylesheet" href="css/index.css" />

</head>
<center>

<body bgcolor="#060">

<div id="wrapper">

<div id="header"></div>

<div id="marq"><marquee>Welcome to Durberry Shopping Mall Daily Transaction and Profit


Analysis System.</marquee></div>

<div id="link">

<a href="invoice.php">Transaction Invoice/Receipt</a>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;<a
href="forms.php">Forms</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a

<a href="report.php">Sales Manager Reports


View</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;<a href="index.php">Log Out</a></div>

<div id="menu"><br><br><b style="font-size:20px">Staff Administrator Login...</b><br><br>

<?php

echo $_SESSION['error'];

unset($_SESSION['error']);

?>

<?php include_once('adminprocess2.php'); ?>

<h3><a href="index.php">Log Out...</a><br /></h3><br /><br />

</div>

<?php include_once('footer.php'); ?>


</div>

<div id="footer"></div>

</div>

</body>

</center>

</html>

<?php

session_start();

include_once('functions/conn.php');

?>

<!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=utf-8" />

<title>Durberry Shopping Mall Daily Transaction and Profit Analysis</title>

<link type="text/css" rel="stylesheet" href="css/index.css" />

</head>

<center>

<body bgcolor="#060">

<div id="wrapper">

<div id="header"></div>

<div id="marq"><marquee>Welcome to Durberry Shopping Mall Daily Transaction and Profit


Analysis System.</marquee></div>
<div id="link">

<a
href="customer.php">Customer</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a
href="department.php">Department</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a
href="item.php">Item</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href="employee.php">Sales
Person</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;

<a href="adminprocess.php">Go Back</a></div>

<div id="menu"><br><br><b style="font-size:20px"><u>Enter Customer


Details</u></b><br><br>

<?php

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

echo $_SESSION['error'];

unset($_SESSION['error']);

?>

<?php

if(isset($_POST['register'])){

$cid=$_POST['cust_id'];

$fn=$_POST['fullname'];

$ad=$_POST['address'];

$gd=$_POST['gender'];
$pn=$_POST['phoneno'];

if(strlen($cid) <=0 || strlen($fn) <=0 || strlen($ad) <=0 || strlen($gd) <=0 || strlen($pn) <=0
){

$_SESSION['error']="<p style='color:red'>All fields with * must be filled</p>";

header('location:customer.php');

exit();

$query=mysql_query("INSERT INTO customer


(`customer_id`,`fullname`,`address`,`gender`,`phone_no`) VALUES
('$cid','$fn','$ad','$gd','$pn')") or die (mysql_error());

if(isset($query)){

$_SESSION['error']="<em style='color:red'>Customer record has


successfully been saved.</em>";

header('location:customer.php');

exit();

?>

<form action="" method="post">

<table cellpadding="3" cellspacing="3" width="65%" class="regform">

<tr>

<td colspan="2">Customer ID<font color="#CC0000">*</font></td><td><input


type="text" name="cust_id" size="50" /></td>

</tr>

<tr>
<td colspan="2">Customer Name<font color="#CC0000">*</font></td><td><input
type="text" name="fullname" size="50" /></td>

</tr>

<tr>

<td colspan="2">Customer Gender<font color="#CC0000">*</font></td><td><select


name="gender"><option>---
</option><option>Male</option><option>Female</option></select></td>

</tr>

<tr>

<td colspan="2">Customer Phone Number<font


color="#CC0000">*</font></td><td><input type="text" name="phoneno" size="50" /></td>

</tr>

<tr>

<td colspan="2">Customer Address<font color="#CC0000">*</font></td><td><input


type="text" name="address" size="50" /></td>

</tr>

</table>

<input type="submit" value="Save Details" name="register" /><br /><br />

</form>

</div>

<?php include_once('footer.php'); ?>

</div>

<div id="footer"></div>

</body>

</center>

</html>
<?php

session_start();

include_once('functions/conn.php');

?>

<!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=utf-8" />

<title>Durberry Shopping Mall Daily Transaction and Profit Analysis</title>

<link type="text/css" rel="stylesheet" href="css/index.css" />

</head>

<center>

<body bgcolor="#060">

<div id="wrapper">

<div id="header"></div>

<div id="marq"><marquee>Welcome to Durberry Shopping Mall Daily Transaction and Profit


Analysis System.</marquee></div>

<div id="link">

<a
href="customer.php">Customer</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a
href="department.php">Department</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a
href="item.php">Item</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href="employee.php">Sales
Person</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;

<a href="adminprocess.php">Go Back</a></div>

<div id="menu"><br><br><b style="font-size:20px"><u>Enter Customer


Details</u></b><br><br>

<?php

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

echo $_SESSION['error'];

unset($_SESSION['error']);

?>

<?php

if(isset($_POST['register'])){

$cid=$_POST['cust_id'];

$fn=$_POST['fullname'];

$ad=$_POST['address'];

$gd=$_POST['gender'];

$pn=$_POST['phoneno'];

if(strlen($cid) <=0 || strlen($fn) <=0 || strlen($ad) <=0 || strlen($gd) <=0 || strlen($pn) <=0
){

$_SESSION['error']="<p style='color:red'>All fields with * must be filled</p>";

header('location:customer.php');

exit();
}

$query=mysql_query("INSERT INTO customer


(`customer_id`,`fullname`,`address`,`gender`,`phone_no`) VALUES
('$cid','$fn','$ad','$gd','$pn')") or die (mysql_error());

if(isset($query)){

$_SESSION['error']="<em style='color:red'>Customer record has


successfully been saved.</em>";

header('location:customer.php');

exit();

?>

<form action="" method="post">

<table cellpadding="3" cellspacing="3" width="65%" class="regform">

<tr>

<td colspan="2">Customer ID<font color="#CC0000">*</font></td><td><input


type="text" name="cust_id" size="50" /></td>

</tr>

<tr>

<td colspan="2">Customer Name<font color="#CC0000">*</font></td><td><input


type="text" name="fullname" size="50" /></td>

</tr>

<tr>

<td colspan="2">Customer Gender<font color="#CC0000">*</font></td><td><select


name="gender"><option>---
</option><option>Male</option><option>Female</option></select></td>

</tr>
<tr>

<td colspan="2">Customer Phone Number<font


color="#CC0000">*</font></td><td><input type="text" name="phoneno" size="50" /></td>

</tr>

<tr>

<td colspan="2">Customer Address<font color="#CC0000">*</font></td><td><input


type="text" name="address" size="50" /></td>

</tr>

</table>

<input type="submit" value="Save Details" name="register" /><br /><br />

</form>

</div>

<?php include_once('footer.php'); ?>

</div>

<div id="footer"></div>

</body>

</center>

</html>

<?php

session_start();

include_once('functions/conn.php');

?>

<!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=utf-8" />

<title>Durberry Shopping Mall Daily Transaction and Profit Analysis</title>

<link type="text/css" rel="stylesheet" href="css/index.css" />

</head>

<center>

<body bgcolor="#060">

<div id="wrapper">

<div id="header"></div>

<div id="marq"><marquee>Welcome to Durberry Shopping Mall Daily Transaction and Profit


Analysis System.</marquee></div>

<div id="link">

<a
href="customer.php">Customer</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a
href="department.php">Department</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a
href="item.php">Item</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href="employee.php">Sales
Person</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;

<a href="adminprocess.php">Go Back</a></div>

<div id="menu"><br><br><b style="font-size:20px"><u>Enter Customer


Details</u></b><br><br>
<?php

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

echo $_SESSION['error'];

unset($_SESSION['error']);

?>

<?php

if(isset($_POST['register'])){

$cid=$_POST['cust_id'];

$fn=$_POST['fullname'];

$ad=$_POST['address'];

$gd=$_POST['gender'];

$pn=$_POST['phoneno'];

if(strlen($cid) <=0 || strlen($fn) <=0 || strlen($ad) <=0 || strlen($gd) <=0 || strlen($pn) <=0
){

$_SESSION['error']="<p style='color:red'>All fields with * must be filled</p>";

header('location:customer.php');

exit();

$query=mysql_query("INSERT INTO customer


(`customer_id`,`fullname`,`address`,`gender`,`phone_no`) VALUES
('$cid','$fn','$ad','$gd','$pn')") or die (mysql_error());

if(isset($query)){

$_SESSION['error']="<em style='color:red'>Customer record has


successfully been saved.</em>";

header('location:customer.php');

exit();
}

?>

<form action="" method="post">

<table cellpadding="3" cellspacing="3" width="65%" class="regform">

<tr>

<td colspan="2">Customer ID<font color="#CC0000">*</font></td><td><input


type="text" name="cust_id" size="50" /></td>

</tr>

<tr>

<td colspan="2">Customer Name<font color="#CC0000">*</font></td><td><input


type="text" name="fullname" size="50" /></td>

</tr>

<tr>

<td colspan="2">Customer Gender<font color="#CC0000">*</font></td><td><select


name="gender"><option>---
</option><option>Male</option><option>Female</option></select></td>

</tr>

<tr>

<td colspan="2">Customer Phone Number<font


color="#CC0000">*</font></td><td><input type="text" name="phoneno" size="50" /></td>

</tr>

<tr>

<td colspan="2">Customer Address<font color="#CC0000">*</font></td><td><input


type="text" name="address" size="50" /></td>

</tr>
</table>

<input type="submit" value="Save Details" name="register" /><br /><br />

</form>

</div>

<?php include_once('footer.php'); ?>

</div>

<div id="footer"></div>

</body>

</center>

</html>

S-ar putea să vă placă și