示例#1
0
        <input type="radio" id="webelo" name="webelo">
        <label for='webelo'>Webelo</label>

        <input type="radio" id='arrow' name='arrow'>
        <label for='arrow'>Arrow of Light</label>

        <input type="submit" >
        
    </fieldset>
</form>
<?php 
//    print_r($_POST);
$tbl = array_keys($_POST);
$const = $tbl[0];
$constraint = "badge = '{$const}'";
$topics = $data->getAllTopics($table, $constraint);
//print_r($topics);
//Table Columns
$col = $data->getColumns($table);
$column = '<tr>';
foreach ($col as $c) {
    $column .= '<th>' . $c . '</th>';
}
$column .= '</tr>';
$t = '';
foreach ($topics as $topic) {
    $t .= '<tr>';
    foreach ($topic as $scout) {
        $t .= '<td>' . $scout . '</td>';
    }
    $t .= '</tr>';
示例#2
0
 /**
  * Get lists response
  * 
  * @return void
  */
 public function listAction()
 {
     $topics = $this->data->getAllTopics();
     $this->render("index/list", ['topics' => $topics]);
 }