</thead> <tbody> <?php foreach ($results as $key => $val) { ?> <tr> <td><input type="checkbox" name="cat_id" value="<?php echo $val['cat_id']; ?> " /></td> <td><?php echo $val['cat_name']; ?> </td> <td><?php echo cat_name($val['cat_parent_id']); ?> </td> <td><?php if ($val['cat_is_show'] == 1) { echo $this->lang->line('valid'); } else { echo $this->lang->line('unvalid'); } ?> </td> <td><?php echo $val['cat_sort_order']; ?> </td> <td>
</header> </div> <div class="col-sm-9"> <section class="panel-body"> <h3 class="font-alt ellipsis mt0"><a href="#" class="text-default"><?php the_title(); ?> </a></h3> <p class="meta"> <a href="#"><?php comments_number('no comments', '1 comment', '% comments'); ?> </a> <span class="text-muted mr5 ml5">•</span> <span class="text-muted">In </span><a href="#"><?php echo cat_name(); ?> </a> <span class="text-muted mr5 ml5">•</span> <span class="text-muted">By </span><a href="<?php the_author_url(); ?> "><?php the_author(); ?> </a> </p> <div class="text-default"> <?php the_content(); ?>
<?php $i = 0; echo '<fieldset>'; echo '<legend><h3>' . cat_name($cat) . '</h3></legend>'; echo '<table id=\'table_shop\'><tbody><tr>'; while ($i < $nbr) { echo '<td style="vertical-align: top;">'; echo '<table id=\'table_product\'><tbody><tr>'; echo '<td>'; echo '<img src=' . PATH_IMAGE_STORE . $infos_product['product_image'][$i] . '>' . '<br \\>'; echo $infos_product['product_name'][$i] . '<br \\>'; echo $infos_product['product_description'][$i] . '<br \\>'; echo '</td>'; echo '<td>'; echo 'Quantité disponible ' . $infos_product['product_quantity'][$i] . '<br \\>'; echo 'Prix : ' . $infos_product['product_price'][$i] . ' nab$z' . '<br \\>'; echo 'Points de santé : ' . $infos_product['prdct_health_pt'][$i] . '<br \\>'; echo 'Points de faim : ' . $infos_product['prdct_angry_pt'][$i] . '<br \\>'; echo 'Points de soif : ' . $infos_product['prdct_thirst_pt'][$i] . '<br \\>'; echo 'Portions : ' . $infos_product['product_portion'][$i] . '<br \\>'; echo $form_buy[$infos_product['product_id'][$i]]; echo '</td></tr></tbody>'; echo '</table></td>'; $i = $i + 1; if ($i % 2 == 0) { //Break line every 2products echo '</tr>'; } } echo '</tr></tbody></table>';