Exemple #1
0
<tr>	
	<td class="label"><?php 
echo Yii::t('emp', 'Address');
?>
</td><td colspan="3"><?php 
echo $empAdd->emp_padd;
?>
</td>
</tr>
<tr>	
	<td class="label"><?php 
echo Yii::t('emp', 'Country');
?>
</td><td><?php 
if ($empAdd->emp_padd_country != 0) {
    echo app\models\Country::findOne($empAdd->emp_padd_country)->country_name;
} else {
    echo "";
}
?>
</td>
	<td class="label"><?php 
echo Yii::t('emp', 'State/Province');
?>
</td><td><?php 
if ($empAdd->emp_padd_state != 0) {
    echo app\models\State::findOne($empAdd->emp_padd_state)->state_name;
} else {
    echo "";
}
?>
Exemple #2
0
echo Yii::t('app', 'Master Configuration');
?>
</h3>
   </div>
   <div class="box-body">
	<div class="row">
		<div class="col-md-4 col-sm-6 col-xs-12">
		      <div class="edusec-link-box">
		        <span class="edusec-link-box-icon bg-aqua"><i class="fa fa-flag"></i></span>
		        <div class="edusec-link-box-content">
		          <span class="edusec-link-box-text"><?php 
echo Html::a(Yii::t('app', 'Country'), ['/country']);
?>
</span>
		          <span class="edusec-link-box-number"><?php 
echo app\models\Country::find()->where(['is_status' => 0])->count();
?>
</span>
			 <span class="edusec-link-box-desc"></span>
			  <span class="edusec-link-box-bottom"><?php 
echo Html::a('<i class="fa fa-plus-square"></i> ' . Yii::t('app', 'Create New'), ['/country/create']);
?>
</span>
		        </div><!-- /.info-box-content -->
		      </div><!-- /.info-box -->
		</div>
		<div class="col-md-4 col-sm-6 col-xs-12">
		      <div class="edusec-link-box">
		        <span class="edusec-link-box-icon bg-aqua"><i class="ion ion-ios-gear-outline"></i></span>
		        <div class="edusec-link-box-content">
		          <span class="edusec-link-box-text"><?php 
Exemple #3
0
echo $stuAdd->getAttributeLabel('stu_padd');
?>
</td>
	<td colspan="3"><?php 
echo $stuAdd->stu_padd;
?>
</td>
</tr>
<tr>	
	<td class="label"><?php 
echo $stuAdd->getAttributeLabel('stu_padd_country');
?>
</td>
	<td><?php 
if (!empty($stuAdd->stu_padd_country)) {
    echo app\models\Country::findOne($stuAdd->stu_padd_country)->country_name;
} else {
    echo "(Not Set)";
}
?>
	</td>
	<td class="label"><?php 
echo $stuAdd->getAttributeLabel('stu_padd_state');
?>
</td>
	<td><?php 
if (!empty($stuAdd->stu_padd_state)) {
    echo app\models\State::findOne($stuAdd->stu_padd_state)->state_name;
} else {
    echo "(Not Set)";
}
Exemple #4
0
<div class="state-form">
	<?php 
if ($this->context->action->id == 'update') {
    $action = ['update', 'id' => $_REQUEST['id']];
} else {
    $action = ['create'];
}
?>
	
    <?php 
$form = ActiveForm::begin(['id' => 'state-form', 'action' => $action, 'enableAjaxValidation' => true]);
?>
   <div class="col-xs-12 col-lg-12 no-padding">
    <div class="col-sm-6">
    <?php 
echo $form->field($model, 'state_country_id', ['inputOptions' => ['class' => 'form-control']])->dropDownList(ArrayHelper::map(app\models\Country::find()->all(), 'country_id', 'country_name'), ['prompt' => '--Select Country--'])->label(false);
?>
    </div>
    <div class="col-sm-6">
    <?php 
echo $form->field($model, 'state_name', ['inputOptions' => ['placeholder' => 'State/Province Name']])->textInput(['maxlength' => 35])->label(false);
?>
    </div>
   </div>
   <div class="form-group col-xs-12 col-sm-6 col-lg-4 no-padding">
	<div class="col-xs-6">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-block btn-success' : 'btn btn-block btn-info']);
?>
	</div>
	<div class="col-xs-6">
Exemple #5
0
	<div class="col-xs-4 left-padding">
       
	</div>
	<div class="col-xs-4 left-padding">
	<?php 
echo Html::a('PDF', ['export-data/export-to-pdf', 'model' => get_class($searchModel)], ['class' => 'btn btn-block btn-warning', 'target' => '_blank']);
?>
	</div>
	<div class="col-xs-4 left-padding">
	<?php 
echo Html::a('EXCEL', ['export-data/export-excel', 'model' => get_class($searchModel)], ['class' => 'btn btn-block btn-primary', 'target' => '_blank']);
?>
	</div>
  </div>
</div>

<div class="col-xs-12" style="padding-top: 10px;">
    <div class="box">
        <div class="box-header">

        </div><!-- /.box-header -->
     <div class="box-body table-responsive">
       <div class="state-index">
    	  <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'summary' => '', 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'state_name', ['label' => 'Country', 'attribute' => 'state_country_id', 'value' => 'stateCountry.country_name', 'filter' => ArrayHelper::map(app\models\Country::find()->all(), 'country_id', 'country_name')], ['class' => 'app\\components\\CustomActionColumn']]]);
?>
       </div>
     </div>
   </div>
</div>