    <ul class="clearfix form-ul material">
            <?php echo $form->hiddenField($model, 'id'); ?>
            <li class="col-sm-4">
                <?php echo $form->dropDownList($model, 'product_category_id',  MasProductCategory::getProductCategory(), array('data-label' => 'Product Category <span style="color:red">*</span>', 'data-validation' => 'required','empty'=>'Select','data-search'=>'true')); ?>
            </li> 
            <li class="col-sm-4">
                <?php echo $form->textField($model, 'gmc_code', array('data-label' => 'GMC Code <span style="color:red">*</span>', 'data-validation' => 'required')); ?>
            </li> 
            <li class="col-sm-4">
                <?php echo $form->textField($model, 'model_no', array('data-label' => 'Model No <span style="color:red">*</span>', 'data-validation' => 'required')); ?>
            </li> 
            <li class="col-sm-4">
                <?php echo $form->textField($model, 'cbm', array('data-label' => 'CBM <span style="color:red">*</span>', 'data-validation' => 'required')); ?>
            </li> 
            <li class="col-sm-4">
                <?php echo $form->textField($model, 'base_code', array('data-label' => 'Base Code <span style="color:red">*</span>', 'data-validation' => 'required')); ?>
            </li> 
            <li class="col-sm-4">
                <?php echo $form->dropdownList($model, 'is_active', array('Y' => 'Active', 'N' => 'Block'), array('data-label' => 'Status'));//,'onchange'=>'checkDiscontinuing(this.value)' ?>
                <?php echo $form->hiddenField($model, 'ymgf_fob', array('data-label' => 'YMGF FOB', 'data-validation' => 'required')); ?>
            </li>
            <?php 
            $style_li_discontinue ='';
             if($model->is_active!='D'){
                 $style_li_discontinue ='style="display:none;"';
             }
            ?>
            <li class="col-sm-3 li_discontinue"  <?php echo $style_li_discontinue;?> >
                <?php echo $form->dropDownList($model, 'discontinuing_month', Order::getmonths(), array('data-label' => 'Discontinuing Month <span style="color:red">*</span>','empty'=>'-Select-')); ?>
            </li>
            <li class="col-sm-3 li_discontinue" <?php echo $style_li_discontinue;?>>
                <?php echo $form->dropDownList($model, 'discontinuing_year',Order::getyear(), array('data-label' => 'Discontinuing Year <span style="color:red">*</span>','empty'=>'-Select-')); ?>
            </li>
            
            <li class="col-sm-3">
                <?php echo $form->dropDownList($model, 'goods_in_month', Order::getmonths(), array('data-label' => 'Goods In start Month <span style="color:red">*</span>','empty'=>'-Select-')); ?>
            </li>
            <li class="col-sm-3">
                <?php echo $form->dropDownList($model, 'goods_in_year',Order::getyear(), array('data-label' => 'Goods In Start Year <span style="color:red">*</span>','empty'=>'-Select-')); ?>
            </li>
            <!--<li class="col-sm-4">
              <?php /*echo $form->dropdownList($model, 'supply_goodsin',Inventory::getmonth_type(),array('data-label'=>'Supply GoodsIn Type')); ?>
              <?php echo $form->error($model,'supply_goodsin'); */?>
		    </li>-->
            <li class="col-sm-3">
                <?php echo $form->dropDownList($model, 'goods_in_end_month', Order::getmonths(), array('data-label' => 'Goods In End Month <span style="color:red">*</span>','empty'=>'-Select-')); ?>
            </li>
            <li class="col-sm-3">
                <?php echo $form->dropDownList($model, 'goods_in_end_year',Order::getyear(), array('data-label' => 'Goods In End Year <span style="color:red">*</span>','empty'=>'-Select-')); ?>
            </li>
            <li class="col-sm-3">
                <?php echo $form->dropDownList($model, 'backlog_month', Order::getmonths(), array('data-label' => 'Backlog Start Month <span style="color:red">*</span>','empty'=>'-Select-')); ?>
            </li>
            <li class="col-sm-3">
                <?php echo $form->dropDownList($model, 'backlog_year',Order::getyear(), array('data-label' => 'Backlog Start Year <span style="color:red">*</span>','empty'=>'-Select-')); ?>
            </li>
            <!--<li class="col-sm-4">
              <?php /*echo $form->dropdownList($model, 'supply_backlog',Inventory::getmonth_type(),array('data-label'=>'Supply Backlog Type')); ?>
              <?php echo $form->error($model,'supply_backlog'); */?>
		    </li>-->
            <li class="col-sm-3">
                <?php echo $form->dropDownList($model, 'backlog_end_month', Order::getmonths(), array('data-label' => 'Backlog End Month <span style="color:red">*</span>','empty'=>'-Select-')); ?>
            </li>
            <li class="col-sm-3">
                <?php echo $form->dropDownList($model, 'backlog_end_year',Order::getyear(), array('data-label' => 'Backlog End Year <span style="color:red">*</span>','empty'=>'-Select-')); ?>
            </li>
            
           
        </ul>
        <hr style="border: 1px solid black;">
        <ul class="clearfix form-ul material">
            <li class="col-sm-3" >
                <?php echo $form->dropDownList($model, 'new_till_month', Order::getmonths(), array('data-label' => 'New Till Month <span style="color:red">*</span>','empty'=>'-Select-')); ?>
            </li>
            <li class="col-sm-3" >
                <?php echo $form->dropDownList($model, 'new_till_year',Order::getyear(), array('data-label' => 'New Till Year <span style="color:red">*</span>','empty'=>'-Select-')); ?>
            </li>
        </ul>
            
        <?php
            $cs = Yii::app()->getClientScript();
            $baseUrl = Yii::app()->baseUrl;
            $cs->registerScript("checkDiscontinuing", "function checkDiscontinuing(status){
                if(status  =='D')
                {
                   $('.li_discontinue').show();
                }else{
                    $('.li_discontinue').hide();
                }
            
            }", CClientScript::POS_HEAD);
        ?>    
