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 $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)";
}