<?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"> <a href="qti_form_edit.php?s='.$oPost->section.'&t='.$oPost->topic.'&a=qu&p='.$oPost->id.'" class="a_button_small">'.$L['Quote'].'</a> </td>'.N;
}
if ( $oPost->userid==$oVIP->id || $oVIP->role=='A' || $oVIP->role=='M' )
{
$strButton .= '<td class="td_button_small" style="width:50px"> <a href="qti_form_edit.php?s='.$oPost->section.'&t='.$oPost->topic.'&p='.$oPost->id.'&a=ed" class="a_button_small">'.$L['Edit'].' </a> </td>'.N;
$strButton .= '<td class="td_button_small" style="width:50px"> <a href="qti_form_del.php?s='.$oPost->section.'&t='.$oPost->topic.'&p='.$oPost->id.'&a=de" class="a_button_small">'.$L['Delete'].'</a> </td>'.N;
}
}
}
$strModifier = '';
if ( !empty($oPost->modifuser) )
{
$strModifier = '<td class="td_line"><span class="small"> '.$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"> </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;
}
?>