Professional Documents
Culture Documents
<?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">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Computer Based Markerting Information System</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
<script type="text/javascript" src="javascript/jquery.min.js"></script>
<script type="text/javascript" src="javascript/jquery.simplemodal.js"></script>
<script type="text/javascript" src="javascript/init.js"></script>
<link type='text/css' href='style/stylesheet.css' rel='stylesheet' media='screen' />
<link type='text/css' href='style/basic.css' rel='stylesheet' media='screen' />
<script language="JavaScript" type="text/javascript">
//--------------- LOCALIZEABLE GLOBALS --------------var d=new Date();
var monthname=new
Array("January","February","March","April","May","June","July","August","September","Octo
ber","November","December");
//Ensure correct for language. English is "January 1, 2004"
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
//--------------- END LOCALIZEABLE --------------</script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!-.style6 {
font-size: 16px;
color: #CCCCCC;
}
.style8 {
color: #000000;
font-size: 12;
}
.style9 {color: #000000}
.style10 {font-size: 22px}
.style11 {font-weight: bold; font-family: Georgia; color: #CCCCCC;}
-->
</style>
</head>
<body bgcolor="#F4FFE4">
<tr>
<td colspan="7" bgcolor="#999999"><img src="mm_spacer.gif" alt="" width="1" height="2"
border="0" /></td>
</tr>
<tr>
<td colspan="7" bgcolor="#999999" background="mm_dashed_line.gif"><img
src="mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0" /></td>
</tr>
<tr bgcolor="#99CC66">
<td height="20" colspan="7" bgcolor="#999999" id="dateformat"> <span
class="style8">
<script language="JavaScript" type="text/javascript">
document.write(TODAY);
</script>
</span>
<noscript>
<span class="style8">Please Enable JavaScript For This Application!
</span>
</noscript></td>
</tr>
<tr>
<td colspan="7" bgcolor="#5C743D"><img src="mm_spacer.gif" alt="" width="1"
height="2" border="0" /></td>
</tr>
<tr>
<td width="172" valign="top" bgcolor="#003366">
<table border="0" cellspacing="0" cellpadding="0" width="165" id="navigation">
<tr>
<td width="4"> </td>
</tr>
<tr>
<td height="22" colspan="7" bgcolor="#CCCCCC"><div align="center"
class="style9">©2011 Computer Based Markerting Information System</div></td>
</tr>
</table>
<?php unset($_SESSION["mes"]);
?>
</body>
</html>
<?php
session_start();
require_once("myfunc.php");
check_valid_user();
db_connect();
$query = mysql_query("select product_name from our_products ") or die("Sorry Oh");
$query2 = mysql_query("select product_name from our_products ") or die("Sorry Oh");
?>
<!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">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Home Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
<script type="text/javascript" src="javascript/jquery.min.js"></script>
<script type="text/javascript" src="javascript/jquery.simplemodal.js"></script>
<script type="text/javascript" src="javascript/init.js"></script>
<link type='text/css' href='style/stylesheet.css' rel='stylesheet' media='screen' />
<link type='text/css' href='style/basic.css' rel='stylesheet' media='screen' />
<script language="JavaScript" type="text/javascript">
//--------------- LOCALIZEABLE GLOBALS --------------var d=new Date();
var monthname=new
Array("January","February","March","April","May","June","July","August","September","Octo
ber","November","December");
//Ensure correct for language. English is "January 1, 2004"
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
//--------------- END LOCALIZEABLE --------------</script>
<tr>
<td colspan="7" bgcolor="#999999"><img src="mm_spacer.gif" alt="" width="1" height="2"
border="0" /></td>
</tr>
<tr>
<td colspan="7" bgcolor="#999999" background="mm_dashed_line.gif"><img
src="mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0" /></td>
</tr>
<tr bgcolor="#99CC66">
<td height="20" colspan="7" bgcolor="#999999" id="dateformat"> <span
class="style8">
<script language="JavaScript" type="text/javascript">
document.write(TODAY);
</script>
</span>
<noscript>
<span class="style8">Please Enable JavaScript For This Application! </span>
</noscript></td>
</tr>
<tr>
<td colspan="7" bgcolor="#5C743D"><img src="mm_spacer.gif" alt="" width="1"
height="2" border="0" /></td>
</tr>
<tr>
<td width="177" valign="top" bgcolor="#003366"><table border="0" cellspacing="0"
cellpadding="0" width="177" id="navigation">
<tr>
<td width="177"> <br />
<br /></td>
</tr>
<?php
if ($_SESSION["new_user"] =="admin")
{
?>
<tr>
<td width="177"><a href="new_admin.php" class="navText">Add New Admin </a></td>
</tr>
<tr>
<td width="177"><a href="admin.php" class="navText">Manage Administrators </a></td>
</tr>
<?php
}
?>
<tr>
<td width="177"><a href="new_product.php" class="navText">Register a New Product
</a></td>
</tr>
<tr>
<td width="177"><a href="new_in_supply.php" class="navText">New Purchase </a></td>
</tr>
<tr>
<td width="177"><a href="out_supply.php" class="navText">New Distribution </a></td>
</tr>
<tr>
<td width="177"><a href="javascript:;" class="navText"></a></td>
</tr>
<tr>
<td width="177"><a href="home.php" class="navText">Home</a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<br />
<br />
<br />
<br /> </td>
<td width="50"><img src="mm_spacer.gif" alt="" width="50" height="1" border="0" /></td>
<td colspan="4" valign="top"><img src="mm_spacer.gif" alt="" width="305" height="1"
border="0" /><br />
<?php echo $_SESSION['err1']?><br />
<br />
<table width="595" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="641" background="images/bg_nav.jpg" class="pageName style1">Welcome
<?php echo $_SESSION["names"];?></td>
</tr>
<tr>
<td class="bodyText"><p align="center" class="style13"> </p>
</td>
</tr>
<tr>
<td class="bodyText"><div align="center">
<form id="form1" name="form1" method="post" action="prev_pur.php">
<table width="88%" border="0" class="border">
<tr>
?>
<?php
session_start();
require_once("myfunc.php");
check_valid_user();
db_connect();
$query = mysql_query("select product_name from our_products ") or die("Sorry Oh");
$query2 = mysql_query("select product_name from our_products ") or die("Sorry Oh");
?>
<!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">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Home Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
<script type="text/javascript" src="javascript/jquery.min.js"></script>
<script type="text/javascript" src="javascript/jquery.simplemodal.js"></script>
<script type="text/javascript" src="javascript/init.js"></script>
<link type='text/css' href='style/stylesheet.css' rel='stylesheet' media='screen' />
<link type='text/css' href='style/basic.css' rel='stylesheet' media='screen' />
<script language="JavaScript" type="text/javascript">
//--------------- LOCALIZEABLE GLOBALS --------------var d=new Date();
var monthname=new
Array("January","February","March","April","May","June","July","August","September","Octo
ber","November","December");
//Ensure correct for language. English is "January 1, 2004"
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
//--------------- END LOCALIZEABLE --------------</script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!-.style1 {
font-size: 14px;
color: #000000;
}
.style2 {font-size: 0px}
.style13 {font-size: 13px}
-->a
<tr>
<td colspan="7" bgcolor="#5C743D"><img src="mm_spacer.gif" alt="" width="1"
height="2" border="0" /></td>
</tr>
<tr>
<td width="183" valign="top" bgcolor="#003366"><table border="0" cellspacing="0"
cellpadding="0" width="177" id="navigation">
<tr>
<td width="177"> <br />
<br /></td>
</tr>
<?php
if ($_SESSION["new_user"] =="admin")
{
?>
<tr>
<td width="177"><a href="new_admin.php" class="navText">Add New Admin </a></td>
</tr>
<tr>
<td width="177"><a href="admin.php" class="navText">Manage Administrators </a></td>
</tr>
<?php
}
?>
<tr>
<td width="177"><a href="new_product.php" class="navText">Register a New Product
</a></td>
</tr>
<tr>
<td width="177"><a href="new_in_supply.php" class="navText">New Product Supply
</a></td>
</tr>
<tr>
<td width="177"><a href="out_supply.php" class="navText">Product Distribution
</a></td>
</tr>
<tr>
<td width="177"><a href="home.php" class="navText">Home</a></td>
</tr>
<tr>
<td><a href="logout.php" class="navText">Logout </a></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<br />
<br />
<br />
<br /> </td>
<td width="51"><img src="mm_spacer.gif" alt="" width="50" height="1" border="0" /></td>
<td colspan="4" valign="top"><img src="mm_spacer.gif" alt="" width="305" height="1"
border="0" /><br />
<?php echo $_SESSION['err1']?><br />
<br />
<table width="567" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="images/bg_nav.jpg" class="pageName style1">Welcome <?php echo
$_SESSION["names"];?></td>
</tr>
<tr>
<td class="bodyText"><p align="center" class="style13">Feedback ---- Please Enter the
Distribution ID </p>
</td>
</tr>
<tr>
<td class="bodyText"><div align="center">
<form id="form1" name="form1" method="post" action="pro_feedback.php">
<table width="80%" border="0" class="border">
<tr>
<th width="51%" scope="row"><div align="right">Distribution ID: </div></th>
<td width="49%"><label>
<input name="distid" type="text" id="distid" />
</label>
<div align="left"></div></td>
</tr>
<tr>
<th scope="row"> </th>
<td><label>
<input name="Submit" type="submit" class="subHeader" value="Continue" />
</label></td>
</tr>
<tr>
<th background="images/glblnav_selected.gif" scope="row"><span
class="style2"></span></th>
<td background="images/glblnav_selected.gif"><span class="style2"></span></td>
</tr>
<tr>
<th background="images/glblnav_selected.gif" scope="row"><span
class="style2"></span></th>
<td background="images/glblnav_selected.gif"><span class="style2"></span></td>
</tr>
<tr>
<th background="images/glblnav_selected.gif" scope="row"><span
class="style2"></span></th>
<td background="images/glblnav_selected.gif"><span class="style2"></span></td>
</tr>
</table>
</form>
</div></td>
</tr>
</table>
<br />
<br /> <img src="mm_spacer.gif" alt="" width="50" height="1" border="0"
/><br />
<br /></td>
<td valign="top"> </td>
</tr>
<tr>
<td width="183" height="39"> </td>
<td width="51"> </td>
<td width="4"> </td>
<td width="446"> </td>
<td width="104"> </td>
<td width="141"> </td>
<td width="4"><p> </p>
<p> </p>
<p> </p></td>
</tr>
<tr bgcolor="#003366">
<td height="22" colspan="7"><div align="center" class="style9 style59 style74 style18
style15 style14"><span class="style14 style15">©2011 Computer Based Markerting
Information System</span></div></td>
</tr>
</table>
<?php unset($_SESSION['err1']);?>
</body>
</html>
<?php
session_start();
require_once("myfunc.php");
check_valid_user();
$pn = $_POST["pn"];
$md = $_POST["md"];
$yd = $_POST["yd"];
$my = $md.$yd;
?>
<!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">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Home Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="mm_health_nutr.css" type="text/css" />
<script type="text/javascript" src="javascript/jquery.min.js"></script>
<script type="text/javascript" src="javascript/jquery.simplemodal.js"></script>
<script type="text/javascript" src="javascript/init.js"></script>
<link type='text/css' href='style/stylesheet.css' rel='stylesheet' media='screen' />
<link type='text/css' href='style/basic.css' rel='stylesheet' media='screen' />
<script language="JavaScript" type="text/javascript">
//--------------- LOCALIZEABLE GLOBALS --------------var d=new Date();
var monthname=new
Array("January","February","March","April","May","June","July","August","September","Octo
ber","November","December");
//Ensure correct for language. English is "January 1, 2004"
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
//--------------- END LOCALIZEABLE --------------</script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!-.style1 {
font-size: 14px;
color: #000000;
}
.style18 {
color: #000000;
font-size: 0.8em;
}
.style28 {
font-size: 1.5em;
font-family: Calibri;
color: #660000;
}
.style30 {color: #660000}
.style44 {font-family: Calibri; font-size: 14px; color: #000000; }
<tr>
<td colspan="7" bgcolor="#5C743D"><img src="mm_spacer.gif" alt="" width="1"
height="2" border="0" /></td>
</tr>
<tr>
<td width="177" valign="top" bgcolor="#003366"><table border="0" cellspacing="0"
cellpadding="0" width="177" id="navigation">
<tr>
<td width="177"> <br />
<br /></td>
</tr>
<?php
if ($_SESSION["new_user"] =="admin")
{
?>
<tr>
<td width="177"><a href="new_admin.php" class="navText">Add New Admin </a></td>
</tr>
<tr>
<td width="177"><a href="admin.php" class="navText">Manage Administrators </a></td>
</tr>
<?php
}
?>
<tr>
<td width="177"><a href="new_product.php" class="navText">Register a New Product
</a></td>
</tr>
<tr>
<td width="177"><a href="new_in_supply.php" class="navText">New Product Supply
</a></td>
</tr>
<tr>
<td width="177"><a href="out_supply.php" class="navText">Product Distribution
</a></td>
</tr>
<tr>
<td width="177"><a href="home.php" class="navText">Home</a></td>
</tr>
<tr>
<td><a href="logout.php" class="navText">Logout </a></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<br />
<br />
<br />
<br /> </td>
<td colspan="5"><img src="mm_spacer.gif" alt="" width="50" height="1" border="0"
/><img src="mm_spacer.gif" alt="" width="305" height="1" border="0" /><br />
<br />
<br />
<table width="766" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="766" background="images/bg_nav.jpg" class="pageName style1">Welcome
<?php echo $_SESSION["names"];?></td>
</tr>
<tr>
<td class="bodyText"><p align="center"> </p>
</td>
</tr>
<tr>
<td class="bodyText"><div align="center">
<form id="form1" name="form1" method="post"
action="pro_newproduct.php">
<table width="100%" border="0" bgcolor="#FFFFFF">
<tr class="subHeader">
<td width="112"> </td>
<td width="142"> </td>
<td width="4"><p> </p>
<p> </p>
<p> </p></td>
</tr>
<tr>
<td height="22" colspan="7" bgcolor="#CCCCCC"><div align="center" class="style9
style15 style73"><span class="style73">©2011 Computer Based Markerting Information
System</span></div></td>
</tr>
</table>
</body>
</html>
APPENDIX B
LOGIN PAGE
ADMINISTRATORS
NEW PRODUCT
NEW ADMIN
NEW SUPPLY
NEW DISTRIBUTION
ALL SUPPLY
ALL DISTRIBUTION
FEED BACK