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

// QuickTicket 2.5 build:20101222

// BODY END

echo '
</div>
';


// LINE END

$bGotolist = false;
if ( $oVIP->selfurl!='qti_index.php' ) {
if ( QTI_SHOW_GOTOLIST ) {
if ( count($_SESSION[QT]['sys_sections'])>1 ) {
  $bGotolist = true;
}}}

echo '
<!-- bottom bar -->
';
if ( $bGotolist ) echo '<form method="get" id="goto" action="',($oVIP->selfurl=='qti_calendar.php' ? Href() : Href('qti_topics.php')),'">';
echo '
<div class="bodyft">
<div class="bodyftleft">
<img class="bodyftleft" src="',$_SESSION[QT]['skin_dir'],'/ico_ft_left.gif" alt="" />
';
if ( QTI_SHOW_TIME )
{
  echo gmdate($_SESSION[QT]['formattime'], time() + 3600*($_SESSION[QT]['time_zone']));
  if ( $_SESSION[QT]['show_time_zone']=='1' )
  {
    echo ' (gmt';
    if ( $_SESSION[QT]['time_zone']>0 ) echo '+',$_SESSION[QT]['time_zone'];
    if ( $_SESSION[QT]['time_zone']<0 ) echo $_SESSION[QT]['time_zone'];
    echo ')';
  }
}
if ( isset($oSEC) )
{
  if ( QTI_SHOW_MODERATOR ) echo ' &middot; ',$L['Userrole_MF'],': <a href="',Href('qti_user.php?id='.$oSEC->modid),'">',$oSEC->modname,'</a>';
}

echo '</div>
<div class="bodyftright">
';

if ( $bGotolist ) echo '<label for="gotolist">',$L['Goto'],S,'</label><select id="gotolist" name="s" size="1" class="small" onchange="document.getElementById(\'goto\').submit();"><option value="',(isset($s) ? $s : '1'),'">&nbsp;</option>',Gotolist(),'</select>&nbsp;<input type="submit" value="',$L['Ok'],'" class="small" id="goto_ok" />';

echo '<img class="bodyftright" src="',$_SESSION[QT]['skin_dir'],'/ico_ft_right.gif" alt="" />
</div>
</div>
';

if ( $bGotolist ) echo '<script type="text/javascript">document.getElementById("goto_ok").style.display="none";</script></form>';

echo '
<!-- END MAIN CONTROL -->
</div></div>
';

// --------
// INFO & LEGEND
// --------

