123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- <?
- session_start();
- echo "<meta charset=utf8>";
- if ($_SESSION['id'] == '' || $_SESSION['id'] == NULL){
- echo '您尚未登入';
- exit;
- }
- include("connect.php");
- $userid = $_SESSION['name'];
- $sql = "SELECT User_ID,p410 FROM coursepagecount WHERE User_ID = '".$userid."'";
- $result = mysql_query($sql) or die('MySQL query error');
- $row = mysql_fetch_array($result);
- $num = $row[1]+1;
- if($num<10){
- $count = "0".(string)($num);
- }
- else{
- $count = "".(string)($num);
- }
- $sql ="UPDATE coursepagecount SET p410 = '".$num."' WHERE User_ID='".$userid."'";
- $result = mysql_query($sql) or die('MySQL query error');
- mysql_close($link);
- ?>
- <! DOCTYPE HTML>
- <html>
- <head>
- <title>Exam</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
- <META http-equiv="Cache-Control" content="no-cache">
- <META http-equiv="Pragma" content="no-cache">
- <META http-equiv="Expires" content="0">
- <script src="./function.js"></script>
- <script type="text/javascript">
-
- saveRecord("43811<?echo $count?>");
- rotateZ = 0;
- error = 0;
- isStop = false;
- </script>
- <style type="text/css" media="screen">
- * {
- margin: 0;
- padding: 0;
- }
- body {
- -moz-user-select : none;
- -webkit-user-select: none;
- }
- .contentDiv{
- position:relative;
- margin: 0px auto;
- width: 800px;
- height: 720px;
- }
- .defaultCanvas{
- position:absolute;
- top:0px;
- lef:0px;
- display: inline;
- z-index: 1;
- }
- .option{
- float: left;
- width: 20px;
- height: 20px;
- border: 2px solid #cccccc;
- margin-right: 12px;
- margin-bottom: 12px;
- }
- .defaultPage{
- position:absolute;
- display: inline;
- left: 0px;
- top: 0px;
- }
- .defaultFlash{
- position:absolute;
- display: inline;
- left: 110px;
- width: 580px;
- height: 435px;
- z-index: 10;
- }
- .defaultPic{
- position:absolute;
- display: inline;
- left: 0px;
- top: 0px;
- z-index: -10;
- }
- .defaultArrow{
- position:absolute;
- display: inline;
- z-index: -5;
- }
- .defaultCar{
- position:absolute;
- display: inline;
- z-index: 100;
- }
- .defaultLine{
- position:absolute;
- display: inline;
- z-index: 5;
- }
- .defaultStatus{
- position:absolute;
- display: none;
- left: 30px;
- top: 620px;
- z-index: -5;
- }
- .defaultBtn{
- position:absolute;
- display: inline;
- z-index: 10;
- }
- .defaultHideBtn{
- position:absolute;
- display: none;
- z-index: 10;
- }
- #buttonPrev{
- left: 540px;
- top: 620px;
- }
- #buttonNext{
- left: 660px;
- top: 620px;
- }
- .selectItem1{
- position:absolute;
- display: inline;
- left: 0px;
- top: 503px;
- z-index: 10;
- width: 30px;
- height: 30px;
- }
- .selectItem2{
- position:absolute;
- display: inline;
- left: 250px;
- top: 503px;
- z-index: 10;
- width: 30px;
- height: 30px;
- }
- .selectItem3{
- position:absolute;
- display: inline;
- left: 495px;
- top: 503px;
- z-index: 10;
- width: 30px;
- height: 30px;
- }
- .selectItem4{
- position:absolute;
- display: inline;
- left: 495px;
- top: 503px;
- z-index: 10;
- width: 30px;
- height: 30px;
- }
- .picItem{
- position: absolute;
- display: inline;
- z-index: 5;
- }
- .checkbutton{
- position:absolute;
- display: inline;
- top: 395px;
- left: 562px;
- width: 100px;
- z-index: 10;
- }
- </style>
- </head>
- <body>
-
- <div class="contentDiv">
- <div class="defaultPage" id="contentDiv">
- <img class="defaultPic" id="contentPic" src="image/410pq.jpg"/>
- <img class="defaultArrow" id="picA" style="top: 271px; left:293px;" src="image/410arrow.png"/>
- <img class="defaultStatus" id="status" src=""/>
- <img class="picItem" id="pic7" src="image/pic7.png" style="top:580px;left:250px;" onclick="rotateArrow(75,0,15,7)"/>
- <img class="picItem" id="pic9" src="image/pic9.png" style="top:580px;left:350px;" onclick="rotateArrow(75,0,15,9)"/>
- <button class="checkbutton" id="chkButton" onclick="checkAns(410)" style="top:595px;left:450px;" >確認答案</button>
- <img class="defaultHideBtn" id="buttonPrev" src="image/prevButton.jpg" onclick="nextPage(4381923,'409A')"/>
- <img class="defaultHideBtn" id="buttonNext" src="image/nextButton.jpg" onclick="nextPage(4381923,'410A')"/>
- </div>
- </div>
-
- </body>
- </html>
-
|