-
Notifications
You must be signed in to change notification settings - Fork 0
/
pause.php
72 lines (66 loc) · 1.99 KB
/
pause.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
// 停止ボタンを押したら表示される画面
// TODO: 何事もなかったかのように再開する機能
include("included/session_start.php");
$last_php_name = $_POST["last_php_name"];
switch ($last_php_name) {
case "rest.php":
if ($_SESSION["day"]==0) {
$last_php_name = "init_setting.php";
} else {
$last_php_name = "ready.php";
}
break;
case "fixation.php":
$last_php_name = "ready.php";
break;
case "text_evaluation.php":
case "evaluation.php":
$_SESSION["mov_idx"]--;
$last_php_name = "ready.php";
break;
}
if ($_SESSION["day"]==0) {
$explain_php_name = "text_explain.php";
} else {
$explain_php_name = "movie_explain.php";
}
if ($last_php_name=="init_setting.php") {
$explain_php_name = "init_setting.php";
} elseif ($last_php_name=="finish.php") {
$explain_php_name = "logout.php";
}
?>
<?php include("included/declaration.php"); ?>
<head>
<?php include("included/head.php"); ?>
<style>
#target {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
font-size: 50px;
width: 1000px;
}
</style>
</head>
<body>
<div class="text-center" id="target">
<h1>実験者にお声がけください。</h1></br></br>
<h4>被験者氏名: <?php echo $_SESSION["code"] ?> 様</h4>
<div class="d-flex justify-content-evenly">
<form action="<?php echo $last_php_name ?>">
<input type="submit" class="btn btn-primary" value="実験再開">
</form>
<form action="logout.php">
<input type="submit" class="btn btn-primary" value="ログアウト">
</form>
<form action="<?php echo $explain_php_name ?>">
<input type="submit" class="btn btn-primary" value="説明画面">
</form>
</div>
</div>
</body>
</html>
<?php include("included/js.php"); ?>