コード例 #1
0
ファイル: create.php プロジェクト: htom78/XZB2c
echo $form->textField($model, 'ISO_code', array('class' => 'required-entry required-entry input-text', 'name' => 'country[ISO_code]', 'id' => 'ISO_code'));
?>
                                    </td>
                                    <td class="scope-label">
                                        <span class="nobr"><?php 
echo $form->error($model, 'ISO_code');
?>
</span>
                                    </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' => 'country[zone_ID]'));
?>
                                </td>
                                <td class="scope-label"><span class="nobr"></span></td>
                                <td><small>&nbsp;</small></td>
                            </tr>
                              <tr>
                                <td class="label"><label for="contain_states">是否包含州 <span class="required">*</span></label></td>
                                <td class="value">
                                <?php 
echo $form->dropDownList($model, 'contain_states', lookup::items('YesAndNo'), array('class' => 'required-entry required-entry input-select', 'id' => 'contain_states', 'name' => 'country[contain_states]'));
?>
                                </td>
                                <td class="scope-label"><span class="nobr"></span></td>
                                <td><small>&nbsp;</small></td>
                            </tr>
コード例 #2
0
ファイル: create.php プロジェクト: htom78/XZB2c
                                <td class="label"><label for="shipping">货运费用 <span class="required">*</span></label></td>
                                <td class="value">
                                <?php 
echo $form->dropDownList($model, 'carrier_shipping_handing', lookup::items('YesAndNo'), array('class' => 'required-entry required-entry input-select', 'id' => 'shipping', 'name' => 'carrier[carrier_shipping_handing]'));
?>
                                </td>
                                <td class="scope-label"><span class="nobr"></span></td>
                                <td><small>&nbsp;</small></td>
                            </tr>

                            <tr>
                                <td class="label"><label for="carrier_zone">区域挂接 <span class="required">*</span></label></td>
                                <td class="value">
                                    <select multiple="multiple" name="carrier_zone[]" id="product_satus" class="required-entry input-text multiselect">
                                    <?php 
foreach (zone::items() as $key => $row) {
    $sel = "";
    if (isset($zones) && !empty($zones)) {
        foreach ($zones as $item) {
            if ($key == $item) {
                $sel = "selected='true'";
                break;
            }
        }
    }
    echo "<option value='{$key}'{$sel}>{$row}</option>";
}
?>
                                    </select>
                                </td>
                                <td class="scope-label"><span class="nobr"></span></td>
コード例 #3
0
ファイル: index.php プロジェクト: htom78/XZB2c
<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>