10.appendix: 10.1 Appendix A Index - PHP
10.appendix: 10.1 Appendix A Index - PHP
10.APPENDIX
10.1 Appendix A
Index.php
<body>
<div id="container">
<div id="head">
<div class="top_head_banner">
</div>
</div>
<div id="area">
</div>
<div id="main">
<div id="welcome">
</div>
<div id="content_left">
<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>
</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>
</form>
</div>
</div>
<div class="spacer"></div>
</div>
<div id="footer">
<div style="float:left; padding-left:40px;">
<!--Copyright 2007 © Bublue Studio -->
Copyright 2012 ©
</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&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");
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
{
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">
<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">
</div>
<div id="content_left">
<center>
<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>
<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
</center>
</div>
<div class="spacer"></div>
</div>
<div id="footer">
<div style="float:left; padding-left:40px;">
Copyright 2012<!-- © 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&usermedium=all" title="This site is coded with validate
CSS">css</a> -->
</div>
</div>
</div>
</body>
</html>
Updatedelete.php
if (answer !=1)
{
return false;
}
else
{
document.updatedelete.action="mediaupdate.php?id="+id;
document.updatedelete.submit();
}
}
function ConfirmDelete()
{
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">
<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">
</div>
<div id="content_left">
<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
<?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>
</center>
</div>
<div class="spacer"></div>
</div>
<div id="footer">
<div style="float:left; padding-left:40px;">
Copyright 2012<!-- © 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&usermedium=all" title="This site is coded with validate
CSS">css</a> -->
</div>
</div>
</div>
</body>
</html>
Rateexp.php
<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">
<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">
</div>
<div id="content_left">
<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
<div class="item_box">
</div>
</div>
<div class="spacer"></div>
</div>
<div id="footer">
<div style="float:left; padding-left:40px;">
Copyright 2007 © 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&usermedium=all" title="This site is coded with validate
CSS">css</a>
</div>
</div>
</div>
</body>
</html>
Viewbid.php
<body>
<div id="container">
<div id="head">
<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">
</div>
<div id="content_left">
<center>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 57
Ad-Agent Appendix
</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 <!--© 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&usermedium=all" title="This site is coded with validate
CSS">css</a> -->
</div>
</div>
</div>
</body>
</html>
Viewsampleads.php
<body>
<div id="container">
<div id="head">
<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">
</div>
<div id="content_left">
<center>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 60
Ad-Agent Appendix
?>
<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>
</div>
<div class="spacer"></div>
</div>
<div id="footer">
<div style="float:left; padding-left:40px;">
Copyright 2012<!-- © 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&usermedium=all" title="This site is coded with validate
CSS">css</a> -->
</div>
</div>
</div>
</body>
</html>
Bid.php
<body>
Federal Institute of Science And Technology (FISAT)TM,Angamaly 62
Ad-Agent Appendix
<div id="container">
<div id="head">
<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">
</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>
</div>
<div class="spacer"></div>
</div>
<div id="footer">
<div style="float:left; padding-left:40px;">
Copyright 2007 © 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&usermedium=all" title="This site is coded with validate
CSS">css</a>
</div>
</div>
</div>
</body>
</html>
10.1 Appendix B
10.3 Appendix C
10.3.1 Acronyms
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