diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 1ee455b..bc54012 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ The people responsible for the ESE create a new list of keys by using the page * ### 5. Analyse the results of the evaluation questionnaires -//TODO +Just go to the *analysis.php* site to see the results. ### 6. Files diff --git a/analysis.php b/analysis.php old mode 100644 new mode 100755 diff --git a/css/bootstrap.css b/css/bootstrap.css old mode 100644 new mode 100755 diff --git a/css/ese-logo.png b/css/ese-logo.png old mode 100644 new mode 100755 diff --git a/css/print.css b/css/print.css old mode 100644 new mode 100755 diff --git a/css/style.css b/css/style.css old mode 100644 new mode 100755 diff --git a/index.php b/index.php old mode 100644 new mode 100755 index 3761f61..9091f82 --- a/index.php +++ b/index.php @@ -17,8 +17,9 @@ $error = 0; // Determines if a message box is shown, and what type of message box is shown $keyState = ""; - // load the questionnaire data + // load the questionnaire and patrons data $questionnaire = ReadQuestionnaireFile(STUDENT_QUESTIONNAIRE); + $patrons = ReadPatronsFile(PATRONS); // if the variable is set, the form has been posted to itself and can be validated if (isset($_POST["submit"])) { @@ -69,11 +70,11 @@ Bitte versuch es später nocheinmal oder wende dich an einen der Verantwortlichen."); + CreateMessageBox(MSG_DANGER, "Achtung:", "Deine Evaluation konnte aufgrund eines internen Fehlers leider nicht erfolgreich bearbeitet werden.
Bitte versuch es später nocheinmal oder wende dich an einen der Verantwortlichen."); else CreateKeyMessageBox($keyState); CreateQuestionnaireElement("code", $questionnaire, $_POST); - CreateQuestionnaireElement("tutorName", $questionnaire, $_POST); + CreateQuestionnaireElement("tutorName", $questionnaire, $patrons); CreateQuestionnaireElement("legend", $questionnaire, $_POST); CreateAllQuestionElements($questionnaire, $_POST); CreateQuestionnaireElement("comment", $questionnaire, $_POST); diff --git a/keyControlPanel.php b/keyControlPanel.php old mode 100644 new mode 100755 diff --git a/keyTable.php b/keyTable.php old mode 100644 new mode 100755 diff --git a/libs/chartLib.php b/libs/chartLib.php old mode 100644 new mode 100755 diff --git a/libs/formLib.php b/libs/formLib.php old mode 100644 new mode 100755 index 93f1198..c84a402 --- a/libs/formLib.php +++ b/libs/formLib.php @@ -1,9 +1,9 @@ \n"; echo "\n"; } + + /** + * Echos a new division with a labelled text box and switching row styles. + * + * @param string $label The label that should be displayed for the dropdown menu. + * @param string $id The unique id that is used to identify the dropdownmenu. + * @param string $value The options that should be displayed within the dropdown menu. + * + */ + function CreateDropDownMenu($label, $id, $value) + { + CreateRowHeader(); + echo "
\n"; + echo "

" . $label . "

\n"; + echo "
\n"; + echo "
\n"; + echo " \n"; + echo "
\n"; + echo "\n"; + } ?> \ No newline at end of file diff --git a/libs/keyLib.php b/libs/keyLib.php old mode 100644 new mode 100755 diff --git a/libs/loggingLib.php b/libs/loggingLib.php old mode 100644 new mode 100755 index 81e3bbf..cfd3957 --- a/libs/loggingLib.php +++ b/libs/loggingLib.php @@ -252,7 +252,7 @@ continue; // get the type of the element with the same id as the form element from the questionnaire $type = $questionnaire[$id][0]; - // check if the element is a question on continue with the next one if that is not hte case + // check if the element is a question on continue with the next one if that is not the case if ($type != "Question") continue; // if there is not field for the current element in the question dsta array, create a new diff --git a/libs/questionnaireLib.php b/libs/questionnaireLib.php old mode 100644 new mode 100755 index be7b1e8..0220609 --- a/libs/questionnaireLib.php +++ b/libs/questionnaireLib.php @@ -1,15 +1,16 @@ \ No newline at end of file diff --git a/logs/.gitignore b/logs/.gitignore old mode 100644 new mode 100755 diff --git a/menu.php b/menu.php old mode 100644 new mode 100755 diff --git a/patronGen.php b/patronGen.php old mode 100644 new mode 100755 diff --git a/patronGenTut.php b/patronGenTut.php old mode 100644 new mode 100755 diff --git a/questionnaires/student_questionnaire.txt b/questionnaires/student_questionnaire.txt old mode 100644 new mode 100755 index 79b58ee..a675dbe --- a/questionnaires/student_questionnaire.txt +++ b/questionnaires/student_questionnaire.txt @@ -16,6 +16,7 @@ # Takes the question as a parameter. # Comment = A box for comments (It is assumed there is only one such box) # Takes the label of the comment box as a parameter. +# DropDown = Dropdown menu for the tutor # # If fundamental changes are made (other than changing strings or adding/removing questions) # The files 'student_questionnaire.php' and 'student_analysis' should be checked for validity, @@ -23,14 +24,14 @@ #------------------------------------------------ # -- Header --- -headline; Headline; ESE 2013 +headline; Headline; ESE 2014 # -- personal Code -- # this is important and should stay so the student can identify himself to the system and receive his cup later on code; TextBox; Persönlicher Code: # -- Name of the tutor -- -tutorName; TextBox; Wer war dein Namenspatron? (Nachname) +tutorName; DropDown; Wer war dein Namenspatron?; # -- Legend -- legend; Legend; diff --git a/questionnaires/tutor_questionnaire.txt b/questionnaires/tutor_questionnaire.txt old mode 100644 new mode 100755 diff --git a/tutorAnalysis.php b/tutorAnalysis.php old mode 100644 new mode 100755 diff --git a/tutor_questionnaire.php b/tutor_questionnaire.php old mode 100644 new mode 100755