div class table-responsive style font-size 12px table class table tabl

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<div class="table-responsive" style="font-size:12px;">
<table class="table table-striped form_goods_order">
<thead>
<tr>
<th class="text-center">Код</th>
<th>Артикул</th>
<th>Наименование</th>
<th>Ед. измерения</th>
<th>Цена</th>
<th>Количество</th>
<th>Сумма</th>
</tr>
</thead>
<tbody>';
$array = DB::$dbs->query("SELECT * FROM magazin_file ORDER BY id ASC");
while($a = $array->fetch()) {
$edizms = [1 => 'Мес', 2 => 'Шт', 3 => 'Пог.м', 4 => 'М', 5 => 'м3', 6 => 'Ч', 7 => 'Литр']; // массив с категориями
echo'<tr id="two" class="box">
<td class="text-center">000'.$a['id'].'</td>
<td>'.$a['articul'].'</td>
<td>'.$a['name'].'</td>
<td>'.strtr($a['edizm'], $edizms).' </td>
<td><span class="price_sp">700</span></td>
<td class="col-md-3 count"><span class="degr"/>-</span>
<input type="text" name="nab1" id="nab1" value="0" />
<span class="incr" />+</span></td>
<td>0</td>
</tr>';
}
echo'<hr>
<td>Итого: <span class="sum_price">0</span> </td>
</tbody>
</table>
</div>