public function action_item()
 {
     PermissionHelper::Verification('Editor');
     $model = ReviewHelper::PopulateReviewViewModelList(ReviewService::GetAll());
     $this->view->generate('/Review/item_view.php', 'template_view.php', $model);
 }
示例#2
0
<table class="table table-bordered" id="review">
    <tr>
        <th>Имя пользователя</th>
        <th>Коментарий</th>
    </tr>
    <?php 
$reviewdata = ReviewHelper::PopulateReviewViewModelList(ReviewService::GetByProductId($data->Id));
if (isset($reviewdata)) {
    foreach ($reviewdata as $review) {
        ?>
        <tr>
            <td style="width: 150px"><?php 
        echo $review->account->name;
        ?>
</td>
            <td><?php 
        echo $review->value;
        ?>
</td>
        </tr>
    <?php 
    }
}
?>
</table>
<form class=form-inline" action="/Account/newReview" method="post">
    <input type="hidden" name="tovarId" value="<?php 
echo $data->Id;
?>
">
    <div class="form-group" style="vertical-align: middle">