<br />

	<b><?php 
echo CHtml::encode($data->getAttributeLabel('channel'));
?>
:</b>
	<?php 
echo CHtml::encode(hexdec($data->channel));
?>
	<br />

	<b><?php 
echo CHtml::encode($data->getAttributeLabel('light_type_id'));
?>
:</b>
	<?php 
echo CHtml::encode(LightType::model()->item(0, $data->light_type_id));
?>
	<br />

	<b><?php 
echo CHtml::encode($data->getAttributeLabel('module_id'));
?>
:</b>
	<?php 
echo CHtml::encode(hexdec($data->module->module_number));
?>
	<br />


</div>
$model->channel = hexdec($model->channel);
?>
        <?php 
echo $form->textField($model, 'channel', array('size' => 10, 'maxlength' => 10));
?>
        <?php 
echo $form->error($model, 'channel');
?>
    </div>

    <div class="row">
        <?php 
echo $form->labelEx($model, 'light_type_id');
?>
        <?php 
echo $form->dropDownList($model, 'light_type_id', LightType::items(Yii::app()->session['editingUserId']));
?>
        <?php 
echo $form->error($model, 'light_type_id');
?>
    </div>

    <div class="row">
        <?php 
echo $form->labelEx($model, 'module_id');
?>
        <?php 
echo $form->dropDownList($model, 'module_id', Module::items(Yii::app()->session['editingUserId']));
?>
        <?php 
echo $form->error($model, 'module_id');