<div id="tab_foils" > <div class="headline">Foils</div> <table> <colgroup> <col width="150" /> <col /> </colgroup> <tr> <td><label for="metaTitle">Name</label></td> <td><label for="metaTitle">Color</label></td> </tr> <?php foreach ($productcolors as $productcolorid) { $cid = $productcolorid->colorID; $colorsmodel = new Foil_Color_Model(); $color = $colorsmodel->getFoilByID($cid); //foreach($colors as $color){ echo '<tr>'; echo '<td><label for="flavorName">' . $color->name . '</label></td>'; echo '<td><label for="flavorColor">' . $color->hexcode . '</label></td>'; echo '</tr>'; //} } ?> </table> </div> <!-- div id="tab_costs" --> <div id="tab_flavors" > <div class="headline">Flavors</div>
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. var sBasePath = '<?php echo url::base(); ?> /media/js/fckeditor/'; } </script> <?php $argumentarray = Router::$arguments; $foils = new Foil_Color_Model(); if (isset($argumentarray[0])) { $id = $argumentarray[0]; $foil = $foils->getFoilByID($id); } else { //$id = $foils->getNextID(); $foil = ORM::factory('foil_color'); } $i = 0; $j = 0; ?> <form action="<?php if (isset($id)) { echo url::base() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/' . $id; } else { echo url::base() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/';