?>
 <div class="row row-list">
 <div class="col-xs-1">
 <?php 
echo Html::submitButton('Update', ['class' => 'btn btn-primary', 'id' => 'modelprofbaseinfoupdate']);
?>
 </div>
 <div class="col-xs-1">
 <?php 
echo Html::button('Cancel', ['class' => 'btn btn-primary', 'id' => 'modelprofbaseinfocancel']);
?>
 </div>
 </div>	
<?php 
ActiveForm::end();
?>
</div>
<?php 
$images = ['<a href="#"><img src="C:\\Users\\saviour\\Desktop\\ShivajiPark670.jpg"/></a>', '<img src="C:\\Users\\saviour\\Desktop\\kkk.jpg"/>', '<img src="C:\\Users\\saviour\\Desktop\\ShivajiPark670.jpg"/>'];
?>

	<div class="container" style="height:550px; width:750px" id="styleSlider">
    <div class="row clearfix">
        <div class="col-md-8 column">
            <?php 
echo yii\bootstrap\Carousel::widget(['items' => $images]);
?>
       </div>
   </div>
</div>
示例#2
0
文件: index.php 项目: Gouga34/SiteSPA
    <div class="col-md-12" style="text-align:center"><h2>Bon anniversaire <?php 
    echo $anniversaire[0]['nom'];
    ?>
 !</h2></div>
</div>
<div class="row">
  <div class="col-md-7">
    <?php 
    if ($anniversaire !== false || count($anniversaire) > 0) {
        $images[] = null;
        $i = 0;
        foreach ($anniversaire as $photo) {
            $photosAnniversaire[$i] = ['content' => "<img src=\"./images/" . $photo['type'] . "s/" . $photo['photo'] . "\">", 'options' => ['style' => 'width:auto;height:500px;background-color:white;color:white;margin:0px auto']];
            $i++;
        }
        echo yii\bootstrap\Carousel::widget(['items' => $photosAnniversaire]);
    }
    ?>
  
  </div>
  <div class="col-md-5"  >
      <p>
          Pour <?php 
    echo $anniversaire[0]['nom'];
    ?>
, nous souhaitons qu'une famille tombe sous son charme et découvre quel trésor se cache dans son petit coeur . 
      </p>
          
      <p>
          Nous lui souhaitons tout le bonheur du monde et nous espérons avec force qu'aucun autre de ses anniversaires ne sera célébré au refuge.
          
示例#3
0
<?php

/* @var $this yii\web\View */
$this->title = 'My Yii Application';
?>
<div class="site-index">
    <div class="body-content">
        <div class="row">
            <?php 
$img1 = \Yii::getAlias('@web') . '/images/8.jpg';
$img2 = \Yii::getAlias('@web') . '/images/9.jpg';
echo yii\bootstrap\Carousel::widget(['items' => ['<img src="' . $img1 . '"/>', ['content' => '<img src="' . $img2 . '"/>'], ['content' => '<img src="' . $img1 . '"/>', 'caption' => '<h4>This is title</h4><p>This is the caption text</p>', 'options' => []]]]);
?>
        </div>

        <div class="row">
            <div class="col-lg-4">
                <h2>Heading</h2>

                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
                    dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
                    ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
                    fugiat nulla pariatur.</p>

                <p><a class="btn btn-default" href="http://www.yiiframework.com/doc/">Yii Documentation &raquo;</a></p>
            </div>
            <div class="col-lg-4">
                <h2>Heading</h2>

                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
                    dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
示例#4
0
<?php

use yii\helpers\Html;
?>
<!-- slider -->
<div class="herounit blue-gradient-bg">
    <div class="g w1140 slider">
<!--        <a href="#"><img class="r" src="images/slide-01.png" alt=""></a>-->
<!--        <div class="r">-->
<!--            --><?php 
$slider = \app\models\Slider::find()->all();
$images = [];
foreach ($slider as $slide) {
    $images[] = Html::a(Html::img($slide->src, ['alt' => $slide->title, 'title' => $slide->title]), [$slide->url]);
}
echo yii\bootstrap\Carousel::widget(['items' => $images, 'controls' => false]);
//
?>
<!--            -->
<!--        </div>-->



    </div>
</div>
<div style="clear: both;"></div>
<!-- slider -->
<!-- main -->
<div class="g w1140 main">
    <div class="c-c">