0% found this document useful (0 votes)
86 views45 pages

10.appendix: 10.1 Appendix A Index - PHP

This document contains code for an index page of an advertising agency website. It includes HTML and PHP code. The index page contains sections for login, information about the agency, and latest clients. It also includes JavaScript for form validation on login and resetting the login form. Other files referenced include the login processing file, a file to forward requests, and files to get expert or company details.

Uploaded by

Jojo Jacob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views45 pages

10.appendix: 10.1 Appendix A Index - PHP

This document contains code for an index page of an advertising agency website. It includes HTML and PHP code. The index page contains sections for login, information about the agency, and latest clients. It also includes JavaScript for form validation on login and resetting the login form. Other files referenced include the login processing file, a file to forward requests, and files to get expert or company details.

Uploaded by

Jojo Jacob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 45

Ad-Agent Appendix

10.APPENDIX

10.1 Appendix A

Index.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>Ad-agent home window</title>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<script>
function validate()
{
var i=document.login.userName.value;
var j=document.login.password.value;
if(i=="")
{
alert("User name field is empty");
}
if(j=="")
{
alert("Password field is empty");
}
}
function reset()
{
document.login.userName.value="";
document.login.password.value="";
}
</script>
</head>

<body>

<div id="container">

<div id="head">

<h1><a href="index.html" title="">Ad-agent home window</a></h1>


<ul id="menu">
<li><a class="current" href="index.html" title="">Home</a></li>

Federal Institute of Science And Technology (FISAT)TM,Angamaly 39


Ad-Agent Appendix

<li><a href="../address.php" title="">About Us</a></li>


<!--<li><a href="" title="">Services</a></li>
<li><a href="" title="">Portofolio</a></li>
<li><a href="contact.php" title="">Contact</a></li>-->
</ul>

<div class="top_head_banner">

</div>
</div>

<div id="area">

</div>

<div id="main">

<div id="welcome">

<h1>Buildings age and become dilapiated.....<br>


Machines wear out.....People die........<br>
<font color="red" >But what live on
are the brands.</font></h1>

</div>

<div id="content_left">

<h3>Welcome to our Ad-Agency</h3>

<p>"An advertising agency or ad agency is a service business dedicated to


creating, planning and handling advertising (and sometimes other forms of promotion) for its
clients. An ad agency is independent from the client and provides an outside point of view to the
effort of selling the client's products or services."</p>

<h3>About Us</h3>
<img src="images/p1.jpg" width="110" height="74" border="0" alt="p1" title="p1"
class="pic_left" />

<p>"We provide services for the advertisers and also for the companies
require ads. We have the inputs of experts in many different fields like writers, artists,
photographers, designers, television
production crews and many others.We provide services at cheap
rate."</p>
<h3>Latest Clients</h3>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 40
Ad-Agent Appendix

<p>

<img src="images/2.jpg" width="137" height="54" alt="" title="" />


<img src="images/3.jpg" width="114" height="54" alt="" title=""/>
<img src="images/4.jpg" width="125" height="54" alt="" title=""/>
</p>

</div>

<div id="content_right">
<h4>Login here</h4>

<div class="item_box">
<form name="login" action="login.php" method="post">
<table>
<tr>
<td>Username</td>
<td><input type="text" size="15" name="uname"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" size="15" name="password"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" onclick="validate();" value="Login">
<input type="button" value="Reset" onClick="reset();"></td>
</tr>
<tr><td><?php
if(isset($_GET["res"]))
{
if($_REQUEST["res"]==0)
{
?>
<font color="red">username is case sensitive</font>
<?php
}
else
{
if($_REQUEST["res"]==1)
?>
<font color="red">Invalid username and password</font>
<?php
}}?>
</td>
</tr>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 41
Ad-Agent Appendix

</table>

<a href="company/cmpreg.php">Register Company? Click here</a><br>

<a href="expert/expreg.php">Register Expert? Click here</a>

</form>

</div>

</div>

<div class="spacer"></div>
</div>

<div id="footer">
<div style="float:left; padding-left:40px;">
<!--Copyright 2007 &copy; Bublue Studio -->
Copyright 2012 &copy;
</div>
<div id="madeby">
<!--<a href="http://www.csscreme.com"><img src="images/csscreme.jpg" width="200"
height="35" border="0" alt="csscreme" title="csscreme"/></a><br />
<a href="http://validator.w3.org/check?uri=referer" title="This site is W3C
compliant">Xhtml</a> <a href="http://jigsaw.w3.org/css-validator/validator?
uri=www.csscreme.com&amp;usermedium=all" title="This site is coded with validate
CSS">css</a>-->
</div>

