当前位置: 首页>>代码示例>>PHP>>正文


PHP country::items方法代码示例

本文整理汇总了PHP中country::items方法的典型用法代码示例。如果您正苦于以下问题:PHP country::items方法的具体用法?PHP country::items怎么用?PHP country::items使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在country的用法示例。


在下文中一共展示了country::items方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

<div id="addressGrid">
    <?php 
$this->widget('TradeGrid', array('dataProvider' => $model->search(), 'filter' => $model, 'htmlOptions' => array('class' => 'hor-scroll'), 'columns' => array(array('header' => '编号', 'name' => 'address_ID', 'type' => 'raw'), array('header' => '姓', 'name' => 'address_lastname', 'type' => 'raw'), array('header' => '名', 'name' => 'address_firstname', 'type' => 'raw'), array('header' => '国家', 'name' => 'address_country_ID', 'value' => 'country::item($data->address_country_ID)', 'filter' => country::items(), 'type' => 'raw'), array('header' => '州/省', 'name' => 'address_state_ID', 'value' => 'state::item($data->address_state_ID)', 'filter' => state::items(), 'type' => 'raw'), array('header' => '城市', 'name' => 'address_city', 'type' => 'raw'), array('header' => '激活', 'name' => 'address_active', 'value' => 'lookup::item("YesAndNo",$data->address_active)', 'filter' => lookup::items('YesAndNo'), 'type' => 'raw'), array('header' => '邮编', 'name' => 'address_postcode', 'type' => 'raw'), array('class' => 'CButtonColumn', 'template' => '{update} {delete}'))));
?>
</div>
开发者ID:htom78,项目名称:XZB2c,代码行数:5,代码来源:index.php

示例2: array

                            </tr>
                             <tr>
                                <td class="label"><label for="active">是否激活 <span class="required">*</span></label></td>
                                <td class="value">
                                <?php 
echo $form->dropDownList($model, 'address_active', lookup::items('YesAndNo'), array('class' => 'required-entry required-entry input-select', 'id' => 'active', 'name' => 'address[address_active]'));
?>
                                </td>
                                <td class="scope-label"><span class="nobr"></span></td>
                                <td><small>&nbsp;</small></td>
                            </tr>
                             <tr>
                                <td class="label"><label for="country">国家 <span class="required">*</span></label></td>
                                <td class="value">
                                <?php 
echo $form->dropDownList($model, 'address_country_ID', country::items(), array('class' => 'required-entry required-entry input-select', 'id' => 'country', 'name' => 'address[address_country_ID]'));
?>
                                </td>
                                <td class="scope-label"><span class="nobr"></span></td>
                                <td><small>&nbsp;</small></td>
                            </tr>
                            <tr>
                                <td class="label"><label for="state">州/省 <span class="required">*</span></label></td>
                                <td class="value">
                                <?php 
echo $form->dropDownList($model, 'address_state_ID', state::items($model->address_country_ID), array('class' => 'required-entry required-entry input-select', 'id' => 'state', 'name' => 'address[address_state_ID]', 'prompt' => '-----------------------------------------------------------------'));
?>
                                </td>
                                <td class="scope-label"><span class="nobr"></span></td>
                                <td><small>&nbsp;</small></td>
                            </tr>
开发者ID:htom78,项目名称:XZB2c,代码行数:31,代码来源:update.php

示例3: array

                                    </td>
                                    <td><small></small></td>
                                </tr>
                               <tr>
                                <td class="label"><label for="zone">区域 <span class="required">*</span></label></td>
                                <td class="value">
                                <?php 
echo $form->dropDownList($model, 'zone_ID', zone::items(), array('class' => 'required-entry required-entry input-select', 'id' => 'zone', 'name' => 'state[zone_ID]'));
?>
                                </td>
                                <td class="scope-label"><span class="nobr"></span></td>
                                <td><small>&nbsp;</small></td>
                            </tr>
                               <tr>
                                <td class="label"><label for="country">国家 <span class="required">*</span></label></td>
                                <td class="value">
                                <?php 
echo $form->dropDownList($model, 'country_ID', country::items(true), array('class' => 'required-entry required-entry input-select', 'id' => 'country', 'name' => 'state[country_ID]'));
?>
                                </td>
                                <td class="scope-label"><span class="nobr"></span></td>
                                <td><small>&nbsp;</small></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
<?php 
$this->endWidget();
开发者ID:htom78,项目名称:XZB2c,代码行数:31,代码来源:create.php


注:本文中的country::items方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。