)</h3> </td> </tr> <?php $count = 1; ?> <?php foreach ($lunches as $key => $val) { ?> <tr> <td> <div class="ftext"> <?php $lunch = new Lunch(); $lunchAttributes = $lunch->attributeLabels(); echo "<h4>Lunch Menu -" . $count . " </h4>"; foreach ($val as $vkey => $vval) { if (in_array($vkey, array('finger_food', 'dessert', 'drinks', 'price_per_head', 'per_veg', 'other_items', 'pre_perf_lunch', 'bread_type', 'notes')) && !empty($vval)) { echo ' <span style="color:#0069A4;">' . $lunchAttributes[$vkey] . '</span> : ' . $vval . " <br> "; } } $count++; ?> <!--</div>--> </div> </td> <td> <div class="finput"> <?php echo CHtml::hiddenField("lunch[ans][{$key}][pro]", $val->id);