Exemplo n.º 1
0
?>
                    <div class="btn btn-success" style="position: relative; margin-top: -120px; margin-left: -12px; z-index: 1;">
                        Choose a picture
                    </div>
                    <?php 
echo Html::submitButton('Add picture', ['class' => 'btn btn-success', 'style' => 'position: relative; margin-top: -120px; margin-left: 100px;']);
?>
                    <?php 
ActiveForm::end();
?>
                </div>
            </td>
        </tr>
        <tr id="line-one">
            <td style="<?php 
echo $pic->visibility($id)[0];
?>
; text-align: right; max-width: 130px; border: solid; border-color: #c0c0c0; border-width: thin">
                <?php 
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>