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

// QuickTicket 1.9.0.3 build:20081001

while ( $row=$oDB->Getrow() )
{
  // READ DATA
  $iMsgNum = $iMsgNum + $iMsgAdd;
  $oPost = new cPost($row,$iMsgNum);

  // PRE PROCESSING DATA
  if ( $_SESSION[QT]['viewmode']=='C' )
  {
  $oPost->text = QTcompactline($oPost->text);
  }

  $strButton = '';
  if ( $bButton )
  {
    if ( $oVIP->auth )
    {
      if ( $oTopic->status!='Z' && $oTopic->status!='0' && $oSEC->status!=1 )
      {
      $strButton .= '<td class="td_button_small" style="width:50px">&nbsp;<a href="qti_form_edit.php?s='.$oPost->section.'&amp;t='.$oPost->topic.'&amp;a=qu&amp;p='.$oPost->id.'" class="a_button_small">'.$L['Quote'].'</a>&nbsp;</td>'.N;
      }
      if ( $oPost->userid==$oVIP->id || $oVIP->role=='A' || $oVIP->role=='M' )
      {
      $strButton .= '<td class="td_button_small" style="width:50px">&nbsp;<a href="qti_form_edit.php?s='.$oPost->section.'&amp;t='.$oPost->topic.'&amp;p='.$oPost->id.'&amp;a=ed" class="a_button_small">'.$L['Edit'].'&nbsp;</a>&nbsp;</td>'.N;
      $strButton .= '<td class="td_button_small" style="width:50px">&nbsp;<a href="qti_form_del.php?s='.$oPost->section.'&amp;t='.$oPost->topic.'&amp;p='.$oPost->id.'&amp;a=de" class="a_button_small">'.$L['Delete'].'</a>&nbsp;</td>'.N;
      }
    }
  }
  $strModifier = '';
  if ( !empty($oPost->modifuser) )
  {
  $strModifier = '<td class="td_line"><span class="small">&nbsp;'.$L['Modified_by'].' <a href="qti_usr.php?id='.$oPost->modifuser.'" class="small">'.$oPost->modifname.'</a> ('.QTdate($oPost->modifdate,array('n','todaytime',$_SESSION[QT]['formatdate'],$_SESSION[QT]['formattime'],$L['dateSQL'])).')</span></td>'.N;
  }

  $str = $strButton.$strModifier;
  $strEndLine = '';
  if ( !empty($str) )
  {
  if ( empty($strModifier) ) $strModifier = '<td class="td_hidden">&nbsp;</td>'.N;
  $strEndLine = '<table class="ta_hidden" cellspacing="0" style="margin:10px 0 1px 0;"><tr>'.$strButton.$strModifier.'</tr></table>'.N;
  }

  // SHOW MESSAGE
  $oPost->Show($oSEC,$oTopic,$bAvatar,$strEndLine,$strSep,$_SESSION[QT]['skin_dir'],$strAlt);

  if ( $strAlt=='1' ) { $strAlt='2'; } else { $strAlt='1'; }
  $intWhile++;

  if ( $intWhile<$intPosts ) echo $strSep;
}

?>
Return current item: QuickTicket