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

// QuickTicket 1.9.0.3 build:20081001

// ========
if ( !isset($bToPrint) ) {
// ========

// BODY END

echo '
<!-- END BODY MAIN -->
</td></tr></table>
<!-- END BODY MAIN -->
';

// LINE END

echo '<!-- BODY BOTTOM -->',N;
echo '<table class="ta_body_ft" cellspacing="0">',N;
echo '<tr class="tr_body_ft">',N;
echo '<td class="td_body_ft_l"><img class="img_body_ft_l" src="',$_SESSION[QT]['skin_dir'],'/ico_ft_left.gif" alt=""/></td>',N;
echo '<td class="td_body_ft_c">';
if ( QTI_SHOW_TIME )
{
  echo gmdate($_SESSION[QT]['formattime'], time() + 3600*($_SESSION[QT]['time_zone']+$_SESSION[QT]['daylight']));
  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 class="a_body_ft" href="qti_usr.php?id=',$oSEC->modid,'">',$oSEC->modname,'</a>';
}
echo '</td>',N;
echo '<td class="td_body_ft_c" style="text-align:right">';
if ( $oVIP->selfurl!='qti_index.php' ) {
if ( isset($_SESSION['qtiGoto']) ) {
if ( QTI_SHOW_GOTOLIST ) {
if ( count($_SESSION['qtiGoto'])>0 ) {
  echo '
  <form method="get" id="goto" action="',($oVIP->selfurl=='qti_calendar.php' ? $oVIP->selfurl : 'qti_topics.php'),'">
  <p style="margin:0; padding:0">',$L['Goto'],S,'
  <select name="s" size="1" class="small" onchange="document.getElementById(\'goto\').submit();">
  <option value="',(isset($s) ? $s : '1'),'">&nbsp;</option>',QTastags($_SESSION['qtiGoto']),'</select>&nbsp;
  <input type="submit" value="',$L['Ok'],'" class="small" id="goto_ok"/>
  <script type="text/javascript">
  <!--
  document.getElementById("goto_ok").style.visibility="hidden";
  document.getElementById("goto_ok").value="";
  -->
  </script>
  </p>
  </form>
  ';
}}}}
echo '</td>',N;
echo '<td class="td_body_ft_r"><img class="img_body_ft_r" src="',$_SESSION[QT]['skin_dir'],'/ico_ft_right.gif" alt=""/></td>',N;
echo '</tr>',N;
echo '</table>',N;
echo '<!-- END BODY BOTTOM  -->',N,N;

echo '</div></div>',N;
echo '<!-- END BODY -->',N,N;

// --------
// 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_calendar.php','qti_topic.php','qti_s_search.php','qti_search_id.php','qti_search_ov.php','qti_search_kw.php','qti_search_st.php')) ) {
  echo '<!-- LEGEND -->',N;
  echo '<table class="ta_legend">',N;
  echo '<tr class="tr_legend">',N;
  echo '<td class="td_legend">',N;
  echo '<div class="div_legendbox"><p class="p_legendtitle">',$L['Information'],'</p>',N;
  echo '<span class="small">';
  echo $_SESSION[QT]['sys_topics'],' ',$L['Topics'],', ',$_SESSION[QT]['sys_messages'],' ',$L['Messages'],', ',$_SESSION[QT]['sys_members'],' ',$L['Users'],'<br/>';
  echo $L['Welcome_to'],'<a class="small" href="qti_usr.php?id=',$_SESSION[QT]['sys_newuserid'],'">',$_SESSION[QT]['sys_newusername'],'</a><br/>';
  echo '<br/></span>',N;
  echo '</div>',N;
  echo '</td>',N;
  echo '<td class="td_hidden">&nbsp;</td>',N;
  echo '<td class="td_legend">',N;
  echo '<div class="div_legendbox"><p class="p_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 ico_s'),S,$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 ico_s'),S,$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 ico_s'),S,$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 ico_t'),S,$L['Ico_topic_a_0'],'&nbsp;&nbsp;',N;
    echo '<b>&reg;</b>&nbsp;',$L['You_reply'],'<br/>',N;
    if ( isset($_SESSION['qtiTstatus']) )
    {
      foreach ($_SESSION['qtiTstatus'] as $strKey => $arrDef)
      {
      echo AsImg($_SESSION[QT]['skin_dir'].'/'.$arrDef['icon'],'-',$arrDef['statusname'],'ico ico_status'),S,(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 ico_p'),S,$L['Ico_post_r'],' ',N;
    echo AsImg($_SESSION[QT]['skin_dir'].'/ico_post_d.gif','P',$L['Ico_post_d'],'ico ico_p'),S,$L['Ico_post_d'],'<br/>',N;
    echo AsImg($_SESSION[QT]['skin_dir'].'/ico_post_f.gif','P',$L['Ico_post_f'],'ico ico_p'),S,$L['Ico_post_f'],' ',N;
    echo AsImg($_SESSION[QT]['skin_dir'].'/ico_attachment.gif','P',$L['Attachment'],'ico ico_p'),S,$L['Attachment'],'<br/>',N;
    }
  }
  echo '</span></div>',N;
  echo '</td>',N;
  echo '</tr>',N;
  echo '</table>',N;
  echo '<!-- END LEGEND-->',N,N;
}}}

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

