Php Code for WEB-BASED TRACKING SYSTEM

Php Code for WEB-BASED TRACKING SYSTEM.

Welcome to this code of…… If you have any difficulty regarding this code, please like our page for discussions. Click here to like the page.https://www.facebook.com/Free-Code-Download-934630353410011/

Php Code for WEB-BASED TRACKING SYSTEM

for complete code click here to download

FREE CODE DOWNLOAD

File name: Branchconfirmtrack.
<? session_start();
if($_SESSION[‘utype’]!=’Secondary’){
die(“<head><meta http-equiv=’content-type’ content=’text/html; charset=utf-8’/><title>LOG IN</title><meta name=’keywords’ content=”/><meta name=’description’ content=”/><link href=’style.css’ rel=’stylesheet’ type=’text/css’ media=’screen’/></head><body><div id=’header’></div><div id=’menu’><center><ul>
<li class=’first’><a href=’home.php’>HOME</a></li>
<li><a href=’#’>ABOUT US</a></li>
<li><a href=’delivery.php’>DELIVERY CHARGES</a></li>
<li><a href=’news.php’>NEWS</a></li>
<li><a href=’operations.php’>OPERATIONS</a></li>
</ul></center>
</div><div id=’page’>
<div style=’background-color:WHITE’>
<br><table border=’1′ align=’center’ bordercolor=’green’>
<td>
<center><font color=red face=verdana><p><b> YOU MUST BE LOGGED IN! </font></center>
</td>
</table>
<br><form action=’./login.php’ method=POST>
<center><font color=blue size=5 face=impact>SERVER ACCESS</font></center><br>
<table width=’730′ border=’0′ cellpadding=’0′ cellspacing=’20’ bgcolor=’white’ align=’left’><center><font color=black size=4 face=impact>Type : </font>
<select name=’utype’ width=’1′>
<option value=’Primary’ SELECTED>Primary Administrator</option>
<option value=’Secondary’><b>Secondary Administrator</option></select>

<center><br><font color=black size=4 face=impact>username : </font>

<input type=’text’ name=’username’>

<center><font color=black size=4 face=impact>password : </font>
<input type=’password’ name=’password’>

<br><br><center><button type=’submit’ style=’width:200;background-color:SpringGreen;’>SUBMIT</button></center>
</table>
</form>

<br><br><br>

</div>
</div>
</div>

<center>
<div id=’footer’>
<b><p>Copyright © 2009 PhilPostCorp.freehostia.com Created by Ekis Boys</p></b>
</div>
</center>”);
}
?>

<html>
<head>
<meta http-equiv=”content-type” content=”text/html; charset=utf-8″ />
<title>SERVER ACCESS</title>
<meta name=”keywords” content=”” />
<meta name=”description” content=”” />
<link href=”style.css” rel=”stylesheet” type=”text/css” media=”screen” />
</head>

<body>
<div id=”header”>
<!–<h1>SERVER ACCESS</h1>–>
</div>
<div id=”menu”>
<center><ul>
<li class=”first”><a href=”home.php”>HOME</a></li>
<li><a href=”#”>ABOUT US</a></li>
<li><a href=”lagawt.php”>LOG OUT</a></li>
<li><a href=”delivery.php”>DELIVERY RATES</a></li>
<li><a href=”news.php”>NEWS</a></li>
<li><a href=”operations.php”>OPERATIONS</a></li>
</ul></center>
</div>
<div id=”page”>
<div style=’background-color:WHITE’>
<br>
<!–<CENTER><td width=150 align=center><font face=Tahoma size=6 color=blue><b>ADMINISTRATOR CONTROL PANEL</b></font></td></CENTER>–>

<br><br>

<?php

mysql_connect(“localhost”,”root”,””);
mysql_select_db(“sampledatabase”);
//$result=mysql_query(“SELECT * FROM trackadmin WHERE id={$_GET[‘id’]};”);
//$row=mysql_fetch_array($result);

$track=$_POST[‘track’];
$location=$_POST[‘location’];
$id=$_GET[‘id’];

$sql = “UPDATE trackadmin
SET track=’$track’,location=’$location’
WHERE id=$id”;
mysql_query($sql);

echo “<table border=’1′ align=’center’ bordercolor=’GREEN’><td width=300 align=center><p><b><font face=’verdana’ color=’BLUE’><center> RECORD SUCCESSFULLY SAVED!. <br></center></td></b></font></table>”;

?>

