Location: PHPKode > projects > QuickTalk Forum > quicktalk/qtf_p_footer.php
<?php

// QuickTalk 2.5 build:20100924

// BODY END

echo '
</div>
';

// LINE END

$bGotolist = false;
if ( $oVIP->selfurl!='qtf_index.php' ) {
if ( QTF_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=='qtf_calendar.php' ? Href() : Href('qtf_topics.php')),'">';
echo '
<div class="bodyft">
<div class="bodyftleft">
<img class="bodyftleft" src="',$_SESSION[QT]['skin_dir'],'/ico_ft_left.gif" alt=""/>
';
if ( QTF_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 ( QTF_SHOW_MODERATOR ) echo ' &middot; ',$L['Userrole_MF'],': <a href="',Href('qtf_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(-1,(isset($s) ? $s : -1)),'</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','qtf_index.php','qtf_topics.php','qtf_calendar.php','qtf_topic.php','qtf_s_search.php','qtf_find.php')) ) {

echo '
<!-- legend -->
<table class="legend" cellspacing="0" summary="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'] : $oSEC->Count('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'] : $oSEC->Count('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('qtf_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=='qtf_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_0'],'ico i_topic'),' ',$L['Ico_topic_a_0'],N;
  if ( QTF_LIST_ME && $oVIP->selfurl!='qtf_topic.php' ) echo ' &nbsp;<b>&reg;</b>&nbsp;',$L['You_reply'];
  echo '<br/>',N;
  echo AsImg($_SESSION[QT]['skin_dir'].'/ico_topic_t_0.gif','T',$L['Ico_topic_t_0'],'ico i_status'),' ',$L['Ico_topic_t_0'],' &nbsp;';
  echo AsImg($_SESSION[QT]['skin_dir'].'/ico_topic_t_0_h.gif','T',$L['Ico_topic_t_0_h'],'ico i_status'),' ',$L['Ico_topic_t_0_h'],'<br/>',N;
  echo AsImg($_SESSION[QT]['skin_dir'].'/ico_topic_t_1.gif','T',$L['Ico_topic_t_0'],'ico i_status'),' ',$L['Ico_topic_t_1'],'<br/>',N;
  if ( $oVIP->selfurl=='qtf_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 '</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!='qtfm_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'=>'qtfm_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 QTF_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 QTF_MENUSEPARATOR,'<a class="footer_menu" href="qtf_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="',QTFVERSION,'">v',substr(QTFVERSION,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']=gettimeofday(true);
  echo '<br/>&nbsp;',$oDB->stats['num'],' queries in ',round($oDB->stats['end']-$oDB->stats['start'],3),' sec';
}
if ( isset($strFooterAddScript) ) echo $strFooterAddScript;

echo '
</body></html>';

ob_end_flush();
?>
Return current item: QuickTalk Forum