echo count($hotFoods); ?> )</h3> </td> </tr> <?php $count = 1; foreach ($hotFoods as $key => $val) { ?> <tr> <td> <div class="finput"> <?php $hotf = new HotFood(); $hotfAttributes = $hotf->attributeLabels(); echo "<h4>Hot Food Menu -" . $count . " </h4>"; foreach ($val as $vkey => $vval) { if (in_array($vkey, array('items_desc', 'quan_desc', 'freq_order', 'curr_supp', 'staff_purch', 'descision_maker', 'notes')) && !empty($vval)) { echo ' <span style="color:#0069A4;">' . $hotfAttributes[$vkey] . '</span> : ' . $vval . " <br>"; } } $count++; ?> <!--</div>--> </div> </td> <td> <div class="finput"> <?php // echo CHtml::textArea("hotFoods[ans][$key][comment]", (isset($hotFoods[$key]['ans']) ? $hotFoods[$key]['ans'] : ""), array("readonly" => $admin, 'class' => 'require'));