本文整理汇总了PHP中D::queryGoodsMakes方法的典型用法代码示例。如果您正苦于以下问题:PHP D::queryGoodsMakes方法的具体用法?PHP D::queryGoodsMakes怎么用?PHP D::queryGoodsMakes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类D
的用法示例。
在下文中一共展示了D::queryGoodsMakes方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getMakes
public function getMakes()
{
if ($this->dealerID) {
$makes = D::queryGoodsMakeself();
} else {
$makes = D::queryGoodsMakes();
}
return $makes;
}
示例2: foreach
.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
}
示例3: explode
<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
}
?>