pca-selector Province, City, Area linkage dropDownlist

  1. Documentation
  2. Change Log

This extension is is used to create three dropDownlist which linkaged together to choice a place in China mainland and Hongkong. This extension just re-packaged PCASClass project into Yii;

Resources

这个插件可以创建三个联动的下拉菜单,这三个联动列表之间相互关联,用来确定中国大陆和香港地区的地理位置名称。这个扩展仅仅是将PCASClass重新封装进Yii而已。

相关资源

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/extensions
Usage

See the following code example:

$this->widget('extension.PCASelector.SelectorWidget', array(
    'model' => $someCFormModel,
    'attributeCity' => 'city',
    'attributeArea' => 'area',
    'attributeProvince' => 'province',
                                                             
    'labelCity' => 'City',
    'labelArea' => 'Area',
    'labelProvince' => 'Province',
                                                             
    'selectSepartor' => ' ',
    'htmlOptions' => array(
        'class' => 'positionSelector',
     ),
 ));

Change Log

September 25, 2010
  • Fix bug : if one of province, city or area is not set, related dropdownlist will not be rendered;
July 19, 2010
  • Fix bug : init incorrect when attribute like $model->attributeArea exists;
July 5, 2010
  • Initial release.
1 0
1 follower
938 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags:
Developed by: Francis.TM
Created on: Jul 5, 2010
Last updated: 7 years ago

Downloads

show all