You are on page 1of 35

APPENDIX A

<?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">

<table width="60%" border="0" align="center" cellpadding="0" cellspacing="0"


class="border">
<tr bgcolor="#D5EDB3">
<td height="51" colspan="5" bgcolor="#003366"><div align="center" class="style10"><span
class="style11">Computer Based Markerting Information System</span></div></td>
<td rowspan="2" bgcolor="#003366"><img src="images/62995_Champion-BreweriesPlc_Logo.jpg" width="127" height="112" /></td>
<td bgcolor="#003366">&nbsp;</td>
</tr>
<tr bgcolor="#D5EDB3">
<td height="51" colspan="5" bgcolor="#003366"><div align="center"><span
class="style6">(Case Study Champions Breweries Plc, Uyo) </span></div></td>
<td width="4" bgcolor="#003366">&nbsp;</td>
</tr>

<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">&nbsp;&nbsp;<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="165">&nbsp;<br />


<br /></td>
</tr>
<tr>
<td width="165"><a href="index.php" class="navText">Home</a></td>
</tr>
<tr>
<td width="165"><a href="about.php" class="navText">About</a></td>
</tr>
<tr>
<td width="165"><a href="javascript:;" class="navText"></a></td>
</tr>
<tr>
<td width="165">&nbsp;</td>
</tr>
<tr>
<td width="165"><a href="javascript:;" class="navText"></a></td>
</tr>
</table>
<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br /></td>
<td width="52"><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 />
&nbsp;<img src="images/40.jpg" width="395" height="102" /><br />
&nbsp;<br />
<table width="568" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="137" class="bodyText"><p>&nbsp;</p>
</td>
<td width="431" class="bodyText"><span class="pageName" style="font-size:
2em;"></a></span><span class="quote">
Login to Your Account!
</span>
<div id="login_form" style='display'><div id="status" align="left"><center></center>
<div class="subHeader" id="login_response" ><!-- spanner --></div>
<form action="javascript:alert('success!');" method="post" name="login" id="login">
<input type="hidden" name="action" value="user_login">
<input type="hidden" name="module" value="login">
<label></label>
<table width="97%" border="0" cellpadding="0" cellspacing="0" class="border">
<tr>
<th colspan="2" background="images/doboz_02t.gif" scope="row">&nbsp;</th>
</tr>
<tr>
<th scope="row">Username:</th>

<td><input name="un" type="text" id="un" /></td>


</tr>
<tr>
<th scope="row">Password:</th>
<td><input name="pas" type="password" id="pas" /></td>
</tr>
<tr>
<th colspan="2" scope="row"><div id="ajax_loading">
<img align="absmiddle" src="images/spinner.gif">&nbsp;Processing...</div>
<span class="subHeader"><?php echo $_SESSION["mes"];?></span></th>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td><input value="Login" name="Login" id="submit" class="big" type="submit" /></td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>&nbsp;</td>
</tr>
</table>
<br />
<label></label>
<br />
<label>&nbsp;</label>
</form>
</div>
</div></td>
</tr>
</table>
<br />
&nbsp;<br /> <img src="mm_spacer.gif" alt="" width="50" height="1" border="0"
/><br />
&nbsp;<br /></td>
<td valign="top">&nbsp;</td>
</tr>
<tr>
<td width="172" height="39">&nbsp;</td>
<td width="52">&nbsp;</td>
<td width="4">&nbsp;</td>
<td width="416"><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</td>
<td width="59">&nbsp;</td>
<td width="127">&nbsp;</td>

<td width="4">&nbsp;</td>
</tr>
<tr>
<td height="22" colspan="7" bgcolor="#CCCCCC"><div align="center"
class="style9">&copy;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>

