echo $form->error($model, 'occupation'); ?> </div> <div class="in-row clearfix"> <?php echo $form->textField($model, 'phone', array('class' => 'text', 'placeholder' => 'Contact No')); ?> <?php echo $form->error($model, 'phone'); ?> </div> <div class="in-row clearfix"> <?php echo $form->dropDownList($model, 'country_id', AreaCode::loadArrArea(), array('empty' => 'Country')); ?> <?php echo $form->error($model, 'country_id'); ?> </div> <div class="in-row clearfix"> <?php // echo $form->labelEx($model, 'remark', array('class' => 'lb')); ?> <?php echo $form->textArea($model, 'remark', array('rows' => 1, 'class' => 'text', 'maxlength' => 600, 'placeholder' => 'Remark')); ?> </div>
</div> </div> <div class="in-row clearfix"> <label class="lb">Country <span class="require">*</span> :</label> <div class="group-4"> <?php if ($model->country_id) { ?> <?php echo $form->dropDownList($model, 'country_id', AreaCode::loadArrArea(), array('style' => 'width:244px;', 'class' => 'text')); ?> <?php } else { ?> <?php echo $form->dropDownList($model, 'country_id', AreaCode::loadArrArea(), array('options' => array(DEFAULT_AREA_CODE => array('selected' => true)), 'style' => 'width:244px;', 'class' => 'text')); ?> <?php } ?> <?php echo $form->error($model, 'country_id'); ?> </div> </div> <div class="in-row clearfix"> <label class="lb">Address :</label> <div class="group-4"> <?php echo $form->textArea($model, 'address', array('class' => 'text w-0', 'size' => 60, 'maxlength' => 255)); ?>
<div class="row"> <?php echo $form->label($model, 'title', array('label' => Yii::t('translation', 'Title'))); ?> <?php echo $form->textField($model, 'title', array('size' => 60, 'maxlength' => 255)); ?> </div> <div class="row"> <?php echo $form->label($model, 'country_id', array('label' => Yii::t('translation', 'Country'))); ?> <?php echo $form->dropDownList($model, 'country_id', AreaCode::loadArrArea(), array('prompt' => 'Select a country', 'options' => array(DEFAULT_AREA_CODE => array('selected' => true)))); ?> </div> <div class="row"> <?php echo $form->label($model, 'department', array('label' => Yii::t('translation', 'Department'))); ?> <?php echo $form->textField($model, 'department', array('size' => 60, 'maxlength' => 255)); ?> </div> <div class="row"> <?php echo $form->label($model, 'posted', array('label' => Yii::t('translation', 'Posted')));
if (file_exists($file) && !empty($model->file_name)) { $link = Yii::app()->createAbsoluteUrl(ProUploadDocument::$folderUpload . "/{$model->user_id}/" . $model->file_name); $res = "<a class='show-image' href='{$link}' >" . $model->file_name . "</a>"; } return $res; } /** * @Author: ANH DUNG Apr 02, 2014 * @Todo: format full name of Registered Users at BE * @Param: $model model user */ public function formatFullNameRegisteredUsers($model) { if (is_null($model)) { return '';
echo $form->error($model, 'email'); ?> </div> <div class="form-group"> <?php echo $form->textField($model, 'phone', array('class' => 'form-control number_only', 'placeholder' => 'Contact No')); ?> <?php echo $form->error($model, 'phone'); ?> </div> <div class="form-group"> <?php echo $form->dropDownList($model, 'country_id', AreaCode::loadArrArea(), array('empty' => 'Select Country', 'class' => 'form-control')); ?> <?php echo $form->error($model, 'country_id'); ?> </div> <div class="form-group"> <?php echo $form->textArea($model, 'description', array('class' => 'note-box-2 form-control', 'placeholder' => 'Message', 'rows' => 4)); ?> <?php echo $form->error($model, 'description'); ?> </div>
public static function GetAreaCodeById($id) { if (!empty($id)) { $code = AreaCode::model()->findByPk($id); if (!empty($code->area_code)) { return $code->area_code; } else { return '0'; } } else { return '0'; } }
public static function sendMailRegisterProgramme($model) { $param = array('{SURNAME}' => $model->surname, '{GIVEN_NAME}' => $model->given_name, '{OTHER_NAME}' => $model->other_name, '{MOBILE_NUMBER}' => $model->mobile_number, '{EMAIL_ADDRESS}' => $model->email_address, '{STREET}' => $model->street, '{HOUSE_NUMBER}' => $model->house_number, '{CITY}' => $model->city, '{COUNTRY}' => $model->country, '{POSTAL_CODE}' => $model->postal_code, '{SURNAME_STUDENT}' => $model->surname_student, '{GIVEN_NAME_STUDENT}' => $model->given_name_student, '{OTHER_NAME_STUDENT}' => $model->other_name_student, '{SCHOOL_LEVEL}' => $model->school_level, '{PROGRAMME_TITLE}' => $model->programme_title, '{PROGRAME_FEE}' => $model->programme_fee, '{GST}' => $model->GST, '{TOTAL_PROGRAMME_FEE}' => $model->total_programme_fee, '{PAYMENT_MODE}' => $model->payment_mode); EmailHelper::bindEmailContent(EMAIL_REGISTER_PROGRAMME, $param, Yii::app()->params['adminEmail']); } public static function sendmailpayment($model, $list_product) {
public static function getAddress($data) { if ($data) { $object = json_decode($data); return $object->address1 . ' ' . $object->address2 . ', ' . $object->city . ', ' . AreaCode::getCountryById($object->country)->area_name . ' ' . $object->postCode; } }
echo $form->labelEx($model, 'shipping_address2'); ?> <?php echo $form->textField($model, 'shipping_address2', array('class' => 'in-text w-3')); ?> <?php echo $form->error($model, 'shipping_address2'); ?> </div> <div class="row"> <div class="in-row-block"> <?php echo $form->labelEx($model, 'shipping_country_id'); ?> <?php echo $form->dropdownList($model, 'shipping_country_id', AreaCode::loadArrArea(), array('class' => 'w-1 space-1')); ?> <?php echo $form->error($model, 'shipping_country_id'); ?> </div> <div class="in-row-block"> <?php echo $form->labelEx($model, 'shipping_city', array('class' => 'no-w')); ?> <?php echo $form->textField($model, 'shipping_city', array('class' => 'in-text w-5 space-1')); ?> <?php echo $form->error($model, 'shipping_city'); ?>
<div class="group-1"> <?php echo $form->textField($model, 'last_name', array('class' => 'text', 'maxlength' => 100)); ?> <?php echo $form->error($model, 'last_name'); ?> </div> </div> <div class="in-row clearfix"> <label class="lb-1"><span class="require">*</span> Mobile Phone :</label> <div class="group-1"> <div class="group-2"> <?php echo $form->dropDownList($model, 'area_code_id', AreaCode::getAreaCode(), array('style' => 'width:244px;', 'class' => 'text', 'options' => array(DEFAULT_AREA_CODE => array('selected' => true)))); ?> <!-- --><?php //echo $form->error($model,'area_code_id'); ?> </div> <?php echo $form->textField($model, 'phone', array('class' => 'text w-1', 'maxlength' => PHONE_LENGTH_MAX)); ?> <?php echo $form->error($model, 'phone', array('class' => 'phone errorMessage')); ?> </div> </div>