if ( $_SESSION[QT]['board_offline']!='1' ) {
if ( $_SESSION[QT]['show_legend']=='1' ) {
if ( in_array($oVIP->selfurl,array('index.php','qti_index.php','qti_topics.php','qti_topic.php','qti_find.php','qti_calendar.php')) ) {

echo '
<!-- Legend -->
<table class="legend">
<tr class="legend">
<td class="legend">
<div class="legendbox">
<p class="legendtitle">',$L['Information'],'</p>
<span class="small">';

// section info

if ( !isset($arrStats) ) $arrStats = GetStats();

if ( isset($oSEC) )
{
  echo ObjTrans('sec',"s$s",$oSEC->name),':<br />';
  
  if ( $_SESSION[QT]['show_closed'] )
  {
    echo '&bull; ',LangS('Topic',$arrStats[$s]['topics']),', ',LangS('Reply',$arrStats[$s]['replies']),'<br /><br />';
  }
  else
  {
    $intTopicsZ = (isset($arrStats[$s]['topicsZ']) ? $arrStats[$s]['topicsZ'] : cSection::CountItems($oSEC->id,'topicsZ') );
    if ( $intTopicsZ==0 )
    {
    echo '&bull; ',LangS('Topic',$arrStats[$s]['topics']),', ',LangS('Reply',$arrStats[$s]['replies']);
    echo '<br />&bull; ',$L['Closed'],': ',strtolower($L['None']),'<br /><br />';
    }
    else
    {
    $intRepliesZ = (isset($arrStats[$s]['repliesZ']) ? $arrStats[$s]['repliesZ'] : cSection::CountItems($oSEC->id,'repliesZ') );
    echo '&bull; ',LangS('Topic',$arrStats[$s]['topics']),', ',LangS('Reply',$arrStats[$s]['replies']-$intRepliesZ);
    echo '<br />&bull; ',$L['Closed'],': ',LangS('Topic',$intTopicsZ),', ',LangS('Reply',$intRepliesZ),'<br /><br />';
    }
  }

}

// application info

echo ObjTrans('index','i',$_SESSION[QT]['index_name']),':<br />';
if ( isset($arrStats['all']) )
{
echo '&bull; ',LangS('Topic', $arrStats['all']['topics']),', ',LangS('Reply',$arrStats['all']['replies']);
}

// new user info

if ( isset($_SESSION[QT]['sys_states']['newuserid']) ) {
if ( !empty($_SESSION[QT]['sys_states']['newuserdate']) ) {
if ( DateAdd($_SESSION[QT]['sys_states']['newuserdate'],30,'day')>Date('Ymd') ) {
echo '<br /><br />',$L['Welcome_to'],'<a class="small" href="',Href('qti_user.php?id='.$_SESSION[QT]['sys_states']['newuserid']),'">',$_SESSION[QT]['sys_states']['newusername'],'</a>';
}}}

echo '</span>',N;
echo '</div>',N;
echo '</td>',N;
echo '<td class="hidden">&nbsp;</td>',N;
echo '<td class="legend">',N;
if ( isset($strDetailLegend) )
{
echo '<div class="legendbox"><p class="legendtitle">',$L['Details'],'</p>',N;
echo $strDetailLegend;
echo '</div>',N;
}
echo '</td>',N;
echo '<td class="hidden">&nbsp;</td>',N;
echo '<td class="legend">',N;
echo '<div class="legendbox"><p class="legendtitle">',$L['Legend'],'</p>',N;
echo '<span class="small">',N;
if ( $oVIP->selfurl=='qti_index.php' )
{
  echo AsImg($_SESSION[QT]['skin_dir'].'/ico_section_0_0.gif','F',$L['Ico_section_0_0'],'ico i_sec'),' ',$L['Ico_section_0_0'],'<br />',N;
  echo AsImg($_SESSION[QT]['skin_dir'].'/ico_section_2_0.gif','F',$L['Ico_section_2_0'],'ico i_sec'),' ',$L['Ico_section_2_0'],'<br />',N;
  echo AsImg($_SESSION[QT]['skin_dir'].'/ico_section_0_1.gif','F',$L['Ico_section_0_1'],'ico i_sec'),' ',$L['Ico_section_0_1'],'<br />',N;
}
else
{
  echo AsImg($_SESSION[QT]['skin_dir'].'/ico_topic_a_0.gif','T',$L['Ico_topic_a'],'ico i_topic'),' ',$L['Ico_topic_a'],N;
  echo ' &nbsp;',AsImg($_SESSION[QT]['skin_dir'].'/ico_topic_i_0.gif','T',$L['Ico_topic_i'],'ico i_topic'),' ',$L['Ico_topic_i'],N;
  if ( QTI_LIST_ME && $oVIP->selfurl!='qti_topic.php' ) echo ' &nbsp;<b>&reg;</b>&nbsp;',$L['You_reply'];
  echo '<br />',N;
  if ( isset($oVIP->statuses) )
  {
    foreach($oVIP->statuses as $strKey=>$arrDef)
    {
    echo AsImg($_SESSION[QT]['skin_dir'].'/'.$arrDef['icon'],'-',$arrDef['statusname'],'ico i_status'),' ',(empty($arrDef['statusdesc']) ? $arrDef['statusname'] : $arrDef['statusdesc']),'<br />',N;
    }
  }
  if ( $oVIP->selfurl=='qti_topic.php' )
  {
  echo AsImg($_SESSION[QT]['skin_dir'].'/ico_post_r.gif','P',$L['Ico_post_r'],'ico i_post'),' ',$L['Ico_post_r'],' ',N;
  echo AsImg($_SESSION[QT]['skin_dir'].'/ico_post_d.gif','P',$L['Ico_post_d'],'ico i_post'),' ',$L['Ico_post_d'],'<br />',N;
  echo AsImg($_SESSION[QT]['skin_dir'].'/ico_post_f.gif','P',$L['Ico_post_f'],'ico i_post'),' ',$L['Ico_post_f'],' ',N;
  }
}
echo '</span></div>',N;
echo '</td>',N;
echo '</tr>',N;
echo '</table>',N;

}}}

// --------
// COPYRIGHT
// --------

// MODULE RSS
if ( $_SESSION[QT]['board_offline']!='1' ) {
if ( UseModule('rss') ) {
if ( $_SESSION[QT]['m_rss']=='1' ) {
if ( $oVIP->role!='V' || $oVIP->role.substr($_SESSION[QT]['m_rss_conf'],0,1)=='VV' ) {
if ( $oVIP->selfurl!='qtim_rss.php' ) { 
  $arrMenus[]=array('h'=>false,'f'=>true, 'n'=>'<img src="admin/rss.gif" width="34" height="14" style="vertical-align:bottom;border-width:0" alt="rss" title="RSS" />', 'u'=>'qtim_rss.php');
}}}}}

echo '
<!-- footer -->
<div class="footer">
<div class="footerleft">';
$i=0;
foreach($arrMenus as $arrMenu) {
if ( $arrMenu['f'] ) {
  if ( !isset($arrMenu['s']) ) $arrMenu['s']=$arrMenu['u'];
  if ( $i!=0 ) echo QTI_MENUSEPARATOR;
  $i++;
  if ( empty($arrMenu['u']) )
  {
  echo $arrMenu['n'];
  }
  else
  {
  echo '<a href="',Href($arrMenu['u']),'"',(strstr($arrMenu['s'],$oVIP->selfurl) ? ' onclick="return false;"' : ''),'>',$arrMenu['n'],'</a>';
  }  
}}
if ( $oVIP->role=='A' ) echo QTI_MENUSEPARATOR,'<a href="qti_adm_index.php">['.L('Administration').']</a>';

echo '</div>
<div class="footerright">powered by <a href="http://www.qt-cute.org">QT-cute</a> <span title="',QTIVERSION,'">v',substr(QTIVERSION,0,3),'</span></div>
</div>
';

// PAGE END

echo '
<!-- END PAGE CONTROL -->
</div>
</div>
<!-- END PAGE CONTROL -->
';

// HTML END

if ( isset($oDB->stats) )
{
  $oDB->stats['end'] = (float)(vsprintf('%d.%06d', gettimeofday()));
  echo '<br />&nbsp;',$oDB->stats['num'],' queries in ',round($oDB->stats['end']-$oDB->stats['start'],4),' sec';
}
if ( isset($strFooterAddScript) ) echo $strFooterAddScript;

echo $oHtml->End();

ob_end_flush();

?>
Return current item: QuickTicket