'.Global_07.'';
else getTopQuestions($questions);
break;
}
case 'showBar':{ // als Liniendiagramm anzeigen
// Überbrüfung / Wertzuweisung
$value=""; if($_GET['value'])$value=strval($_GET['value']);
if(!ctype_alpha($value)) unset($value);
$questions=0; $questions=getQuestions($t_id) ;
$questions=getQuestionNames( $questions);
if(count($questions)==0)echo '
'.Global_07."
";
else {
if($value=='topQuestions'){
$value=getTopQuestionValues($questions);
}
if($value=='topTen') $value=getTopTenValues($questions);
if($value=='flopTen') $value=getFlopTenValues($questions);
for ($i=0;$i'.Global_07.'';
else {
if($value=='topQuestions') $value=getTopQuestionValues($questions);
if($value=='topTen') $value=getTopTenValues($questions);
if($value=='flopTen') $value=getFlopTenValues($questions);
for ($i=0;$i'.Global_07.'';
else showPie($value);
break;
}
case 'topTen': { // die besten 10 antworten
$questions=0;$questions=getQuestions($t_id);
if(count($questions)==0)echo ''.Global_07."
";
else {
$topics->setTopicID($t_id);
$topics->setTopic($t_id);
$Topic =$topics->getTopicName();
echo "
".Statistic_01." ".stripslashes($Topic)."
";
getTopTenCorrect($questions);
}
break;
}
case 'flopTen':{ // die 10 schlechtest beantworteten Fragen
$questions=0;$questions=getQuestions($t_id);
if(count($questions)==0)echo ''.Global_07."
";
else{
$topics->setTopicID($t_id);
$topics->setTopic($t_id);
$Topic =$topics->getTopicName();
echo "
".Statistic_02." ".stripslashes($Topic)."
";
getFlopTenCorrects($questions);
}
break;
}
case 'sortByTopic': { // Fragen nach Thema sortieren
$topics->getTopic();
$topicarray=$topics->getTopicArray();
$number=$qu->getNumberOfQuestions($topicarray);
$inactive=$qu->getNumberOfInactiveQuestions($topicarray); //muss noch erstellt werden
$lp=$qu->getLearnpathCount($topicarray);
$topics->showTopicTableStatistic($number,$lp,$inactive);
break;
}
case 'getStatisticQuestions': { // Fragen in Tabelle anzeigen
$topics->setTopicID($t_id);
$topics->setTopic($t_id);
$Topic =$topics->getTopicName();
echo "
".Statistic_03." ".stripslashes($Topic)."
";
$qu->setTopic($t_id);
$ok=$qu->setStatisticQuestions();
if($ok==1)$qu->showStatisticQuestionTable();
break;
}
case 'changeActive':{ // Frage deaktivieren / aktivieren
// Überbrüfung / Wertzuweisung
$q_id=0; if($_GET['q_id'])$q_id=abs(intval($_GET['q_id']));
$qu->setID($q_id);
$qu->changeActive();
$t_id=$_GET['t_id'];
$topics->setTopicID($t_id);
$topics->setTopic($t_id);
$Topic =$topics->getTopicName();
echo "
".Statistic_03." ".stripslashes($Topic)."
";
$qu->setTopic($t_id);
$ok=$qu->setStatisticQuestions();
if($ok==1)$qu->showStatisticQuestionTable();
break;
}
case 'delQuestion':{ // Frage löschen
// Überbrüfung / Wertzuweisung
$q_id=0; if($_GET['q_id'])$q_id=abs(intval($_GET['q_id']));
$topic_id=$qu->searchTopic($q_id);
$qu->delQuestion($q_id);
$answer->delAnswers ($q_id);
echo "";
break;
}
case 'userInfo':{
getUserInfo();
break;
}
case 'showStatisticTest':{
// Überbrüfung / Wertzuweisung
$t_id=0; if($_GET['t_id'])$t_id=abs(intval($_GET['t_id']));
getStatisticTest($t_id);
break;
}
}
}
else echo ''.Global_01.'
';