i have this site.... see picture
http://www.trixgroup.com/hmm.gif
the header and side navigation runs off the file main.php and all others then include it and the
idea is to sit in the white area, but for some reason it seems to be offset to the right. and if
i do much coding change to it the other pages such as the one in the red box appear at the bottom of
the page under the navigation menu. any idea what it is shifting it to the right? any changes i could
make that would improve it?
Please help...its urgent!
main.php ....
<?
include_once "conn.php";
$day = date(d);
$month = date(m);
$year = date(Y);
$qdel1 = "select * from job_post";
$rdel1 = mysql_query($qdel1) or die(mysql_error());
if(mysql_num_rows($rdel1) > '0')
{
while($adel1 = mysql_fetch_array($rdel1))
{
$my_date = mktime(0,0,0,$adel1[EXmonth], $adel1[EXday], $adel1[EXyear]);
if($my_date <= time())
{
$MyIDs[] = $adel1[job_id];
}
}
if(!empty($MyIDs))
{
$NewID = implode("', '", $MyIDs);
mysql_query("delete from job_post where job_id in ('$NewID') ") or die(mysql_error());
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Recruitment for you - easytech ltd uk</title><meta dcb license S3YBSI9IQ>
<meta name="description" content="">
<meta name="keywords" content="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="language" content="EN">
<meta name="robots" content="index,follow">
<meta name="revisit-after" content="15 days">
<meta name="document-classification" content="Internet">
<meta name="document-type" content="Public">
<meta name="document-rating" content="Safe for Kids">
<meta name="document-distribution" content="Global">
<link href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/style.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
function other_win(url) {
window.open(url, "MyWin", "toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=yes,width=600,height=400,left = 100,top = 50");
}
function image_over(image_name)
{
var a = document.all(image_name);
a.src = "http://<?=$SERVER[HTTP_HOST]?><?=$dir?>/images/" + image_name + "a.gif"
}
function image_out(image_name)
{
var a = document.all(image_name);
a.src = "http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/" + image_name + ".gif"
}
function cdel(w) {
if(confirm('Are you sure you want to delete this '+w+'?'))
{
return true;
}
else
{
return false;
}
}
</script>
<style type="text/css">
<!--
.style1 {
color: #33CCCC;
font-family: "Courier New", Courier, mono;
}
-->
</style>
</head>
<table border="0" cellpadding="0" cellspacing="0" width="600" align="center">
<img src="/easyt/easytech/images/home_02.gif" width="1100" height="217"><br>
<span class="style1">
<marquee bgcolor="#3F3F3F" width="1100" scrollamount="4" height="29">
<font size="5"><b><? ?>
</b></font>
</marquee>
</span><br>
</tr>
<tr valign="top">
<td style="padding-top:0px;padding-left:0px;padding-bottom:0px;" bgcolor="#ffffff" rowspan="2">
<img src="http://<?=$SERVER[HTTP_HOST]?><?=$dir?>/images/main_03.jpg"><br>
<img src="http://<?=$SERVER[HTTP_HOST]?><?=$dir?>/images/main_05.gif"><br>
<img src="http://<?=$SERVER[HTTP_HOST]?><?=$dir?>/images/main_06.gif"><br>
<img src="http://<?=$SERVER[HTTP_HOST]?><?=$dir?>/images/main_07.gif"><br>
<img src="http://<?=$SERVER[HTTP_HOST]?><?=$dir?>/images/main_08.gif"><br>
<img src="http://<?=$SERVER[HTTP_HOST]?><?=$dir?>/images/main_09.gif"><br>
<img src="http://<?=$SERVER[HTTP_HOST]?><?=$dir?>/images/main_10.gif"><br>
<img src="http://<?=$SERVER[HTTP_HOST]?><?=$dir?>/images/main_11.gif"><br>
<img src="http://<?=$SERVER[HTTP_HOST]?><?=$dir?>/images/main_12.gif"><br>
<img src="http://<?=$SERVER[HTTP_HOST]?><?=$dir?>/images/main_13.gif"><br>
<img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/main_14.gif"><br>
<br>
<table width="0%" border="0" cellspacing="0" cellpadding="0">
<tr>
</tr>
</table>
</td>
<td>
OTHER PAGES EXAMPLE
<?
include_once "../conn.php";
include_once "../main.php";
$country = select_country("", "country");
$select_country = str_replace("<select name=\"country\">", "<select name=\"country\"><option value=\"\">All</option>", $country);
$select_country = str_replace("<option value=\"United Kingdom\" selected>", "<option value=\"United Kingdom\">", $select_country);
$category_list = job_categories("", "JobCategory", "");
$select_category = str_replace("<SELECT NAME=\"JobCategory\" >", "<select name=\"JobCategory\"><option value=\"\">All</option>", $category_list);
$career_level1 = career_level("", "");
$career_level = str_replace("<select name=\"careerlevel\">", "<select name=\"careerlevel\"><option value=\"\" selected>All</option>", $career_level1);
?>
<form action=JobSearch3.php method=post>
<table align=center class=BlackText width=460>
<tr>
<td colspan=2 align=center class=HeaderClass>Search for a job</td>
</tr>
<tr>
<td align=right><b>Position: </b></td>
<td><input type=text name=position></td>
</tr>
<tr>
<td align=right><b>County: </b></td>
<td><?=$select_country?></td>
</tr>
<tr>
<td align=right><b>Keyword: </b></td>
<td><input type=text name=kw></td>
</tr>
<tr>
<td align=right><b>Job Category: </b></td>
<td><?=$select_category?></td>
</tr>
<tr>
<td align=right><b>Job's Target: </b></td>
<td><?=$career_level?></td>
</tr>
<tr>
<td align=right><b>Search method: </b></td>
<td><input type=radio name=sm value=or checked>or
<input type=radio name=sm value=and>and
</td>
</tr>
<tr>
<td></td>
<td><input type=submit name=s1 value=Search></td>
</tr>
<tr>
<td colspan=2 align=center class=TNA> *If you leave blank some fields, they will not take part in the search process.</td>
</tr>
</table>
</form>
<table align=center width="460" class=BlackText>
<tr>
<td colspan=2 align=center class=HeaderClass>Browse jobs by category</td>
</tr>
<tr bgcolor="dddddd">
<td width="50%"><a class="TN2" href="JobSearch3.php?JobCategory=Accounting/Auditing">Accounting/Auditing</a></td>
<td width="50%"><a class="TN2" href="JobSearch3.php?JobCategory=Healthcare, Practitioner, and Technician">Healthcare, Practitioner, and Technician</a></td>
</tr>
<tr>
<tr bgcolor="dddddd">
<td width="50%"><a class="TN2" href="JobSearch3.php?JobCategory=Community, Social Services, and Nonprofit">Community, Social Services, and Nonprofit</a></td>
<td width="50%"><a class="TN2" href="JobSearch3.php?JobCategory=Legal">Legal</a></td>
</tr>
<tr>
<td width="50%"><a class="TN2" href="JobSearch3.php?JobCategory=Financial Services">Financial Services</a></td>
<td width="50%"><a class="TN2" href="JobSearch3.php?JobCategory=Sports/Recreation">Sports/Recreation</a></td>
</tr>
<tr bgcolor="dddddd">
<td width="50%"><a class="TN2" href="JobSearch3.php?JobCategory=Government and Policy">Government and Policy</a></td>
<td width="50%"><a class="TN2" href="JobSearch3.php?JobCategory=Telecommunications">Telecommunications</a></td>
</tr>
<tr>
<td width="50%"><a class="TN2" href="JobSearch3.php?JobCategory=Healthcare, Other">Healthcare, Other</a></td>
<td width="50%"><a class="TN2" href="JobSearch3.php?JobCategory=Transportation and Warehousing">Transportation and Warehousing</a></td>
</tr>
</table>
<? include_once('../footer.php'); ?>