Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
<td style="min-width: 100px; padding-top: 20px" ><a href="#" onclick="delete('.$data['id'].');return false;" class="remove">Məhsulu sil</a></td>
<div class="container"> <div id="div_print"> <?= Html::beginForm(['site/toemail' ], 'get', []) ?> <table class="table table-striped"> <thead> <tr class="text-center"> <th></th> <th>Adı</th> <th>Sayı</th> <th>Vahid</th> <th>Qiyməti (AZN)</th> <th>Toplam (AZN)</th> <th>Sil</th> </tr> </thead> <tbody> <?php $top =0 ; $in = 0; foreach ($model as $data): ?> <tr class="quantitytr"> <!-- sekillerin oldugu sutun --> <td> <img style="padding: 30px;width: 50%" class="img-responsive" src="<?=isset($data['productPhotos'][0]['path']) ? '/uploads/'.$data['productPhotos'][0]['path'] : 'https://placeholdit.imgix.net/~text?txtsize=33&txt=Alutek&w=400&h=400' ?>" > </td> <!-- sekillerin oldugu setr --> <!-- mehsul adi --> <td><?=$data['name']?></td> <!-- say ve plus/minus buttonu --> <td> <div class="input-group"> <span class="input-group-btn"> <button type="button" class=" qtyminus btn btn-default btn-number " data-type="minus" data-field="quant<?= $data['id']?>"> <span class="glyphicon glyphicon-minus"></span> </button> </span> <!-- deyisiklik olunub quant[<?= $data['id']?>] => bu yazilis js de error verirdi quant<?= $data['id']?> => bununla evez etdim yuxaridaki javascript kodlarindada eyni deyisiklik olunub --> <input style="min-width: 50px" type="text" name="quant<?= $data['id']?>" class="form-control input-number quantity" value="1" min="1" max="800" data-price="<?=$data['price']?>"> <!-- deyisiklik sonu --> <span class="input-group-btn"> <button type="button" class="qtyplus btn btn-default btn-number " data-type="plus" data-field="quant<?= $data['id']?>"> <span class="glyphicon glyphicon-plus"></span> </button> </span> </div> </td> <!-- vahid --> <td><input style="min-width: 50px" class="form-control input-number readonly price" type="text" readonly value="<?=$data['base_unit']?> " /></td> <!-- qiymet --> <td><input style="min-width: 50px" class="form-control input-number readonly price" type="text" readonly value="<?=$data['price']?> " /></td> <!--toplam qiymet --> <td><input style="min-width: 60px" class="umumiquant<?= $data['id']?> form-control input-number total to<?= $data['id']?>" type="text" readonly value="<?=$data['price']?>" class="readonly"/></td> <td style="min-width: 100px; padding-top: 20px" ><a href="#" onclick="remove('.$data['id'].');return false;" class="remove">Məhsulu sil</a></td> </tr> <?php $top += $data['price']; ?> <?php endforeach; ?> <tr> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <!-- Yekun --> <tr> <td><label>Toplam</label></td> <td></td> <td></td> <td></td> <td></td> <td><p><input id="yekun" class="form-control input-number readonly price" readonly value="<?=$top?>" /></p></td> </tr> </tbody> </table> <?= Html::endForm() ?> </div> <div style="float: right" class="col-md-5"> <div style="float: right" class="col-sm-2 col-lg-2 col-md-2" > <?= Html::a('Çap et','#', ['class'=>'btn btn-primary grid-button','onClick'=> "printdiv('div_print')"]) ?> </div> <div style="float: right" class="col-sm-2 col-lg-2 col-md-2" > <?= Html::submitButton('Göndər', ['class' => 'btn btn-default','id' => 'tomail']) ?> </div> </div> </div>