Beispiel #1
0
    echo $form->labelEx($condition, 'condition');
    echo $form->radioButtonList($condition, 'condition', array(0 => 'อนุมัติ', 1 => 'ไม่อนุมัติ'), array('template' => '{input} <div style="display: inline-block;">{label}</div>'));
    echo $form->error($condition, 'condition');
    ?>
        </div>
        <div class="row" id="no_accept" style="display: none;">
            <?php 
    echo $form->labelEx($noAccept, 'remark');
    echo $form->textField($noAccept, 'remark', array('size' => 80));
    echo $form->error($noAccept, 'remark');
    ?>
        </div>
        <div class="row" id="accept" >
            <?php 
    echo $form->labelEx($accept, 'car_id');
    echo $form->dropDownList($accept, 'car_id', Lists::car(), array('empty' => $this->labelController['messageSelect'], 'multiple' => 'multiple'));
    echo $form->error($accept, 'car_id');
    ?>
        </div>
        <?php 
    if ($model->status == 1) {
        ?>
            <div class="row buttons">
                <?php 
        //        echo CHtml::button('อนุมัติ', array('onClick' => 'if(confirm("คุณต้องการแจ้งการอนุมัติหรือไม่?")){window.location="' . CHtml::normalizeUrl(array('accept', 'id' => $model->paper_approval_id)) . '"}'));
        //        echo CHtml::button('ไม่อนุมัติ', array('onClick' => 'if(confirm("คุณต้องการแจ้งการไม่อนุมัติหรือไม่?")){window.location="' . CHtml::normalizeUrl(array('notAccept', 'id' => $model->paper_approval_id)) . '"}'));
        ?>
                <!--<button type="submit" formaction="<?php 
        // echo CHtml::normalizeUrl(array('test', 'id' => 1));
        ?>
" onclick="return confirm('test')">-->
Beispiel #2
0
    <?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'repair-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data', 'class' => 'form-horizontal form-border')));
?>


    <?php 
// echo $form->errorSummary($model);
?>

    <div class="form-group">
        <?php 
echo $form->labelEx($model, 'car_id', array('class' => 'col-lg-2 control-label'));
?>
        <div class="col-lg-2">
            <?php 
echo $form->dropDownList($model, 'car_id', Lists::car(), array('empty' => $this->labelController['messageSelect'], 'class' => 'form-control'));
?>
            <?php 
echo $form->error($model, 'car_id');
?>
        </div>
    </div>

    <div class="form-group">
        <?php 
echo $form->labelEx($model, 'amount', array('class' => 'col-lg-2 control-label'));
?>
        <div class="col-lg-1">
            <?php 
echo $form->textField($model, 'amount', array('maxlength' => 11, 'class' => 'form-control'));
?>
Beispiel #3
0
    echo $form->labelEx($noAccept, 'remark', array('class' => 'col-lg-3'));
    ?>
                <div class='col-lg-9'>
                    <?php 
    echo $form->textField($noAccept, 'remark', array('class' => 'form-control'));
    echo $form->error($noAccept, 'remark');
    ?>
                </div>
            </div>
            <div class="row" id="accept" >
                <?php 
    echo $form->labelEx($accept, 'car_id', array('class' => 'col-lg-3'));
    ?>
                <div class="col-lg-5">
                    <?php 
    echo $form->dropDownList($accept, 'car_id', Lists::car(array('condition' => 'type_car_id = :type_car_id', 'params' => array(':type_car_id' => 2))), array('empty' => $this->labelController['messageSelect'], 'class' => 'chzn-select form-control'));
    echo $form->error($accept, 'car_id');
    ?>
                </div>
                <input type="hidden" name="paper_approval_id" value="<?php 
    echo $model->paper_approval_bus_id;
    ?>
" />
            </div>
            <?php 
    $this->endWidget();
    ?>
        </div>
    </div>
    <div class="modal-footer">
        <?php