Location: PHPKode > projects > Quick Guestbook > quicktalk/qtg_p_header.php
<?php

// QuickTalk Guestbook 2.5 build:20100731

ob_start();
if ( !isset($bJava) ) $bJava=true;
if ( !isset($strHeadScript) ) $strHeadScript='';

// Lang menu

if ( $qtg_menulang )
{
  if ( file_exists('bin/qtg_lang.php') )
  {
  include('bin/qtg_lang.php');
  $strURI = QTargimplode(QTarradd(QTargexplode(),'lx'));
  foreach($arrLang as $strKey=>$arrDef) $strLangMenu .= '<a href="'.Href($pg_url).'?'.$strURI.'&amp;lx='.$strKey.'" title="'.$arrDef[1].'" class="'.($qtg_banner=='1' ? 'banner' : 'nobanner').'">'.$arrDef[0].'</a>&nbsp;';
  }
  else
  {
  $strLangMenu .= '<span class="small">missing file:bin/qtg_lang.php</span>';
  }
}

// Contrast

if ( QT_SHOW_CONTRAST && substr($pg_url,0,7)!='qtg_adm' )
{
  $arrCss[]='qtg_contrast.css';
  $strHeadScript .= '<script type="text/javascript" src="bin/css/qtg_contrast.js"></script>
  ';
  $strLangMenu .= '<a class="css-default" href="javascript:chooseStyle(\'cssalternate\',60);"><img style="width:12px;height:12px;vertical-align:middle" src="bin/css/qtg_contrast.gif" title="High contrast display" alt="Contrast"/></a><a class="css-alternate" href="javascript:chooseStyle(\'cssmain\',60);"><img style="width:12px;height:12px;border-width:0;vertical-align:middle" src="bin/css/qtg_contrast.gif" title="Default display" alt="Contrast"/></a>';
}

// START

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="',$L['Html_dir'],'" xml:lang="',$L['Html_lang'],'">
<head>
<title>',$qtg_title,'</title>
<meta http-equiv="content-type" content="text/html; charset=',$L['Html_charset'],'"/>
<link rel="shortcut icon" href="qtg.ico"/>
<link type="text/css" rel="stylesheet" href="',$qtg_skin,'/qtg.css" title="cssmain"/>
';
foreach($arrCss as $strCss)
{
  if  ($strCss=='qtg_contrast.css' )
  {
  echo '<link type="text/css" rel="alternate stylesheet" href="bin/css/qtg_contrast.css" title="cssalternate"/>',"\n";
  }
  else
  {
  echo '<link type="text/css" rel="stylesheet" href="',$qtg_skin,'/',$strCss,'"/>',"\n";
  }
}

echo $strHeadScript;

echo '</head>

<body'.(isset($strBodyAddOnload) ? ' onload="'.$strBodyAddOnload.'"': '').(isset($strBodyAddOnunload) ? ' onunload="'.$strBodyAddOnunload.'"': '').'>
';

if ( $bJava ) 
{
echo '<script type="text/javascript">
<!--
';
include('bin/qtg_base.js');
echo '
-->
</script>
';
}

echo '
<div class="qtg_page">
<table class="qtg_page" width="',($qtg_skin=='admin' ? '850': $qtg_pagewidth),'" cellspacing="0" cellpadding="0">
<tr class="qtg_page">
<td class="qtg_page">
';

if ($qtg_banner)
{
echo '
<!-- BANNER TOP -->
<div class="banner">
<table class="banner" cellspacing="0" cellpadding="0">
<tr class="banner">
<td class="banner_l"></td>
<td class="banner_c"><img id="logo" src="',$qtg_skin,'/qtg_logo',$qtg_type,'.gif" alt="QuickTalk"/></td>
<td class="banner_m">',$strLangMenu,'</td>
<td class="banner_r"></td>
</tr>
</table>
</div>
';
}
else
{
echo '
<!-- NO BANNER TOP -->
<div class="nobanner">
<table class="nobanner" cellspacing="0" cellpadding="0">
<tr class="nobanner">
<td class="nobanner_l"></td>
<td class="nobanner_c"></td>
<td class="nobanner_m">',$strLangMenu,'</td>
<td class="nobanner_r"></td>
</tr>
</table>
</div>
';
}

echo '
<!-- START BODY BLOCK -->
<table class="body" width="100%" cellspacing="0">
<tr class="body">
<td class="body_left"></td>
<td class="body">
';

?>
Return current item: Quick Guestbook