/home/mip/public_html_/old-website/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_one("*","web_jobs","webjob_id",$webjobid); 
//$job1 = getdata_one("*","web_jobs","webjob_id",$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 getname($jobs[position_id],"positions","position_id");
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[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[expiry_date],"M d, Y");
echo "</font>";

echo "<br><br>";


echo "<strong>Country: &nbsp;</strong></font>";
echo "<b>";
echo getname($jobs[country_id],"country","country_id");
echo "</b>";
echo "<br><br>";


echo "<font size='2'>";
echo "<strong>Job Details: &nbsp;</strong></font><br>";
echo "<font size='2'>";
echo nl2br($jobs[job_details]);
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;' align=center>";
echo "<form method='post' action='apply_online.php'><input type='hidden' name='webjob_id' value='".$webjobid."'><input type='submit' value='Click here to apply'></form>";
echo "</div>";
?>

<? do_footer();?>