<div class="row" ><b>Renew Date:</b></div>
<span class="row">
<?php
$this->widget('zii.widgets.jui.CJuiDatePicker', array(
'model'=>$model,
'attribute'=>'renew_date',
'options'=>array(
'showAnim'=>'fold',
'dateFormat'=>'yy-mm-dd',
'changeMonth' => true,
'changeYear' => true,
'currentText' => 'today',
'dayNames' => array('周一','周二','周三','周四','周五','周六','周日'),
'dayNamesMin' => array('日','一','二','三','四','五','六'),
'monthNamesShort' => array('一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'),
),
'htmlOptions'=>array(
'readonly' => true,
'value'=> !empty($model -> renew_date) ? $model->renew_date: date('Y-m-d',time()),
),
));
?>
<?php echo $form->error($model,'renew_date'); ?>
</span>
<span class="row">
<?php
$this->widget('zii.widgets.jui.CJuiDatePicker', array(
'model'=>$model,
'attribute'=>'renew_date',
'options'=>array(
'showAnim'=>'fold',
'dateFormat'=>'yy-mm-dd',
'changeMonth' => true,
'changeYear' => true,
'currentText' => 'today',
'dayNames' => array('周一','周二','周三','周四','周五','周六','周日'),
'dayNamesMin' => array('日','一','二','三','四','五','六'),
'monthNamesShort' => array('一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'),
),
'htmlOptions'=>array(
'readonly' => true,
'value'=> !empty($model -> renew_date) ? $model->renew_date: date('Y-m-d',time()),
),
));
?>
<?php echo $form->error($model,'renew_date'); ?>
</span>