<br><br><br>
<center>
<input type=button value=”BACK” style=”background-color:SpringGreen;height:20;width:160;color:Black;”ONMOUSEOVER=”this.style.border=’5px solid #87CEEB'”ONMOUSEOUT=”this.style.border=’2px solid #708090′”ONCLICK=”window.location.href=’./branch.php'”>
</center>

<br><br><br>

</div>
</div>
</div>

<center>
<div id=”footer”>
<center><b><p>Copyright © 2009 PhilPostCorp.freehostia.com Created by Ekis Boys</p></b></center>
</div>
</center>
</body>
</html>

File name: Login

<?php
session_start();
//if($_SESSION[‘username’])
//echo “<script>setTimeout(location.href=’./admin.php’,0);</script>”;
require(“connect.php”);
$post_username = $_POST[‘username’];
$post_password = $_POST[‘password’];
$post_utype = $_POST[‘utype’];
if($post_username&&$post_password&&$post_utype)
{$login = sprintf(“SELECT * FROM admintable WHERE username = ‘%s’ AND password = ‘%s’ AND utype = ‘%s'”, mysql_real_escape_string($post_username),mysql_real_escape_string($post_password),mysql_real_escape_string($post_utype));
$rowcount = mysql_num_rows(mysql_query($login));
if ($rowcount==1)
{if($_POST[‘utype’]==’Primary’)
{$_SESSION[‘username’]=$post_username;
$_SESSION[‘utype’] = ‘Primary’;

echo “<head><meta http-equiv=’content-type’ content=’text/html; charset=utf-8’/><title>LOG IN</title><meta name=’keywords’ content=”/><meta name=’description’ content=”/><link href=’style.css’ rel=’stylesheet’ type=’text/css’ media=’screen’/></head><body><div id=’header’></div><div id=’menu’><center><ul>
<li class=’first’><a href=’home.php’>HOME</a></li>
<li><a href=’#’>ABOUT US</a></li>
<li><a href=’delivery.php’>DELIVERY CHARGES</a></li>
<li><a href=’news.php’>NEWS</a></li>
<li><a href=’operations.php’>OPERATIONS</a></li>
</ul></center>
</div><div id=’page’>
<div style=’background-color:WHITE’>
<br><table border=’1′ align=’center’ bordercolor=’green’>
<td>
<center><font color=blue face=verdana><p><b> ACCESS GRANTED! </font></center>
</td>
</table>
<br>
<br><center><a href=./admin.php><font face=verdana size=3 color=blue>Click Here To Enter Primary Administrator Page.</font></a></center>
<br><br><br>

</div>
</div>
</div>

<center>
<div id=’footer’>
<b><p>Copyright © 2009 PhilPostCorp.freehostia.com Created by Ekis Boys</p></b>
</div>
</center>”;

}

else
{

$_SESSION[‘utype’] = ‘Secondary’;

}

if($_POST[‘utype’]==’Secondary’)
{

$_SESSION[‘username’]=$post_username;
$_SESSION[‘utype’] = ‘Secondary’;

echo “<head><meta http-equiv=’content-type’ content=’text/html; charset=utf-8’/><title>LOG IN</title><meta name=’keywords’ content=”/><meta name=’description’ content=”/><link href=’style.css’ rel=’stylesheet’ type=’text/css’ media=’screen’/></head><body><div id=’header’></div><div id=’menu’><center><ul>
<li class=’first’><a href=’home.php’>HOME</a></li>
<li><a href=’#’>ABOUT US</a></li>
<li><a href=’delivery.php’>DELIVERY CHARGES</a></li>
<li><a href=’news.php’>NEWS</a></li>
<li><a href=’operations.php’>OPERATIONS</a></li>
</ul></center>
</div><div id=’page’>
<div style=’background-color:WHITE’>
<br><table border=’1′ align=’center’ bordercolor=’green’>
<td>
<center><font color=blue face=verdana><p><b> ACCESS GRANTED! </font></center>
</td>
</table>
<br>
<br><center><a href=./branch.php><font face=verdana size=3 color=blue>Click Here To Enter Secondary Administrator Page.</font></a></center>
<br><br><br>

</div>
</div>
</div>

<center>
<div id=’footer’>
<b><p>Copyright © 2009 PhilPostCorp.freehostia.com Created by Ekis Boys</p></b>
</div>
</center>”;

}

else
{
$_SESSION[‘utype’] = ‘Primary’;

}

}

else
die(“<head><meta http-equiv=’content-type’ content=’text/html; charset=utf-8’/><title>LOG IN</title><meta name=’keywords’ content=”/><meta name=’description’ content=”/><link href=’style.css’ rel=’stylesheet’ type=’text/css’ media=’screen’/></head><body><div id=’header’></div><div id=’menu’><center><ul>
<li class=’first’><a href=’home.php’>HOME</a></li>
<li><a href=’#’>ABOUT US</a></li>
<li><a href=’delivery.php’>DELIVERY RATES</a></li>
<li><a href=’news.php’>NEWS</a></li>
<li><a href=’operations.php’>OPERATIONS</a></li>
</ul></center>
</div><div id=’page’>
<div style=’background-color:WHITE’>
<br><table border=’1′ align=’center’ bordercolor=’green’>
<td>
<center><font color=red face=verdana><p><b> INCORRECT USERNAME OR PASSWORD! </font></center>
</td>
</table>
<br>

<form action=’./login.php’ method=POST>
<center><font color=black size=5 face=impact>SERVER ACCESS</font></center>

<br>
<table width=’730′ border=’0′ cellpadding=’0′ cellspacing=’20’ bgcolor=’white’ align=’left’>

<center><font color=black size=4 face=impact>Type : </font>
<select name=’utype’ width=’1′>
<option value=’Primary’ SELECTED >Primary Administrator</option>
<option value=’Secondary’><b>Secondary Administrator</option></select>

<center><br><font color=black size=4 face=impact>username : </font>

<input type=’text’ name=’username’>

<center><font color=black size=4 face=impact>password : </font>
<input type=’password’ name=’password’>

<br><br><center><button type=’submit’ style=’width:200;background-color:SpringGreen;’>SUBMIT</button></center>
</table>
</form>

<br><br><br>

</div>
</div>
</div>

<center>
<div id=’footer’>
<b><p>Copyright © 2009 PhilPostCorp.freehostia.com Created by Ekis Boys</p></b>
</div>
</center>”);

}
else
die(“<head><meta http-equiv=’content-type’ content=’text/html; charset=utf-8’/><title>LOG IN</title><meta name=’keywords’ content=”/><meta name=’description’ content=”/><link href=’style.css’ rel=’stylesheet’ type=’text/css’ media=’screen’/></head><body><div id=’header’></div><div id=’menu’><center><ul>
<li class=’first’><a href=’home.php’>HOME</a></li>
<li><a href=’#’>ABOUT US</a></li>
<li><a href=’delivery.php’>DELIVERY CHARGES</a></li>
<li><a href=’news.php’>NEWS</a></li>
<li><a href=’operations.php’>OPERATIONS</a></li>
</ul></center>
</div><div id=’page’>
<div style=’background-color:WHITE’>
<br><table border=’1′ align=’center’ bordercolor=’green’>
<td>
<center><font color=red face=verdana><p><b> USERNAME AND PASSWORD REQUIRED! </font></center>
</td>
</table>
<br>

<form action=’./login.php’ method=POST>
<center><font color=black size=5 face=impact>SERVER ACCESS</font></center>

<br>
<table width=’730′ border=’0′ cellpadding=’0′ cellspacing=’20’ bgcolor=’white’ align=’left’>

<center><font color=black size=4 face=impact>Type : </font>
<select name=’utype’ width=’1′>
<option value=’Primary’ SELECTED >Primary Administrator</option>
<option value=’Secondary’><b>Secondary Administrator</option></select>

<center><br><font color=black size=4 face=impact>username : </font>

<input type=’text’ name=’username’>

<center><font color=black size=4 face=impact>password : </font>
<input type=’password’ name=’password’>

<br><br><center><button type=’submit’ style=’width:200;background-color:SpringGreen;’>SUBMIT</button></center>
</table>
</form>

<br><br><br>

</div>
</div>
</div>

<center>
<div id=’footer’>
<b><p>Copyright © 2009 PhilPostCorp.freehostia.com Created by Ekis Boys</p></b>
</div>
</center>”);

?>

File name:Operations

<html>
<head><script type=”text/javascript”>
function validate()
{
submitOK=”true”;
if (mytrack.trackmail.value==””)
{
alert(“PLEASE INPUT TRACKING NUMBER”);submitOK=”false”;
}
if (submitOK==”false”)
{
return false;
}
}
</script><meta http-equiv=”content-type” content=”text/html; charset=utf-8″ />
<title>OPERATIONS</title>
<meta name=”keywords” content=”” />
<meta name=”description” content=”” />
<link href=”style.css” rel=”stylesheet” type=”text/css” media=”screen” />
</head>

<body>
<div id=”header”>
<!– <h1>EKIS BOYS</h1> –>
</div>
<div id=”menu”>
<center><ul>
<li class=”first”><a href=”home.php”>HOME</a></li>
<li><a href=”#”>ABOUT US</a></li>
<li><a href=”corporate.php”>CORPORATE</a></li>
<li><a href=”delivery.php”>DELIVERY RATES</a></li>
<li><a href=”news.php”>NEWS</a></li>
</ul></center>
</div>
<div id=”page”>
<div style=’background-color:WHITE’>
<BR>

<form action=”./tracklogin.php” method=POST name=”mytrack” onsubmit=”return validate()”>
<!–<center><font color=black size=5 face=impact>MAIL TRACKER</font></center>–>
<CENTER><img src=”trace.jpg”></CENTER>
<br><BR>
<table width=”730″ border=”0″ cellpadding=”0″ cellspacing=”20″ bgcolor=”white” align=”left”>

<center><font color=black size=4 face=impact>TRACKING NUMBER : </font>
<input type=’text’ name=’trackmail’>

<br><br><center><button type=”submit” style=”width:200;background-color:SpringGreen;”>SUBMIT</button></center>
</table>
</form>

<br><br><br>

</div>
</div>
</div>

<center>
<div id=”footer”>
<b><p>Copyright © 2009 PhilPostCorp.freehostia.com Created by Ekis Boys</p></b>
</div>
</center>

</body>
</html>

File name: News

<html>
<head>
<meta http-equiv=”content-type” content=”text/html; charset=utf-8″ />
<title>NEWS UPDATE</title>
<meta name=”keywords” content=”” />
<meta name=”description” content=”” />
<link href=”style.css” rel=”stylesheet” type=”text/css” media=”screen” />
</head><body><div id=”header”>
<!–<h1>SERVER ACCESS</h1>–>
</div>
<div id=”menu”>
<center><ul>
<li class=”first”><a href=”home.php”>HOME</a></li>
<li><a href=”#”>ABOUT US</a></li>
<li><a href=”corporate.php”>CORPORATE</a></li>
<li><a href=”delivery.php”>DELIVERY RATES</a></li>
<li><a href=”operations.php”>OPERATIONS</a></li>
</ul></center>
</div>
<div id=”page”>
<div style=’background-color:WHITE’>
<br>
<CENTER><td width=150 align=center><font face=Tahoma size=5 color=black><b>Region XII PhilPostCorp News</b></font></td></CENTER><br><br>

<?
mysql_connect(“localhost”,”root”,””);
mysql_select_db(“barangay”);

if($_GET[‘title’]!=”” && $_GET[‘headline’]!=”” && $_GET[‘content’]!=”” && $_GET[‘date’]!=””){
$title=$_GET[‘title’];
$headline=$_GET[‘headline’];
$content=$_GET[‘content’];
$date=$_GET[‘date’];
mysql_query(“INSERT INTO news (title,headline,content,date) VALUES(‘$title’,’$headline’,’$content’,’$date’);”);
//mysql_query(“INSERT INTO archive1 (title,headline,content,date) VALUES(‘$title’,’$headline’,’$content’,’$date’);”);
}
//if($_GET[‘action’]==”del”)
//{
//mysql_query(“DELETE FROM news WHERE id={$_GET[‘id’]};”);
//}

$result=mysql_query(“SELECT newsid,title,date,headline,content FROM news;”);

//echo “<i><b><font size=3 face=verdana>Title:</i></b></font>”;
while( $row=mysql_fetch_array($result) ){
echo “<center><p><b><font color=black size=3 face=verdana>”.$row[‘title’].”&nbsp;”.$row[‘date’].”&nbsp;</p></b></font></center>”;
echo “<center><p><font color=black size=3 face=verdana>*** “.$row[‘headline’].”&nbsp;***</p></font></center>”;
echo “<center><p><font color=black size=3 face=verdana align=>”.$row[‘content’].”&nbsp;</p></font></center>”;
}
echo”</table>”;
?>

<br><br><br>

</div>
</div>
</div>

<center>
<div id=”footer”>
<center><b><p>Copyright © 2009 PhilPostCorp.freehostia.com Created by Ekis Boys</p></b></center>
</div>
</center>
</body>
</html>

for complete code click here to download

FREE CODE DOWNLOAD

Leave a Reply

Your email address will not be published. Required fields are marked *