예제 #1
0
<?php

/**
 * /style/default/frameset.php  -- unsere Startseite
 *
 * Copyright (c) 2003 Team krausi,sepp,stefan  
 *
 * Licensed under the GNU GPL. For full terms see the file COPYING. 
 *
 */
$noframe = GetMsg("NOFRAME");
$here = GetMsg("here");
echo <<<EOT
<html>
<head>
<meta name="author" content="krausi">
<title>QUIZ</title>
</head>
<frameset rows="*,357,*" border="0">
 <frame src="randoben.php?style={$style}" scrolling="no">
        <frameset cols="*,30,660,30,*" border="0">
                  <frame src="seite.php?style={$style}" scrolling="no">
                  <frame src="randl.php?style={$style}" scrolling="no">
                         <frameset rows="30,*,30" border="0">
                                   <frame src="rando.php?style={$style}" scrolling="no">
                                   <frame src="start.php?style={$style}" name="mainframe" border="1">
                                   <frame src="randu.php?style={$style}" scrolling="no">
                         </frameset>
                  <frame src="randr.php?style={$style}" scrolling="no">
                  <frame src="seite.php?style={$style}" scrolling="no">
        </frameset>
예제 #2
0
$CORRECTANSWER = GetMsg("CORRECTANSWER");
$ISCORRECT = GetMsg("ISCORRECT");
$FRAGE = GetMsg("QUESTION", $NUMMER);
$MFRAGE = $MCHOICE->get_question();
if (!$CORRECT) {
    $correctanswers = array();
    for ($v = 0; $v < count($mcs); ++$v) {
        if ($mcs[$v]->correct()) {
            $correctanswers[] = $mcs[$v]->get_text();
        }
    }
    $RIGHTANSWER = implode($correctanswers, "<br />");
}
$MCTEXT = implode($art, "<br />\n");
if (strlen($MCTEXT) == 0) {
    $MCTEXT = GetMsg("NOANSWER");
}
echo <<<EOT

\t\t\t\t\t\t\t<table cellpadding="0" cellspacing="0">
                  <tr>
                      <td width="137" height="27" class="kasten" style="background-image:url(style/{$style}/hggif/hgti.gif); background-repeat:no-repeat">
\t\t\t\t\t\t\t\t        <div class="imkasten">{$FRAGE}</div>
            \t\t\t    </td>  
                                             
                       <td width="27" height="27">&nbsp;</td>
                       
                       <td height="*" rowspan="2">
                              {$MFRAGE}
                       </td>
                   </tr>                   
예제 #3
0
<?php

// $richtige $falsche $anzahl
$QCOUNT = GetMsg("QCOUNT");
$RCOUNT = GetMsg("RCOUNT");
$FCOUNT = GetMsg("FCOUNT");
$pr = number_format($richtige * 100 / $anzahl, 2);
$pf = number_format($falsche * 100 / $anzahl, 2);
$rmsg = GetMsg("RMRESULT", $pr);
$fmsg = GetMsg("FMRESULT", $pf);
echo <<<EOT
\t\t\t\t\t\t<br />
\t\t\t\t\t\t<table cellpadding="0" cellspacing="0">
                    <tr>                            

                      <td width="137" height="27" class="kasten" style="background-image:url(style/{$style}/hggif/hgti.gif); background-repeat:no-repeat">
\t\t\t\t\t\t\t\t        <div class="imkasten">{$QCOUNT}</div>
            \t\t\t    </td>                                                                              
                            
                           <td width="27" height="27">&nbsp;</td>
                            <td height="*">
                              <div style="text-align:center; font-weight:bold;">
                              {$anzahl}
                              </div>
                           </td>
                    </tr>
                    
                    <tr><td colspan="3">&nbsp;</td></tr>
\t\t\t\t\t\t
                    <tr>                            
예제 #4
0
 * Date: Don Jun 26 14:40:52 CEST 2003
 */
