|
|
|
@ -1,11 +1,11 @@
|
|
|
|
|
<?php
|
|
|
|
|
function print_username() {
|
|
|
|
|
echo <<<EOT
|
|
|
|
|
echo <<<HEREDOC
|
|
|
|
|
<!-- Username ---------------------------------- -->
|
|
|
|
|
<label for="username"><strong>Ihr Name oder Pseudonym:</strong></label>
|
|
|
|
|
<input type="text" name="username" maxlength="16" id="username" placeholder="Name" class="text" required="required">
|
|
|
|
|
<br>
|
|
|
|
|
EOT;
|
|
|
|
|
HEREDOC;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function print_userinfo() {
|
|
|
|
@ -57,23 +57,22 @@ function print_description(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function print_topics(){
|
|
|
|
|
global $arrTopic;
|
|
|
|
|
echo <<<HEREDOC
|
|
|
|
|
<!-- Themenfelder ---------------------------------- -->
|
|
|
|
|
<strong>Wählen Sie ein Themenfeld aus:</strong></br>
|
|
|
|
|
<div class="row">
|
|
|
|
|
HEREDOC;
|
|
|
|
|
$first=true;
|
|
|
|
|
foreach ($arrTopic as $keyTopic => $valTopic) {
|
|
|
|
|
$checked = ($first) ? "checked=\"checked\"" : "";
|
|
|
|
|
$first=false;
|
|
|
|
|
|
|
|
|
|
echo '<div class="col-6-md col-6">
|
|
|
|
|
<input type="radio" id="topic'.$keyTopic.'" name="topic" value="'.$keyTopic.'" $checked/>
|
|
|
|
|
<label for="topic$keyTopic">'.$valTopic.'</label>
|
|
|
|
|
</div>';
|
|
|
|
|
};
|
|
|
|
|
echo "</div> <!-- row -->";
|
|
|
|
|
global $arrTopic;
|
|
|
|
|
echo <<<HEREDOC
|
|
|
|
|
<!-- Themenfelder ---------------------------------- -->
|
|
|
|
|
<strong>Wählen Sie ein Themenfeld aus:</strong></br>
|
|
|
|
|
<div class="row">
|
|
|
|
|
HEREDOC;
|
|
|
|
|
$first=true;
|
|
|
|
|
foreach ($arrTopic as $keyTopic => $valTopic) {
|
|
|
|
|
$checked = ($first) ? "checked=\"checked\"" : "";
|
|
|
|
|
$first=false;
|
|
|
|
|
echo '<div class="col-6-md col-6">
|
|
|
|
|
<input type="radio" id="topic'.$keyTopic.'" name="topic" value="'.$keyTopic.'" $checked/>
|
|
|
|
|
<label for="topic$keyTopic">'.$valTopic.'</label>
|
|
|
|
|
</div>';
|
|
|
|
|
};
|
|
|
|
|
echo "</div> <!-- row -->";
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
@ -86,18 +85,13 @@ echo "</div> <!-- row -->";
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<form id="newobjectform" enctype="multipart/form-data" action="#" method="post" >
|
|
|
|
|
|
|
|
|
|
<form id="newobjectform" enctype="multipart/form-data" action="#" method="post" >
|
|
|
|
|
<?php
|
|
|
|
|
print_username();
|
|
|
|
|
if ($boolUserinfo) print_userinfo();
|
|
|
|
|
if ($boolDefect) print_category();
|
|
|
|
|
print_description();
|
|
|
|
|
if ($boolTopics) {
|
|
|
|
|
print_topics();
|
|
|
|
|
} else {
|
|
|
|
|
echo "<input type='hidden' id='topic' name='topic' value='2' />";
|
|
|
|
|
}
|
|
|
|
|
if ($boolTopics) print_topics();
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<!-- Lokalisierung ---------------------------------- -->
|
|
|
|
|