コード例 #1
0
        $output .= '
		<form action="' . $_SERVER['PHP_SELF'] . '" method="POST">
		<input type="hidden" name="stg_kz" value="' . $stg_kz . '" />
		<tr>
			<td>' . $row->vorname . '</td>
			<td>' . $row->nachname . '</td>
			<td>' . $studiengang->kurzbzlang . ' - ' . $studiengang->bezeichnung . '</td>';
        $prestudent = new prestudent();
        $prestudent->getLastStatus($row->prestudent_id);
        $output .= '<td>' . $prestudent->status_kurzbz . '</td>
			<td>
				<input type="hidden" name="prestudent_id" value="' . $row->prestudent_id . '" />
				<select name="stpl">
					<option value="">-- keine Auswahl--</option>';
        $studienplan = new studienplan();
        $studienplan->getStudienplaene($row->studiengang_kz);
        foreach ($studienplan->result as $stpl) {
            $output .= '<option value="' . $stpl->studienplan_id . '">' . $db->convert_html_chars($stpl->bezeichnung . ' (' . $stpl->studienplan_id . ')') . '</option>';
        }
        $output .= '
				</select><input type="submit" name="schick" value="Speichern"/>
			</td>
		</tr></form>';
    }
}
$output .= '</tbody></table>';
//}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
コード例 #2
0
				<row>
					<label value="Datum" control="student-rolle-datum-datum"/>
					<box class='Datum' id="student-rolle-datum-datum" />
				</row>
				<row>
					<label value="Bestätigt am" control="student-rolle-datum-bestaetigt_datum"/>
					<box class='Datum' id="student-rolle-datum-bestaetigt_datum" />
				</row>
				<row>
					<label value="Studienplan" control="student-rolle-menulist-studienplan"/>
					<menulist id="student-rolle-menulist-studienplan" >
						<menupopup>
						<menuitem value="" label="-- keine Auswahl --"/>
						<?php 
$studienplan = new studienplan();
$studienplan->getStudienplaene($prestudent->studiengang_kz);
foreach ($studienplan->result as $row) {
    echo '<menuitem value="' . $row->studienplan_id . '" label="' . $db->convert_html_chars($row->bezeichnung . ' (' . $row->studienplan_id . ')') . '"/>';
}
?>
						</menupopup>
					</menulist>
				</row>
				<row>
					<label value="Anmerkung"/>
					<textbox id="student-rolle-textbox-anmerkung" multiline="true" />
				</row>
			</rows>
	</grid>
	<hbox>
		<spacer flex="1" />
コード例 #3
0
function getStudienplanDropDown($studiengang_kz, $orgform_kurzbz = '', $studienplan_id = '')
{
    $db = new basis_db();
    $content = '<SELECT id="studienplan_id" name="studienplan_id">
	<OPTION value="">-- keine Auswahl --</OPTION>';
    $studienplan = new studienplan();
    $studienplan->getStudienplaene($studiengang_kz);
    foreach ($studienplan->result as $row) {
        if ($studienplan_id == '') {
            $studienplan_id = $row->studienplan_id;
        }
        if ($studienplan_id == $row->studienplan_id) {
            $selected = 'selected';
        } else {
            $selected = '';
        }
        if ($row->aktiv) {
            if ($orgform_kurzbz == '' || $row->orgform_kurzbz == '' || $row->orgform_kurzbz == $orgform_kurzbz) {
                $content .= "<option value='{$row->studienplan_id}' {$selected}>{$row->bezeichnung}</option>";
            }
        }
    }
    $content .= '</SELECT>';
    return $content;
}