/* 
	
	Sie ist über 2 Parameter beinflussbar.

	$withstylemenu -- wenn wahr, dann Styleauswahl anzeigen
	
	$startaction -- der Name der nächsten Seite (bei Enter)
						 default ist quizmenu.php
*/
require_once "./include/optional.php";
remove_broken_sessions();
$welcome = GetMsg("WELCOME");
$enter = GetMsg("ENTER");
$stylechose = GetMsg("STYLECHOSE");
if ($withstylemenu) {
    $stylemenu = stylemenu();
}
$start = "";
if ($startaction) {
    $start = $startaction;
} else {
    $start = "quizmenu.php";
}
echo <<<EOT
<html>
<head>
<meta name="author" content="krausi,basti,stefan">
<meta name="GENERATOR" content="ccls">
<title></title>
예제 #5
0
<?php

$quiz = GetMsg("QUIZTITLE");
echo <<<EOT

<html>
<head>
<meta name="author" content="krausi">
<style type="text/css">
{$css['csso']}
</style>
</head>
<body topmargin="6" bgcolor="{$colors['bg2']}">
<center>{$quiz}</center>
</body>
</html>

EOT
;
예제 #6
0
<?php

$START = GetMsg("START");
$AGAIN = GetMsg("AGAIN");
$CLOSER = GetMsg("CLOSER");
$MSTART = GetMsg("MSTART");
$MAGAIN = GetMsg("MAGAIN");
$MCLOSER = GetMsg("MCLOSER");
echo <<<EOT
<html>
<head>
<meta name="author" content="krausi,basti,stefan">
<meta name="GENERATOR" content="ccls">
<title></title>
<style type="text/css">
{$css['cssmain']}
</style>
</head>
<body background ="style/{$style}/hggif/hgmain.gif" text="#000000" bgcolor="{$colors['bg1']}" marginwidth="24" marginheight="24" topmargin="24" leftmargin="24">
<center>
<br>
<table border="0" cellpadding="0" cellspacing="0">
     <colgroup>
        <col width="10">
        <col width="*">
        <col width="10">
     </colgroup>
    <tr>
      <td height="10" background="style/{$style}/hggif/trol.gif"></td>
      <td height="10" background="style/{$style}/hggif/tro.gif"></td>
      <td height="10" background="style/{$style}/hggif/tror.gif"></td>
예제 #7
0
<?php

/**
 * style/default/question.php  -- zeigt Frage an
 *
 * Copyright (c) 2003 Team krausi,sepp,stefan  
 *
 * Licensed under the GNU GPL. For full terms see the file COPYING. 
 *
 * Date:Fre Jun 27 13:09:18 CEST 2003
 *
 */
$END = GetMsg("ENDSITE");
echo <<<EOT
\t  <br />
\t  <div align="center">
\t  <table cellpadding="0" cellspacing="0">
\t  <tr>
\t  <td width="137" height="27" class="kasten" style="background-image:url(style/{$style}/hggif/hgtit.gif); background-repeat:no-repeat">
\t\t\t<div class="imkasten">
\t\t\t<a href="end.php?style={$style}">{$END}</a>
\t\t\t</div>
      </td>  
     </tr></table>
     </div>
     
EOT;
?>

예제 #8
0
    $correctanswers[$mso[$vin]->position() - 1] = $mso[$vin]->get_text();
}
ksort($correctanswers);
$RIGHTANSWER = implode($correctanswers, "<br />");
$art = array();
for ($vin = 0; $vin < count($mso); ++$vin) {
    $art[$kinputs[$vin] - 1] = $correctanswers[$kinputs[$vin] - 1];
}
ksort($art);
$CORRECT = $MSORT->correct();
$RIGHTANSWER;
$MCTEXT = implode($art, "<br />\n");
$YOURANSWER = GetMsg("YOURANSWER");
$CORRECTANSWER = GetMsg("CORRECTANSWER");
$ISCORRECT = GetMsg("ISCORRECT");
$FRAGE = GetMsg("QUESTION", $NUMMER);
$MFRAGE = $MSORT->get_question();
echo <<<EOT

