13 <?php $form = $this->beginWidget(
'CActiveForm', array(
14 'id'=>
'tmp-user-form',
15 'enableAjaxValidation'=>
true,
16 'focus'=>array($this->user,
'title')
20 <?php echo
ShoppingcartModule::t(
'Fields with {required} are required.',array(
'{required}'=>
"<span class='required''>*</span>")); ?>
23 <?php echo $form->errorSummary($this->user); ?>
26 foreach ($this->user->attributes as $fieldName => $fieldValue): ?>
27 <?php $hidden = array(
"id",
"user_id",
"parent_user_id");
28 if(in_array($fieldName,$hidden)){
continue;} ?>
30 <?php
if($this->user->metadata->tableSchema->columns[$fieldName]->dbType !=
"date"): ?>
33 <?php echo $form->labelEx($this->user,$fieldName); ?>
34 <?php echo $form->textField($this->user,$fieldName); ?>
35 <?php echo $form->error($this->user,$fieldName); ?>
41 <?php echo $form->labelEx($this->user,$fieldName); ?>
43 $format = Yii::app()->locale->getDateFormat();
45 $this->widget(
'shoppingcart.components.CJuiDatePicker',array(
46 'name'=>
'publishDate',
47 'model'=> $this->user,
48 'id'=>
"TmpUser_$fieldName",
49 'attribute'=>
'birthday',
51 'i18nScriptFile' =>
'jquery.ui.datepicker-ja.js',
56 'yearRange'=> (date(
'Y')-100).
':'.(date(
'Y')-18),
57 'defaultDate'=>
'-40y',
64 'style'=>
'height:20px;'
68 <?php echo $form->error($this->user,$fieldName); ?>
75 <input type=
"hidden" name=
"step" value=
"<?php echo $this->step ?>">
77 <div
class=
"row controls">
81 <?php $this->endWidget(); ?>