<div class="row field-row"> <div class="large-2 column"> <?php echo CHtml::label('<strong>Reschedule Reason:</strong> ', 'cancellation_reason'); ?> </div> <div class="large-5 column end"> <?php if (date('Y-m-d') == date('Y-m-d', strtotime($operation->booking->session->date))) { $listIndex = 3; } else { $listIndex = 2; } ?> <?php echo CHtml::dropDownList('cancellation_reason', '', OphTrOperationbooking_Operation_Cancellation_Reason::getReasonsByListNumber($listIndex), array('empty' => 'Select a reason')); ?> </div> </div> <div class="row field-row"> <div class="large-2 column"> <?php echo CHtml::label('<strong>Reschedule Comments:</strong> ', 'cancellation_comment'); ?> </div> <div class="large-5 column end"> <textarea name="cancellation_comment" rows=3 cols=50><?php echo CHtml::encode(@$_POST['cancellation_comment']); ?> </textarea> </div>