Jump to content

Schedule Page layout problem


Wildone

Recommended Posts

Hello Guys,

I have created a page .htm via "add page" function in Admin Center.

Then I have downloaded the schedule.htm from the ftp server and edited it(content of the file below) and reupload it on the server. But then the problem has occurred. Namely the schedule does appear below the disclaimer which is located in the footer div which is located at the very bottom. When it should be above the disclaimer and over the whole footer div...I have been wondering should I do that in other way, creating a tpl file or something. So if can anyone have a look at the code below and maybe suggest something what I did wrong? Your help would be greatly appreciated :)

schedule.htm

<?php
$scheds = SchedulesData::getSchedules();
?>
<table width ="100%">
<tr>
<th align="center">Flight #</td>
<th align="center">Departure</td>
<th align="center">Arrival</td>
<th align="center">Time Out</td>
<th align="center">Time In</td>
<th align="center">Monday</td>
<th align="center">Tesday</td>
<th align="center">Wednesday</td>
<th align="center">Thursday</td>
<th align="center">Friday</td>
<th align="center">Saturday</td>
<th align="center">Sunday</td>
<th align="center">Fare Price</td>
<th align="center">Aircraft</td>
</tr>
<?php
foreach($scheds as $sched)
{
?>
<tr>
<td align="center"><?php echo $sched->code.$sched->flightnum ;?></td>
<td align="center"><?php echo $sched->depicao ;?></td>
<td align="center"><?php echo $sched->arricao ;?></td>
<td align="center"><?php echo $sched->deptime ;?></td>
<td align="center"><?php echo $sched->arrtime ;?></td>
<?php
 // We are gonna loop each day of the week
 for($dayofweek = 0; $dayofweek < 7; $dayofweek++)
 {
		 // echo our column opening
		 echo '<td>';

		 // Check if $i (the current day of week) exists
		 if(substr_count($sched->daysofweek, $dayofweek) > 0)
		 {
				 // there is a flight for sunday , so echo that plane icon out
				 echo '<img src="#" >
';
		 }

		 // Close that column
		 echo '</td>';

 }
 ?>
<td align="center"><?php echo $sched->price ;?></td>
<td align="center"><?php echo $sched->aircraft ;?></td>
</tr>
<?php
}
?>

layout.tpl

<?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" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7">
<title><?php echo $page_title; ?></title>
<link rel="stylesheet" media="all" type="text/css" href="<?php echo SITE_URL?>/lib/skins/myskin/styles.css" />
<?php
/* This is required, so phpVMS can output the necessary libraries it needs */
echo $page_htmlhead;
?>
<?php /*Any custom Javascript should be placed below this line, after the above call */ ?>
</head>
<body>
<?php
/* This should be the first thing you place after a <body> tag
This is also required by phpVMS */
echo $page_htmlreq;
?>
<div id="body">
<div id="innerwrapper">
<div id="topBanner"><?php
if(Auth::LoggedIn())
{
if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
{
echo '<a target="_blank" id="administra" href="'.fileurl('/admin').'">Admin Center</a>';
}
?>
<?php
}
?>
</div>

<div id="topNav">
<ul class="nav">
<?php
/* You can modify this template into a table or something, by default
it's list elements inside of a UL. Here's a link with some info:

http://articles.sitepoint.com/article/css-anthology-tips-tricks-4/2
*/
Template::Show('core_navigation.tpl');
?>
</ul>
</div>

<div id="bodytext">

<?php
/* This will insert all of the "meat" of the page in there - the template
which is generated, depending on which page you're on. To change these
templates, check out the docs on the site. They're under the /core/templates
folder, and to change them, copy them into the folder of your skin (the
folder this file is in right now.
*/

echo $page_content;

?>

</div>
</div>
<div id="footer">
<h4 style="margin-bottom:0;">---------------------------------------------------------------------Disclaimer---------------------------------------------------------------------</h4>
<p style="margin-top:0;">Disclaimer text<p>
<p>copyright © 2007 - <?php echo date('Y') ?> - <?php echo SITE_NAME; ?><br />
<!-- Please retain this!! It's part of the phpVMS license. You must display a
"powered by phpVMS" somewhere on your page. Thanks! -->
<a href="http://www.phpvms.net" target="_blank">powered by phpVMS</a></p>
</div>
</div>
</body>
</html>

style.css

#footer { width: 970px; /*background: url(images/bottombg.jpg) repeat-x 0 0 #ffffff;*/ height: 115px; margin: 0 auto; padding: 100px 0 0 0; clear: both; text-align: center; border-left: none; border-right: none; }
#footer p { padding: 0; font-size: 10px; }

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...