Jump to content

Fullscreen Acars Map


Kishshey

Recommended Posts

  • 3 weeks later...

This is the code you need to put to index.php in the same time you need to create a new header_something.tpl

$BaseTemplate->Set('title', MainController::$page_title .' - '.SITE_NAME);
$BaseTemplate->Set('page_title', MainController::$page_title .' - '.SITE_NAME);
if(file_exists(SKINS_PATH.'/layout.tpl'))
{
$BaseTemplate->Set('page_htmlhead', Template::Get('core_htmlhead.tpl', true));
$BaseTemplate->Set('page_htmlreq', Template::Get('core_htmlreq.tpl', true));
$BaseTemplate->Set('page_content', $page_content);
# It's a template sammich!
if (strpos($page_content,'html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }') !== false) {
$BaseTemplate->ShowTemplate('header_map.tpl');
echo $page_content;}
elseif (strpos($page_content,'html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }') !== false) {
$BaseTemplate->ShowTemplate('header_vrs.tpl');
echo $page_content;}
else {
$BaseTemplate->ShowTemplate('layout.tpl'); }
}

You need also touch ACARS.php module to declare an new *.tpl render in this new file you copy paste the acarsmap.tpl inside

public function viewmapbig()
{
$this->set('acarsdata', ACARSData::GetACARSData());
$this->render('acarsmapbig.tpl');
}

Inside the new.tpl put this in the top of your tpl:

<style>
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
body {
padding: 0;
margin: 0;
}
html, body, #acarsmap{
height: 100%;
}
</style>

http://www.skydream-airlines.com/index.php/acars/viewmapbig

Link to comment
Share on other sites

This is the code you need to put to index.php in the same time you need to create a new header_something.tpl

$BaseTemplate->Set('title', MainController::$page_title .' - '.SITE_NAME);
$BaseTemplate->Set('page_title', MainController::$page_title .' - '.SITE_NAME);
if(file_exists(SKINS_PATH.'/layout.tpl'))
{
$BaseTemplate->Set('page_htmlhead', Template::Get('core_htmlhead.tpl', true));
$BaseTemplate->Set('page_htmlreq', Template::Get('core_htmlreq.tpl', true));
$BaseTemplate->Set('page_content', $page_content);
# It's a template sammich!
if (strpos($page_content,'html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }') !== false) {
$BaseTemplate->ShowTemplate('header_map.tpl');
echo $page_content;}
elseif (strpos($page_content,'html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }') !== false) {
$BaseTemplate->ShowTemplate('header_vrs.tpl');
echo $page_content;}
else {
$BaseTemplate->ShowTemplate('layout.tpl'); }
}

You need also touch ACARS.php module to declare an new *.tpl render in this new file you copy paste the acarsmap.tpl inside

public function viewmapbig()
{
$this->set('acarsdata', ACARSData::GetACARSData());
$this->render('acarsmapbig.tpl');
}

Inside the new.tpl put this in the top of your tpl:

<style>
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
body {
padding: 0;
margin: 0;
}
html, body, #acarsmap{
height: 100%;
}
</style>

http://www.skydream-...cars/viewmapbig

Thank you very much for this sir, I will take a look today. Thanks

EDIT : Would you mind telling me what should I include in the header_map.tpl

Link to comment
Share on other sites

EDIT : Would you mind telling me what should I include in the header_map.tpl

You need to include in your header

<!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=10" charset=utf-8>
<title><?php echo $page_title; ?></title>

<?php
Template::Show('core_htmlhead.tpl');
?>
</head>
<body>
<?php
Template::Show('core_htmlreq.tpl');
?>

Link to comment
Share on other sites

You need to include in your header

<!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=10" charset=utf-8>
<title><?php echo $page_title; ?></title>

<?php
Template::Show('core_htmlhead.tpl');
?>
</head>
<body>
<?php
Template::Show('core_htmlreq.tpl');
?>

Thanks I will try now

EDIT

Thanks a lot sir it is working perfectly now.

Link to comment
Share on other sites

  • 4 months later...

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...