123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Administrator
- * Date: 2017/3/17 0017
- * Time: 上午 10:52
- */
- use yii\helpers\Url;
- use yii\widgets\LinkPager;
- $this->title = '我的样板房';
- ?>
- <?php if(!empty($models)):?>
- <?php foreach($models as $mo):?>
- <li>
- <div class="left">
- <a href="<?=Url::toRoute(['building/templatelist','id'=>$mo->id])?>"><img src="<?=empty($mo->all->pic)?"":Yii::getAlias('@imgdomain').'/'.$mo->all->pic?>" alt=""></a>
- </div>
- <div class="center">
- <h2><a href="<?=Url::toRoute(['building/templatelist','id'=>$mo->id])?>"><?=isset($mo->name)?$mo->name:""?></a></h2>
- <p>
- <a href="#"><?=$mo->layout?></a>
- <a href="#"><?=isset($mo->acreage)?$mo->acreage:""?>㎡</a>
- <a href="#"><?=$mo->style?></a>
- </p>
- <p><?=isset($mo->designer->realname)?$mo->designer->realname:""?> 设计师</p>
- </div>
- <div class="right">
- <div class="weui-cell weui-cell_switch">
- <div class="weui-cell__ft">
- <label for="<?='switchCP'.$mo->id?>" class="weui-switch-cp">
- <input id="<?='switchCP'.$mo->id?>" class="weui-switch-cp__input" buildingid="<?=$mo->id?>" buildingposted="<?=$mo->posted?>" type="checkbox" <?=$mo->posted==\common\models\Building::POSTED_YES?"checked='checked'":"" ?>>
- <div class="weui-switch-cp__box"></div>
- </label>
- </div>
- </div>
- </div>
- </li>
- <?php endforeach?>
- <?php endif?>
|