Advertisement
Guest User

Untitled

a guest
Oct 8th, 2015
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.50 KB | None | 0 0
  1. foreach($model->adults as $id=>$value):
  2.                            
  3.     echo 'Adult '.$value.'<br/>';
  4.     echo CHtml::hiddenField(get_class($model)."[maturity][]", $model->maturity[$id], array('value'=>PaxDetail::MaturityAdult));
  5.  
  6.     echo $form->labelEx($model, 'first_name', array('class' => 'form-label'));
  7.     echo Chtml::textField(get_class($model)."[first_name][]", $model->first_name[$id], array('class' => 'form-control'));
  8.     echo $form->error($model, 'first_name'.$id);
  9.                            
  10.     echo $form->labelEx($model, 'last_name', array('class' => 'form-label'));
  11.     echo Chtml::textField(get_class($model)."[last_name][]", $model->last_name[$id], array('class' => 'form-control'));
  12.     echo $form->error($model, 'last_name'.$id);
  13.                            
  14.     echo $form->labelEx($model, 'dob', array('class' => 'form-label'));
  15.     echo Chtml::textField(get_class($model)."[dob][]", $model->dob[$id], array('class' => 'form-control'));
  16.     echo $form->error($model, 'dob'.$id);
  17.                            
  18.     echo $form->labelEx($model, 'passport', array('class' => 'form-label'));
  19.     echo Chtml::textField(get_class($model)."[passport][]", $model->passport[$id], array('class' => 'form-control'));
  20.     echo $form->error($model, 'passport'.$id);
  21.                        
  22.     echo $form->labelEx($model, 'passport_expire', array('class' => 'form-label'));
  23.     echo Chtml::textField(get_class($model)."[passport_expire][]", $model->passport_expire[$id], array('class' => 'form-control'));
  24.     echo $form->error($model, 'passport_expire'.$id);
  25.                            
  26. endforeach;
  27.  
  28. echo CHtml::submitButton('Procced', array('class'=>'btn btnSubmit'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement