예제 #1
0
<?php 
$dataProvider = $model->search(Yii::$app->request->queryParams);
?>

<div class="col-xs-12">
  <div class="col-lg-4 col-sm-4 col-xs-12 no-padding"><h3 class="box-title"><i class="fa fa-th-list"></i> <?php 
echo $this->title;
?>
</h3></div>
  <div class="col-xs-4"></div>
  <div class="col-lg-4 col-sm-4 col-xs-12 no-padding" style="padding-top: 20px !important;"></div>
</div>


<div class="col-xs-12">
<div class="box">
      <div class="box-body">
	<?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $model, 'summary' => '', 'options' => ['class' => 'table-responsive'], 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['label' => 'Employee ID', 'attribute' => 'emp_unique_id', 'value' => 'empMasterEmpInfo.emp_unique_id'], ['label' => 'First Name', 'attribute' => 'emp_first_name', 'value' => 'empMasterEmpInfo.emp_first_name'], ['label' => 'Last Name', 'attribute' => 'emp_last_name', 'value' => 'empMasterEmpInfo.emp_last_name'], ['label' => 'Department', 'attribute' => 'emp_master_department_id', 'value' => 'empMasterDepartment.emp_department_name', 'filter' => ArrayHelper::map(app\modules\employee\models\EmpDepartment::find()->all(), 'emp_department_id', 'emp_department_name')], ['label' => 'Designation', 'attribute' => 'emp_master_designation_id', 'value' => 'empMasterDesignation.emp_designation_name', 'filter' => ArrayHelper::map(app\modules\employee\models\EmpDesignation::find()->all(), 'emp_designation_id', 'emp_designation_name')], ['label' => 'User Login Id', 'attribute' => 'user_login_id', 'value' => 'empMasterUser.user_login_id', 'options' => ['style' => 'min-width:140px']], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{Reset_password}', 'buttons' => ['Reset_password' => function ($url, $model) {
    return Html::a('<span class="glyphicon glyphicon-edit"></span>', $url, ['title' => Yii::t('app', 'Reset Password')]);
}], 'urlCreator' => function ($action, $model, $key, $index) {
    if ($action === 'Reset_password') {
        $url = \Yii::$app->getUrlManager()->createUrl(["user/updateemploginid", 'id' => $model->empMasterUser->user_id]);
        return $url;
    }
}]]]);
?>
	</div>
   </div>
</div>
예제 #2
0
		   
		</div>
		<?php 
}
?>
       <?php 
$empSession = Yii::$app->session->get('emp_id');
?>
       <?php 
$EmpMaster = app\modules\employee\models\EmpMaster::find()->andWhere(['emp_master_id' => $empSession])->one();
?>
       <?php 
$EmpInfo = app\modules\employee\models\EmpInfo::findOne($EmpMaster->emp_master_emp_info_id);
?>
	<?php 
$empDepartment = app\modules\employee\models\EmpDepartment::findOne($EmpMaster->emp_master_department_id);
?>

<!---start first row block for employee info and holiday list--->
 <div class="row">
	<div class="col-sm-4 col-xs-12">
	      <div class="box box-info">
		<div class="box-header with-border">
			<h3 class="box-title"><i class="fa fa-info-circle"></i> My Information</h3>
		</div>
		<div class="box-body table-responsive no-padding">
		<div class="col-md-12 text-center">
			<?php 
echo Html::img($EmpInfo->getEmpPhoto($EmpInfo->emp_photo), ['alt' => 'No Image', 'class' => 'img-circle edusec-img-disp', 'style' => 'margin: 7px;']);
?>
		</div>
예제 #3
0
파일: _form.php 프로젝트: EduSec/EduSec
	  <div class = "col-sm-4 col-xs-12">
		<?php 
echo $form->field($info, 'emp_dob')->widget(yii\jui\DatePicker::className(), ['model' => $info, 'attribute' => 'emp_dob', 'clientOptions' => ['dateFormat' => 'dd-mm-yyyy', 'changeMonth' => true, 'yearRange' => '1900:' . (date('Y') + 1), 'changeYear' => true, 'readOnly' => true, 'autoSize' => true, 'buttonImage' => Yii::$app->homeUrl . "images/calendar.png"], 'options' => ['class' => 'form-control']])->label(true);
?>
	</div>
</div>

<div class="col-xs-12 col-lg-12 col-sm-12">
	<div class = "col-sm-4 col-xs-12">
   		 <?php 
echo $form->field($info, 'emp_joining_date')->widget(yii\jui\DatePicker::className(), ['model' => $info, 'attribute' => 'emp_joining_date', 'clientOptions' => ['dateFormat' => 'dd-mm-yyyy', 'changeMonth' => true, 'yearRange' => '1900:' . (date('Y') + 1), 'changeYear' => true, 'readOnly' => true, 'autoSize' => true, 'buttonImage' => Yii::$app->homeUrl . "images/calendar.png"], 'options' => ['class' => 'form-control']])->label(true);
?>
	</div>
	<div class = "col-sm-4 col-xs-12">
	      <?php 
echo $form->field($model, 'emp_master_department_id')->dropDownList(ArrayHelper::map(app\modules\employee\models\EmpDepartment::find()->where(['is_status' => 0])->all(), 'emp_department_id', 'emp_department_name'), ['prompt' => Yii::t('emp', '--- Select Department ---')]);
?>
	</div>
	<div class="col-sm-4 col-xs-12">
	    <?php 
echo $form->field($model, 'emp_master_designation_id')->dropDownList(ArrayHelper::map(app\modules\employee\models\EmpDesignation::find()->where(['is_status' => 0])->all(), 'emp_designation_id', 'emp_designation_name'), ['prompt' => Yii::t('emp', '--- Select Designation ---')]);
?>
	</div>
</div>

<div class="col-xs-12 col-lg-12 col-sm-12">
	<div class ="col-sm-4 col-xs-12">
	    <?php 
echo $form->field($model, 'emp_master_category_id')->dropDownList(ArrayHelper::map(app\modules\employee\models\EmpCategory::find()->where(['is_status' => 0])->all(), 'emp_category_id', 'emp_category_name'), ['prompt' => Yii::t('stu', '--- Select Category ---')]);
?>
	</div>