Esempio n. 1
0
         echo Form::open(array('method' => 'post', 'action' => '#topicreply' . $rf_p_main_id));
         echo Form::textBox(array('type' => 'text', 'name' => 'fpr_content', 'class' => 'form-control', 'value' => $rf_p_content, 'placeholder' => 'Topic Reply Content', 'rows' => '6'));
         // Topic Reply Edit True
         echo "<input type='hidden' name='action' value='update_reply' />";
         // Topic Reply ID for editing
         echo "<input type='hidden' name='edit_reply_id' value='" . $rf_p_main_id . "' />";
         // CSRF Token
         echo "<input type='hidden' name='csrf_token' value='" . $data['csrf_token'] . "' />";
         // Display Submit Button
         echo "<button class='btn btn-xs btn-success' name='submit' type='submit'>Update Reply</button>";
         echo Form::close();
     } else {
         // Display Topic Reply Content
         echo "{$rf_p_content_bb}";
         // Get user's Signature
         $user_signature = CurrentUserData::getUserSignature($rf_p_user_id);
         if (!empty($user_signature)) {
             echo "<hr style='margin-bottom: 0px'><font size='1'><i>Signature</i></font><hr style='margin-top: 0px'> {$user_signature}";
         }
     }
     // Check to see if there are any images attaced to this post
     $check_for_image = Images::getForumImagesTopicReply($rf_p_id, $rf_p_main_id);
     if (isset($check_for_image)) {
         echo "<hr style='margin-bottom: 0px'><font size='1'><i>Image Attachments</i></font>";
         echo "<hr style='margin-top: 0px'>";
         echo "<div align='center' style='margin-bottom: 8px'><a href='" . DIR . "{$check_for_image}' target='_blank'><img src='" . DIR . "{$check_for_image}' height='100px'></a></div>";
     }
 } else {
     // Mod/Admin has disallowed this reply.  Show message
     echo " <strong><font color='red'>This Reply Has Been Disabled By Mod/Admin.  Contact Mod/Admin for more information.</font></strong> ";
     echo "<hr>";