Commit f61d6ed6 authored by jutatip's avatar jutatip

add README

parent bca08ed0
This diff is collapsed.
printer.png

1.38 KB

This diff is collapsed.
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<?php
$data = array('one','two','three','four','five','six','seven',
'eight','nine','ten' );
$name = $_POST["user"];
$typex = $_POST["submit"];
$timed = $_POST["timespent"];
//1แม่ ก กา
if ($typex=='1') {
$point = 0;
foreach ($data as $key) {
if ($_POST["$key"]=='1') {
if ($key=='two'||$key=='three'||$key=='nine') {
$point =$point+1;
}
}
if ($_POST["$key"]=='2') {
if ($key=='four'||$key=='seven'||$key=='ten') {
$point =$point+1;
}
}
if ($_POST["$key"]=='3') {
if ($key=='one'||$key=='five'||$key=='six'||$key=='eight') {
$point =$point+1;
}
}
}
}
//2แม่ กก
if ($typex=='2') {
$point = 0;
foreach ($data as $key) {
if ($_POST["$key"]=='1') {
if ($key=='three'||$key=='six'||$key=='seven') {
$point =$point+1;
}
}
if ($_POST["$key"]=='2') {
if ($key=='one'||$key=='nine'||$key=='ten') {
$point =$point+1;
}
}
if ($_POST["$key"]=='3') {
if ($key=='four'||$key=='eight') {
$point =$point+1;
}
}
if ($_POST["$key"]=='4') {
if ($key=='two'||$key=='five') {
$point =$point+1;
}
}
}
}
// 3กด
if ($typex=='3') {
$point = 0;
foreach ($data as $key) {
if ($_POST["$key"]=='1') {
if ($key=='one'||$key=='three'||$key=='five') {
$point =$point+1;
}
}
if ($_POST["$key"]=='2') {
if ($key=='two'||$key=='nine') {
$point =$point+1;
}
}
if ($_POST["$key"]=='3') {
if ($key=='four'||$key=='seven'||$key=='eight') {
$point =$point+1;
}
}
if ($_POST["$key"]=='4') {
if ($key=='six'||$key=='ten') {
$point =$point+1;
}
}
}
}
// 4กง 1 4 1 3 3 3 3 2 3 2
if ($typex=='4') {
$point = 0;
foreach ($data as $key) {
if ($_POST["$key"]=='1') {
if ($key=='one'||$key=='three') {
$point =$point+1;
}
}
if ($_POST["$key"]=='2') {
if ($key=='eight'||$key=='ten') {
$point =$point+1;
}
}
if ($_POST["$key"]=='3') {
if ($key=='four'||$key=='five'||$key=='six'||$key=='seven'||$key=='nine') {
$point =$point+1;
}
}
if ($_POST["$key"]=='4') {
if ($key=='two') {
$point =$point+1;
}
}
}
}
// 5กน 4 3 1 3 2 1 3 3 1 4
if ($typex=='5') {
$point = 0;
foreach ($data as $key) {
if ($_POST["$key"]=='1') {
if ($key=='three'||$key=='six'||$key=='nine') {
$point =$point+1;
}
}
if ($_POST["$key"]=='2') {
if ($key=='five') {
$point =$point+1;
}
}
if ($_POST["$key"]=='3') {
if ($key=='two'||$key=='four'||$key=='seven'||$key=='eight') {
$point =$point+1;
}
}
if ($_POST["$key"]=='4') {
if ($key=='one'||$key=='ten') {
$point =$point+1;
}
}
}
}
// 6กบ 1 1 1 1 4 2 3 2 1 3
if ($typex=='6') {
$point = 0;
foreach ($data as $key) {
if ($_POST["$key"]=='1') {
if ($key=='one'||$key=='two'||$key=='three'||$key=='four'||$key=='nine') {
$point =$point+1;
}
}
if ($_POST["$key"]=='2') {
if ($key=='six'||$key=='eight') {
$point =$point+1;
}
}
if ($_POST["$key"]=='3') {
if ($key=='seven'||$key=='ten') {
$point =$point+1;
}
}
if ($_POST["$key"]=='4') {
if ($key=='five') {
$point =$point+1;
}
}
}
}
// 7กม 2 2 3 3 2 3 2 2 3 3
if ($typex=='7') {
$point = 0;
foreach ($data as $key) {
if ($_POST["$key"]=='1') {
}
if ($_POST["$key"]=='2') {
if ($key=='one'||$key=='two'||$key=='five'||$key=='seven'||$key=='eight') {
$point =$point+1;
}
}
if ($_POST["$key"]=='3') {
if ($key=='three'||$key=='four'||$key=='six'||$key=='nine'||$key=='ten') {
$point =$point+1;
}
}
if ($_POST["$key"]=='4') {
}
}
}
// 8เกย 4 4 1 3 4 1 1 2 2 2
if ($typex=='8') {
$point = 0;
foreach ($data as $key) {
if ($_POST["$key"]=='1') {
if ($key=='three'||$key=='six'||$key=='seven') {
$point =$point+1;
}
}
if ($_POST["$key"]=='2') {
if ($key=='eight'||$key=='nine'||$key=='ten') {
$point =$point+1;
}
}
if ($_POST["$key"]=='3') {
if ($key=='four') {
$point =$point+1;
}
}
if ($_POST["$key"]=='4') {
if ($key=='one'||$key=='two'||$key=='five') {
$point =$point+1;
}
}
}
}
// 9เกอว 2 1 3 4 1 2 4 2 3 2
if ($typex=='9') {
$point = 0;
foreach ($data as $key) {
if ($_POST["$key"]=='1') {
if ($key=='two'||$key=='five') {
$point =$point+1;
}
}
if ($_POST["$key"]=='2') {
if ($key=='one'||$key=='six'||$key=='eight'||$key=='ten') {
$point =$point+1;
}
}
if ($_POST["$key"]=='3') {
if ($key=='three'||$key=='nine') {
$point =$point+1;
}
}
if ($_POST["$key"]=='4') {
if ($key=='four'||$key=='seven') {
$point =$point+1;
}
}
}
}
// DB
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "test";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
mysqli_set_charset($conn, "utf8");
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
$sql = "INSERT INTO allsum (t_name, t_point,t_type,t_time)
VALUES ('$name','$point','$typex','$timed')";
if (mysqli_query($conn, $sql)) {
echo "New record created successfully";
} else {
echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}
mysqli_close($conn);
// echo "ได้คะแนนทั้งหมด".$_POST[""];
header("Location:home.php");
?>
</body>
</html>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css">
<link rel="stylesheet" href="https://v40.pingendo.com/assets/4.0.0/default/theme.css" type="text/css"> </head>
<meta charset="utf-8">
<title> แบบทดสอบ แม่ ก กา</title>
<script>
startday = new Date();
clockStart = startday.getTime();
function initStopwatch()
{
var myTime = new Date();
var timeNow = myTime.getTime();
var timeDiff = timeNow - clockStart;
this.diffSecs = timeDiff/1000;
return(this.diffSecs);
}
function getSecs()
{
var mySecs = initStopwatch();
var mySecs1 = ""+mySecs;
mySecs1= mySecs1.substring(0,mySecs1.indexOf(".")) + " วินาที";
document.forms[0].timespent.value = mySecs1
window.setTimeout('getSecs()',1000);
}
</script>
</head>
<body onLoad="window.setTimeout('getSecs()',1)" >
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<div class="py-5" >
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="text-center text-primary display-4">แบบทดสอบแม่ ก กา</h1>
<center>
<form name="INPUT1" method="post"action="sum.php" onsubmit="return validate()" class="my-3 ">
คุณอยู่ในหน้านี้มานาน: <input size=9 name="timespent" value="">
</center>
</div>
</div>
<div class="py-5" >
<div class="container">
<div class="row">
<div class="col-md-11 order-1 order-md-2">
<h4 > 1).คำใดอยู่ในมาตราแม่ ก กา<BR>
<input type="RADIO" name="one" value="1">นับเลข<BR>
<input type="RADIO" name="one" value="2">หิวข้าว<BR>
<input type="RADIO" name="one" value="3">ราคา<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 > 2).เห่า ทะแล คำใดอยู่ในกลุ่มเดียวกับ 2 คำนี้<BR>
<input type="RADIO" name="two" value="1">งาดำ<BR>
<input type="RADIO" name="two" value="2">โรงเรียน<BR>
<input type="RADIO" name="two" value="3">กางเกง<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 > 3).คำใดไม่เข้าพวก<BR>
<input type="RADIO" name="three" value="1">ใจเสาะ<BR>
<input type="RADIO" name="three" value="2">ทอดทิ้ง<BR>
<input type="RADIO" name="three" value="3">วุ่นวาย<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 >4).ข้อใดมีคำที่อยู่ในมาตรา ก กา ทุกคำ<BR>
<input type="RADIO" name="four" value="1">งูกินปลา<BR>
<input type="RADIO" name="four" value="2">ปูตัวใหญ่<BR>
<input type="RADIO" name="four" value="3">ฉันรักแม่<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 > 5).คำในมาตรา ก กา คำใดเป็นชื่ออาหาร<BR>
<input type="RADIO" name="five" value="1">ตะปู<BR>
<input type="RADIO" name="five" value="2">บุหรี่<BR>
<input type="RADIO" name="five" value="3">โรตี<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 > 6).คำใดเขียนถูกต้อง<BR>
<input type="RADIO" name="six" value="1">จรเข้<BR>
<input type="RADIO" name="six" value="2">จอระเข้<BR>
<input type="RADIO" name="six" value="3">จระเข้<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 > 7).คำใดหมายถึงชักช้า<BR>
<input type="RADIO" name="seven" value="1">โยเย<BR>
<input type="RADIO" name="seven" value="2">โอ้เอ้<BR>
<input type="RADIO" name="seven" value="3">โมเม<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 >8).ข้อใดใช้คำว่า พอดี ได้ถูกต้อง<BR>
<input type="RADIO" name="eight" value="1">พ่อรักลูกพอดีกัน<BR>
<input type="RADIO" name="eight" value="2">ฉันใช้เงินจนพอดี<BR>
<input type="RADIO" name="eight" value="3">ฉันสวมเสื้อได้พอดี<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 > 9).พาหนะ อ่านว่าอย่างไร<BR>
<input type="RADIO" name="nine" value="1">พา-หะ-นะ<BR>
<input type="RADIO" name="nine" value="2">พา-หนะ<BR>
<input type="RADIO" name="nine" value="3">พา-นะ<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 >10).น้ำที่พุ่งขึ้นมาจากพื้นดินเรียกว่าอะไร<BR>
<input type="RADIO" name="ten" value="1">น้ำตก<BR>
<input type="RADIO" name="ten" value="2">น้ำพุ<BR>
<input type="RADIO" name="ten" value="3">น้ำตา<BR>
<p class="text-center"><br>
ชื่อผู้ทำข้อสอบ:
<input type="text" name="user"><br>
<button type="submit" name="submit" value="1"class="btn btn-primary ">ตรวจคำตอบ</button>
<a href="javascript:window.print()"><img src="/project/printer.png"></a>
</form>
<script>
function validate() {
if(!validateGroup(document.getElementsByName("one")))
{
alert("ข้อ1 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("two")))
{
alert("ข้อ2 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("three")))
{
alert("ข้อ3 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("four")))
{
alert("ข้อ4 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("five")))
{
alert("ข้อ5 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("six")))
{
alert("ข้อ6 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("seven")))
{
alert("ข้อ7 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("eight")))
{
alert("ข้อ8 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("nine")))
{
alert("ข้อ9 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("ten")))
{
alert("ข้อ10 ยังไม่ตอบ");
return false;
}
return true;
}
function validateGroup(elements) {
for (var i = 0; i < elements.length; i++)
{
if (elements[i].checked) return true;
}
return false;
}
</script>
</body>
</html>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css">
<link rel="stylesheet" href="https://v40.pingendo.com/assets/4.0.0/default/theme.css" type="text/css"> </head>
<meta charset="utf-8">
<title> แบบทดสอบ แม่ ก กา</title>
<script>
startday = new Date();
clockStart = startday.getTime();
function initStopwatch()
{
var myTime = new Date();
var timeNow = myTime.getTime();
var timeDiff = timeNow - clockStart;
this.diffSecs = timeDiff/1000;
return(this.diffSecs);
}
function getSecs()
{
var mySecs = initStopwatch();
var mySecs1 = ""+mySecs;
mySecs1= mySecs1.substring(0,mySecs1.indexOf(".")) + " วินาที";
document.forms[0].timespent.value = mySecs1
window.setTimeout('getSecs()',1000);
}
</script>
</head>
<body onLoad="window.setTimeout('getSecs()',1)" >
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<div class="py-5" >
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="text-center text-primary display-4">แบบทดสอบแม่ กบ</h1>
<center>
<form name="INPUT1" method="post"action="sum.php" onsubmit="return validate()" class="my-3 ">
คุณอยู่ในหน้านี้มานาน: <input size=9 name="timespent" value="">
</center>
</div>
</div>
<div class="py-5" >
<div class="container">
<div class="row">
<div class="col-md-11 order-1 order-md-2">
<h4 > 1).คำใดอยู่ในมาตราตัวสะกดแม่กบ <BR>
<input type="RADIO" name="one" value="1">ทัพพี<BR>
<input type="RADIO" name="one" value="2">ชีวิต<BR>
<input type="RADIO" name="one" value="3">เชือก<BR>
<input type="RADIO" name="one" value="4">เมือง<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 > 2).ข้อใดเขียนคำอ่านได้ถูกต้อง<BR>
<input type="RADIO" name="two" value="1">ลาภ อ่านว่า ลาบ<BR>
<input type="RADIO" name="two" value="2">ยีราฟ อ่านว่า ยี – ร้าบ<BR>
<input type="RADIO" name="two" value="3">ปรากฏ อ่านว่า ปรา – กด<BR>
<input type="RADIO" name="two" value="4">กระดาษ อ่านว่า กระ – ดาด<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 > 3).ข้อใดเป็นตัวสะกดของคำว่า รูปภา.... อ่านว่า รูบ – พาบ<BR>
<input type="RADIO" name="three" value="1"><BR>
<input type="RADIO" name="three" value="2"><BR>
<input type="RADIO" name="three" value="3"><BR>
<input type="RADIO" name="three" value="4"><BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 >4).ข้อใดเขียนตัวสะกดถูกต้อง<BR>
<input type="RADIO" name="four" value="1">ธูป<BR>
<input type="RADIO" name="four" value="2">อาภับ<BR>
<input type="RADIO" name="four" value="3">ลาปยศ<BR>
<input type="RADIO" name="four" value="4">บดเรียน<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 > 5).คำในข้อใดมีตัวสะกดอยู่ในมาตราเดียวกับคำว่า "ทรัพย์"<BR>
<input type="RADIO" name="five" value="1">มด<BR>
<input type="RADIO" name="five" value="2">สะดุด<BR>
<input type="RADIO" name="five" value="3">นายก<BR>
<input type="RADIO" name="five" value="4">กรอบ<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 > 6).“โลภ” มีตัวสะกดอยู่ในมาตราใด<BR>
<input type="RADIO" name="six" value="1">แม่กก<BR>
<input type="RADIO" name="six" value="2">แม่กบ<BR>
<input type="RADIO" name="six" value="3">แม่กง<BR>
<input type="RADIO" name="six" value="4">แม่กด<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 > 7).คำในข้อใดมีตัวสะกดต่างจากคำว่า “ดาบ” <BR>
<input type="RADIO" name="seven" value="1">ขุด<BR>
<input type="RADIO" name="seven" value="2">โดดิ์<BR>
<input type="RADIO" name="seven" value="3">ภาพ<BR>
<input type="RADIO" name="seven" value="4">ประมาท<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 >8).“บาป” มีตัวสะกดอยู่ในมาตราใด<BR>
<input type="RADIO" name="eight" value="1">แม่กก<BR>
<input type="RADIO" name="eight" value="2">แม่กบ<BR>
<input type="RADIO" name="eight" value="3">แม่กง<BR>
<input type="RADIO" name="eight" value="4">แม่กด<BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 > 9).ข้อใดเป็นตัวสะกดของคำว่า “เคาร.....” อ่านว่า เคา - รบ<BR>
<input type="RADIO" name="nine" value="1"><BR>
<input type="RADIO" name="nine" value="2"><BR>
<input type="RADIO" name="nine" value="3"><BR>
<input type="RADIO" name="nine" value="4"><BR>
<p class="container ">----------------------------------------------------------------------------------------------</p>
<h4 >10).ข้อใดเป็นตัวสะกดของคำว่า “สู......” อ่านว่า สูบ<BR>
<input type="RADIO" name="ten" value="1"><BR>
<input type="RADIO" name="ten" value="2"><BR>
<input type="RADIO" name="ten" value="3"><BR>
<input type="RADIO" name="ten" value="4"><BR>
<!-- ////////////// -->
<p class="text-center"><br>
ชื่อผู้ทำข้อสอบ:
<input type="text" name="user"><br>
<button type="submit" name="submit" value="6"class="btn btn-primary ">ตรวจคำตอบ</button>
<a href="javascript:window.print()"><img src="/project/printer.png"></a>
</form>
<script>
function validate() {
if(!validateGroup(document.getElementsByName("one")))
{
alert("ข้อ1 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("two")))
{
alert("ข้อ2 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("three")))
{
alert("ข้อ3 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("four")))
{
alert("ข้อ4 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("five")))
{
alert("ข้อ5 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("six")))
{
alert("ข้อ6 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("seven")))
{
alert("ข้อ7 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("eight")))
{
alert("ข้อ8 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("nine")))
{
alert("ข้อ9 ยังไม่ตอบ");
return false;
}
if(!validateGroup(document.getElementsByName("ten")))
{
alert("ข้อ10 ยังไม่ตอบ");
return false;
}
return true;
}
function validateGroup(elements) {
for (var i = 0; i < elements.length; i++)
{
if (elements[i].checked) return true;
}
return false;
}
</script>
</body>
</html>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
-- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 26, 2018 at 06:49 PM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `test`
--
-- --------------------------------------------------------
--
-- Table structure for table `allsum`
--
CREATE TABLE `allsum` (
`id_n` int(3) NOT NULL,
`t_name` varchar(120) NOT NULL,
`t_point` int(2) NOT NULL,
`t_type` int(2) NOT NULL,
`t_time` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `allsum`
--
INSERT INTO `allsum` (`id_n`, `t_name`, `t_point`, `t_type`, `t_time`) VALUES
(1, 'GG', 2, 1, 30),
(2, 'GG1', 2, 1, 45),
(3, 'GG2', 2, 1, 12),
(4, 'GG3', 1, 1, 15),
(5, 'บี้', 2, 2, 16),
(6, 'บี้', 4, 2, 72),
(7, 'เบ', 2, 3, 35),
(8, 'แอม', 4, 6, 55),
(9, 'bie', 0, 5, 66),
(10, 'amp', 1, 4, 64),
(11, 'กัญ', 2, 7, 15),
(12, 'ธิป', 2, 8, 48),
(13, 'เบบี้', 9, 9, 88),
(14, 'เบ', 9, 9, 45),
(15, 'เบบี้', 10, 8, 49),
(16, 'BBEE', 4, 1, 16),
(17, 'ปัน', 2, 2, 28),
(18, 'เบ', 5, 1, 32),
(21, 'อร', 2, 3, 17),
(22, 'กัญญาพัชร', 3, 3, 58);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `allsum`
--
ALTER TABLE `allsum`
ADD PRIMARY KEY (`id_n`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `allsum`
--
ALTER TABLE `allsum`
MODIFY `id_n` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css">
<link rel="stylesheet" href="https://v40.pingendo.com/assets/4.0.0/default/theme.css" type="text/css"> </head>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<body >
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<style>
html,body,h1,h2,h3,h4 {font-family:"Lato", sans-serif}
.mySlides {display:none}
.w3-tag, .fa {cursor:pointer}
.w3-tag {height:15px;width:15px;padding:0;margin-top:6px}
</style>
<div class="w3-top">
<div class="w3-row w3-large w3-light-grey">
<div class="w3-col s3 w3-amber">
<a class=" w3-padding w3-block w3-center">เมนู</a>
</div>
<div class="w3-col s3">
<a href="home.php" class="w3-button w3-block w3-gray">หน้าหลัก</a>
</div>
<div class="w3-col s3">
<a href="video.php" class="w3-button w3-block w3-gray"> สื่อการสอนรูปแบบวิดีโอ</a>
</div>
<div class="w3-col s3">
<a href="showpoint.php" class="w3-button w3-block w3-gray"> ตารางผลทดสอบ</a>
</div>
</div>
</div>
<!-- Card -->
<div class="py-5">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-4">
<img class="img-fluid d-block w-100 mb-3 rounded" src="http://thaigoodview.com/files/u101335/pp.jpg" >
<p class="text-center">แบบทดสอบ มาตราแม่ ก กา <br><br>
<a href="t1.php" class="btn btn-primary ">ทำแบบทดสอบ</a>
</div>
<div class="col-md-4">
<img class="img-fluid d-block w-100 mb-3 rounded" src="http://thaigoodview.com/files/u101335/Untitled-5.jpg">
<p class="text-center">แบบทดสอบ มาตราแม่ กก <br><br>
<a href="t2.php" class="btn btn-primary ">ทำแบบทดสอบ</a>
</div>
<div class="col-md-4">
<img class="img-fluid d-block w-100 mb-3 rounded" src="http://thaigoodview.com/files/u101335/ll.jpg">
<p class="text-center">แบบทดสอบ มาตราแม่ กด <br><br>
<a href="t3.php" class="btn btn-primary ">ทำแบบทดสอบ</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Card -->
<div class="py-5">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-4">
<img class="img-fluid d-block w-100 mb-3 rounded" src="http://thaigoodview.com/files/u101335/a.jpg">
<p class="text-center">แบบทดสอบ มาตราแม่ กง <br><br>
<a href="t4.php" class="btn btn-primary ">ทำแบบทดสอบ</a>
</div>
<div class="col-md-4">
<img class="img-fluid d-block w-100 mb-3 rounded" src="http://thaigoodview.com/files/u101335/s.jpg">
<p class="text-center">แบบทดสอบ มาตราแม่ กน <br><br>
<a href="t5.php" class="btn btn-primary ">ทำแบบทดสอบ</a>
</div>
<div class="col-md-4">
<img class="img-fluid d-block w-100 mb-3 rounded" src="http://thaigoodview.com/files/u101335/d.jpg" >
<p class="text-center">แบบทดสอบ มาตราแม่ กบ <br><br>
<a href="t6.php" class="btn btn-primary ">ทำแบบทดสอบ</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Card -->
<div class="py-5">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-4">
<img class="img-fluid d-block w-100 mb-3 rounded" src="http://thaigoodview.com/files/u101335/dfdf_0.jpg" >
<p class="text-center">แบบทดสอบ มาตราแม่ กม <br><br>
<a href="t7.php" class="btn btn-primary ">ทำแบบทดสอบ</a>
</div>
<div class="col-md-4">
<img class="img-fluid d-block w-100 mb-3 rounded" src="http://thaigoodview.com/files/u101335/j.jpg">
<p class="text-center">แบบทดสอบ มาตราแม่ เกย <br><br>
<a href="t8.php" class="btn btn-primary ">ทำแบบทดสอบ</a>
</div>
<div class="col-md-4">
<img class="img-fluid d-block w-100 mb-3 rounded" src="http://thaigoodview.com/files/u101335/p.jpg">
<p class="text-center">แบบทดสอบ มาตราแม่ เกอว <br><br>
<a href="t9.php" class="btn btn-primary ">ทำแบบทดสอบ</a>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</HTML>
<!DOCTYPE html>
<html>
<title>W3.CSS Template</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
html,body,h1,h2,h3,h4 {font-family:"Lato", sans-serif}
.mySlides {display:none}
.w3-tag, .fa {cursor:pointer}
.w3-tag {height:15px;width:15px;padding:0;margin-top:6px}
</style>
<body>
<!-- Links (sit on top) -->
<div class="w3-top">
<div class="w3-row w3-large w3-light-grey">
<div class="w3-col s3 w3-amber">
<a class=" w3-padding w3-block w3-center">เมนู</a>
</div>
<div class="w3-col s3">
<a href="home.php" class="w3-button w3-block w3-gray">หน้าหลัก</a>
</div>
<div class="w3-col s3">
<a href="testpro.php" class="w3-button w3-block w3-gray">แบบทดสอบ</a>
</div>
<div class="w3-col s3">
<a href="showpoint.php" class="w3-button w3-block w3-gray"> ตารางผลทดสอบ</a>
</div>
</div>
</div>
<!-- Content -->
<div class="w3-content" style="max-width:1100px;margin-top:80px;margin-bottom:80px">
<div class="w3-panel">
<h5><b> สื่อการสอนรูปแบบวิดีโอ</b></h5>
</div>
<!-- Slideshow -->
<div class="w3-container">
<div class="w3-display-container mySlides w3-center">
<video width="1000" height="500" controls>
<source src="ทบทวนมาตราตัวสะกด ตอนที่ 1 - สื่อการเรียนการสอน ภาษาไทย ป.3.mp4" type="video/mp4">
</video>
</div>
<div class="w3-display-container mySlides w3-center">
<video width="1000" height="500" controls>
<source src="ทบทวนมาตราตัวสะกด ตอนที่ 2 - สื่อการเรียนการสอน ภาษาไทย ป.3.mp4" type="video/mp4">
</video>
</div>
</div>
<!-- Slideshow next/previous buttons -->
<div class="w3-container w3-dark-grey w3-padding w3-xlarge">
<div class="w3-left" onclick="plusDivs(-1)"><i class="fa fa-arrow-circle-left w3-hover-text-teal"></i></div>
<div class="w3-right" onclick="plusDivs(1)"><i class="fa fa-arrow-circle-right w3-hover-text-teal"></i></div>
<div class="w3-center">
<span class="w3-tag demodots w3-border w3-transparent w3-hover-white" onclick="currentDiv(1)"></span>
<span class="w3-tag demodots w3-border w3-transparent w3-hover-white" onclick="currentDiv(2)"></span>
</div>
</div>
</div>
<!-- Grid -->
<script>
// Slideshow
var slideIndex = 1;
showDivs(slideIndex);
function plusDivs(n) {
showDivs(slideIndex += n);
}
function currentDiv(n) {
showDivs(slideIndex = n);
}
function showDivs(n) {
var i;
var x = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("demodots");
if (n > x.length) {slideIndex = 1}
if (n < 1) {slideIndex = x.length} ;
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" w3-white", "");
}
x[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " w3-white";
}
</script>
</body>
</html>
กก.jpg

63.9 KB

กง.jpg

68.8 KB

กด.jpg

65.7 KB

กน.jpg

63.2 KB

กบ.jpg

50.8 KB

กม.jpg

62.6 KB

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment