Your IP : 216.73.217.117


Current Path : /var/www/cesa.co.za/sites/all/themes/cesa/
Upload File :
Current File : /var/www/cesa.co.za/sites/all/themes/cesa/page.tpl.php

<?php
// $Id: page.tpl.php,v 1.18.2.1 2009/04/30 00:13:31 goba Exp $
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
  <head>
    <?php print $head ?>
    <title><?php print $head_title ?></title>
    <?php print $styles ?>
    <?php print $scripts ?>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-28769969-1']);
  _gaq.push(['_setDomainName', 'cesa.co.za']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
    <!--[if lt IE 7]>
      <?php print phptemplate_get_ie_styles(); ?>
    <![endif]-->
  </head>
  <body<?php print phptemplate_body_class($left, $right); ?>>

<!-- Layout -->
<?php
          // Prepare header
          $site_fields = array();
          if ($site_name) {
            $site_fields[] = check_plain($site_name);
          }
          if ($site_slogan) {
            $site_fields[] = check_plain($site_slogan);
          }
          $site_title = implode(' ', $site_fields);
          if ($site_fields) {
            $site_fields[0] = '<span>'. $site_fields[0] .'</span>';
          }
          $site_html = implode(' ', $site_fields);

			$bShowSCEBanner = false;
			if ($result = db_fetch_object(db_query("SELECT bid FROM {book} WHERE nid = %d", arg(1)))) {
				if ($result->bid == 139) {
					$bShowSCEBanner = true;
				}
			}
?>
  <div id="header-region" class="clear-block"><?php print $header; ?></div>

    <div id="wrapper"<?php if ($bShowSCEBanner) { echo " style='background-image:url(/images/body-sce.png)'"; } else { echo " style='background-image:url(/images/body2016.png)'"; } ?>>
    <div id="container" class="clear-block">

      <div id="header" style="height:160px; background-image:url('/images/CESA_Top_Site_Banner_nl.jpg'); background-repeat:no-repeat">
<?php
			if (!$bShowSCEBanner) {			
?>
      	<table border=0 cellspacing=0 cellpadding=0 style="padding:0px 0px 0px 0px;margin:0;border:0px;border-collapse:separate">
      		<tr><td style="padding:25px 0px 0px 20px;margin:0;border:0px;width:215px">
            <img src="/images/logo.png" />
      </td><td style="padding:20px 0px 0px 0px;margin:0;border:0px">
      
<iframe width="800" height="120" marginheight="0" marginwidth="0" src="/images/scroller/inc_fader.htm?rand=<?php echo date("Ymdh"); ?>" frameborder="0" scrolling="no"></iframe>
<!--<a href="/bce"><img src="/sites/default/files/BCE_Banner_Design-02.jpg" width="800" height="120" border="0" /></a>-->

<!-- <div style="padding-top:2px"></div> -->
</td><td style="padding:0px 0px 0px 0px;margin:0;border:0px" align="left" valign="top" nowrap="nowrap"><a href="https://www.twitter.com/the_cesa" target="_blank"><img alt="" src="/images/spacer.gif" style="width: 60px; height: 100px; border-width: 0px; border-style: solid;"></a><a href="https://www.facebook.com/ConsultingEngineersSA" target="_blank"><img alt="" src="/images/spacer.gif" style="width: 60px; height: 100px; border-width: 0px; border-style: solid;"></a><a href="https://www.linkedin.com/company/consulting-engineers-south-africa/" target="_blank"><img alt="" src="/images/spacer.gif" style="width: 60px; height: 100px; border-width: 0px; border-style: solid;"></a></td></tr></table>
<?php
			} else {
?>
<!--      	<table border=0 cellspacing=0 cellpadding=0 style="padding:0px 0px 0px 0px;margin:0;border:0px;border-collapse:separate">
      		<tr><td style="padding:2px 0px 0px 0px;margin:0;border:0px">
            <?php print '<a href="'. check_url($front_page) .'" title="'. $site_title .'"><img src="/images/CESA-MBA-Banner.jpg" border="0" /></a>'; ?>
            </td></tr></table>-->
      	<table border=0 cellspacing=0 cellpadding=0 style="padding:0px 0px 0px 0px;margin:0;border:0px;border-collapse:separate">
      		<tr><td style="padding:25px 0px 0px 20px;margin:0;border:0px;width:215px">
            <img src="/images/logo-sce.png" />
      </td><td style="padding:20px 0px 0px 0px;margin:0;border:0px">
      
<iframe width="800" height="120" marginheight="0" marginwidth="0" src="/images/scroller/inc_fadersce.htm?rand=<?php echo date("Ymdh"); ?>" frameborder="0" scrolling="no"></iframe>
<!--<a href="/bce"><img src="/sites/default/files/BCE_Banner_Design-02.jpg" width="800" height="120" border="0" /></a>-->

<!-- <div style="padding-top:2px"></div> -->
</td><td style="padding:0px 0px 0px 0px;margin:0;border:0px" align="left" valign="top" nowrap="nowrap"><a href="https://www.twitter.com/the_cesa" target="_blank"><img alt="" src="/images/spacer.gif" style="width: 60px; height: 100px; border-width: 0px; border-style: solid;"></a><a href="https://www.facebook.com/ConsultingEngineersSA" target="_blank"><img alt="" src="/images/spacer.gif" style="width: 60px; height: 100px; border-width: 0px; border-style: solid;"></a><a href="https://www.linkedin.com/company/consulting-engineers-south-africa/" target="_blank"><img alt="" src="/images/spacer.gif" style="width: 60px; height: 100px; border-width: 0px; border-style: solid;"></a></td></tr></table>            
<?php
			}
?>			
<!--
        <div id="logo-floater">
        </div>
-->
        <?php // if (isset($primary_links)) : ?>
          <?php // print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
        <?php // endif; ?>
        <?php // if (isset($secondary_links)) : ?>
          <?php // print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
        <?php // endif; ?>

      </div> <!-- /header -->

      <?php if ($left): ?>
        <div id="sidebar-left" class="sidebar">
          <?php if ($search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
          <?php print $left ?>
        </div>
      <?php endif; ?>

      <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
          	<?php print $abovecontent ?>
          <?php print $breadcrumb; ?>
          <?php if ($mission): print '<div id="mission">'. $mission .'</div>'; endif; ?>
          <?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif; ?>
          <?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
          <?php if ($tabs): print '<ul class="tabs primary">'. $tabs .'</ul></div>'; endif; ?>
          <?php if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif; ?>
          <?php if ($show_messages && $messages): print $messages; endif; ?>
          <?php print $help; ?>
          <div class="clear-block">
            <?php print $content ?>
          </div>
          <?php print $feed_icons ?>
          <div id="footer"><?php print $footer_message . $footer ?></div>
      </div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->

      <?php if ($right): ?>
        <div id="sidebar-right" class="sidebar">
          <?php if (!$left && $search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
          <?php print $right ?>
        </div>
      <?php endif; ?>

    </div> <!-- /container -->
  </div>
<!-- /layout -->

  <?php print $closure ?>
  </body>
</html>