本文整理匯總了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
}
?>