Exemplo n.º 1
0
 */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'orders-form', 'enableAjaxValidation' => false, 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true), 'htmlOptions' => array('class' => 'well')));
?>

	<p class="note">
		带<span class="required">*</span>为必填项
	</p>

	<?php 
echo $form->errorSummary($model);
?>
    <!-- when update should use [Yii::app()->user->id]-->
    
    
	<?php 
echo $form->dropDownListRow($model, 'car_id', Cars::getCustomerCars(isset($type) ? Yii::app()->user->id : ''), array('class' => 'span4'));
?>

	<?php 
//echo $form->textField($model,'car_id',array('class' => 'span4'));
?>
	
	<?php 
echo $form->textFieldRow($model, 'date', array('class' => 'span4 datepicker'));
?>
	
	<?php 
echo $form->dropDownListRow($model, 'time', array('AM' => '上午', 'PM' => '下午'), array('class' => 'span4'));
?>
	
	<?php