</div>

</div>
</body>
</html>

Login.php

<?php
$uname=$_POST["uname"];
$pass=$_POST["password"];
session_start();
include("connection.php");

Federal Institute of Science And Technology (FISAT)TM,Angamaly 42


Ad-Agent Appendix

$query=mysql_query("select * from tbl_Login where userName='$uname' and


password='$pass'");
if($row=mysql_fetch_row($query))
{
$uid=$row[0];
$_SESSION["sn"]=$uid;

if( $uname=="admin")
{
header("Location:admin/adminhome.php");
}
else if($row[4]=="company")
{
header("Location:company/companyhome.php");

}
else if($row[4]=="expert")
{
header("Location:expert/experthome.php");

}
else
{
//echo "User name and Password is case sensitive";
header("Location:index.php?res=0");
}
}
else
header("Location:index.php?res=1");
?>

Forwardrq.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>
<script>
function getType()
{
var i=document.fwdrq.utype.value;
if(i=="expert")
{
getExpert();
}
else
Federal Institute of Science And Technology (FISAT)TM,Angamaly 43
Ad-Agent Appendix

{
getCompany();
}
}
function getExpert()
{
var xmlhttp;
if(window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
xmlhttp=new ActiveXObject();
}
else
{
alert("your browser does not support xmlhttp");
}
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
{
document.getElementById('etype').innerHTML= xmlhttp.responseText;
}
}
var url="getexpert.php";
xmlhttp.open("GET",url,true);
xmlhttp.send(null);

}
function getCompany()
{

var xmlhttp;
if(window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
xmlhttp=new ActiveXObject();
}
else
{
alert("your browser does not support xmlhttp");
Federal Institute of Science And Technology (FISAT)TM,Angamaly 44
Ad-Agent Appendix

}
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
{
document.getElementById('etype').innerHTML= xmlhttp.responseText;
}
}
var url="getcompany.php";
xmlhttp.open("GET",url,true);
xmlhttp.send(null);

}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ad-agent home window</title>
<link rel="stylesheet" type="text/css" href="../style.css" media="screen" />
</head>

<body>
<div id="container">

<div id="head">

<h1><a href="index.html" title="">Ad-agent home window</a></h1>


<ul id="menu">
<li><a class="current" href="adminhome.php" title="">Home</a></li>
<li><a href="../address.php" title="">About Us</a></li>
<!-- <li><a href="" title="">Services</a></li>-->
<li><a href="../logout.php" title="">Logout</a></li>
<!-- <li><a href="contact.html" title="">Contact</a></li>-->
</ul>

<div class="top_head_banner">

</div>
</div>

<div id="area">

</div>

<div id="main">
Federal Institute of Science And Technology (FISAT)TM,Angamaly 45
Ad-Agent Appendix

<div id="welcome">

<h1>Buildings age and become dilapiated.....<br>


Machines wear out.....People die........<br>
<font color="red" >But what live on
are the brands.</font></h1>

</div>

<div id="content_left">
<center>

<form name="fwdrq" action="fwdrqact.php" method="POST">