\t\t\t<table cellpadding="0" cellspacing="0">
                          <tr>                            
                      <td width="137" height="27" class="kasten" style="background-image:url(style/{$style}/hggif/hgti.gif); background-repeat:no-repeat">
\t\t\t\t\t\t\t\t        <div class="imkasten">{$FRAGE}</div>
            \t\t\t    </td>                            
                            
                           <td width="27" height="27">&nbsp;</td>
                            <td height="*" rowspan="2">
                              {$MFRAGE}
                           </td>
                          </tr>
 
예제 #9
0
function EchoMsg($key, $var1 = "", $var2 = "")
{
    echo GetMsg($key, $var1, $var2);
}
예제 #10
0
        $cdate = GetMsg("CREATED", $quiz->get_cdate());
        echo "<tr><td>{$cdate}</td></tr>";
    }
    if ($witheditor && count($quiz->get_editors())) {
        echo "<tr><td><table>";
        echo "<tr><td colspan=\"2\">", GetMsg("EDITORS"), "</td></tr>\n";
        foreach ($quiz->get_editors() as $editor) {
            echo "<tr>";
            echo "<td>", $editor->get_name(), "</td>";
            echo "<td>", $editor->get_email(), "</td>";
            echo "<tr>";
        }
        echo "</table></td></tr>";
    }
    if ($withlanguage && $quiz->get_language()) {
        $cdate = GetMsg("LANGUAGE", GetLanguage($quiz->get_language()));
        echo "<tr><td>{$cdate}</td></tr>";
    }
    // end formattabelle
    echo "</table></div>";
}
/*
    echo "<tr><td><pre>";
    print_r( $qf );
    echo "</pre></td></tr>";
*/
echo <<<EOT

      </td>
      <td background="style/{$style}/hggif/trrr.gif"></td>
    </tr>
예제 #11
0
                $MSORT = $qentries[$z];
                include "./style/{$style}/sortresult.php";
            }
            if ($qentries[$z]->get_typ() != "test") {
                if ($qentries[$z]->correct()) {
                    ++$richtige;
                } else {
                    ++$falsche;
                }
            }
        }
    }
    if ($testfragen == 1) {
        $results = $sesobj->get_results();
        $TEXT = "";
        $TESTRESULT = GetMsg("TESTRESULT", $punktsumme, $sesobj->get_pointsum());
        for ($z = 0; $z < count($results); ++$z) {
            if ($punktsumme >= $results[$z]->get_min() && $punktsumme <= $results[$z]->get_max()) {
                $TEXT = $results[$z]->get_text();
                break;
            }
        }
        include "./style/{$style}/testresult.php";
    }
    if ($sesobj->countentries()) {
        $anzahl = $sesobj->countentries();
        include "./style/{$style}/mainresult.php";
    }
    include "./style/{$style}/endsubmit.php";
    $shelf->destroy();
}
예제 #12
0
<?php

/**
 * style/default/question.php  -- zeigt Frage an
 *
 * Copyright (c) 2003 Team krausi,sepp,stefan  
 *
 * Licensed under the GNU GPL. For full terms see the file COPYING. 
 *
 * Date:Fre Jun 27 13:09:18 CEST 2003
 *
 */
$FRAGE = GetMsg("QUESTION", $fi + 1);
echo <<<EOT
     <table cellpadding="0" cellspacing"0">
        <tr>
           
                      <td width="137" height="27" class="kasten" style="background-image:url(style/{$style}/hggif/hgti.gif); background-repeat:no-repeat">
\t\t\t\t\t\t\t\t        <div class="imkasten">{$FRAGE}</div>
            \t\t\t    </td>             
                   
           
           <td width="27">&nbsp;</td> 
           <td rowspan="2">{$QUESTION}</td>
        </tr>
        
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>