Example #1
0
if ($result['Status'] == -2) {
    echo ' checked="checked" ';
}
echo '> externer SMV-Supporter</input> &nbsp; ';
echo '<input type="radio" name="Status" value="-3" ';
if ($result['Status'] == -3) {
    echo ' checked="checked" ';
}
echo '> Lehrer</input> &nbsp; ';
echo '<font color=green size=1> Neu </font>';
echo '
	<div class="form-group">
		<label>Teams: &nbsp; </label>';
$db = new Database();
$con = $db->connect();
$kw_result = $db->select_all_teams($con);
while ($row = $kw_result->fetch_assoc()) {
    $tid = $row['tid'];
    $team = $row['bezeichnung'];
    echo '<input type="checkbox" name="Teams[]" value="' . $tid . '"> ' . $team . ' </input> &nbsp; ';
    /*  
    if (0) 
    {
          echo '<input selected="selected" value="'.$team'">'.$team.' </option>';
    }
    else 
    {
          echo '<option value="'.$team.'">'.$team.' </option>';
    }
    */
}