Exemple #1
0
                                                        <?php 
print_button($lastpage, "show_class", "zurück");
?>
                                                </td>
						<td colspan='2'>
								<form action="<?php 
echo $self;
?>
" method="post" >

								Klasse/Gruppe:
								<select name="selected_class" size="1" id="selected_class" onchange="this.form.submit()">
									
									<?php 
$classes[] = $UserTextAllClasses;
echo option_list_from_array($classes, $selected_class);
?>
								</select>
								
								<input type="submit" name="show_class" value="anzeigen">
								<?php 
if (isset($_POST["selected_class"])) {
    if ($_POST["selected_class"] != $UserTextAllClasses) {
        echo "<input type='submit' name='download_class' value='Zip-Datei'>";
    }
}
?>
							
						</td>
					</tr>
                                        <tr>
Exemple #2
0
function print_data_input_formular($action, $classes, $lastpage)
{
    if ($action == "") {
        $action = $_SERVER['PHP_SELF'];
    }
    $given_name = "";
    $last_name = "";
    $birth_day = "_";
    $birth_month = "-";
    $birth_year = "-";
    $class = "";
    $autocorrection_on = " checked ";
    $autocorrection_off = "";
    $alter = "";
    if (isset($_SESSION["given_name"])) {
        $given_name = $_SESSION["given_name"];
    }
    if (isset($_SESSION["last_name"])) {
        $last_name = $_SESSION["last_name"];
    }
    if (isset($_SESSION["birth_day"])) {
        $birth_day = $_SESSION["birth_day"];
    }
    if (isset($_SESSION["birth_month"])) {
        $birth_month = $_SESSION["birth_month"];
    }
    if (isset($_SESSION["birth_year"])) {
        $birth_year = $_SESSION["birth_year"];
    }
    if (isset($_SESSION["class"])) {
        $class = $_SESSION["class"];
    }
    if (isset($_SESSION["autocorrection"])) {
        if ($_SESSION["autocorrection"] == false) {
            $autocorrection_on = "";
            $autocorrection_off = " checked ";
        }
    }
    if (isset($_SESSION["alter"])) {
        if ($_SESSION["alter"] > 0) {
            $alter = "<tr><td>Alter:</td><td>" . $_SESSION["alter"] . " Jahre</td></tr>";
        }
    }
    echo "\n\t\t\n\t\t<table>\n\t\t\t<form action='{$action}' method='post'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td>Vorname:</td>\n\t\t\t\t\t<td><input type='text' name='given_name' value='{$given_name}' size='40' autocomplete='off'" . form_error_css($_SESSION["given_name_errno"]) . "></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td>Nachname:</td>\n\t\t\t\t\t<td><input type='text' name='last_name' value='{$last_name}' size='40' autocomplete='off'" . form_error_css($_SESSION["last_name_errno"]) . "></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td>Geburtsdatum: (Tag.Monat.Jahr)</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<select name='birth_day' size='1'  autocomplete='off'" . form_error_css($_SESSION["birth_day_errno"]) . ">\n\t\t\t\t\t\t\t" . option_list(1, 31, $birth_day) . "\n\t\t\t\t\t\t</select>.\n\t\t\t\t\t\t<select name='birth_month' size='1' autocomplete='off'" . form_error_css($_SESSION["birth_month_errno"]) . ">\n\t\t\t\t\t\t\t" . option_list(1, 12, $birth_month) . "\n\t\t\t\t\t\t</select>.\n\t\t\t\t\t\t<select name='birth_year' size='1' autocomplete='off'" . form_error_css($_SESSION["birth_year_errno"]) . ">\n\t\t\t\t\t\t\t" . option_list(1910, 2010, $birth_year) . "\n\t\t\t\t\t\t</select>\t\t\t\t\t\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td>Klasse</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<select name='class' size='1' " . form_error_css($_SESSION["class_errno"]) . ">\n\t\t\t\t\t\t\t<option value='-'>-</option>\n\t\t\t\t\t\t\t" . option_list_from_array($classes, $class) . "\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td>Autokorrektur:</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<input type='radio' name='autocorrection' value='on' {$autocorrection_on} >an<br>\n\t\t\t\t\t\t<input type='radio' name='autocorrection' value='off' {$autocorrection_off} >aus\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t{$alter}\n\t\t\t\t<tr>\n\t\t\t\t\t<td><input type='submit' name='back' value='zurück'></td>\n\t\t\t\t\t<td><input type='submit' name='button_check_data' value='Weiter'></td>\n\t\t\t\t</tr>\n\t\t\t</form>\n\t\t</table>\n\t\t";
    //print_data_input_formular($_SERVER['PHP_SELF'],$classes.$lastpage);
    //		print_button($lastpage, "data_input", "zurück");
}
//Start Page ($tilte, $style,$script,$meta,$body)
echo create_header($_SESSION["settings"]["html_title"], "", "", "", "", "logolisa.svg", false);
?>
			<h3>1b. Bilddatei auswählen</h3>
			<p>
			<table>
				<tr>
					<td colspan='2'>
						<form action="<?php 
echo $self;
?>
" method="post" >
							Klasse/Gruppe:
							<select name="selected_path" size="1"  id="selected_path" onchange="this.form.submit()">
								<?php 
echo option_list_from_array($subdirs, $selected_path);
?>
							</select>
							<input type="submit" name="changeclass" value="auswählen">
						</form>
					</td>
					<td>
						<?php 
print_button($lastpage, "picture_from_webcam", "zurück");
?>
					</td>
				</tr>
				<tr>
					<?php 
if ($nr_pics > 0) {
    $i = 1;