public function getMakes() { if ($this->dealerID) { $makes = D::queryGoodsMakeself(); } else { $makes = D::queryGoodsMakes(); } return $makes; }
.chose{font:13px Arial;display:block; float:left; height:25px;line-height:30px; padding-left:10px; margin:2px 0} .choseXc{display:block;float:right; margin-right: 7px;margin-top: 10px;} /*border:1px solid #e1e1e1;width:20px;height:20px;*/ .series_title{ width: 200px;white-space: nowrap;overflow: hidden; text-overflow: ellipsis; } </style> <div class="pop"> <div id="make-car-m" class="selectDiv4 active" > <div class="selectpop ass-items" style="clear:both; overflow:auto;"> <div class="car_brand" style=" clear:both; overflow:auto;"> <span class="chose">请选择适用车系</span> <p style="clear:both"></p> <div class="left_AA" style="float:left;"> <ul style="list-style:none; margin:0;padding-left:10px; height: 200px; overflow:hidden" > <?php $makes = D::queryGoodsMakes(); ?> <?php if ($makes) { ?> <?php foreach ($makes as $key => $value) { ?> <?php $piny2[] = substr($value['pinyin'], 0, 1); ?> <?php } ?> <?php }
<a href="<?php echo Yii::app()->createUrl("servicer/servicemaininfo/maininfo"); ?> " class="active">主营类别管理</a> </div> <?php //获取易损件更换、专业修理、车险服务信息 //array_splice()剔除数组第一个值; $Wearpart = explode(',', $model['WearParts']); $Category = implode(array_splice($Wearpart, 1), ','); $Prorepair = explode(',', $model['ProRepair']); $Range = implode(array_splice($Prorepair, 1), ','); $Autoservice = explode(',', $model['AutoService']); $Name = implode(array_splice($Autoservice, 1), ','); //获取汽车厂家信息 $brand_data = D::queryGoodsMakes(); $brand = CHtml::listData($brand_data, "makeId", "name"); ?> <form id="business_fm" method="post" action="<?php echo Yii::app()->createUrl("servicer/servicemaininfo/addbusiness"); ?> "> <div class="dttable" style="margin:30px 25px;"> <div class="form-row" style="height:25px;" id="OrganCate"> <label class="label"><strong> 机构类型:</strong></label> <input type="radio" id="fpair" name="OrganType" value="1" <?php if ($model['OrganType'] == '1') { ?> checked<?php } ?>