9 use xj\qrcode\widgets\Email;
10 use xj\qrcode\widgets\Text;
12 if (! User::canPermission('takingInventory'))
14 return Yii::$app->response->redirect(['site/index']);
17 $this->title = Yii::t('items', 'Items');
18 $this->params[ 'breadcrumbs' ][] = $this->title;
21 <div class="items-index">
27 $percent = (100 / $counts) % 100;
29 foreach ($models as $model )
34 if ($ind % $counts == 0)
36 echo '<tr style="height:120px;min-height:120px;max-height:120px;">';
40 <td style="width:<?= $percent ?>%;">
41 <div style="margin:2px 2px 2px 2px;border-color:black;border-width:4,4;border-style:double;border-radius:15px;height:94%;width:98%">
42 <table width="100%" height="100%">
45 <td style="vertical-align:middle;">
47 'outputDir' => '@webroot/upload/qrcode',
48 'outputDirWeb' => '@web/upload/qrcode',
49 'text' => $model->invent . ', ' . $model->serial,
52 'ecLevel' => QRcode::QR_ECLEVEL_L,
55 <td style="vertical-align:middle;">
56 <?= $model->invent . ', ' . $model->models->name ?>
64 if ($ind % $counts == 0)
69 if ($ind % $counts != 0)
71 while ($ind % $counts != 0)
73 echo '<td> </td>';