示例#1
0
									<?php 
echo round($use * 50 / $qq, 2);
?>
                                </span>
                            </td>
						</tr>
						<!--****************************************************-->
						<!--***************  について   **************************-->
						<!--****************************************************-->
						<!--<tr>
                        	<? $use = get_usage('について','Intermediate','clickchoice');
								$class = 'について';
								$diff = 'Intermediate';
								$q = '20';
								$use = get_usage($class,$diff,'clickchoice');
								$qq = count_Available_Clickchoice_Questions($class,$diff);
								$rq = '';
							?>
							<td class="text-center">
                                <a href="http://www.jpdrills.com/grammar-practice/clickchoice.php?class=について&diff=Intermediate&q=5" title="について Japanese Grammar Practice"  itemprop="url">
                                    <button type="button" class="btn btn-link btn-block btn-drill">
                                       <b><span itemprop="about"><span itemprop="name">について</span></span></b>
                                    </button>
                                </a>
                            </td>
							<td class="small text-center" data-value="4">
								<span itemprop="audience" itemscope itemtype="http://schema.org/EducationalAudience">
									<abbr title="After Minna no Nihongo"  itemprop="audienceType" >
										<span class="drill-jlpt">N2</span>
                                    </abbr>
                                </span>
示例#2
0
        increment_usage($category, $difficulty, $drill_type);
        error_log("no_bot");
    }
    //Prepare get variables for db table names (needs prep because systems developed separately and integrated. Needs to be reconciled eventually
    $classification = isset($_GET['class']) ? $_GET['class'] : 'Nouns';
    $difficulty = isset($_GET['diff']) ? $_GET['diff'] : 'Ultra-Beginner';
    $ttlQ = isset($_GET['q']) ? $_GET['q'] : 5;
    $repeatStr = "?class=" . $_GET['class'] . "&diff=" . $_GET['diff'] . "&q=" . $_GET['q'];
    $quizInfo = getClickChoiceQuizArray($ttlQ, $classification, $difficulty);
    //var_dump($quizInfo[0]); //Has clickchoice_ID
    $quizQuestions = $classification == 'Kanji' || $classification == 'JLPT N5 Vocabulary' ? clickChoiceInfoToQuestionsKanji($quizInfo) : clickChoiceInfoToQuestions($quizInfo);
    //quizQuestions[#]['question'] quizQuestions[#]['answer']
    $ttlQ = count($quizQuestions);
    $directions = $classification == 'Kanji' ? 'Click the correct reading for the underlined Kanji.' : 'Click the correct choice in each sentence, then check your answers.';
    $jlpt = $difficulty == 'Ultra-Beginner1' || $difficulty == 'Ultra-Beginner' ? 'JLPT N5' : ($difficulty == 'Beginner' ? 'JLPT N4' : ($difficulty == 'Pre-Intermediate' ? 'JLPT N3' : ($difficulty == 'Intermediate' ? 'JLPT N2' : ($difficuly == 'Advanced' ? 'JLPT N1' : ''))));
    $questions_available = count_Available_Clickchoice_Questions($classification, $difficulty);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0"><!-- Super important! Tells googlebot that this site is responsive!-->
	<meta name="robots" content="NOODP">
	<title><?php 
echo $classification;
?>
 Japanese Quiz</title>
	<meta name="description" content="<?php 
echo $classification;
?>