Exemplo n.º 1
0
echo $pic->image($id)[0];
?>
                <br><br><br>
                <div>
                    <div style="position: relative; width: 30px; height: 30px;">
                        <?php 
Modal::begin(['header' => 'Picture', 'toggleButton' => ['label' => '<span class="glyphicon glyphicon-search" style="color: #f3dc0f; background-color: #000000;"></span>', 'style' => 'background-color: #000000; border-color: #f3dc0f;']]);
$items = $pic->carouselItems(0, $id);
echo Carousel::widget(['items' => $items]);
Modal::end();
?>
                    </div>

                    <div style="position: relative; width: 30px; height: 30px; margin-top: -30px; margin-left: 30px;">
                        <?php 
$value = $pic->value($id)[0];
?>
                        <?php 
$span = '<span class="glyphicon glyphicon-remove" style="color: #f3dc0f; background-color: #000000;"></span>';
?>
                        <form action="" method="post" style="position: relative">
                            <?php 
echo Html::submitButton($span, ['name' => 'delete', 'value' => $value, 'style' => 'background-color: #000000; border-color: #f3dc0f;']);
?>
                        </form>
                    </div>
                </div>
            </td>
            <td style="<?php 
echo $pic->visibility($id)[1];
?>