Guest User

Untitled

a guest
Oct 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2. use DaQrCodeQrCode;
  3. ?>
  4.  
  5. <?php foreach ($modelCheckListDetail as $i => $modelCheckListDetail): ?>
  6. <?php
  7. $qrCode = (new QrCode($modelCheckListDetail->unique_key))
  8. ->setSize(100)
  9. ->setMargin(5)
  10.  
  11. ?>
  12. <tr class="item">
  13. <td> <?= ($i + 1) ?> </td>
  14. <td> <?= $form->field($modelCheckListDetail, "[{$i}]unique_key")->label(false)->textInput([
  15. 'readOnly' => true
  16. ]) ?> </td>
  17. <td> <?= Html::img($qrCode->writeDataUri()); ?> </td>
  18.  
  19. </tr>
  20. <?php endforeach; ?>
Add Comment
Please, Sign In to add comment