<table>
<?php
session_start();
$var=$_SESSION["sn"];
if($var==NULL)
{
header("Location:index.php");
}
else
{
$fid=$_REQUEST["fid"];
include("../connection.php");
$q=mysql_query("select * from tbl_Message where
msgId='$fid'");
while($row=mysql_fetch_row($q))
{
?>
<tr>

<td><input type="hidden" name="fid" value="<?php echo $fid;?


>"></td>
</tr>
<tr>

<td><input type="hidden" name="dur" value="<?php echo


$row[7];?>"></td>
</tr>
<tr>

Federal Institute of Science And Technology (FISAT)TM,Angamaly 46


Ad-Agent Appendix

<td><input type="hidden" name="bjt" value="<?php echo


$row[8];?>"></td>
</tr>
<tr>

<td><input type="hidden" name="biddate" value="<?php echo


$row[5];?>"></td>
</tr>

<tr>
<td>Message</td>
<td><input type="text" name="msg" value="<?php echo
$row[1];?>"></td>
</tr>
<tr>
<td>Send to</td>
<td><select name="utype" onchange="getType();">
<option >Select</option>
<option value="company">Company</option>
<option value="expert">Expert</option>
</select>
</td>
</tr>
<tr>
<td></td>
<td id="etype">
<!--<select name="type">
<option>Select</option>
</select>-->
</td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Send"></td>
</tr>
<?php }}?>
</table>

</form>
</center>

</div>

<div id="content_right">
<center>
<a href="viewexperts.php" title="">View Experts</a><br>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 47
Ad-Agent Appendix

<a href="viewcompany.php" title="">View Companies </a><br>


<!--<a href="" title="">View Messages</a><br>-->
<a href="addmedia.php" title="">Add Media</a><br>
<a href="updatedelete.php" title="">Edit Media</a><br>
<a href="manipulateuser.php" title="">User manipulation</a><br>
<a href="viewcomment.php" title="">View comment</a><br>
<a href="viewmsgs.php" title="">View received requests</a><br>
<a href="viewsentreqs.php" title="">View sent requests</a><br>

</center>

</div>

<div class="spacer"></div>
</div>

<div id="footer">
<div style="float:left; padding-left:40px;">
Copyright 2012<!-- &copy; xy tech Studio -->
</div>
<div id="madeby">
<!--<a href="http://www.csscreme.com"><img src="images/csscreme.jpg" width="200"
height="35" border="0" alt="csscreme" title="csscreme"/></a><br />
<a href="http://validator.w3.org/check?uri=referer" title="This site is W3C
compliant">Xhtml</a> <a href="http://jigsaw.w3.org/css-validator/validator?
uri=www.csscreme.com&amp;usermedium=all" title="This site is coded with validate
CSS">css</a> -->
</div>
</div>
</div>

</body>
</html>

Updatedelete.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>
<script language="javascript">

Federal Institute of Science And Technology (FISAT)TM,Angamaly 48


Ad-Agent Appendix

function ConfirmChoice( id)

answer = confirm("Are you sure you want to update this details?")

if (answer !=1)

{
return false;

}
else
{
document.updatedelete.action="mediaupdate.php?id="+id;
document.updatedelete.submit();
}
}

