Ejemplo n.º 1
0
$url = Yii::getAlias('@web');
?>

<div class="item  col-sm-6 col-xs-6 col-md-3">
      <div class="thumbnail"> <img class="group list-group-image" src="<?php 
echo $url;
?>
/<?php 
echo $model['storeImage'] ? $model['storeImage'] : 'images/1.jpg';
?>
" alt=""  class="img-responsive" style="width:249px; height: 187px; " />
        <div class="caption2" >
          <h4><?php 
echo $model['storeName'] . $model['id'];
?>
</h4>
          <p class=""> <?php 
echo $model['storeAddress'];
?>
 </p>
          <div class="row">
            <div class=" productinfo" style="padding-left:10px;">
              <p style="">Sale Items <span class="no"><?php 
echo Stores::getTotalsalleitems($model['id']);
?>
</span></p>
              <a href="#" class=""><i class="fa fa-map-marker" style="border-left:none !important;"></i> </a> </div>
          </div>
        </div>
      </div>
    </div>
Ejemplo n.º 2
0
 public function actionStores()
 {
     $model = new Stores();
     $dataProvider = $model->getStores();
     return $this->render('stores', ['dataProvider' => $dataProvider]);
 }