function getReport(\RS\Orm\Request $request)
{
//$list = array();
$request->select = "";
$request->limit = "";
$list['all'] = $request
->select('
A.order_num,
B.title,
B.price
')
->where(array(
'type' => 'product'
))
->leftjoin(new \Shop\Model\Orm\OrderItem(), 'A.id=B.order_id', 'B')
->exec();
$result_list = array();
while ($row = $list['all']->fetchRow()) {
$order_data = array(
'order_num' => $row['order_num'],
'price' => $row['price'],
'title' => $row['title'],
);
$result_list[] = $order_data;
}
return $result_list;
}
{$newData = []}
{foreach $order_report_arr as $item}
{$newData[$item['order_num']][] = $item}
{/foreach}
{foreach $newData as $id => $order}
<table class="margin">
<tr>
<td>№ {$id}</td>
<td align="right">Цена</td>
</tr>
{foreach $order as $item}
<tr>
<td>{$item['title']}</td><td align="right">{$item['price']}</td>
</tr>
{/foreach}
</table>
{/foreach}
<div class="img-about">
<ul class="blocks">
<li><img src="img/zp3.png" alt=""></li>
<li><img src="img/zp3.png" alt=""></li>
<li><img src="img/zp3.png" alt=""></li>
<li><img src="img/zp3.png" alt=""></li>
<li><img src="img/zp3.png" alt=""></li>
<li><img src="img/zp3.png" alt=""></li>
</ul>
</div>
.blocks {
overflow: hidden;
padding-left: 0px;
}
.blocks li {
float: left;
list-style-type: none;
max-width: 350px;
}
ul.blocks img {
width: 100%;
max-width: 100%;
}
<div class="img-about">
<ul class="blocks">
<li><img src="img/zp3.png" alt=""></li>
<li><img src="img/zp3.png" alt=""></li>
<li><img src="img/zp3.png" alt=""></li>
<li><img src="img/zp3.png" alt=""></li>
<li><img src="img/zp3.png" alt=""></li>
<li><img src="img/zp3.png" alt=""></li>
</ul>
</div>
.blocks {
overflow: hidden;
padding-left: 0px;
}
.blocks li {
float: left;
list-style-type: none;
max-width: 350px;
}
ul.blocks img {
width: 100%;
max-width: 100%;
}