Exemple #1
0
      </div>
    </div>
    <?php 
    }
    //end if($entry->getEntryAuthenStatusId() == 1)
}
?>
    <!--Display translation request end-->
    <!--- comments section start --->
  
    <div class="entry_record">
      <div class="entry_record_title">Comments</div>
      <div class="entry_record_value">
      <?php 
$commentManager = new CommentManager();
$commentsByEntry = $commentManager->getCommentByEntry($entryId);
$commentCount = count($commentsByEntry);
if ($commentCount > 0) {
    foreach ($commentsByEntry as $coms) {
        $id = $coms->getId();
        $text = $coms->getText();
        $rating_id = $coms->getRatingId();
        $created_by = $coms->getCreatedBy();
        //echo "comment text: ". $text."<br/>";
        //get the username who created the comment
        $userManager = new UserManager();
        $created_user = $userManager->getUserByUserId($created_by);
        $created_user_name = $created_user->getLogin();
        //define ids for html tags in the loop
        $edit_icon_id = "editIcon_" . $id;
        $edit_area_id = "edit_area_" . $id;