Leitgedanken/msd2/myoos/templates/phoenix/page/product_reviews.html
2023-01-23 11:03:31 +01:00

86 lines
2.9 KiB
HTML

{include file="phoenix/system/_header.html"}
{include file="phoenix/system/_breadcrumbs.html"}
{if $message}
{foreach $message as $info}
{include file="phoenix/system/_message.html"}
{/foreach}
{/if}
<section class="mainContent clearfix">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="innerWrapper clearfix">
<div class="clearfix shop-list-options mb-20">
<!-- pagination -->
<div class="m-0 float-right">
{$pagination}
</div>
<!-- end pagination -->
</div>
<div class="reviews">
{section name=i loop=$reviews}
{if $smarty.section.i.first}
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>{$lang.table_heading_number}</th>
<th>{$lang.table_heading_author}</th>
<th>{$lang.table_heading_rating}</th>
<th>{$lang.table_heading_read}</th>
<th>{$lang.table_heading_date_added}</th>
<th></th>
</tr>
</thead>
<tbody>
{/if}
<tr>
<td>{$smarty.section.i.rownum|number_format}</td>
<td><a href="{html_href_link content=$filename.product_reviews_info products_id=$smarty.get.products_id reviews_id=$reviews[i].id}">{$reviews[i].customers_name}</a></td>
<td><div class="rating rating-{$reviews[i].rating} fs-13 fw-100 text-center"><!-- rating-0 ... rating-5 --></div></td>
<td>{$reviews[i].read}</td>
<td>{$reviews[i].date_added}</td>
<td><a href="{html_href_link content=$filename.product_reviews_info products_id=$smarty.get.products_id reviews_id=$reviews[i].id}" class="btn btn-sm btn-secondary-outlined" role="button">{$lang.button_view}</a></td>
</tr>
{if $smarty.section.i.last}
</tbody>
</table>
</div>
{/if}
{sectionelse}
<div class="alert alert-info" role="alert">
{$lang.text_no_reviews}
</div>
{/section}
</div>
<div class="well well-lg clearfix">
<ul class="pager">
<li class="previous float-left"><a class="btn btn-secondary btn-default float-left" href="{product_link products_id=$smarty.get.products_id}" role="button"><i class="fa fa-angle-left" aria-hidden="true"></i> {$lang.button_back}</a></li>
<li class="next"><a class="btn btn-primary btn-default float-right" href="{html_href_link content=$filename.product_reviews_write products_id=$smarty.get.products_id}" role="button"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> {$lang.button_write_review}</a></li>
</ul>
</div>
<hr />
<!-- pagination -->
<div class="text-center">
{$pagination}
</div>
<!-- end pagination -->
</div>
</div><!-- .col -->
</div><!-- .row -->
</div><!--end container-->
</section>
{include file="phoenix/system/_footer.html"}