echo '<!-- COPYRIGHT LINE -->',N;
echo '<div class="div_footer">',N;
echo '<table class="ta_hidden">',N;
echo '<tr class="tr_hidden">',N;
echo '<td class="td_hidden" id="zone_footer_left">',N;

// MENU HOME

if ( $_SESSION[QT]['home_menu']=='1' && !empty($_SESSION[QT]['home_url']) )
{
  echo '<a class="a_footer_menu" href="',$_SESSION[QT]['home_url'],'">',$_SESSION[QT]['home_name'],'</a>',QTI_MENUSEPARATOR,N;
}

// MENU PRIVACY

if ( $oVIP->selfurl=='qti_privacy.php' ) { echo $L['Privacy'],QTI_MENUSEPARATOR,N; } else { echo '<a href="qti_privacy.php" class="a_footer_menu">',$L['Privacy'],'</a>',QTI_MENUSEPARATOR,N; }

// MENU FAQ

if ( $oVIP->selfurl=='qti_faq.php' ) { echo $L['FAQ'],QTI_MENUSEPARATOR,N; } else { echo '<a href="qti_faq.php" class="a_footer_menu">',$L['FAQ'],'</a>',QTI_MENUSEPARATOR,N; }

// MENU SEARCH

$bLink = true;
if ( $_SESSION[QT]['board_offline']=='1' ) $bLink = false;
if ( $oVIP->role=='V' && $_SESSION[QT]['visitor_right']<5 ) $bLink = false;
if ( !$bLink ) { echo $L['Search'],QTI_MENUSEPARATOR,N; } else { echo '<a href="'.(QTI_SIMPLESEARCH ? 'qti_s_search.php' : 'qti_search.php' ).'" class="a_footer_menu">',$L['Search'],'</a>',QTI_MENUSEPARATOR,N; }

// MENU STATS

if ( CanPerform('show_stats',$oVIP->role) ) echo '<a href="qti_stats.php" class="a_footer_menu">',$L['Statistics'],'</a>',QTI_MENUSEPARATOR,N;

// MENU REGISTER/LOGIN

if ( !$oVIP->auth )
{
  if ($_SESSION[QT]['board_offline']!='1')
  {
  echo '<a class="a_footer_menu" href="qti_usr_new.php">',$L['Register'],'</a>',QTI_MENUSEPARATOR,N;
  }
  if ( $oVIP->selfurl=='qti_usr_login.php' )
  {
  echo $L['Login'];
  }
  else
  {
  echo '<a class="a_footer_menu" href="qti_usr_login.php">',$L['Login'],'</a>',N;
  }
}
else
{
  if ($_SESSION[QT]['board_offline']!='1')
  {
  if ( $oVIP->selfurl=='qti_usr.php' ) { echo $L['Profile'],QTI_MENUSEPARATOR,N; } else { echo '<a class="a_footer_menu" href="qti_usr.php?id=',$oVIP->id,'">',$L['Profile'],'</a>',QTI_MENUSEPARATOR,N; }
  }
  echo '<a class="a_footer_menu" href="qti_usr_login.php?a=out">',$L['Logout'],'</a>';
}

// MODULE RSS

if ( $_SESSION[QT]['board_offline']!='1' ) {
if ( UseModule('rss') ) {
if ( $_SESSION[QT]['m_rss']=='1' ) {
  if ( substr($_SESSION[QT]['m_rss_conf'],0,1)=='U' && $oVIP->role=='V')
  {
  echo S;
  }
  else
  {
  if ( $oVIP->selfurl!='qtim_rss.php' ) echo QTI_MENUSEPARATOR,'<a href="qtim_rss.php" class="a_footer_menu"><img src="admin/rss.gif" width="34" height="14" style="vertical-align:bottom;border-width:0" alt="rss" title="RSS"/></a>';
  }
}}}

// ADMIN

if ($oVIP->role=='A') echo QTI_MENUSEPARATOR,'[<a href="qti_adm_index.php" class="a_footer_menu">',$L['Administration'],'</a>]',N;

echo '</td>',N;
echo '<td class="td_hidden" id="zone_footer_right">powered by <a href="http://www.qt-cute.org" class="a_footer_copy">QT-cute</a> <span title="',QTIVERSION,'">v',substr(QTIVERSION,0,3),'</span></td>',N;
echo '</tr></table></div>',N;
echo '<!-- END COPYRIGHT LINE -->',N,N;

// PAGE END

echo '
<!-- PAGE CONTAINER END -->
</td></tr></table>
</div>
<!-- PAGE CONTAINER END -->
';

// 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';
}

// ========
} else {
// ========

echo '
<!-- COPYRIGHT LINE -->
<div class="div_footer">
<div class="div_footer_copy">
<span class="p_footer_copy">powered by QT-cute v',substr(QTIVERSION,0,3),'</span>
</div>
</div>
<!-- END COPYRIGHT LINE -->
';

// ========
}
// ========

if ( isset($strFooterAddScript) )
{
echo '
<script type="text/javascript">
<!--
',$strFooterAddScript,'
-->
</script>
';
}

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

ob_end_flush();

?>
Return current item: QuickTicket