<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}
.style12 {font-size: 12px}
.style15 {font-size: 1em}
.style16 {
color: #CCCCCC;
font-family: Georgia;
}
.style17 {
color: #CCCCCC;
font-size: 16px;
}
.style18 {color: #000000}
-->
</style>
</head>
<body bgcolor="#F4FFE4">
<table width="73%" border="0" align="center" cellpadding="0" cellspacing="0"
class="border">
<tr bgcolor="#D5EDB3">
<td colspan="3" rowspan="4" bgcolor="#003366"><div align="right"></div></td>
<td height="53" colspan="3" align="center" valign="bottom" nowrap="nowrap"
bgcolor="#003366" id="logo"><span class="style7 style16">Inventory Management
System</span></td>
<td rowspan="4" bgcolor="#003366">&nbsp;</td>
</tr>
<tr bgcolor="#D5EDB3">
<td height="12" colspan="3" align="center" valign="bottom" nowrap="nowrap"
bgcolor="#003366" id="logo"><span class="style6 style17">(Case Study General Hospital
Store) </span></td>
</tr>
<tr bgcolor="#D5EDB3">
<td height="13" colspan="3" align="center" valign="bottom" nowrap="nowrap"
bgcolor="#003366" id="logo">&nbsp;</td>
</tr>
<tr bgcolor="#D5EDB3">
<td height="51" colspan="3" align="center" valign="top" bgcolor="#003366"
id="tagline">&nbsp;</td>
</tr>

<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">&nbsp;&nbsp;<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">&nbsp;<br />
&nbsp;<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>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<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 />
&nbsp;<?php echo $_SESSION['err1']?><br />
&nbsp;<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">&nbsp;</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>

<th width="51%" scope="row"><div align="right">Product Name: </div></th>


<td colspan="3"><label>
<select name="pn" id="pn">
<option selected="selected">Please Select Product</option>
<?php while(list($pna) = mysql_fetch_array($query))
{
?>
<option value="<?php echo $pna;?>"> <?php echo $pna;?></option>
<?php }
?>
</select>
</label>
<div align="left"></div></td>
</tr>
<tr>
<th scope="row"><div align="right">Month and year of Purchase: </div></th>
<td width="10%"><label><span class="check style12">MM </span></label></td>
<td width="11%"><span class="style12">
<select name="md" class="check" id="md">
<option value="" selected="selected"></option>
<option value="January">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
<option value="August">September</option>
<option value="August">October</option>
<option value="August">November</option>
<option value="August">December</option>
</select>
</span></td>
<td width="28%"><span class="style12">YY
<select name="yd" class="check" id="yd">
<option value="" selected="selected"></option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
</select>
</span></td>
</tr>
<tr>

<th scope="row"><a href="allpurchase.php" class="header style15">View All


Purchase </a></th>
<td colspan="3"><input name="Submit" type="submit" class="subHeader"
value="Preview" /></td>
</tr>
<tr>
<th background="images/glblnav_selected.gif" scope="row"><span
class="style2"></span></th>
<td colspan="3" 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 colspan="3" 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 colspan="3" background="images/glblnav_selected.gif"><span
class="style2"></span></td>
</tr>
</table>
</form>
</div></td>
</tr>
</table>
<br />
&nbsp;<br /> <img src="mm_spacer.gif" alt="" width="50" height="1" border="0"
/><br />
&nbsp;<br /></td>
<td valign="top">&nbsp;</td>
</tr>
<tr>
<td width="177" height="39">&nbsp;</td>
<td width="50">&nbsp;</td>
<td width="4">&nbsp;</td>
<td width="445">&nbsp;</td>
<td width="106">&nbsp;</td>
<td width="78">&nbsp;</td>
<td width="224"><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
</tr>
<tr>

<td height="22" colspan="7" bgcolor="#CCCCCC"><div align="center" class="style9


style15 style74 style18">&copy;2011 Inventory Management System</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"];
$mn = $_POST["mn"];
$dd = $_POST["dd"];
$md = $_POST["md"];
$yd = $_POST["yd"];
$de = $_POST["de"];
$me = $_POST["me"];
$ye = $_POST["ye"];
$nno = $_POST["nno"];
$ds = $_POST["ds"];
$ms = $_POST["ms"];
$ys = $_POST["ys"];
$qs = $_POST["qs"];
$manfd= $dd." ".$md." ".$yd;
$date_supplied =$ds." ".$ms." ".$ys;
$my =$ms.$ys;
$expiry_date = $de." ".$me." ".$ye;
db_connect();
mysql_query("insert into new_product values
('$pn','$manfd','$mn','$expiry_date','$nno','$date_supplied','$my','$qs')") or die (mysql_error());
$query1 = mysql_query("select quantity_in_store from quanty_of_products where
product_name='$pn'") or die (mysql_error());
while(list($qnt)= mysql_fetch_array($query1))
{
$new_qnt = $qnt + $qs;
mysql_query("update quanty_of_products set quantity_in_store ='$new_qnt' where
product_name ='$pn'") or die (mysql_error());
}
$_SESSION['sucess']= "Supply Posted Successfully";
header('Location: home.php');

?>
<?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

.style15 {color: #000000}


.style14 {color: #000000}
.style15 {color: #CCCCCC}
.style16 {font-family: Georgia}
.style17 {
font-size: 18px;
color: #CCCCCC;
}
</style>
</head>
<body bgcolor="#F4FFE4">
<table width="76%" border="0" align="center" cellpadding="0" cellspacing="0"
class="border">
<tr bgcolor="#D5EDB3">
<td height="51" colspan="5" bgcolor="#003366"><div align="center"><span class="style7
style63 style64 style60 style71 style34 style4 style17 style18 style25 style15"><span
class="style7 style63 style64 style60 style71 style34 style4 style25 style19">Computer Based
Markerting Information System</span></span></div> </td>
<td colspan="2" rowspan="2" bgcolor="#003366"><div align="right"><span class="style7
style63 style64 style60 style71 style34 style15 style16 style4"><img
src="images/62995_Champion-Breweries-Plc_Logo.jpg" width="145" height="126"
/></span></div></td>
</tr>
<tr bgcolor="#D5EDB3">
<td height="51" colspan="5" bgcolor="#003366"><div align="center"><span class="style63
style45 style16 style23 style20">(Case Study Champions Breweries Plc, Uyo)
</span></div></td>
</tr>
<tr>
<td colspan="7" bgcolor="#999999"><img src="mm_spacer.gif" alt="line decor" 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>
<td height="20" colspan="7" bgcolor="#999999" id="dateformat">&nbsp;&nbsp;<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="183" valign="top" bgcolor="#003366"><table border="0" cellspacing="0"
cellpadding="0" width="177" id="navigation">
<tr>
<td width="177">&nbsp;<br />
&nbsp;<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>&nbsp;</td>
</tr>
</table>
<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<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 />
&nbsp;<?php echo $_SESSION['err1']?><br />
&nbsp;<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">&nbsp;</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 />
&nbsp;<br /> <img src="mm_spacer.gif" alt="" width="50" height="1" border="0"
/><br />
&nbsp;<br /></td>
<td valign="top">&nbsp;</td>
</tr>
<tr>
<td width="183" height="39">&nbsp;</td>
<td width="51">&nbsp;</td>
<td width="4">&nbsp;</td>
<td width="446">&nbsp;</td>
<td width="104">&nbsp;</td>
<td width="141">&nbsp;</td>
<td width="4"><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</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">&copy;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; }

.style45 {font-size: 16px}


.style47 {font-family: Calibri; font-size: 16px; color: #000000; }
.style49 {font-size: 1.2em}
.style50 {font-family: Calibri; font-size: 12px; color: #000000; }
.style52 {color: #666633}
.style62 {font-family: Calibri}
.style68 {color: #000000; font-size: 13px; }
.style70 {font-family: Calibri; font-size: 13px; color: #000000; }
.style71 {
color: #CCCCCC;
font-family: Georgia;
}
.style73 {color: #000000}
.style74 {font-size: 0.8px}
.style75 {
color: #CCCCCC;
font-size: 22px;
}
.style76 {
font-family: Georgia;
color: #FFFFFF;
}
-->
</style>
</head>
<body bgcolor="#F4FFE4">
<table width="78%" border="0" align="center" cellpadding="0" cellspacing="0"
class="border">
<tr bgcolor="#D5EDB3">
<td height="51" colspan="5" bgcolor="#003366"><div align="center"><span class="style7
style63 style64 style60 style71 style34 style4 style17 style18 style25 style74"><span
class="style7 style63 style64 style60 style34 style4 style17 style25 style75">Computer Based
Markerting Information System</span></span></div> </td>
<td colspan="2" rowspan="2" bgcolor="#003366"><div align="right"><span class="style7
style63 style64 style60 style71 style34 style15 style16 style4"><img
src="images/62995_Champion-Breweries-Plc_Logo.jpg" width="145" height="126"
/></span></div></td>
</tr>
<tr bgcolor="#D5EDB3">
<td height="51" colspan="5" bgcolor="#003366"><div align="center"><span class="style63
style45 style16 style17 style23 style76">(Case Study Champions Breweries Plc, Uyo)
</span></div></td>
</tr>
<tr>

<td colspan="7" bgcolor="#999999"><img src="mm_spacer.gif" alt="line decor" 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">&nbsp;&nbsp;<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">&nbsp;<br />
&nbsp;<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>&nbsp;</td>
</tr>
</table>
<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<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 />
&nbsp;<br />
&nbsp;<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">&nbsp;</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">

<th colspan="2" scope="row"><span class="style49"><?php echo " All Supply


";?></span></th>
</tr>
<tr>
<th colspan="2" scope="row"><table width="759" border="0" align="center"
bordercolor="#003366" bgcolor="#FFFFFF" class="border">
<tr background="view_files/glblnav_selected.gif">
<th width="124" height="22" background="images/glblnav_selected.gif"
class="error" scope="row"><span class="style28 style18 style52"><span
class="style68">Product </span></span></th>
<th width="186" background="images/glblnav_selected.gif" class="error"
scope="row"><span class="style28 style18 style52"><span class="style68">Date of Supply
</span></span></th>
<th width="155" background="images/glblnav_selected.gif" class="error"
scope="row"><div align="left" class="style68"><span class="style62">Qty Supplied
</span></div></th>
<th width="171" background="images/glblnav_selected.gif" class="error"
scope="row"><span class="style28 style18 style52"><span class="style68">Manufactured Date
</span></span></th>
<th width="99" background="images/glblnav_selected.gif" class="error"
scope="row"><span class="style70">BRAND NO.</span></th>
</tr>
<?php db_connect();
$count = 0;
$query =mysql_query("SELECT* FROM `new_product`") or die(mysql_error());
// print the student info line by line
while(list($prn,$mfd,$mn,$expd,$ndr,$ds,$my,$qs) = mysql_fetch_array($query))
{
?>
<tr bgcolor="#99CCCC">
<th height="24" class="navText" scope="row"> <div align="left" class="style44
style45"><span class="smallText"> </a> </span> <span class="ctasks ">&nbsp;<?php echo
$prn; ?></span></div></th>
<th class="navText" scope="row"><div align="left" class="style47">
&nbsp;<?php echo $ds;?></div></th>
<th class="navText" scope="row"><div align="left" class="style47"><?php echo
$qs;?><span class="style50">&nbsp;Crates</span></div></th>
<th class="navText" scope="row"><div align="left" class="style47"> &nbsp;
<?php
echo $mfd;?>
</div></th>
<th class="navText" scope="row"><span class="style47">
<?php

echo $ndr ;?>


</span></th>
</tr>
<tr bgcolor="#FFFFCC" class="minorButtonSelected">
<th height="24" colspan="6" bgcolor="#E5E5E5" scope="row"><div
align="center" class="style30">
<?php
$count = $count + 1;
}
if ($count<1) { echo 'No '.$pn.' Was Purchased at this Time';
}
?>
</div></th>
</tr>
</table></th>
</tr>
<tr>
<th colspan="2" background="view_files/doboz_02t.gif"
scope="row"><label></label></th>
</tr>
<tr>
<th colspan="2" background="view_files/doboz_02t.gif" scope="row"><div
align="center"><a href="javascript:window.print()" class="login">Print</a></div></th>
</tr>
<tr>
<th colspan="2" scope="row">&nbsp;</th>
</tr>
<tr>
<th width="89%" scope="row">&nbsp;</th>
<th width="11%" scope="row">&nbsp;</th>
</tr>
</table>
</form>
</div></td>
</tr>
</table> <br />
&nbsp;<br /> <img src="mm_spacer.gif" alt="" width="50" height="1" border="0"
/><br />
&nbsp;<br /></td>
<td valign="top">&nbsp;</td>
</tr>
<tr>
<td width="177" height="39">&nbsp;</td>
<td width="52">&nbsp;</td>
<td width="4">&nbsp;</td>
<td width="473">&nbsp;</td>

<td width="112">&nbsp;</td>
<td width="142">&nbsp;</td>
<td width="4"><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
</tr>
<tr>
<td height="22" colspan="7" bgcolor="#CCCCCC"><div align="center" class="style9
style15 style73"><span class="style73">&copy;2011 Computer Based Markerting Information
System</span></div></td>
</tr>
</table>
</body>
</html>

APPENDIX B

LOGIN PAGE

ADMIN HOME PAGE

ADMINISTRATORS

NEW PRODUCT

NEW ADMIN

NEW SUPPLY

NEW DISTRIBUTION

ALL SUPPLY

ALL DISTRIBUTION

FEED BACK

You might also like