Jeff PHP framework  0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
form_multicheckbox.php
Go to the documentation of this file.
00001 <?php
00021 ?>
00022 <div class="form_multicheck">
00023 <table class="<?= $class ?>">
00024         <tbody>
00025                 <?php
00026                         foreach($rows as $row) {
00027                                 echo "<tr>\n";
00028                                 foreach($row as $cell) {
00029                                         $cell_tag = (is_array($cell) && isset($cell['header']) && $cell['header']) ? "th" : "td";
00030                                         $cell_colspan = (is_array($cell) && isset($cell['colspan']) && $cell['colspan']) ? " colspan=\"".$cell['colspan']."\"" : "";
00031                                         $title = (is_array($cell) && isset($cell['title'])) ? " title=\"".$cell['title']."\"" : '';
00032                                         $text = (is_array($cell) && isset($cell['text'])) ? $cell['text'] : $cell;
00033                                         if(is_array($cell) && isset($cell['class'])) echo "<$cell_tag$cell_colspan$title class=\"".$cell['class']."\">".$text."</$cell_tag>\n";
00034                                         else echo "<$cell_tag>$text</$cell_tag>\n";
00035                                 }
00036                                 echo "</tr>\n";
00037                         }
00038                 ?>
00039         </tbody>
00040 </table>
00041 </div>
00042 <div class="clear"></div>