<?php
// QuickTicket 1.9.0.3 build:20081001
ob_start();
$bShowtoc = true;
if ( $oVIP->role!='A' || $oVIP->selfurl=='qti_adm_smtp.php' || $oVIP->selfurl=='qti_adm_status_ico.php' || $oVIP->selfurl=='qti_adm_prefix.php' ) $bShowtoc=false;
HtmlDtd();
HtmlHead('','admin',(isset($arrCss) ? $arrCss : array()),(isset($strHeaderAddScript) ? $strHeaderAddScript : ''),(isset($arrJava) ? $arrJava : array()));
echo '
<body'.(isset($strBodyAddOnload) ? ' onload="'.$strBodyAddOnload.'"': '').(isset($strBodyAddOnunload) ? ' onunload="'.$strBodyAddOnunload.'"': '').'>
';
echo '
<!-- MENU/PAGE -->
<table style="width:100%" cellspacing="0" cellpadding="0">
<tr valign="top">
<td style="',($bShowtoc ? 'width:175px;' : 'width:1px;'),' vertical-align:top;">
';
if ( $bShowtoc )
{
HtmlBanner(2,'admin','qti_logo.gif');
echo '
<table class="ta_menu" cellspacing="0">
<tr class="tr_menu">
<td class="td_menu">',strtoupper($L['Administration']),'</td>
</tr>
</table>
';
if ( file_exists('bin/qti_lang.php') )
{
include('bin/qti_lang.php');
$strURI = QTargimplode(QTargadd(QTargexplode(),'lx'));
$strLangMenu = '';
foreach ($arrLang as $strKey => $arrDef)
{
$strLangMenu .= '<a class="small" href="'.$oVIP->selfurl.'?'.$strURI.'&lx='.$strKey.'" title="'.$arrDef[1].'">'.$arrDef[0].'</a> ';
}
}
else
{
$strLangMenu .= '<span class="small">missing file:bin/qti_lang.php</span>';
}
echo '<p style="margin:0 0 2px 0">',$strLangMenu,'</p>';
echo '<table class="ta" cellspacing="0">
<tr><td class="td_o_toc">',$L['Info'],'</td></tr>
<tr><td class="td_o_menu"><a class="a_menu" href="qti_adm_index.php">',$L['Adm_status'],'</a></td></tr>
</table>
<table class="ta" cellspacing="0">
<tr><td class="td_o_toc">',$L['Adm_settings'],'</td></tr>
<tr><td class="td_o_menu"><a class="a_menu" href="qti_adm_site.php">',$L['Adm_general'],'</a></td></tr>
<tr><td class="td_o_menu"><a class="a_menu" href="qti_adm_region.php">',$L['Adm_region'],'</a></td></tr>
<tr><td class="td_o_menu"><a class="a_menu" href="qti_adm_skin.php">',$L['Adm_layout'],'</a></td></tr>
<tr><td class="td_o_menu"><a class="a_menu" href="qti_adm_secu.php">',$L['Adm_security'],'</a></td></tr>
</table>
<table class="ta" cellspacing="0">
<tr><td class="td_o_toc">',$L['Adm_content'],'</td></tr>
<tr><td class="td_o_menu"><a class="a_menu" href="qti_adm_sections.php">',$L['Section_man'],'</a></td></tr>
<tr><td class="td_o_menu"><a class="a_menu" href="qti_adm_topic.php">',$L['Topic_man'],'</a></td></tr>
<tr><td class="td_o_menu"><a class="a_menu" href="qti_adm_users.php">',$L['User_man'],'</a></td></tr>
<tr><td class="td_o_menu"><a class="a_menu" href="qti_adm_statuses.php">',$L['Status_man'],'</a></td></tr>
</table>
<table class="ta" cellspacing="0">
<tr><td class="td_o_toc">',$L['Adm_modules'],'</td></tr>',N;
// search modules
$arrModules = GetParam(false,'param LIKE "module%"');
if ( count($arrModules)>0 )
{
foreach($arrModules as $strKey => $strValue)
{
$strKey = str_replace('module_','',$strKey);
echo '<tr><td class="td_o_menu"><a class="a_menu" href="qtim_',$strKey,'_adm.php">',$strValue,'</a></td></tr>',N;
}
}
echo '<tr><td class="td_o_menu"><a class="a_menu" href="qti_adm_module.php?a=add">[',$L['Add'],']</a> · <a class="a_menu" href="qti_adm_module.php?a=rem">[',$L['Remove'],']</a></td></tr>
</table>
<table class="ta_menu" cellspacing="0">
<tr class="tr_menu">
<td class="td_menu"><span class="small" title="',QTIVERSION,'">v',substr(QTIVERSION,0,3),'</span></td>
<td class="td_menu_sep"></td>
<td class="td_menu"><a class="a_menu" href="qti_index.php" target="_top">',$L['Exit'],'</a></td>
</tr>
</table>
';
}
echo '
</td>
<td style="padding-left:10px; vertical-align:top;">
<!-- END MENU/PAGE -->
';
HtmlPageCtrl(0,'100%');
HtmlBanner(2,'admin','qti_logo.gif');
?>