echo $cueAppr->DocType; ?> </td> <td class="amount_cell width30"><?php echo CHtml::encode($cueAppr->Amount) ? Helper::cutText(15, 75, 10, number_format($cueAppr->Amount, 2, '.', ',')) : '<span class="not_set">Not set</span>'; ?></td> <td class="width90 control_name"> <?php if($cueAppr->Approval_Value<1) { echo "DEC"; } else { echo $cueAppr->ApprName; } ?> </td> <td> <span class="cutted_cell"> <?php $notes = Documents::getLastNoteById($cueAppr->DocID); echo CHtml::encode($notes) ? Helper::cutText(11, 240, 29, $notes) : '<span class="not_set">No comments</span>'; ?> </span> </td> </tr> <?php } } else { echo '<tr> <td> Documents not found. </td> </tr>'; }