Esempio n. 1
0
<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>
Esempio n. 2
0
<div id="zoneGrid">
        <?php 
$this->widget('TradeGrid', array('dataProvider' => $model->search(), 'filter' => $model, 'htmlOptions' => array('class' => 'hor-scroll'), 'columns' => array(array('header' => '编号', 'name' => 'state_ID', 'type' => 'raw'), array('header' => '名称', 'name' => 'name', 'type' => 'raw'), array('header' => '区域', 'name' => 'zone_ID', 'type' => 'raw', 'value' => 'zone::item($data->zone_ID)', 'filter' => zone::items()), array('header' => '国家', 'name' => 'country_ID', 'type' => 'raw', 'value' => 'country::item($data->country_ID)', 'filter' => country::items(true)), array('header' => 'ISO code', 'name' => 'iso_code', 'type' => 'raw'), array('header' => '激活', 'name' => 'active', 'value' => 'lookup::item("YesAndNo",$data->active)', 'filter' => lookup::items('YesAndNo'), 'type' => 'raw'), array('class' => 'CButtonColumn', 'template' => '{update} {delete}'))));
?>
</div>
Esempio n. 3
0
                            </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>
Esempio n. 4
0
                                    </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();