本文整理汇总了PHP中Province::listProvinces方法的典型用法代码示例。如果您正苦于以下问题:PHP Province::listProvinces方法的具体用法?PHP Province::listProvinces怎么用?PHP Province::listProvinces使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Province
的用法示例。
在下文中一共展示了Province::listProvinces方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
return array('enctype' => 'multipart/form-data', 'class' => 'formdangkytaikhoan', 'elements' => array('<div class="row">', '<div class="col-xs-12">', 'ten_khach_hang' => array('type' => 'text', 'class' => 'form-input'), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'ten_dang_nhap' => array('type' => 'text', 'class' => 'form-input'), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'password' => array('type' => "password", 'class' => 'form-input'), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'confirmPassword' => array('type' => "password", 'class' => 'form-input'), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'so_dien_thoai' => array('type' => 'text', 'class' => 'form-input'), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'email' => array('type' => 'text', 'class' => 'form-input'), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'dia_chi' => array('type' => 'dropdownlist', 'items' => Province::listProvinces(), 'class' => 'form-input'), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'anh_dai_dien' => array('type' => 'file', 'class' => 'anh'), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'dieukhoan' => array('type' => 'checkbox', 'class' => 'checkb'), '</div>', '</div>'), 'buttons' => array('dangky' => array('type' => 'submit', 'label' => 'Đăng ký', 'class' => 'btndangki btn', 'action' => 'dangkitk')));
示例2: array
<?php
return array('enctype' => 'multipart/form-data', 'elements' => array('tinkhachhang' => array('type' => 'form', 'title' => 'Sửa tin rao vặt', 'elements' => array('<div class="col-xs-12 col-sm-6 col-md-6">', 'nguoi_lien_lac' => array('type' => 'text', 'class' => 'form-control'), '</div>' . '<div class="col-xs-12 col-sm-5 col-md-5 pull-right">', 'so_dien_thoai' => array('type' => 'text', 'class' => 'form-control'), '</div>' . '<div class="clearfix"></div>' . '<div class="col-xs-12 col-sm-6 col-md-6">', 'tieu_de_tin' => array('type' => 'text', 'class' => 'form-control'), '</div>' . '<div class="col-xs-12 col-sm-5 col-md-5 pull-right">', 'tinh_thanh' => array('type' => 'dropdownlist', 'items' => Province::listProvinces(), 'class' => 'form-control'), '</div>' . '<div class="clearfix"></div>' . '<div class="col-xs-12 col-sm-6 col-md-6">', 'trang_thai' => array('type' => 'dropdownlist', 'items' => Tinraovat::getStatusTinDang(), 'class' => 'form-control'), '</div>' . '<div class="col-md-12">', 'noi_dung_tin' => array('type' => 'textarea', 'rows' => '10', 'class' => 'form-control', 'id' => 'noi-dung-tin'), '</div>')), 'tinraovat' => array('type' => 'form', 'elements' => array('<div class="col-xs-12 col-sm-6 col-md-6">', 'ma_loai_tin_rv' => array('type' => 'dropdownlist', 'items' => Loaitinraovat::optionLoaiTinRV(), 'class' => 'form-control'), '</div>' . '<div class="col-xs-12 col-sm-5 col-md-5 pull-right">', 'gia_rao_vat' => array('type' => 'text', 'class' => 'form-control'), '</div>' . '<div class="col-xs-12 col-md-5">', 'anh' => array('type' => 'file'), '</div>'))), 'buttons' => array('<div class="col-md-12 text-center">', 'dangtin' => array('type' => 'submit', 'label' => 'Đăng tin', 'class' => 'btn-success'), '</div>'));
示例3: array
?>
</td>
</tr>
<tr>
<td>
<p class="la">Địa chỉ nơi đến </p>
</td>
<td><?php
echo $form->textField($khachTimXe, 'dia_chi_den', array('class' => 'form-control ma'));
?>
</td>
<td>
<p class="la">Tỉnh/Thành phố</p>
</td>
<td><?php
echo $form->dropDownList($khachTimXe, 'noi_den_tinh', Province::listProvinces(), array('class' => 'form-control ma'));
?>
<?php
echo $form->error($khachTimXe, 'noi_den_tinh');
?>
</td>
</tr>
<tr>
<td>
<p class="la">Loại xe ghép</p>
</td>
<td><?php
echo $form->dropDownList($khachTimXe, 'ma_loai_xe_ghep', Loaixeghep::optionLoaiXeGhep(), array('class' => 'form-control ma'));
?>
<?php
echo $form->error($khachTimXe, 'ma_loai_xe_ghep');
示例4: array
<?php
return array('enctype' => 'multipart/form-data', 'class' => 'chinhsuaTT', 'elements' => array('<div class="row">', '<div class="col-xs-12">', 'anh_dai_dien' => array('type' => 'file', 'class' => 'anh'), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'id' => array('type' => 'text', 'class' => 'form-input', 'disabled' => TRUE), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'ten_khach_hang' => array('type' => 'text', 'class' => 'form-input'), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'ten_dang_nhap' => array('type' => 'text', 'class' => 'form-input'), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'password' => array('type' => 'password', 'class' => 'form-input'), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'email' => array('type' => 'text', 'class' => 'form-input', 'disabled' => TRUE), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'so_dien_thoai' => array('type' => 'text', 'class' => 'form-input'), '</div>', '</div>', '<div class="row">', '<div class="col-xs-12">', 'dia_chi' => array('type' => 'dropdownlist', 'items' => Province::listProvinces(), 'class' => 'form-input'), '</div>', '</div>'), 'buttons' => array('chinhsua' => array('type' => 'submit', 'label' => 'Lưu thay đổi', 'class' => 'btndangki btn')));
示例5: array
<?php
echo $form->labelEx($model, 'email');
?>
<?php
echo $form->textField($model, 'email', array('size' => 60, 'maxlength' => 80, 'class' => 'form-control'));
?>
<?php
echo $form->error($model, 'email');
?>
</div>
<div class="col-md-6">
<?php
echo $form->labelEx($model, 'dia_chi');
?>
<?php
echo $form->dropDownList($model, 'dia_chi', Province::listProvinces(), array('class' => 'form-control'));
?>
<?php
echo $form->error($model, 'dia_chi');
?>
</div>
<div class="clearfix"></div>
<div class="col-md-6">
<?php
echo $form->labelEx($model, 'so_dien_thoai');
?>
<?php
echo $form->textField($model, 'so_dien_thoai', array('size' => 11, 'maxlength' => 11, 'class' => 'form-control'));
?>
<?php
echo $form->error($model, 'so_dien_thoai');
示例6: array
echo $form->labelEx($tinGhepXe, 'dia_chi_den');
?>
<?php
echo $form->textField($tinGhepXe, 'dia_chi_den', array('class' => 'form-control'));
?>
<?php
echo $form->error($tinGhepXe, 'dia_chi_den');
?>
</div>
<div class="col-md-6">
<?php
echo $form->labelEx($tinGhepXe, 'noi_den_tinh');
?>
<?php
echo $form->dropDownList($tinGhepXe, 'noi_den_tinh', Province::listProvinces(), array('class' => 'form-control'));
?>
<?php
echo $form->error($tinGhepXe, 'noi_den_tinh');
?>
</div>
<div class="col-md-6">
<?php
echo $form->labelEx($tinGhepXe, 'ma_loai_xe_ghep');
?>
<?php
echo $form->dropDownList($tinGhepXe, 'ma_loai_xe_ghep', Loaixeghep::optionLoaiXeGhep(), array('class' => 'form-control'));
?>
<?php
echo $form->error($tinGhepXe, 'ma_loai_xe_ghep');
示例7:
<?php
// /* @var $this Controller */
$provinces = Province::listProvinces();
?>
<section id="tableXTK">
<div class="pribox">Xe tìm khách</div>
<div class="table-responsive">
<table class="table table-striped table-hover ctt">
<thead>
<tr style="color:#2C7BAC;" bgcolor="DAD9D9">
<th width="195">Tiêu đề</th>
<th width="77">Nơi đi</th>
<th width="83">Nơi đến</th>
<th width="100">Ngày đi</th>
<th width="164">Liên hệ</th>
<th width="79">Trạng thái</th>
</tr>
</thead>
<tbody>
<?php
foreach ($this->xetimkhach as $data) {
$urlChiTietTin = Yii::app()->request->baseUrl . '/xe-tim-khach/xem-chi-tiet/' . ConvertURL::refine($data['tieu_de_tin']) . '/' . $data['ma_tin'];
?>
<tr>
<tr>
<td><a title="<?php
echo CHtml::encode($data['tieu_de_tin']);
?>
" href="<?php
echo $urlChiTietTin;
示例8: array
<?php
return array('elements' => array('tinkhachhang' => array('type' => 'form', 'title' => 'Sửa tin đăng:', 'elements' => array('<div class="col-xs-12 col-sm-6 col-md-6">', 'nguoi_lien_lac' => array('type' => 'text', 'class' => 'form-control'), '</div>' . '<div class="col-xs-12 col-sm-5 col-md-5 pull-right">', 'so_dien_thoai' => array('type' => 'text', 'class' => 'form-control'), '</div>' . '<div class="clearfix"></div>' . '<div class="col-xs-12 col-sm-6 col-md-6">', 'tieu_de_tin' => array('type' => 'text', 'class' => 'form-control'), '</div>' . '<div class="col-xs-12 col-sm-5 col-md-5 pull-right">', 'tinh_thanh' => array('type' => 'dropdownlist', 'items' => Province::listProvinces(), 'class' => 'form-control'), '</div>' . '<div class="clearfix"></div>' . '<div class="col-xs-12 col-sm-6 col-md-6">', 'trang_thai' => array('type' => 'dropdownlist', 'items' => Tinghepxe::getStatusTinDang(), 'class' => 'form-control'), '</div>' . '<div class="col-md-12">', 'noi_dung_tin' => array('type' => 'textarea', 'rows' => '10', 'class' => 'form-control', 'id' => 'noi-dung-tin'), '</div>')), 'tinghepxe' => array('type' => 'form', 'elements' => array('<div class ="col-md-6">', 'dia_chi_di' => ['type' => 'text', 'class' => 'form-control'], '</div>' . '<div class ="col-md-5 pull-right">', 'dia_chi_den' => ['type' => 'text', 'class' => 'form-control'], '</div>' . '<div class="clearfix"></div>' . '<div class ="col-md-6">', 'noi_den_tinh' => ['type' => 'dropdownlist', 'items' => Province::listProvinces(), 'class' => 'form-control'], '</div>' . '<div class ="col-md-5 pull-right">', 'ma_loai_xe_ghep' => ['type' => 'dropdownlist', 'items' => Loaixeghep::optionLoaiXeGhep(), 'class' => 'form-control'], '</div>' . '<div class="clearfix"></div>' . '<div class ="col-md-3">', 'ngay_khoi_hanh' => ['type' => 'date', 'class' => 'form-control'], '</div>'))), 'buttons' => array('<div class="col-md-12 text-center">', 'dangtin' => array('type' => 'submit', 'label' => 'Đăng tin', 'class' => 'btn-success'), '</div>'));
示例9: array
<?php
return array('elements' => array('tinkhachhang' => array('type' => 'form', 'title' => 'Đăng tin khách tìm xe:', 'elements' => array('ma_khach_hang' => array('type' => 'hidden', 'value' => Yii::app()->user->userId), '<div class="col-xs-12 col-sm-6 col-md-6">', 'nguoi_lien_lac' => array('type' => 'text', 'class' => 'form-control'), '</div>' . '<div class="col-xs-12 col-sm-5 col-md-5 pull-right">', 'so_dien_thoai' => array('type' => 'text', 'class' => 'form-control'), '</div>' . '<div class="clearfix"></div>' . '<div class="col-xs-12 col-sm-6 col-md-6">', 'tieu_de_tin' => array('type' => 'text', 'class' => 'form-control'), '</div>' . '<div class="col-xs-12 col-sm-5 col-md-5 pull-right">', 'tinh_thanh' => array('type' => 'dropdownlist', 'items' => Province::listProvinces(), 'class' => 'form-control'), '</div>' . '<div class="col-md-12">', 'noi_dung_tin' => array('type' => 'textarea', 'rows' => '10', 'class' => 'form-control', 'id' => 'noi-dung-tin'), '</div>')), 'tinghepxe' => array('type' => 'form', 'elements' => array('<div class ="col-md-6">', 'dia_chi_di' => ['type' => 'text', 'class' => 'form-control'], '</div>' . '<div class ="col-md-5 pull-right">', 'dia_chi_den' => ['type' => 'text', 'class' => 'form-control'], '</div>' . '<div class="clearfix"></div>' . '<div class ="col-md-6">', 'noi_den_tinh' => ['type' => 'dropdownlist', 'items' => Province::listProvinces(), 'class' => 'form-control'], '</div>' . '<div class ="col-md-5 pull-right">', 'ma_loai_xe_ghep' => ['type' => 'dropdownlist', 'items' => Loaixeghep::optionLoaiXeGhep(), 'class' => 'form-control'], '</div>' . '<div class="clearfix"></div>' . '<div class ="col-md-3">', 'ngay_khoi_hanh' => ['type' => 'zii.widgets.jui.CJuiDatePicker', 'options' => array('showAnim' => 'slideDown', 'changeMonth' => true, 'changeYear' => true, 'minDate' => '2015-01-01', 'dateFormat' => 'yy-mm-dd'), 'htmlOptions' => array('class' => 'form-control')], '</div>'))), 'buttons' => array('<div class="col-md-12 text-center">', 'dangtin' => array('type' => 'submit', 'label' => 'Đăng tin', 'class' => 'btn-success'), '</div>'));
示例10: array
<?php
echo $form->labelEx($tinKhachHang, 'tieu_de_tin');
?>
<?php
echo $form->textField($tinKhachHang, 'tieu_de_tin', array('size' => 60, 'maxlength' => 80, 'class' => 'form-control'));
?>
<?php
echo $form->error($tinKhachHang, 'tieu_de_tin');
?>
</div>
<div class="col-md-5 pull-right">
<?php
echo $form->labelEx($tinKhachHang, 'tinh_thanh');
?>
<?php
echo $form->dropDownList($tinKhachHang, 'tinh_thanh', Province::listProvinces(), array('class' => 'form-control'));
?>
</div>
<div class="clearfix"></div>
<div class="col-md-12">
<?php
echo $form->labelEx($tinKhachHang, 'noi_dung_tin');
?>
<?php
echo $form->textArea($tinKhachHang, 'noi_dung_tin', array('rows' => 6, 'cols' => 50, 'id' => 'noi-dung-tin'));
?>
<?php
echo $form->error($tinKhachHang, 'noi_dung_tin');
?>
</div>