'header' => 'Name', 'name' => 'employee_first_name', 'value' => '$data->Rel_Emp_Info->employee_first_name', ), array( 'header' => 'Surame', 'name' => 'employee_last_name', 'value' => '$data->Rel_Emp_Info->employee_last_name', ), array('name' => 'employee_transaction_designation_id', 'filter'=>EmployeeDesignation::items(), 'value' =>'EmployeeDesignation::model()->findByPk($data->employee_transaction_designation_id)->employee_designation_name', ), array('name' => 'employee_transaction_department_id', 'filter'=>Department::items(), 'value' => 'Department::model()->findByPk($data->employee_transaction_department_id)->department_name', ), array( 'header' => 'Private Mobile', 'name' => 'employee_private_mobile', 'value' => '$data->Rel_Emp_Info->employee_private_mobile', ), array( 'header' => 'Private Email', 'name' => 'employee_private_email', 'value' => '$data->Rel_Emp_Info->employee_private_email', ), ),
?> <?php echo $form->dropDownList($model, 'employee_transaction_designation_id', EmployeeDesignation::items(), array('empty' => 'Select Designation')); ?> <span class="status"> </span> <?php echo $form->error($model, 'employee_transaction_designation_id'); ?> </div> <div class="row-right"> <?php echo $form->labelEx($model, 'employee_transaction_department_id'); ?> <?php echo $form->dropDownList($model, 'employee_transaction_department_id', Department::items(), array('empty' => 'Select Department')); ?> <span class="status"> </span> <?php echo $form->error($model, 'employee_transaction_department_id'); ?> </div> </div> <div class="row"> <div class="row-left"> <?php echo $form->labelEx($info, 'employee_private_mobile'); ?> <?php
<div class="row-right"> <?php echo $form->labelEx($info,'employee_type'); ?> <?php echo $form->dropDownList($info,'employee_type',array(""=>"Select Type","1"=>"Teaching","0"=>"Non Teaching")); ?><span class="status"> </span> <?php echo $form->error($info,'employee_type'); ?> </div> </div> <div class="row"> <div class="row-left"> <?php echo $form->labelEx($model,'employee_transaction_designation_id'); ?> <?php echo $form->dropDownList($model,'employee_transaction_designation_id',EmployeeDesignation::items(), array('empty' => 'Select Designation')); ?><span class="status"> </span> <?php echo $form->error($model,'employee_transaction_designation_id'); ?> </div> <div class="row-right"> <?php echo $form->labelEx($model,'employee_transaction_department_id'); ?> <?php echo $form->dropDownList($model,'employee_transaction_department_id',Department::items(), array('empty' => 'Select Department')); ?><span class="status"> </span> <?php echo $form->error($model,'employee_transaction_department_id'); ?> </div> </div> <div class="row"> <div class="row-left"> <?php echo $form->labelEx($info,'employee_private_mobile'); ?> <?php echo $form->textField($info,'employee_private_mobile',array('size'=>13)); ?><span class="status"> </span><br><br> <?php echo $form->error($info,'employee_private_mobile'); ?> </div> <div class="row-right"> <?php echo $form->labelEx($info,'employee_private_email'); ?> <?php echo $form->textField($user,'user_organization_email_id',array('size'=>13)); ?><span class="status"> </span> <?php echo $form->error($user,'user_organization_email_id'); ?> <b style='color:red;font-size:12px'> [Hint: abc123@example.com ] </b> </div>
<div class="portlet-title"><span class="box-title">Generating Employee Identity Card</span> </div> <div class="form"> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'emp-id-card', 'enableAjaxValidation'=>true, 'clientOptions'=>array('validateOnSubmit'=>true), )); ?> <p class="note">Fields with <span class="required">*</span> are required.</p> <div class="row"> <?php echo $form->labelEx($model,'template_name'); ?> <?php echo $form->dropDownList($model,'template_name',CHtml::listData(IdcardFieldFormat::model()->findAll(array('condition'=>'stud_emp_type="Employee"','group'=>'idtemplate_name')),'idtemplate_name','idtemplate_name'), array('empty' => 'Select Template'));?> <span class="status"> </span> <?php echo $form->error($model,'template_name'); ?> </div> <div class="row"> <?php echo CHtml::label('Department',''); ?> <?php echo CHtml::dropDownList('department', null, Department::items(),array('empty' => 'Select Department','tabindex'=>3)); ?> </div> <div class="row"> <?php echo CHtml::label('Card Id',''); ?> <?php echo CHtml::textField('employee_card_id', null, array('empty' => '---------------Select-------------','tabindex'=>5));?><span class="status"> </span> </div> <div class="row buttons"> <?php echo CHtml::submitButton('Generate', array('class'=>'submit','name'=>'search','tabindex'=>3)); ?> </div> <?php $this->endWidget(); ?> </div>
);?> <div class="portlet box blue"> <div class="portlet-title"><i class="fa fa-plus"></i><span class="box-title">Select Criterias</span> </div> <div class="form"> </br> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'document-search-emp', 'enableAjaxValidation'=>true, 'clientOptions'=>array('validateOnSubmit'=>true), )); ?> <p class="note">Fields with <span class="required">*</span> are required.</p> <div class="row"> <?php echo $form->labelEx($model,'department'); ?> <?php echo $form->dropDownList($model,'department',Department::items(), array('empty' => 'Select Department'));?> <span class="status"> </span> <?php echo $form->error($model,'department'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'document_category'); ?> <?php echo $form->dropDownList($model,'document_category',CHtml::listData(DocumentCategoryMaster::model()->findAll(),'doc_category_id','doc_category_name'), array('empty' => 'Select Document'));?> <span class="status"> </span> <?php echo $form->error($model,'document_category'); ?> </div> </div> <div class="row buttons"> <?php echo CHtml::submitButton('Search', array('class'=>'submit','name'=>'search')); ?> </div>
<?php echo $form->labelEx($model, 'lastname'); ?> <?php echo $form->textField($model, 'lastname', array('size' => 60, 'maxlength' => 256)); ?> <?php echo $form->error($model, 'lastname'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'department_name'); ?> <?php echo $form->dropDownList($model, 'department_id', Department::items(), array('ajax' => array('type' => 'POST', 'url' => CController::createUrl('main/dynamicpositions'), 'update' => '#Worker_position_id'))); ?> <?php echo $form->error($model, 'department_id'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'position_name'); ?> <?php echo $form->dropDownList($model, 'position_id', Position::items($model->department_id)); ?> <?php echo $form->error($model, 'position_id'); ?>
echo $form->labelEx($info, 'employee_joining_date'); ?> <?php $this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $info, 'attribute' => 'employee_joining_date', 'options' => array('dateFormat' => 'dd-mm-yy', 'changeYear' => 'true', 'changeMonth' => 'true', 'showAnim' => 'slide', 'yearRange' => '1900:' . date('Y'), 'buttonImage' => Yii::app()->request->baseUrl . '/images/calendar.png'), 'htmlOptions' => array('style' => 'width:80px;vertical-align:top', 'value' => date("d-m-Y", strtotime($info->employee_joining_date))))); ?> <span class="status"> </span> <?php echo $form->error($info, 'employee_joining_date'); ?> </div> <div class="row-right"> <?php echo $form->labelEx($model, 'employee_transaction_department_id'); ?> <?php echo $form->dropDownList($model, 'employee_transaction_department_id', Department::items(), array('empty' => '-----------Select---------', 'tabindex' => 8)); ?> <span class="status"> </span> <?php echo $form->error($model, 'employee_transaction_department_id'); ?> </div> </div> <div class="row"> <div class="row-left"> <?php echo $form->labelEx($model, 'employee_transaction_designation_id'); ?> <?php
echo $form->textArea($model, 'description', array('rows' => 6, 'cols' => 50)); ?> <?php echo $form->error($model, 'description'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'department'); ?> <?php // foreach ($department as $obj) // $departmentArray[$obj->id]=$obj->name; echo $form->dropDownList($model, 'department_id', Department::items()); ?> <?php echo $form->error($model, 'department_id'); ?> </div> <div class="row buttons"> <?php echo CHtml::submitButton($model->isNewRecord ? 'Создать' : 'Сохранить'); ?> </div> <?php $this->endWidget(); ?>
'id'=>'employee-sms-email-details-form', 'enableAjaxValidation'=>true, 'clientOptions'=>array('validateOnSubmit'=>true), )); ?> <p class="note">Fields with <span class="required">*</span> are required.</p> <?php //echo $form->errorSummary($model); ?> <div class="block-error"> <?php echo Yii::app()->user->getFlash('no-record'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'department_id'); ?> <?php echo $form->dropDownList($model,'department_id',Department::items(), array('empty' => 'Select Department','tabindex'=>6)); ?><span class="status"> </span> <?php echo $form->error($model,'department_id'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'email_sms_status'); ?> <?php $data = array('1'=>"SMS",'2'=>"EMAIL"); $model->email_sms_status = 1; echo $form->radioButtonList($model,'email_sms_status',$data,array('class'=>'radio', 'labelOptions'=>array('style'=>'display:inline;width:45px;'), 'template'=>"{input} {label}", 'separator'=>' '));?> <span class="status"> </span> <?php echo $form->error($model,'email_sms_status'); ?> </div> <div class="hint"><b>Hint:- For SMS message character limit is 160.</b></div> <div class="row">