function ConfirmDelete()
{

answer = confirm("Are you sure you want to delete this details?")

if (answer !=0)

{
document.updatedelete.submit();
}

</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ad-agent update window</title>
<link rel="stylesheet" type="text/css" href="../style.css" media="screen" />
</head>

<body>
<div id="container">

<div id="head">

<h1><a href="index.html" title="">Ad-agent home window</a></h1>


Federal Institute of Science And Technology (FISAT)TM,Angamaly 49
Ad-Agent Appendix

<ul id="menu">
<li><a class="current" href="adminhome.php" title="">Home</a></li>
<li><a href="../address.php" title="">About Us</a></li>
<!-- <li><a href="" title="">Services</a></li>-->
<li><a href="../logout.php" title="">Logout</a></li>
<!-- <li><a href="contact.html" title="">Contact</a></li>-->
</ul>

<div class="top_head_banner">

</div>

</div>

<div id="area">

</div>

<div id="main">

<div id="welcome">

<h1>Buildings age and become dilapiated.....<br>


Machines wear out.....People die........<br>
<font color="red" >But what live on
are the brands.</font></h1>

</div>

<div id="content_left">

<form name="updatedelete" action="mediadelete.php" method="POST">

<table border="1">
<tr>
<th>Media Type</th>
<th>Media Description</th>
<th>Update</th>
<th>Delete</th>
</tr>
<?php
include("../connection.php");
Federal Institute of Science And Technology (FISAT)TM,Angamaly 50
Ad-Agent Appendix

$q2=mysql_query("select * from tbl_Media");


while($row=mysql_fetch_row($q2))
{
?>
<tr>
<td><?php echo $row[1];?> </td>
<td><?php echo $row[2];?> </td>
<td><a href="#" onclick=" ConfirmChoice(<?php echo $row[0]?>)"> update</a></td>
<td>Delete<input type="checkbox" name="delete[]" value="<?php echo $row[0]?>"></td>
</tr>

<?php
}
?>
<tr>
<td colspan="3"></td>
<!--<td></td>
<td></td>-->
<td><input type="button" value="Delete" onclick = "ConfirmDelete();"></td>
</tr>
</table>

</form>

</div>

<div id="content_right">
<center>

<a href="viewexperts.php" title="">View Experts</a><br>


<a href="viewcompany.php" title="">View Companies </a><br>
<!--<a href="" title="">View Messages</a><br>-->
<a href="addmedia.php" title="">Add Media</a><br>
<a href="updatedelete.php" title="">Edit Media</a><br>
<a href="manipulateuser.php" title="">User manipulation</a><br>
<a href="viewcomment.php" title="">View comment</a><br>
<a href="viewmsgs.php" title="">View received requests</a><br>
<a href="viewsentreqs.php" title="">View sent requests</a><br>

</center>
</div>

Federal Institute of Science And Technology (FISAT)TM,Angamaly 51


Ad-Agent Appendix

<div class="spacer"></div>
</div>

<div id="footer">
<div style="float:left; padding-left:40px;">
Copyright 2012<!-- &copy; Bublue Studio -->
</div>
<div id="madeby">
<!--<a href="http://www.csscreme.com"><img src="images/csscreme.jpg" width="200"
height="35" border="0" alt="csscreme" title="csscreme"/></a><br />
<a href="http://validator.w3.org/check?uri=referer" title="This site is W3C
compliant">Xhtml</a> <a href="http://jigsaw.w3.org/css-validator/validator?
uri=www.csscreme.com&amp;usermedium=all" title="This site is coded with validate
CSS">css</a> -->
</div>

</div>
</div>
</body>
</html>

Rateexp.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>

<script language=javascript>
var name = new Array();
name[0]= "../ratingcode/images/star2.gif";
if(document.images)
{
var ss = new Image();
ss.src = name[0];
}
</script>

<Script language=javascript>
function selstar(val)
{
for(var x=1;x<=val;x++)
{
document['i'+x].src="../ratingcode/images/star2.gif";
}
Federal Institute of Science And Technology (FISAT)TM,Angamaly 52
Ad-Agent Appendix

}
function remstar(val)
{
for(var x=1;x<=val;x++)
{
document['i'+x].src="../ratingcode/images/star1.gif";
}
}

function setrate(val)
{
//document.forms['rating'].elements["rating"].value=val;
document.rating.rating.value=val;
document.forms['rating'].action = "rating_action.php";
//alert("hai");
document.forms['rating'].submit();

}
// function remarks1()
// {
// document.forms['remark'].action = "professionaldetailsaction.php";
// document.forms['remark'].submit();
//
// }
// function remark()
// {
// if(document.rating.remark.value==0)
// {
// alert("Enter your remark");
// document.rating.remark.focus();
// return(false);
// }
//
// document.rating.action="send_remark.php";
// document.rating.method="POST";
// document.rating.submit();
// }
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ad-agent company registration</title>
<link rel="stylesheet" type="text/css" href="../style.css" media="screen" />

</head>

<body>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 53
Ad-Agent Appendix

<div id="container">

<div id="head">

<h1><a href="index.html" title="">Ad-agent company registration</a></h1>

<ul id="menu">
<li><a class="current" href="../company/companyhome.php" title="">Home</a></li>
<li><a href="" title="">About Us</a></li>
<li><a href="" title="">Services</a></li>
<li><a href="../logout.php" title="">Logout</a></li>
<li><a href="contact.html" title="">Contact</a></li>
</ul>

<div class="top_head_banner">

</div>

</div>

<div id="area">

</div>

<div id="main">

<div id="welcome">

<h1>Buildings age and become dilapiated.....<br>


Machines wear out.....People die........<br>
<font color="red" >But what live on
are the brands.</font></h1>

</div>

<div id="content_left">

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

<center>
<?php $rateval=$a; ?>

<?php if(isset($rateval)){
Federal Institute of Science And Technology (FISAT)TM,Angamaly 54
Ad-Agent Appendix

for($i=1;$i<=5;$i++){

if ($rateval>=1)
{
echo "<img
src=\"../ratingcode/images/star2.gif\">";
$rateval=$rateval-1;
}
else if ($rateval>=0.5)
{
echo "<img
src=\"../ratingcode/images/star3.gif\">";
$rateval=$rateval-1;
}
else if (($rateval<0.5) && ($rateval>0))
{
echo "<img
src=\"../ratingcode/images/star1.gif\">";
$rateval=$rateval-1;
}
else if($rateval<=0)
{
echo "<img
src=\"../ratingcode/images/star1.gif\">";
}
}
}else{
for($i=1;$i<=5;$i++){
echo "<img
src=\"../ratingcode/images/star1.gif\">";
}
}
?>
</td>
</center>
</form>

</div>

<div id="content_right">
<!--<a href="../company/chgpwd.php" title="">Change password</a><br>
<a href="../company/ceditprofile.php" title="">Edit profile</a><br>
<a href="../company/postcomment.php" title="">Post comment</a><br>
<a href="../company/viewreply.php" title="">View reply</a><br>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 55
Ad-Agent Appendix

<a href="../company/sendreq.php" title="">Post request</a><br>


<a href="../company/viewmsgs.php" title="">View message</a><br>
<a href="../company/viewexperts.php" title="">View experts</a><br>
<a href="../company/payment.php" title="">Payment</a><br>
<a href="../company/viewbid.php" title="">View bidding details</a><br>
<a href="../company/viewsampleads.php" title="">View sample ads
</a><br>-->

<div class="item_box">

</div>

</div>

<div class="spacer"></div>
</div>

<div id="footer">
<div style="float:left; padding-left:40px;">
Copyright 2007 &copy; Bublue Studio
</div>
<div id="madeby">
<a href="http://www.csscreme.com"><img src="images/csscreme.jpg" width="200"
height="35" border="0" alt="csscreme" title="csscreme"/></a><br />
<a href="http://validator.w3.org/check?uri=referer" title="This site is W3C
compliant">Xhtml</a> <a href="http://jigsaw.w3.org/css-validator/validator?
uri=www.csscreme.com&amp;usermedium=all" title="This site is coded with validate
CSS">css</a>
</div>

</div>
</div>

</body>
</html>

Viewbid.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>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 56
Ad-Agent Appendix

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<title>Ad-agent home window</title>
<link rel="stylesheet" type="text/css" href="../style.css" media="screen" />
</head>

<body>
<div id="container">

<div id="head">

<h1><a href="index.html" title="">Ad-agent home window</a></h1>

<ul id="menu">
<li><a class="current" href="#" title="">Home</a></li>
<li><a href="../address.php" title="">About Us</a></li>
<!--<li><a href="" title="">Services</a></li>-->
<li><a href="../logout.php" title="">Logout</a></li>
<!-- <li><a href="contact.html" title="">Contact</a></li>-->
</ul>

<div class="top_head_banner">

</div>

</div>

<div id="area">

</div>

<div id="main">

<div id="welcome">

<h1>Buildings age and become dilapiated.....<br>


Machines wear out.....People die........<br>
<font color="red" >But what live on
are the brands.</font></h1>

</div>

<div id="content_left">
<center>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 57
Ad-Agent Appendix

<form name="viewbid" method="POST">


<table border="1">
<tr> <!--<td>Sender</td>-->
<td>Bid date</td>
<td>Amount</td>
<td>Duration</td>
<td>View</td>
</tr>
<?php
include("../connection.php");
$q=mysql_query("select * from tbl_Message where
receiverId='1'");
while($row=mysql_fetch_row($q))
{
$bq=mysql_query("select * from tbl_ExpertReg where
lid='$row[2]'");
$brow=mysql_fetch_row($bq);
?>
<tr>

<!--<td><//?php echo $brow[1];?></td>-->


<td><?php echo $row[5];?></td>
<td><?php echo $row[8];?></td>
<td><?php echo $row[7];?></td>
<td><a href="viewbidact.php?id=<?php echo $row[0]?
>">View</a></td>

</tr>
<!--<tr>
<td align="right" colspan="5"><input type="submit"
value="Accept"/></td>
</tr>-->
<?php
}
?>

</table>
</form>
</center>

</div>

<div id="content_right">
<center>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 58
Ad-Agent Appendix

<h4>Company Home</h4>
<!--<a href="../company/editprofile.php" title="">Edit profile</a><br>-->
<a href="../company/chgpwd.php" title="">Change password</a><br>
<a href="../company/ceditprofile.php" title="">Edit profile</a><br>
<a href="../company/postcomment.php" title="">Post comment</a><br>
<a href="../company/viewreply.php" title="">View reply</a><br>
<a href="../company/sendreq.php" title="">Post request</a><br>
<a href="../company/viewmsgs.php" title="">View message</a><br>
<a href="../company/viewexperts.php" title="">View experts</a><br>
<a href="../company/payment.php" title="">Payment</a><br>
<a href="../company/viewbid.php" title="">View bidding details</a><br>
</center>

</div>

<div class="spacer"></div>
</div>

<div id="footer">
<div style="float:left; padding-left:40px;">
Copyright 2012 <!--&copy; xy tech Studio -->
</div>
<div id="madeby">
<!--<a href="http://www.csscreme.com"><img src="images/csscreme.jpg" width="200"
height="35" border="0" alt="csscreme" title="csscreme"/></a><br />
<a href="http://validator.w3.org/check?uri=referer" title="This site is W3C
compliant">Xhtml</a> <a href="http://jigsaw.w3.org/css-validator/validator?
uri=www.csscreme.com&amp;usermedium=all" title="This site is coded with validate
CSS">css</a> -->
</div>
</div>
</div>

</body>
</html>

Viewsampleads.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>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 59
Ad-Agent Appendix

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<title>Ad-agent home window</title>
<link rel="stylesheet" type="text/css" href="../style.css" media="screen" />
</head>

<body>
<div id="container">

<div id="head">

<h1><a href="index.html" title="">Ad-agent home window</a></h1>

<ul id="menu">
<li><a class="current" href="../company/companyhome.php" title="">Home</a></li>
<li><a href="../address.php" title="">About Us</a></li>
<!-- <li><a href="" title="">Services</a></li>-->
<li><a href="../logout.php" title="">Logout</a></li>
<!-- <li><a href="contact.html" title="">Contact</a></li>-->
</ul>

<div class="top_head_banner">

</div>

</div>

<div id="area">

</div>

<div id="main">

<div id="welcome">

<h1>Buildings age and become dilapiated.....<br>


Machines wear out.....People die........<br>
<font color="red" >But what live on
are the brands.</font></h1>

</div>

<div id="content_left">
<center>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 60
Ad-Agent Appendix

<form name="viewads" action="viewadact.php" method="POST">


<table>
<tr>
<td>sample ads</td>
<td><select name="ad" >
<option >Select</option>
<?php
include("../connection.php");
$q=mysql_query("select * from tbl_SampleAd");
while($row=mysql_fetch_row($q))
{

?>
<option value="<?php echo $row[3];?>"><?php echo
$row[3];?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr>
<td>
<input type="submit" value="View"/>
</td>

</tr>

</table>
</form>

</center>

</div>

<div id="content_right">
<center>

<a href="../company/chgpwd.php" title="">Change password</a><br>


<a href="../company/ceditprofile.php" title="">Edit profile</a><br>
<a href="../company/postcomment.php" title="">Post comment</a><br>
<a href="../company/viewreply.php" title="">View reply</a><br>
<a href="../company/sendreq.php" title="">Post request</a><br>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 61
Ad-Agent Appendix

<a href="../company/viewmsgs.php" title="">View message</a><br>


<a href="../company/viewexperts.php" title="">View experts</a><br>
<a href="../company/payment.php" title="">Payment</a><br>
<a href="../company/viewbid.php" title="">View bidding details</a><br>
<a href="../company/viewsampleads.php" title="">View sample ads
</a><br>
</center>

</div>

<div class="spacer"></div>
</div>

<div id="footer">
<div style="float:left; padding-left:40px;">
Copyright 2012<!-- &copy; xy tech Studio -->
</div>
<div id="madeby">
<!--<a href="http://www.csscreme.com"><img src="images/csscreme.jpg" width="200"
height="35" border="0" alt="csscreme" title="csscreme"/></a><br />
<a href="http://validator.w3.org/check?uri=referer" title="This site is W3C
compliant">Xhtml</a> <a href="http://jigsaw.w3.org/css-validator/validator?
uri=www.csscreme.com&amp;usermedium=all" title="This site is coded with validate
CSS">css</a> -->
</div>
</div>
</div>

</body>
</html>

Bid.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>Ad-agent home window</title>
<link rel="stylesheet" type="text/css" href="../style.css" media="screen" />
</head>

<body>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 62
Ad-Agent Appendix

<div id="container">

<div id="head">

<h1><a href="index.html" title="">Ad-agent home window</a></h1>

<ul id="menu">
<li><a class="current" href="#" title="">Home</a></li>
<li><a href="" title="">About Us</a></li>
<li><a href="" title="">Services</a></li>
<li><a href="../logout.php" title="">Logout</a></li>
<li><a href="contact.html" title="">Contact</a></li>
</ul>

<div class="top_head_banner">

</div>

</div>

<div id="area">

</div>

<div id="main">

<div id="welcome">

<h1>Buildings age and become dilapiated.....<br>


Machines wear out.....People die........<br>
<font color="red" >But what live on
are the brands.</font></h1>

</div>

<div id="content_left">
<center>
<?php
session_start();
$var=$_SESSION["sn"];
if($var==NULL)
{
header("Location:../index.php");
Federal Institute of Science And Technology (FISAT)TM,Angamaly 63
Ad-Agent Appendix

}
else
{
?>
<form name="bid" action="bidact.php" method="POST">
<?php

$mid=$_REQUEST["id"];
//echo $mid;
include("../connection.php");
$q=mysql_query("select * from tbl_Message where msgId='$mid'");
while($row=mysql_fetch_row($q))
{
?>
<table>
<tr>
<td><input type="hidden" name="id" value="<?php echo $row[0];?
>"/></td>
</tr>
<tr>
<td><input type="hidden" name="refid" value="<?php echo $row[9];?
>"/></td>
</tr>
<tr>
<td><input type="hidden" name="expid" value="<?php echo $var;?
>"/></td>
</tr>
<tr>
<td>Request</td>
<td><input type="text area" name="req" value="<?php echo $row[1];?
>"/></td>
</tr>
<tr>
<td>Expert message</td>
<td><input type="text area" name="emsg"/></td>
</tr>
<tr>
<td>Time needed</td>
<td><input type="text area" name="tn"/></td>
<td>Months</td>
</tr>
<tr>
<td>Expected amount</td>
<td><input type="text area" name="eamt"/></td>
<td>$</td>
</tr>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 64
Ad-Agent Appendix

<tr><td></td>
<td><input type="submit" value="Bid"/></td>
<!-- <td><input type="button" value="Cancel"/></td>-->
</tr>
<?php
}
?>
</table>
</form>
<?php
}
?>

</center>

</div>

<div id="content_right">
<center>

<a href="../expert/editprofile.php" title="">Edit profile</a><br>


<a href="../expert/changepassword.php" title="">Change
password</a><br>
<a href="../expert/postcomment.php" title="">Post comment</a><br>
<a href="../company/viewreply.php" title="">View reply</a><br>
<a href="../expert/sendmsg.php" title="">Send messages</a><br>
<a href="../expert/viewmsgs.php" title="">View messages</a><br>

<!--<a href="../company/send" title="">Edit Media</a><br>-->


<!--<a href="manipulateuser.php" title="">User manipulation</a>-->
</center>

</div>

<div class="spacer"></div>
</div>

<div id="footer">
<div style="float:left; padding-left:40px;">
Copyright 2007 &copy; xy tech Studio
</div>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 65
Ad-Agent Appendix

<div id="madeby">
<a href="http://www.csscreme.com"><img src="images/csscreme.jpg" width="200"
height="35" border="0" alt="csscreme" title="csscreme"/></a><br />
<a href="http://validator.w3.org/check?uri=referer" title="This site is W3C
compliant">Xhtml</a> <a href="http://jigsaw.w3.org/css-validator/validator?
uri=www.csscreme.com&amp;usermedium=all" title="This site is coded with validate
CSS">css</a>
</div>

</div>

</div>

</body>
</html>

Federal Institute of Science And Technology (FISAT)TM,Angamaly 66


Ad-Agent Appendix

10.1 Appendix B

Federal Institute of Science And Technology (FISAT)TM,Angamaly 67


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 68


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 69


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 70


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 71


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 72


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 73


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 74


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 75


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 76


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 77


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 78


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 79


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 80


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 81


Ad-Agent Appendix

Federal Institute of Science And Technology (FISAT)TM,Angamaly 82


Ad-Agent Appendix

10.3 Appendix C

10.3.1 Acronyms

DFD- Data Flow Diagram

10.3.2 Bibliography

- www.wikipedia.com
- Analysis and design of Information systems by JAMES A SENN
- Management Information Systems by D.P GOYAL
- Analysis and design of Information system by V.RAJARAMAN

Federal Institute of Science And Technology (FISAT)TM,Angamaly 83

You might also like