echo Chtml::dropDownList('Organ[Province]', $organ->Province, $state, array('class' => 'easyui-validatebox width90 select', 'id' => 'province', 'empty' => '请选择省份', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->createUrl('/admin/Dynamiccities'), 'update' => '#city', 'data' => 'js:"province="+jQuery(this).val()'))); //empty since it will be filled by the other dropdown $c_default = $organ->isNewRecord ? '' : $organ->City; if (!$organ->isNewRecord) { $city_data = Area::model()->findAll("ParentID=:parent_id", array(":parent_id" => $organ->Province)); $city = CHtml::listData($city_data, "ID", "Name"); } $city_update = $organ->isNewRecord ? array() : $city; echo Chtml::dropDownList('Organ[City]', $organ->City, $city_update, array('class' => 'width90 select', 'id' => 'city', 'empty' => '请选择城市', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->createUrl('/admin/dynamicdistrict'), 'update' => '#area', 'data' => 'js:"city="+jQuery(this).val()'))); $d_default = $organ->isNewRecord ? '' : $organ->Area; if (!$organ->isNewRecord) { $district_data = Area::model()->findAll("ParentID=:parent_id", array(":parent_id" => $organ->City)); $district = CHtml::listData($district_data, "ID", "Name"); } $district_update = $organ->isNewRecord ? array() : $district; echo Chtml::dropDownList('Organ[Area]', $organ->Area, $district_update, array('class' => 'width90 select', 'id' => 'area', 'empty' => '请选择地区')); $data = array(); for ($i = 1; $i <= 255; $i++) { $data[$i] = $i; } echo $form->dropDownListRow($organ, 'Sort', $data); ?> <div class="form-actions"> <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => $model->isNewRecord ? '创建' : '保存')); ?> </div> <?php $this->endWidget(); ?>
<div class="clear"></div> </div> <!--box Popup : danh sach cac Bai giang (Lecture)--> <div id="myModal2" class="modal fade bs-example-modal-lg" > <div class="modal-dialog" style="margin-top: 0px !important; width:800px;"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">Thêm bài giảng vào khóa học</h4> </div> <!--form search--> <div class="modal-body" > <label class="sr-only">Search</label> <input type="text" id="lacture_name" class="form-control" placeholder="Tên Lecture cần tìm" style="width: 180px;float: left;"> <?php echo Chtml::dropDownList('dataListLactureCat', 'id', Chtml::listData(LectureCat::model()->findAll(), "id", "cat_name"), array('empty' => 'Chọn danh mục Lecture', 'style' => 'width:215px;float:left;margin-left:10px', 'class' => 'form-control')); ?> <button type="button" onclick="return loadLuctureOption();" class="btn btn-primary" style="margin-left: 10px; float: left;">Search</button> <div id="bodyLectureList"></div> <div class="clear"></div> </div> <div class="modal-footer"> <button type="button" class="btn btn-danger btn-sm" data-dismiss="modal">Close</button> </div> </div> </div> </div> <script type="text/javascript"> function showPopup(){ //if($('#bodyLectureList').html()==''){ loadLecture();
$('.row').show(); } } //var evaMethodsTable; $(function () { initTable(); $('#evaAttribute').on('change', loadMethods); loadMethods(); }); </script> <?php $this->renderPartial('_page', ['editMode' => $page['editMode'], 'editAccess' => $page['editAccess'], 'content' => $page['content']]); echo CHtml::tag('div', ['class' => 'form'], false, false); //echo CHtml::beginForm(); echo CHtml::label('Evaluation Attribute', 'evaAttribute'); echo Chtml::dropDownList('evaAttribute', $assessModel->evaAttribute, $evaAttributeMap, ['id' => 'evaAttribute', 'class' => 'chozen', 'data-placeholder' => 'Select attribute', 'empty' => '']); $form = $this->beginWidget('CActiveForm', ['id' => 'assessMethod-form', 'enableAjaxValidation' => false, 'enableClientValidation' => true, 'clientOptions' => ['validateOnSubmit' => true]]); ?> <p> <?php echo $form->errorSummary([$assessModel], Yii::app()->params['headerErrorSummary'], Yii::app()->params['footerErrorSummary']); ?> </p> <table id="evaAssessmentMethods" class="tableStyle" width="100%" border="0" cellspacing="0" cellpadding="0"> <thead> <tr> <th title=""></th> <th title="Method Name">Method Name</th> <th title="Description, data and expertise required">Description, data and expertise required</th> <th title="Data available">Data available</th> <th title="References">References</th>
<div class="search-form" style="display:none"> <?php $this->renderPartial('_search', array('model' => $model)); ?> </div><!-- search-form --> <form method="post" id="actionForm" action="" style=" padding-top: 20px;"> <?php echo Chtml::dropDownList('status', null, array(null => 'Change status', 1 => 'Active', 0 => 'Inactive'), array('style' => "width: 155px;")); ?> <input name="selectedField" type="hidden" value="" /> <button id="button-change" style="padding: 0 10px 0 10px; margin-left: 10px;" type="submit">Change</button> </form> <?php $this->widget('zii.widgets.grid.CGridView', array('id' => 'static-block-grid', 'dataProvider' => $model->search(), 'selectableRows' => 2, 'columns' => array(array('header' => 'S/N', 'type' => 'raw', 'value' => '$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)', 'headerHtmlOptions' => array('width' => '30px', 'style' => 'text-align:center;'), 'htmlOptions' => array('style' => 'text-align:center;')), 'title', 'content', array('class' => 'CButtonColumn', 'template' => ControllerActionsName::createIndexButtonRoles($actions))))); ?>
echo Chtml::dropDownList('User[Province]', $_GET['User']['Province'], $state, array('class' => 'easyui-validatebox width90 select', 'id' => 'province', 'empty' => '请选择省份', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->createUrl('admin/Dynamiccities'), 'update' => '#city', 'data' => 'js:"province="+jQuery(this).val()'))); //empty since it will be filled by the other dropdown $c_default = $profile->isNewRecord ? '' : $profile->city; if (!$profile->isNewRecord) { $city_data = Area::model()->findAll("parent_id=:parent_id", array(":parent_id" => $_GET['User']['Province'])); $city = CHtml::listData($city_data, "id", "name"); } $city_update = $profile->isNewRecord ? array() : $city; echo Chtml::dropDownList('User[City]', $_GET['User']['City'], $city_update, array('class' => 'width90 select', 'id' => 'city', 'empty' => '请选择城市', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->createUrl('/admin/dynamicdistrict'), 'update' => '#area', 'data' => 'js:"city="+jQuery(this).val()'))); $d_default = $profile->isNewRecord ? '' : $profile->district; if (!$profile->isNewRecord) { $district_data = Area::model()->findAll("parent_id=:parent_id", array(":parent_id" => $_GET['User']['City'])); $district = CHtml::listData($district_data, "id", "name"); } $district_update = $profile->isNewRecord ? array() : $district; echo Chtml::dropDownList('User[Area]', $_GET['User']['Area'], $district_update, array('class' => 'width90 select', 'id' => 'area', 'empty' => '请选择地区')); ?> <div class="form-actions"> <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => '搜索')); ?> </div> <?php $this->endWidget(); ?> </div><!-- search-form --> <script type="text/javascript"> $(function(){
<!-- <label style="vertical-align:top">预约模式:</label>--> <?php // echo $form->dropDownList($model['service'], 'ReservationMode', array( // '不需要担保' => '不需要担保', // '需要担保' => '需要担保', // ), array('class' => 'select')); ?> </p> <p> <label style="vertical-align:top">营业时间:</label> <?php echo Chtml::dropDownList('OpenTime[]', $opentime['0'], array('周一' => '周一', '周二' => '周二', '周三' => '周三', '周四' => '周四', '周五' => '周五', '周六' => '周六', '周七' => '周日'), array('class' => 'select')); echo Chtml::dropDownList('OpenTime[]', $opentime['1'], array('周一' => '周一', '周二' => '周二', '周三' => '周三', '周四' => '周四', '周五' => '周五', '周六' => '周六', '周七' => '周日'), array('class' => 'select')); echo Chtml::dropDownList('OpenTime[]', $opentime['2'], array('0:00' => '0:00', '1:00' => '1:00', '2:00' => '2:00', '3:00' => '3:00', '4:00' => '4:00', '5:00' => '5:00', '6:00' => '6:00', '7:00' => '7:00', '8:00' => '8:00', '9:00' => '9:00', '10:00' => '10:00', '11:00' => '11:00', '12:00' => '12:00', '13:00' => '13:00', '14:00' => '14:00', '15:00' => '15:00', '16:00' => '16:00', '17:00' => '17:00', '18:00' => '18:00', '19:00' => '19:00', '20:00' => '20:00', '21:00' => '21:00', '22:00' => '22:00', '23:00' => '23:00'), array('class' => 'select')); echo Chtml::dropDownList('OpenTime[]', $opentime['3'], array('0:00' => '0:00', '1:00' => '1:00', '2:00' => '2:00', '3:00' => '3:00', '4:00' => '4:00', '5:00' => '5:00', '6:00' => '6:00', '7:00' => '7:00', '8:00' => '8:00', '9:00' => '9:00', '10:00' => '10:00', '11:00' => '11:00', '12:00' => '12:00', '13:00' => '13:00', '14:00' => '14:00', '15:00' => '15:00', '16:00' => '16:00', '17:00' => '17:00', '18:00' => '18:00', '19:00' => '19:00', '20:00' => '20:00', '21:00' => '21:00', '22:00' => '22:00', '23:00' => '23:00'), array('class' => 'select')); ?> </p> <?php } elseif ($identity == 2) { ?> <p> <label>员工人数:</label> <?php echo $form->dropDownList($model, 'StoreSize', array('1-30人' => '1-30人', '31-50人' => '31-50人', '51-100人' => '51-100人', '100人以上' => '100人以上'), array('class' => 'select')); ?> <label class=" m_left185">经营面积:</label> <?php echo $form->dropDownList($model['dealer'], 'ShopArea', array('100㎡~300㎡' => '100㎡~300㎡', '300㎡~500㎡' => '300㎡~500㎡', '500㎡以上' => '500㎡以上'), array('class' => 'select')); ?> <!-- <label class=" m_left185">经营区域:</label>-->
?> <?php echo $form->error($model, 'name'); ?> </div> </div> <div class="control-group"> <label class="control-label">性别 :</label> <div class="controls"> <?php switch ($model->isNewRecord) { case TRUE: echo $form->dropDownList($model, 'sex', array('男' => '男', '女' => '女')); break; default: echo Chtml::dropDownList('Accounts[sex]', $model->sex, array('男' => '男', '女' => '女')); break; } ?> </div> </div> <div class="control-group"> <label class="control-label">电话 :</label> <div class="controls"> <?php echo $form->textField($model, 'phone', array('class' => 'span6', 'placeholder' => '电话')); ?> <?php echo $form->error($model, 'phone'); ?> </div>
<label class="control-label">地址:</label> <?php $state_data = Area::model()->findAll("Grade=:grade", array(":grade" => 1)); $state = CHtml::listData($state_data, "ID", "Name"); $s_default = $model->isNewRecord ? '' : $model->Province; echo Chtml::dropDownList('RecommendList[Province]', $model->Province, $state, array('class' => 'easyui-validatebox width90 select', 'id' => 'province', 'empty' => '请选择省份', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->createUrl('/admin/Dynamiccities'), 'update' => '#city', 'data' => 'js:"province="+jQuery(this).val()'))); //empty since it will be filled by the other dropdown $c_default = $model->isNewRecord ? '' : $model->City; if (!$model->isNewRecord) { $city_data = Area::model()->findAll("ParentID=:parent_id", array(":parent_id" => $model->Province)); $city = CHtml::listData($city_data, "ID", "Name"); } $city_update = $model->isNewRecord ? array() : $city; echo Chtml::dropDownList('RecommendList[City]', $model->City, $city_update, array('class' => 'width90 select', 'id' => 'city', 'empty' => '请选择城市', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->createUrl('/admin/dynamicdistrict'), 'update' => '#area', 'data' => 'js:"city="+jQuery(this).val()'))); $d_default = $model->isNewRecord ? '' : $model->Area; if (!$profile->isNewRecord) { $district_data = Area::model()->findAll("ParentID=:parent_id", array(":parent_id" => $model->City)); $district = CHtml::listData($district_data, "ID", "Name"); } $district_update = $model->isNewRecord ? array() : $district; echo Chtml::dropDownList('RecommendList[Area]', $model->Area, $district_update, array('class' => 'width90 select', 'id' => 'area', 'empty' => '请选择地区')); ?> <div class="form-actions"> <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => $model->isNewRecord ? 'Create' : 'Save')); ?> </div> <?php $this->endWidget();
<div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title"><?php echo Yii::t('web/home', 'titleBoxAddTrainee'); ?> </h4> </div> <!--form search--> <div class="modal-body" > <label class="sr-only"><?php echo Yii::t('web/home', 'Search'); ?> </label> <input type="text" id="trainee_username" class="form-control" placeholder="Username Or Fullname Or Email" style="width: 600px;float: left;"> <?php echo Chtml::dropDownList('dataListCompany', 'id', Chtml::listData(WUser::model()->findAll('company is NOT NULL GROUP BY company'), "company", "company"), array('empty' => Yii::t('web/home', 'Select a Company'), 'style' => 'width:215px;float:left;margin-left:10px', 'class' => 'form-control')); ?> <button type="button" onclick="return loadTraineeOption();" class="btn btn-success" style="margin-left: 10px; float: left;"><?php echo Yii::t('web/home', 'Search'); ?> </button> <div id="bodyTraineeList" style="float: left;width: 100%; margin-top: 10px;"></div> <div class="clear"></div> </div> <div class="modal-footer"> <button type="button" class="btn btn-success btn-sm" onclick="return addMutilTrainee();"><?php echo Yii::t('web/home', 'titleBoxAddTraineeButtonAdd'); ?> </button> <button type="button" class="btn btn-danger btn-sm" data-dismiss="modal" ><?php echo Yii::t('web/home', 'titleBoxAddTraineeButtonClose');
$cpname = CHtml::listData($cpnames, "system_type", "system_type"); $cpname = array_filter($cpname); echo CHtml::dropDownList('search[system_type]', $_GET['search']['system_type'], $cpname, array('class' => 'width118 select', 'empty' => '请选择系统', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->request->baseUrl . '/common/Getcp_name', 'update' => '#search_cpname', 'data' => 'js:"system_type="+jQuery(this).val()'))); ?> <?php if ($_GET['search']['system_type']) { $cp_data = GoodsStandard::model()->findAll("system_type=:system_type", array(":system_type" => $_GET['search']['system_type'])); $cp_name_data = CHtml::listData($cp_data, "cp_name", "cp_name"); } ?> <?php $cpName_data = $_GET['search']['system_type'] ? $cp_name_data : array(); ?> <?php echo Chtml::dropDownList('search[cpname]', $_GET['search']['cpname'], $cpName_data, array('class' => 'width118 select', 'empty' => '请选择品类')); ?> <!-- <input class='width168 input' type='text' name="search[cpname]" value="<?php echo $_GET['search']['cpname']; ?> ">--> <label class='label label-inline-wa' >商品类别:</label> <?php echo CHtml::dropDownlist('search[category]', $_GET['search']['category'], CHtml::listData($category, 'name', 'name'), array('class' => 'width118 select', 'empty' => '选择分类')); ?> <p class="mt1em"> <label class='label label-inline-wa'> OE号: </label> <input class='width168 input' name="search[oenum]" type="text" value="<?php echo $_GET['search']['oenum'];
<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'menu-form', 'enableAjaxValidation' => false)); ?> <?php echo $form->errorSummary($model); echo Chtml::dropDownList('mType', '', CHtml::listData(MenuType::model()->findAll(), 'mType_id', 'name'), array('empty' => 'Выберите тип меню')); ?> <div id="listData"></div> <script> $(document).ready(function(){ $('#mType').change(function(){ var id = $(this).val(); $.ajax({ type: "POST", url: "<?php echo Yii::app()->createUrl('menu/menuList'); ?> ", data: "mType="+id, success: function(data){ $('#listData').html(data); } }); }); }); </script> <div class="form-actions"> <?php
echo CHtml::beginForm($this->createUrl('default/changenumonpage', array('pid' => $id))); ?> <td> Элементов на стр. </td> <td> <?php if (isset(Yii::app()->request->cookies['cat_num_on_page'])) { $num_on_page = Yii::app()->request->cookies['cat_num_on_page']->value; } if (empty($num_on_page)) { $num_on_page = 50; } ?> <?php echo Chtml::dropDownList('numonpage', $num_on_page, array('10' => 10, '50' => 50, '100' => 100, '200' => 200, '1000000' => 'Все'), array('style' => 'width:200px;')); ?> </td> <td> <?php echo CHtml::submitButton('', array('id' => 'submit-change-num')); ?> </td> <?php echo Chtml::endForm(); ?> </tr> </table>
echo Chtml::dropDownList('Profile[Province]', $profile->state, $state, array('class' => 'easyui-validatebox width90 select', 'id' => 'province', 'empty' => '请选择省份', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->createUrl('user/admin/Dynamiccities'), 'update' => '#city', 'data' => 'js:"province="+jQuery(this).val()'))); //empty since it will be filled by the other dropdown $c_default = $profile->isNewRecord ? '' : $profile->city; if (!$profile->isNewRecord) { $city_data = Area::model()->findAll("parent_id=:parent_id", array(":parent_id" => $profile->state)); $city = CHtml::listData($city_data, "id", "name"); } $city_update = $profile->isNewRecord ? array() : $city; echo Chtml::dropDownList('Profile[City]', $profile->city, $city_update, array('class' => 'width90 select', 'id' => 'city', 'empty' => '请选择城市', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->createUrl('user/admin/dynamicdistrict'), 'update' => '#area', 'data' => 'js:"city="+jQuery(this).val()'))); $d_default = $profile->isNewRecord ? '' : $profile->district; if (!$profile->isNewRecord) { $district_data = Area::model()->findAll("parent_id=:parent_id", array(":parent_id" => $profile->city)); $district = CHtml::listData($district_data, "id", "name"); } $district_update = $profile->isNewRecord ? array() : $district; echo Chtml::dropDownList('Profile[Area]', $profile->district, $district_update, array('class' => 'width90 select', 'id' => 'area', 'empty' => '请选择地区')); ?> <div class="form-actions"> <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => $model->isNewRecord ? UserModule::t('创建') : UserModule::t('保存'))); ?> </div> <?php $this->endWidget(); ?> <script type="text/javascript"> $(function(){ // $("input[name=CompanyType]:eq(0)").attr("checked",'checked'); $("#province").change(function(){ if($(this).val()){
$state_data = Area::model()->findAll("grade=:grade", array(":grade" => 1)); $state = ''; $state = CHtml::listData($state_data, "id", "name"); $s_default = $model->isNewRecord ? '' : $model->province; echo CHtml::label('所在地区:', '', array('style' => 'margin-left:15px;')); echo " " . CHtml::dropDownList('provice', $search['provice'], $state, array('class' => 'width118 select', 'empty' => '请选择省份', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->request->baseUrl . '/common/dynamiccity', 'update' => '#city', 'data' => 'js:"province="+jQuery(this).val()'))); ?> <?php if ($search['provice']) { $city_data = Area::model()->findAll("parent_id=:parent_id", array(":parent_id" => $search['provice'])); $city = CHtml::listData($city_data, "id", "name"); } $city_update = $search['provice'] ? $city : array(); ?> <?php echo Chtml::dropDownList('city', $search['city'], $city_update, array('class' => 'width118 select', 'empty' => '请选择城市', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->request->baseUrl . '/common/dynamiccity', 'update' => '#Dealer_area', 'data' => 'js:"city="+jQuery(this).val()'))); ?> <label style="margin-left:30px;">适用车系:</label> <?php $make_data = GoodsBrand::getBrand(); $make = CHtml::listData($make_data, "id", "name"); ?> <?php echo CHtml::dropDownList('make', $search['make'], $make, array('class' => 'width118 select', 'empty' => '请选择品牌', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->request->baseUrl . '/common/getcarbyid', 'update' => '#car', 'data' => 'js:"make="+jQuery(this).val()'))); ?> <?php if ($_GET['make']) { $brand = GoodsBrand::model()->find('id=' . $_GET['make']); $data = GoodsBrand::model()->findAll("name=:Make", array(":Make" => $brand['name'])); $data = CHtml::listData($data, "id", "car"); // $vehicleModel_data=GoodsBrand::model()->find("id=:id",array(":id"=>$search['vehicleMake']));
<div class="search-form" style="display:none"> <?php $this->renderPartial('/p3Media/_search', array('model' => $model)); ?> </div> </div> <div class="span-8 last"> <h2>Preset</h2> <p> <?php foreach ($this->module->params['presets'] as $key => $preset) { $data[$key] = isset($preset['name']) ? $preset['name'] : $key; } echo Chtml::dropDownList("preset", null, $data); ?> </p> </div> <?php $locale = CLocale::getInstance(Yii::app()->language); $this->widget('zii.widgets.grid.CGridView', array('id' => 'p3-media-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array(array('type' => 'raw', 'value' => 'CHtml::link( CHtml::image(Yii::app()->controller->createUrl("/p3media/file/image",array("id"=>$data->id,"preset"=>"fckbrowse")), $data->title, array("class"=>"ckeditor")), "#", array("onclick"=>"select(".$data->id.");") ) '), 'id', 'title', 'description', 'mimeType', 'path'))); ?> <script type="text/javascript">
?> <?php echo $form->error($model, 'name'); ?> </div><!-- row --> <div class="row"> <?php echo CHtml::radioButton('MenuItem[type]', $model->type == 'module', array('value' => 'module', 'id' => 'radio_module')); ?> <?php echo Yii::t('app', 'Module') . ' '; ?> <?php echo Chtml::dropDownList('MenuItem[module]', $model->link, Awecms::getModulesWithPath(), array('onfocus' => 'js:$("#radio_module").attr("checked", "checked");')); ?> <br/> <?php // echo CHtml::radioButton('MenuItem[type]', $model->type == 'action', array('value' => 'action')); ?> <?php // echo Yii::t('app', 'Action'); // print_r(Awecms::getAllActions()); ?> <!--<br/>--> <?php if (Yii::app()->hasModule('page')) { echo CHtml::radioButton('MenuItem[type]', $model->type == 'content', array('value' => 'content', 'id' => 'radio_content')); echo Yii::t('app', 'Content') . ' ';
echo $form->error($model, 'goodsBrand'); ?> </p> <p class="form-row"> <?php echo $form->labelEx($model, '配件品类:', array('class' => 'label')); ?> <?php $cpnames = GoodsStandard::model()->findAll(); $cpname = CHtml::listData($cpnames, "system_type", "system_type"); $cpname = array_filter($cpname); echo CHtml::dropDownList('system_type', 'system_type', $cpname, array('class' => 'width118 select', 'empty' => '选择系统', 'ajax' => array('type' => 'GET', 'url' => Yii::app()->request->baseUrl . '/common/getcp_name', 'update' => '#cp_name', 'data' => 'js:"system_type="+jQuery(this).val()'))); ?> <?php echo Chtml::dropDownList('cp_name', 'cp_name', array(), array('class' => 'width118 select', 'empty' => '请选择品类')); ?> <span id='addcpname' class="btn" style="cursor:pointer">添加</span> <?php // echo $form->textField($model,'normName',array('size'=>24,'maxlength'=>24,'class'=>'width213 input')); ?> <?php //echo $form->error($model,'normName'); ?> </p> <p class="form-row" id="showcpname"><!-- 显示车系车型 --> <label class=label></label> <?php if (isset($_GET['id'])) { ?>