<?php echo $form->textField($model, 'category_name', array('class' => 'required-entry required-entry input-text', 'id' => 'name', 'name' => 'category[category_name]')); ?> </td> <td class="scope-label"><span class="nobr"><?php echo $form->error($model, 'category_name'); ?> </span></td> <td><small> </small></td> </tr> <tr> <td class="label"><label for="category_active">是否激活 <span class="required">*</span></label></td> <td class="value"> <?php echo $form->dropDownList($model, 'category_active', lookup::items('YesAndNo'), array('class' => 'required-entry required-entry input-select', 'id' => 'category_active', 'name' => 'category[category_active]')); ?> </td> <td class="scope-label"><span class="nobr"></span></td> <td><small> </small></td> </tr> <tr> <td class="label"><label for="category_SEF">URL key</label></td> <td class="value"> <?php echo $form->textField($model, 'category_SEF', array('class' => 'required-entry required-entry input-text', 'id' => 'category_SEF', 'name' => 'category[category_SEF]')); ?> </td> <td class="scope-label"><span class="nobr"><?php
<div id="addressGrid"> <?php $this->widget('TradeGrid', array('dataProvider' => $model->search(), 'filter' => $model, 'htmlOptions' => array('class' => 'hor-scroll'), 'columns' => array(array('header' => '编号', 'name' => 'discount_ID', 'type' => 'raw'), array('header' => '代码', 'name' => 'discount_name', 'type' => 'raw'), array('header' => '介绍', 'name' => 'discount_description', 'type' => 'raw', 'value' => 'substr($data->discount_description, 0, 20);'), array('header' => '类型', 'name' => 'discount_type', 'value' => 'lookup::item("DiscountType",$data->discount_type)', 'filter' => lookup::items("DiscountType"), 'type' => 'raw'), array('header' => '值', 'name' => 'discount_value', 'value' => 'floatval($data->discount_value) . (($data->discount_type==1) ? "%":"")', 'type' => 'raw'), array('header' => '到期时间', 'name' => 'discount_to', 'type' => 'raw'), array('header' => '激活', 'name' => 'discount_active', 'value' => 'lookup::item("YesAndNo",$data->discount_active)', 'filter' => lookup::items('YesAndNo'), 'type' => 'raw'), array('class' => 'CButtonColumn', 'template' => '{update} {delete}')))); ?> </div>
<div id="zoneGrid"> <?php $this->widget('TradeGrid', array('dataProvider' => $model->search(), 'filter' => $model, 'htmlOptions' => array('class' => 'hor-scroll'), 'columns' => array(array('header' => '编号', 'name' => 'carrier_ID', 'type' => 'raw'), array('header' => '名称', 'name' => 'carrier_name', 'type' => 'raw'), array('header' => '激活', 'name' => 'carrier_active', 'value' => 'lookup::item("YesAndNo",$data->carrier_active)', 'filter' => lookup::items('YesAndNo'), 'type' => 'raw'), array('header' => '货运费用', 'name' => 'carrier_shipping_handing', 'value' => 'lookup::item("YesAndNo",$data->carrier_shipping_handing)', 'filter' => lookup::items('YesAndNo'), 'type' => 'raw'), array('class' => 'CButtonColumn', 'template' => '{update} {delete}')))); ?> </div>
<div id="customerGrid"> <?php $this->widget('TradeGrid', array('dataProvider' => $model->search(), 'filter' => $model, 'htmlOptions' => array('class' => 'hor-scroll'), 'columns' => array(array('header' => '编号', 'name' => 'customer_ID', 'type' => 'raw'), array('header' => '姓', 'name' => 'customer_last_name', 'type' => 'raw'), array('header' => '名', 'name' => 'customer_first_name', 'type' => 'raw'), array('header' => 'Email', 'name' => 'customer_email', 'type' => 'raw'), array('header' => '激活', 'name' => 'customer_active', 'value' => 'lookup::item("YesAndNo",$data->customer_active)', 'filter' => lookup::items('YesAndNo'), 'type' => 'raw'), array('header' => '注册时间', 'name' => 'customer_create', 'filter' => false, 'type' => 'raw'), array('class' => 'CButtonColumn', 'template' => '{update} {delete}')))); ?> </div>
<tr> <td class="label"><label for="product_active">是否激活 <span class="required">*</span></label></td> <td class="value"> <?php echo $form->dropDownList($model, 'product_active', lookup::items('YesAndNo'), array('class' => 'required-entry required-entry input-select', 'id' => 'product_active', 'name' => 'product[product_active]')); ?> </td> <td class="scope-label"><span class="nobr"></span></td> <td><small> </small></td> </tr> <tr> <td class="label"><label for="product_status">状态 <span class="required">*</span></label></td> <td class="value"> <select multiple="multiple" name="product[product_status][]" id="product_satus" class="required-entry input-text multiselect"> <?php foreach (lookup::items('ProductStatus') as $key => $row) { $sel = ""; if ($_POST['product']['product_status']) { foreach ($_POST['product']['product_status'] as $item) { if ($key == $item) { $sel = "selected='true'"; break; } } } echo "<option value='{$key}'{$sel}>{$row}</option>"; } ?> </select>
<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>
echo $form->textField($model, 'carrier_description', array('class' => 'required-entry required-entry input-text', 'name' => 'carrier[carrier_description]', 'id' => 'description')); ?> </td> <td class="scope-label"> <span class="nobr"><?php echo $form->error($model, 'carrier_description'); ?> </span> </td> <td><small></small></td> </tr> <tr> <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> </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) {
</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> </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> </small></td> </tr> </tbody> </table> </div> </div> </div> </div> <?php $this->endWidget();
<td> <strong><a href="/dashboard/group/update/id/<?php $model->group_ID; ?> "><span class="price">修改</span></a></strong> </td> </tr> <tr class="0"> <td class="label"> 折扣 </td> <td> <strong><span class="price"><?php echo $model->group_reduction; ?> </span></strong> </td> </tr> </tbody> </table> </div> </div> <div class="clear"></div> <div id="customerGrid"> <?php $this->widget('TradeGrid', array('dataProvider' => $dataProvider, 'filter' => $customer, 'htmlOptions' => array('class' => 'hor-scroll'), 'columns' => array(array('header' => '编号', 'name' => 'customer_ID', 'type' => 'raw'), array('header' => '姓', 'name' => 'customer_last_name', 'type' => 'raw'), array('header' => '名', 'name' => 'customer_first_name', 'type' => 'raw'), array('header' => 'Email', 'name' => 'customer_email', 'type' => 'raw'), array('header' => '激活', 'name' => 'customer_active', 'value' => 'lookup::item("YesAndNo",$data->customer_active)', 'filter' => lookup::items('YesAndNo'), 'type' => 'raw'), array('header' => '注册时间', 'name' => 'customer_create', 'filter' => false, 'type' => 'raw'), array('class' => 'CButtonColumn', 'template' => '{view}{update} {delete}', 'viewButtonUrl' => 'Yii::app()->controller->createUrl("dashboard/customer/view",array("id"=>$data->primaryKey))', 'updateButtonUrl' => 'Yii::app()->controller->createUrl("dashboard/udpate/view",array("id"=>$data->primaryKey))', 'deleteButtonUrl' => 'Yii::app()->controller->createUrl("dashboard/customer/delete",array("id"=>$data->primaryKey))')))); ?> </div> <div class="clear"></div> </div>
<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>
</tr> <tr> <td class="label"><label for="cumulable">是否兼容其他优惠券 </label></td> <td class="value"> <?php echo $form->dropDownList($model, 'discount_cumulable', lookup::items('YesAndNo'), array('class' => 'required-entry required-entry input-select', 'id' => 'cumulable', 'name' => 'discount[discount_cumulable]')); ?> </td> <td class="scope-label"><span class="nobr"></span></td> <td><small> </small></td> </tr> <tr> <td class="label"><label for="cumulable_reduction">是否兼容打折 </label></td> <td class="value"> <?php echo $form->dropDownList($model, 'discount_cumulable_reduction', lookup::items('YesAndNo'), array('class' => 'required-entry required-entry input-select', 'id' => 'cumulable_reduction', 'name' => 'discount[discount_cumulable_reduction]')); ?> </td> <td class="scope-label"><span class="nobr"></span></td> <td><small> </small></td> </tr> <tr> <td class="label"> <label for="email">指定客户Email<span class="required">*</span></label></td> <td class="value"> <?php $this->widget('CAutoComplete', array('model' => $model, 'attribute' => 'discount_customer_email', 'url' => array('customerEmail'), 'htmlOptions' => array('class' => 'required-entry required-entry input-text', 'name' => 'discount[discount_customer_email]', 'id' => 'email'))); ?> </td> <td class="scope-label"> <span class="nobr"><?php echo $form->error($model, 'discount_customer_ID');