Location: PHPKode > projects > QuickTicket > quickticket/qti_adm_p_header.php
<?php

// QuickTicket 2.5 build:20101222

ob_start();

$bShowtoc = false;
if ( substr($oVIP->selfurl,0,7)=='qti_adm' || substr($oVIP->selfurl,0,5)=='qtim_' ) $bShowtoc=true;

global $oHtml;
$oHtml->links = array('<link rel="shortcut icon" href="admin/qti_icon.ico" />','<link rel="stylesheet" type="text/css" href="admin/qti_main.css" />');
$oHtml->scripts = array('
<script type="text/javascript">
<!--
function qtEdited(bEdited,str)
{
  if (bEdited) { if (!confirm(qtHtmldecode(str))) return false; }
  return true;
}
function qtHtmldecode(str)
{
  var ta=document.createElement("textarea");
  ta.innerHTML=str.replace(/</g,"&lt;").replace(/>/g,"&gt;");
  return ta.value;
}
-->
</script>');
if ( !empty($strHeadScript) ) $oHtml->scripts[] = $strHeadScript;

echo $oHtml->Head();
echo $oHtml->Body(array('onload'=>(isset($strBodyAddOnload) ? $strBodyAddOnload : null),'onunload'=>(isset($strBodyAddOnunload) ? $strBodyAddOnunload : null)));

echo '
<!-- MENU/PAGE -->
<table style="width:900px" cellspacing="0" cellpadding="0">
<tr valign="top">
<td style="',($bShowtoc ? 'width:170px;' : 'width:1px;'),' vertical-align:top;">
';

if ( $bShowtoc )
{

echo '
<!-- TOC -->
<div class="menu">
<div class="banner"><img class="logo" id="toc_logo" src="admin/qti_logo.gif" style="border-width:0" alt="QuickTicket" title="QuickTicket" /></div>
<div class="header">',strtoupper($L['Administration']),'</div>
';

if ( file_exists('bin/qti_lang.php') )
{
  include('bin/qti_lang.php');
  $strURI = QTargimplode(QTarradd(QTargexplode(),'lx'));
  $strLangMenu = '';
  foreach($arrLang as $strKey=>$arrDef)
  {
  $strLangMenu .= '<a class="small" href="'.Href().'?'.$strURI.'&amp;lx='.$strKey.'" title="'.$arrDef[1].'" onclick="return qtEdited(bEdited,\''.$L['E_editing'].'\');">'.$arrDef[0].'</a>&nbsp;';
  }
}
else
{
  $strLangMenu .= '<span class="small">missing file:bin/qti_lang.php</span>';
}

echo '<p class="language">',$strLangMenu,'</p>
';
  
$str = 'return qtEdited(bEdited,\''.$L['E_editing'].'\');';
echo '<div class="group">
<p class="group">',$L['Info'],'</p>
<p class="item"><a href="qti_adm_index.php" onclick="'.($oVIP->selfurl=='qti_adm_index.php' ? 'return false;' : $str).'">',$L['Adm_status'],'</a></p>
<p class="item"><a href="qti_adm_site.php" onclick="'.($oVIP->selfurl=='qti_adm_site.php' ? 'return false;' : $str).'">',$L['Adm_general'],'</a></p>
</div>
<div class="group">
<p class="group">',$L['Adm_settings'],'</p>
<p class="item"><a href="qti_adm_region.php" onclick="'.($oVIP->selfurl=='qti_adm_region.php' ? 'return false;' : $str).'">',$L['Adm_region'],'</a></p>
<p class="item"><a href="qti_adm_skin.php" onclick="'.($oVIP->selfurl=='qti_adm_skin.php' ? 'return false;' : $str).'">',$L['Adm_layout'],'</a></p>
<p class="item"><a href="qti_adm_secu.php" onclick="'.($oVIP->selfurl=='qti_adm_secu.php' ? 'return false;' : $str).'">',$L['Adm_security'],'</a></p>
</div>
<div class="group">
<p class="group">',$L['Adm_content'],'</p>
<p class="item"><a href="qti_adm_sections.php" onclick="'.($oVIP->selfurl=='qti_adm_sections.php' ? 'return false;' : $str).'">',$L['Sections'],'</a></p>
<p class="item"><a href="qti_adm_topic.php" onclick="'.($oVIP->selfurl=='qti_adm_topic.php' ? 'return false;' : $str).'">',$L['Topics'],'</a></p>
<p class="item"><a href="qti_adm_users.php" onclick="'.($oVIP->selfurl=='qti_adm_users.php' ? 'return false;' : $str).'">',$L['Members'],'</a></p>
<p class="item"><a href="qti_adm_statuses.php" onclick="'.($oVIP->selfurl=='qti_adm_statuses.php' ? 'return false;' : $str).'">',$L['Statuses'],'</a></p>
<p class="item"><a href="qti_adm_tags.php" onclick="'.($oVIP->selfurl=='qti_adm_tags.php' ? 'return false;' : $str).'">',$L['Tags'],'</a></p>
</div>
<div class="group">
<p class="group">',$L['Adm_modules'],'</p>
';

// search modules
$arrModules = GetParam(false,'param LIKE "module%"');
if ( count($arrModules)>0 )
{
  foreach($arrModules as $strKey=>$strValue)
  {
  $strKey = str_replace('module_','',$strKey);
  echo '<p class="item"><a href="qtim_',$strKey,'_adm.php" onclick="return qtEdited(bEdited,\''.$L['E_editing'].'\');">',$strValue,'</a></p>',N;
  }
}
echo '<p class="item"><a href="qti_adm_module.php?a=add" onclick="return qtEdited(bEdited,\''.$L['E_editing'].'\');">[',$L['Add'],']</a>&nbsp;&middot;&nbsp;<a class="menu" href="qti_adm_module.php?a=rem" onclick="return warningedited(bEdited,\''.$L['E_editing'].'\');">[',$L['Remove'],']</a></p>
</div>
<div class="footer"><a href="qti_index.php" target="_top" onclick="return qtEdited(bEdited,\''.$L['E_editing'].'\');">',$L['Exit'],'</a></div>
</div>
';
}

// --------------
// END TABLE OF CONTENT
// --------------

echo '
</td>
<td style="padding-left:10px; vertical-align:top">
<!-- END MENU/PAGE -->
';

HtmlPageCtrl(0,'100%');

HtmlBanner(2,'admin','qti_logo.gif');

// Title (and help frame)

echo '<div style="width:300px; margin-bottom:20px"><h1>',$oVIP->selfname,'</h1>';
if ( isset($strPageversion) ) echo '<p class="small">',$strPageversion,'</p>';
if ( !empty($error) ) echo '<p id="infomessage" class="error">',$error,'</p>';
if ( empty($error) && !empty($warning) ) echo '<p id="warningmessage" class="warning">',$warning,'</p>';
if ( empty($error) && isset($strInfo) ) echo '<p id="infomessage" style="color:#007F11"><b>',$strInfo,'</b></p>';
echo '</div>
';

if ( file_exists(Translate($oVIP->selfurl.'.txt')) )
{
  echo '<div style="width:400px; position:absolute; top:15px; left:495px; border:solid 1px #eeeeee;">';
  echo '<div class="hlp_head">',$L['Help'],'</div>';
  echo '<div class="hlp_body"><span id="helparea">';
  include(Translate($oVIP->selfurl.'.txt'));
  echo '</span></div></div>';
}

// animation of the infomessage (errors remains on screen)
if ( isset($strInfo) )
{
echo '
<script type="text/javascript">
<!--
setTimeout(\'document.getElementById("infomessage").style.color="#bbbbbb"\',3000);
setTimeout(\'document.getElementById("infomessage").style.color="#cccccc"\',3300);
setTimeout(\'document.getElementById("infomessage").style.color="#dddddd"\',3600);
setTimeout(\'document.getElementById("infomessage").innerHTML="&nbsp;"\',3900);
-->
</script>
';
}
Return current item: QuickTicket