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

// QTI 2.5 build:20101222 used in qti_topic

if ( $oSEC->status=='0' && $oTopic->status!='Z' && $oTopic->status!='0' ) {
if ( $oVIP->role=='V' && $_SESSION[QT]['visitor_right']<7 ) {} else {

echo '
<!-- Quick reply -->
<div class="quickreply">
';

// Quick Reply form, according to the topic type (I, A or T)

switch(strtoupper($oTopic->type))
{

//-------
case 'I':
//-------

echo '<form method="post" action="',Href('qti_form_edit.php'),'">
<table class="hidden" cellspacing="0">
<tr class="hidden">
<td class="hidden" style="width:175px">
',$L['Quick_reply'],'<br /><br />',HtmlScore($oTopic->ReadOptions('Ilevel')),'</td>
<td class="hidden">
';
if ( $_SESSION[QT]['bbc']=='1' )
{
echo '<ul class="bbc"><li class="txt">',L('Message'),'</li>';
include('qti_form_button.php');
echo '<li class="txt" style="text-align:right"></li></ul>';
}
else
{
echo L('Message');
}
echo '
<a href="textarea"></a><textarea id="text" name="text" rows="4" cols="64"></textarea>&nbsp;
<input type="submit" id="dosend" name="dosend" value="',$L['Send'],'" />
<input type="hidden" name="s" value="',$oSEC->id,'" />
<input type="hidden" name="t" value="',$oTopic->id,'" />
<input type="hidden" name="a" value="re" />
<input type="hidden" name="ref" value="',$oTopic->numid,'" />
<input type="hidden" name="icon" value="00" />
</td>
</tr>
</table>
</form>
';
break;

//-------
default:
//-------

echo '<script type="text/javascript">
<!--
function ValidateForm(theForm)
{
  if (theForm.text.value.length==0) { alert(qtHtmldecode("',$L['Missing'],': ',$L['Message'],'")); return false; }
  if (theForm.text.value.length>',$_SESSION[QT]['chars_per_post'],') { alert(qtHtmldecode("',$L['E_too_long'],': ',$L['Maximum'],' ',$_SESSION[QT]['chars_per_post'],'")); return false; }
  return null;
}
-->
</script>
';
echo '<form method="post" action="',Href('qti_form_edit.php'),'" onsubmit="return ValidateForm(this);">
<table class="hidden" cellspacing="0">
<tr class="hidden">
<td style="height:22px">
';
if ( $_SESSION[QT]['bbc']=='1' )
{
echo '<ul class="bbc"><li class="txt">',$L['Quick_reply'],'</li>';
include('qti_form_button.php');
}
else
{
echo $L['Quick_reply'];
}
echo '&nbsp;&nbsp;<input type="submit" id="dopreview" name="dopreview" value="',$L['Advanced_reply'],'" class="small" />&nbsp;<input type="submit" id="dosend" name="dosend" value="',$L['Send'],'" class="small" />
</td>
</tr>
';

echo '<tr class="hidden">
<td class="hidden">
<a href="textarea"></a><textarea id="text" name="text" rows="5" cols="85"></textarea>&nbsp;
<input type="hidden" name="t" value="',$oTopic->id,'" />
<input type="hidden" name="a" value="re" />
<input type="hidden" name="ref" value="',$oTopic->numid,'" />
<input type="hidden" name="icon" value="00" />
<input type="hidden" name="title" value="" />
</td>
</tr>
</table>
</form>
';

break;

}

echo '</div>
';

}}

?>
Return current item: QuickTicket