本文整理汇总了PHP中Listing::getDropdownlistWithTableName方法的典型用法代码示例。如果您正苦于以下问题:PHP Listing::getDropdownlistWithTableName方法的具体用法?PHP Listing::getDropdownlistWithTableName怎么用?PHP Listing::getDropdownlistWithTableName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Listing
的用法示例。
在下文中一共展示了Listing::getDropdownlistWithTableName方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getSpecial_features_And_Outdoor_indoor_space
public static function getSpecial_features_And_Outdoor_indoor_space($listingId)
{
$special = Listing::getDropdownlistWithTableName('ProMasterSpecialFeatures', 'name', 'name');
$outdoor = Listing::getDropdownlistWithTableName('ProMasterOutdoorIndoorSpace', 'name', 'name');
$arrMarge = array_merge($special, $outdoor);
if (count($arrMarge) > 0) {
$data = array();
$k = 1;
foreach ($arrMarge as $value) {
if ($k % 2 != 0) {
$data['colum1'][$value] = $value;
} else {
$data['colum2'][$value] = $value;
}
$k++;
}
return $data;
}
return null;
}
示例2: array
<?php
echo CHtml::dropDownList('LeaseTerm', $s_LeaseTerm, Listing::getDropdownlistWithTableName('ProMasterLeaseTerm', 'id', 'name'), array('empty' => 'Select', 'class' => 'form-control'));
?>
</div>
<div class="form-group sidebar-tab div_furnished_tenure_for_rent hide div_furnished_tenure">
<label class="control-label">Furnished</label>
<?php
echo CHtml::dropDownList('furnished', $aFurnishingInclude, Listing::getDropdownlistWithTableName('ProMasterFurnished', 'id', 'name'), array('class' => 'form-control', 'empty' => 'All furnished'));
?>
</div>
<div class="form-group sidebar-tab div_furnished_tenure_for_sale hide div_furnished_tenure">
<label class="control-label">Tenure</label>
<?php
echo CHtml::dropDownList('tenure', $sTenure, Listing::getDropdownlistWithTableName('ProMasterTenure', 'id', 'name'), array('class' => 'form-control', 'empty' => 'All tenure'));
?>
</div>
<div class="form-group sidebar-tab">
<label class="control-label">Keywords</label>
<input type="text" name="keywords" class="form-control" value="<?php
echo $s_keywords;
?>
" />
</div>
<p class="more more_search_options"><a href="javascript:void(0)">+ More search options</a></p>
<div class="more_search_box" style="display: none;">
<div class="form-group sidebar-tab">
示例3: array
<div class="group-4">
<?php
echo $form->textField($mTransactions->mPropertyDetail, 'no_of_bedroom', array('class' => 'text'));
?>
<?php
echo $form->error($mTransactions->mPropertyDetail, 'no_of_bedroom');
?>
</div>
</div>
<div class="in-row clearfix">
<?php
echo $form->labelEx($mTransactions->mPropertyDetail, 'tenure', array('class' => 'lb'));
?>
<div class="group-4">
<?php
echo $form->dropDownList($mTransactions->mPropertyDetail, 'tenure', Listing::getDropdownlistWithTableName('ProMasterTenure', 'id', 'name'), array('empty' => 'Select', 'class' => ''));
?>
<?php
echo $form->error($mTransactions->mPropertyDetail, 'tenure');
?>
</div>
</div>
</div>
<div class="col-2">
<div class="in-row clearfix">
<?php
echo $form->labelEx($mTransactions->mPropertyDetail, 'unit_no', array('class' => 'lb'));
?>
<div class="group-4">
<?php
echo $form->textField($mTransactions->mPropertyDetail, 'unit_no', array('class' => 'text w-5'));
示例4: array
<div class="clear" style='clear: both;'></div>
<?php
echo $form->error($model, 'developer');
?>
</div>
</div>
<div class="in-row clearfix">
<?php
echo $form->labelEx($model, 'tenure', array('class' => 'lb-1'));
?>
<div class="group-1">
<?php
// echo $form->textField($model, 'tenure', array('class' => 'text'));
?>
<?php
echo $form->dropDownlist($model, 'tenure', Listing::getDropdownlistWithTableName('ProMasterTenure', 'id', 'name'), array('class' => 'text'));
?>
<div class="clear" style='clear: both;'></div>
<?php
echo $form->error($model, 'tenure');
?>
</div>
</div>
<div id="company_show" style="<?php
echo $model->listing_type_transaction == 2 ? 'display: block;' : 'display: none;';
?>
">
<?php
include '_company.php';
?>
示例5: array
<?php
echo $form->error($model, 'floor');
?>
</div>
</div>
<div class="in-row clearfix <?php
echo $display_none_s2;
?>
">
<?php
echo $form->labelEx($model, 'lease_term', array('class' => 'lb'));
?>
<div class="group-4">
<?php
echo $form->dropDownlist($model, 'lease_term', Listing::getDropdownlistWithTableName('ProMasterLeaseTerm', 'id', 'name'), array('empty' => 'Select', 'class' => 'text'));
?>
<?php
echo $form->error($model, 'lease_term');
?>
</div>
</div>
<div class="in-row clearfix display_none">
<?php
echo $form->labelEx($model, 'of_bathrooms', array('class' => 'lb'));
?>
<div class="group-4">
<?php
// echo $form->dropDownlist($model,'of_bathrooms', Listing::getDropdownlistWithTableName('ProMasterLeaseTerm','id','name'),array('empty'=>'Select','class'=>'text'));
?>
示例6: array
<th >Gross commission</th>
<th >Amount SG$</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="todo in vouchers">
<td>{{$index + 1}}</td>
<td>
<input disabled="disabled" readonly="readonly" class="form-validate form-control-add search" name="FiPaymentVoucherDetail[{{$index + 1}}][transacion]" type="text" value="" placeholder="Auto Search" ng-model="todo.transacion" >
<input class="invoice_id_{{$index + 1}}" name="FiPaymentVoucherDetail[{{$index + 1}}][invoice_id]" type="hidden" value="" ng-model="todo.invoice_id" >
</td>
<td><input disabled="disabled" class="form-validate form-control-add invoice_name_{{$index + 1}}" type="text" name="FiPaymentVoucherDetail[{{$index + 1}}][invoice_no]" value="" ng-model="todo.invoice_no" readonly="readonly" ></td>
<td><input disabled="disabled" class="form-validate form-control-add form-control-desciption" ng-model="todo.description" name="FiPaymentVoucherDetail[{{$index + 1}}][description]" type="text" value="" ></td>
<td>
<?php
echo CHtml::dropDownList('FiPaymentVoucherDetail[{{$index + 1}}][client_type]', "todo.client_type", Listing::getDropdownlistWithTableName('ProMasterClientType', 'id', 'name'), array('class' => 'form-validate form-control-add clinet-type-custom', 'ng-model' => 'todo.client_type', 'disabled' => true));
?>
</td>
<td><input disabled="disabled" class="form-validate form-control-add change-item comm comm_{{$index + 1}}" name="FiPaymentVoucherDetail[{{$index + 1}}][comm]" ng-model="todo.comm" type="text" value="" ></td>
<td><input disabled="disabled" class="form-validate form-control-add change-item gross gross_{{$index + 1}}" name="FiPaymentVoucherDetail[{{$index + 1}}][gross_commission]" ng-model="todo.gross_commission" type="text" value="" ></td>
<td><input disabled="disabled" class="form-validate form-control-add amount amount_{{$index + 1}}" name="FiPaymentVoucherDetail[{{$index + 1}}][amount]" ng-model="todo.amount" type="text" value="" readonly="readonly" ></td>
</tr>
<tr>
<tr>
<td colspan="7">
<div class="pull-right">Total Amount </div>
</td>
<td>
<input type="hidden" id="gst" value="<?php
echo Yii::app()->params['gst'];
?>
示例7: array
</div>
</div>
</div>
<div class="col-xs-6">
<div class="div_furnished_tenure_for_sale display_none div_furnished_tenure">
<label class="lb">Tenure</label>
<?php
echo CHtml::dropDownList('tenure', $sTenure, Listing::getDropdownlistWithTableName('ProMasterTenure', 'id', 'name'), array('class' => '', 'empty' => 'All tenure'));
?>
</div>
<div class="div_furnished_tenure_for_rent display_none div_furnished_tenure">
<label class="lb">Furnished</label>
<?php
echo CHtml::dropDownList('furnished', $aFurnishingInclude, Listing::getDropdownlistWithTableName('ProMasterFurnished', 'id', 'name'), array('class' => '', 'empty' => 'All furnished'));
?>
</div>
</div>
</div>
<div class="row in-row">
<div class="col-xs-6">
<label class="lb">Bedroom</label>
<div class="row">
<div class="col-xs-6">
<?php
echo CHtml::dropDownList('minimum_bedroom', $s_minimum_bedroom, Listing::getListOptionsBedroom(), array('empty' => 'Minimum'));
?>