Ejemplo n.º 1
0
echo $form->textFieldRow($model, 'name', array('class' => 'span3'));
?>
    <?php 
echo $form->datePickerRow($model, 'sign_time', array('class' => 'span2', 'options' => array('language' => 'zh-CN', 'format' => 'yyyy-mm-dd')));
?>
    <?php 
echo $form->datepickerRow($model, 'online_time', array('class' => 'span2', 'options' => array('language' => 'zh-CN', 'format' => 'yyyy-mm-dd')));
?>
    <?php 
echo $form->datepickerRow($model, 'end_time', array('class' => 'span2', 'options' => array('language' => 'zh-CN', 'format' => 'yyyy-mm-dd')));
?>
    <?php 
echo $form->radioButtonListInlineRow($model, 'if_billing', array('1' => '需要', '0' => '不需要'), array('lable' => '开具发票'));
?>
    <?php 
echo H::hiddenField('return_url', Yii::app()->request->urlReferrer);
?>

    
    <div class="form-actions">
        <?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => $model->isNewRecord ? '创建' : '保存'));
?>
    </div>

<?php 
$this->endWidget();
echo H::label('上传合同附件', FALSE);
$this->widget('xupload.XUpload', array('url' => Yii::app()->createUrl("/groupon/contract/upload", array("parent_id" => 1)), 'model' => $upload, 'attribute' => 'file', 'multiple' => true, 'htmlOptions' => array('id' => 'arcontract-attach-form')));
?>
</div><!-- form -->