Commit d61a0aaf authored by pet's avatar pet

Arquivos organizados

parent e882fb29
<?php
if($_SESSION['login'] == $loginCorreto && $_SESSION['senha'] == $senhaCorreta){
if(isset($_POST["removeTeste"])){
removerTeste(intval($_POST["removeTeste"]));
}
$cont = 1;
$respostas = new DadosPessoa();
$continuaLeitura = numeroDeTestes();
$mediaTestes = array();
for($i=0;$i<20;$i++){
$mediaTestes[$i]=0;
}
while($continuaLeitura){
preencheDados($respostas,$cont);
$string = "<span class='pure-button pure-button-primary' onClick=habilitarInfo(this);>";
$string = $string.$respostas->nome."<br>";
$string = $string."<div class='divs_info' name='info' style='display:none;'>";
$total_testes = 0;
$aux = 1;
foreach ($respostas->listaQuestoes->congruentes as &$value) {
$string = $string."<b>Congruente ".$aux."</b><br>";
for($i=0; $i < 20; $i++){
if($value->lista[$i][0] == "0")
$string = $string."<span style='color:red;'>".$value->lista[$i][1]."</span><br>";
else
$string = $string."<span style='color:green;'>".$value->lista[$i][1]."</span><br>";
$mediaTestes[$i]+=$value->lista[$i][1];
}
$string = $string."Média: ".$value->media."<br>";
$string = $string."Desvio Padrão: ".$value->desvioPadrao."<br><br>";
$aux++;
$total_testes++;
}
$aux = 1;
foreach ($respostas->listaQuestoes->incongruentes as &$value) {
$string = $string."<b>Incongruente ".$aux."</b><br>";
for($i=0; $i < 20; $i++){
if($value->lista[$i][0] == "0")
$string = $string."<span style='color:red;'>".$value->lista[$i][1]."</span><br>";
else
$string = $string."<span style='color:green;'>".$value->lista[$i][1]."</span><br>";
$mediaTestes[$i]+=$value->lista[$i][1];
}
$string = $string."Média: ".$value->media."<br>";
$string = $string."Desvio Padrão: ".$value->desvioPadrao."<br><br>";
$aux++;
$total_testes++;
}
//MEDIA
$media_media = 0;
$string = $string."<b>Média</b><br>";
for($i=0; $i < 20; $i++){
$mediaTestes[$i]/=$total_testes;
$string = $string."<span>". $mediaTestes[$i] ."</span><br>";
$media_media+= $mediaTestes[$i] ;
}
$string = $string."Média: ". $media_media/count($mediaTestes) ."<br>";
$string = $string."Desvio Padrão: ".sd($mediaTestes)."<br><br>";
//
$string = $string."</div></span> ";
$string = $string."<span class='pure-button pure-button-primary' style='color:red;display:inline-block;' onClick=removeTeste(".$cont.")>X</span>";
$string = $string."<br><br>";
echo $string;
$cont++;
$continuaLeitura--;
}
}
?>
<?php
include "sessao.php";
?>
<?php
include "acessarDados.php";
?>
<html>
<head>
<meta charset="utf-8">
<title> Teste stroop </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="pure-min.css">
<link rel="stylesheet" href="style.css">
<script>
function habilitarInfo(obj){
var lista = document.getElementsByClassName("divs_info");
if(obj.childNodes[2].style.display == "initial"){
obj.childNodes[2].style.display = "none";
}
else{
var i = 0;
for(i=0;i<lista.length;i++){
lista[i].style.display="none";
}
obj.childNodes[2].style.display = "initial";
}
}
function removeTeste(id){
document.getElementById("input_removeTeste").value=id;
document.getElementById("form").submit();
}
</script>
</head>
<body>
<!--*******************************************************************************************!-->
<div id="logado" style="display:none;">
<div class="header">
<div class="home-menu pure-menu pure-menu-horizontal pure-menu-fixed" style='background-color:#0078e7;'>
<a class="pure-menu-heading" href="">STROOP</a>
<ul class="pure-menu-list">
<li class="pure-menu-item"><a href="professor.php" class="pure-menu-link">Início</a></li>
<li class="pure-menu-item pure-menu-selected"><a href="" class="pure-menu-link">Gerenciar Testes</a></li>
</ul>
</div>
</div>
</div>
<!--*******************************************************************************************!-->
<form id ="form" class="pure-form pure-form-aligned" method="POST">
<center><p><b>Olá Professor(a)!</b></p> Bem vindo(a) à página de resultados do teste Stroop.<br><Br>
</center>
<fieldset>
<!--*******************************************************************************************!-->
<div id="deslogado">
<label for="login">Login</label>
<input id="login" name="login" type="text" placeholder="Login" class="pure-input-rounded">
<br>
<label for="senha">Senha</label>
<input id="senha" name="senha" type="password" placeholder="Senha" class="pure-input-rounded">
<br><br>
<button type="submit" class="pure-button pure-button-primary" name='botao_submit' value='enviado' onClick="document.getElementById('hidden_1').value='logar'">Logar</button>
</div>
<!--*******************************************************************************************!-->
<input id='input_removeTeste' name='removeTeste' type='hidden' value=''>
</fieldset>
</form>
<center id='grafico'></center>
</body>
</html>
......@@ -5,15 +5,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="pure-min.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="css/pure-min.css">
<link rel="stylesheet" href="css/style.css">
<!--link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:700' rel='stylesheet' type='text/css'!-->
<script>
preTesteLigado = true;
</script>
<script src="jquery-3.0.0.min.js"></script>
<script src="js/jquery-3.0.0.min.js"></script>
</head>
<body>
......@@ -72,8 +72,8 @@
<script src="https://cdn.socket.io/socket.io-1.2.0.js"></script>
<!-- SCRIPT DO PRE-TESTE !--> <script type="text/javascript" src="script_pre_teste.js"></script>
<!-- SCRIPT DO TESTE !--> <script type="text/javascript" src="script.js"></script>
<!-- SCRIPT DO PRE-TESTE !--> <script type="text/javascript" src="js/script_pre_teste.js"></script>
<!-- SCRIPT DO TESTE !--> <script type="text/javascript" src="js/script.js"></script>
</body>
......
......@@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="pure-min.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="css/pure-min.css">
<link rel="stylesheet" href="css/style.css">
<script src="jquery-3.1.1.min.js"></script>
<script src="ionic.min.js"></script>
<script src='plotly-latest.min.js'></script>
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/ionic.min.js"></script>
<script src='js/plotly-latest.min.js'></script>
<script>
......@@ -89,6 +89,5 @@
<br><br>
</body>
<script src="https://cdn.socket.io/socket.io-1.2.0.js"></script>
<script src="professor.js"></script>
<script src="js/professor.js"></script>
</html>
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