/home/mip/public_html_/old-website/old/view_job.php
<?php
//require all function to be used.
require_once("func_all.php");
require_once("func_select.php");
require_once("func_select_codes.php");

do_html_header("Job Opportunities"); //header.
do_menu();
?>
<link href="letter.css" rel="stylesheet" type="text/css">


<?php
$jobs = getdata("SELECT * FROM webjobs WHERE webjobid = '$webjobid'");
$job1 = getdata_one("*","webjobs","webjobid",$webjobid);

$country = getdata("SELECT country FROM webjobs WHERE country = '".$jobs[1][country]."'");
$post_date = getdata("SELECT posting_date FROM webjobs WHERE posting_date = '".dateformat1($jobs[1][posting_date],"M d, Y")."'");
$closing_date = getdata("SELECT closing_date FROM webjobs WHERE closing_date = '".dateformat1($jobs[1][closing_date],"M d, Y")."'");
$job_details = getdata("SELECT description FROM webjobs WHERE description = '".$jobs[1][description]."'");
$job_details1 = getdata("SELECT requirements FROM webjobs WHERE requirements = '".$jobs[1][requirements]."'");
$job_details2 = getdata("SELECT salary FROM webjobs WHERE salary = '".$jobs[1][salary]."'");

echo "<table width='100' border='0' cellspacing='0' cellpadding='0'>";
  echo "<tr>";
   echo "<th align='left' scope='col' style='padding:20px;'><img src='images/openings.gif'/></th>";
  echo "</tr>";
echo "</table>";

echo "<div align='left'></div>";
echo "<br>";

echo "<table width='300' align='center' class='style4'>";
echo "<tr>";
echo "<td>";

echo "<table width='450' border='0' bgcolor='#CA8C02' align='center'>";
echo "<tr>";
echo "<td>";
echo "<strong><font size='2' color='#ffffff'><center>";
echo $jobs[1][position];
echo "</strong></font></center>";
echo "</td>";
echo "</tr>";
echo "</table>";


//echo "<br>";

echo "<table width='450' border='0' style='background-image:url(images/bckgrnd_style)'>";
echo "<tr>";
echo "<td>";

echo "<font size='2' >";
echo "<strong>Posting Date: &nbsp;</strong></font>";
echo "<font size='2' >";
echo dateformat1($jobs[1][posting_date],"M d, Y");
echo "</font>";

echo "<br>";

echo "<font size='2' >";
echo "<strong>Closing Date: &nbsp;</strong></font>";
echo "<font size='2' >";
echo dateformat1($jobs[1][closing_date],"M d, Y");
echo "</font>";

echo "<br><br>";


echo "<strong>Country: &nbsp;</strong></font>";
echo "<b>";
echo $country[1][country];
echo "</b>";
echo "<br><br>";


echo "<font size='2'>";
echo "<strong>Job Details: &nbsp;</strong></font>";
echo "<font size='2'>";
echo $job_details[1][description];
echo "</font>";

echo "<br><br>";

echo "<font size='2'>";
echo "<strong>Requirements: &nbsp;</strong></font>";
echo "<font size='2'>";
echo $job_details1[1][requirements];
echo "</font>";

echo "<br><br>";

echo "<font size='2'>";
echo "<strong>Salary: &nbsp;</strong></font>";
echo "<font size='2'>";
echo $job_details2[1][salary];
echo "</font>";

echo "</td>";
echo "</tr>";
echo "</table>";

echo "</td>";
echo "</tr>";
echo "</table>";

echo "<br>";

echo "<div class='style3' style='padding:15px;'><font size='2'> <&nbsp;<a href='submit.php?webjobid=$webjobid'>Click here to Apply</a></font></div>";
?>

<? do_footer();?>