|
@@ -18,7 +18,6 @@
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
*/
|
|
|
|
|
|
-
|
|
|
|
require_once(dirname(dirname(dirname(__FILE__))).'/config.php');
|
|
require_once(dirname(dirname(dirname(__FILE__))).'/config.php');
|
|
require_once(dirname(__FILE__).'/lib.php');
|
|
require_once(dirname(__FILE__).'/lib.php');
|
|
|
|
|
|
@@ -80,6 +79,9 @@ if(!empty($_POST)) {
|
|
$record->peso5 = $_POST["peso"][4]; //
|
|
$record->peso5 = $_POST["peso"][4]; //
|
|
$record->peso6 = $_POST["peso"][5]; //
|
|
$record->peso6 = $_POST["peso"][5]; //
|
|
|
|
|
|
|
|
+ // pares:
|
|
|
|
+ $record->pares = $_POST["pares"];
|
|
|
|
+
|
|
$DB->insert_record('nasatlx_resps', $record, false);
|
|
$DB->insert_record('nasatlx_resps', $record, false);
|
|
echo "OK";
|
|
echo "OK";
|
|
exit;
|
|
exit;
|
|
@@ -117,6 +119,7 @@ var scale = new Array();
|
|
var left = new Array();
|
|
var left = new Array();
|
|
var right = new Array();
|
|
var right = new Array();
|
|
var def = new Array();
|
|
var def = new Array();
|
|
|
|
+var abrv = new Array();
|
|
var NUM_SCALES = 6;
|
|
var NUM_SCALES = 6;
|
|
|
|
|
|
var pairs_reg = '';
|
|
var pairs_reg = '';
|
|
@@ -125,32 +128,39 @@ var pairs_reg = '';
|
|
// ã ã
|
|
// ã ã
|
|
// í Ã
|
|
// í Ã
|
|
// ç ç
|
|
// ç ç
|
|
|
|
+abrv[0] = "DML";
|
|
scale[0] = "Demanda mental";
|
|
scale[0] = "Demanda mental";
|
|
left[0] = "Baixa";
|
|
left[0] = "Baixa";
|
|
right[0] = "Alta";
|
|
right[0] = "Alta";
|
|
def[0] = "Quanto de esforço mental e de percepção as atividades (e.g. pensar, decidir, observar, procurar, etc) demandaram? A tarefa foi fácil ou exigente, simples ou complexa?";
|
|
def[0] = "Quanto de esforço mental e de percepção as atividades (e.g. pensar, decidir, observar, procurar, etc) demandaram? A tarefa foi fácil ou exigente, simples ou complexa?";
|
|
// "Quanto das atividades mental e perceptual foram exigidas (por exemplo: pensar, decidir, calcular, lembrar, observar, procurar, etc)? A tarefa foi fácil ou difÃcil, simples ou complexa, rigorosa ou tolerante?";
|
|
// "Quanto das atividades mental e perceptual foram exigidas (por exemplo: pensar, decidir, calcular, lembrar, observar, procurar, etc)? A tarefa foi fácil ou difÃcil, simples ou complexa, rigorosa ou tolerante?";
|
|
|
|
|
|
|
|
+abrv[1] = "DFA";
|
|
scale[1] = "Demanda fÃsica";
|
|
scale[1] = "Demanda fÃsica";
|
|
left[1] = "Baixa";
|
|
left[1] = "Baixa";
|
|
right[1] = "Alta";
|
|
right[1] = "Alta";
|
|
def[1] = "Quanto esforço fÃsico foi exigido (por exemplo: empurrar, puxar, virar, controlar, ativar, etc)? A tarefa foi fácil ou exigente, morosa ou rápida, leve ou pesada?";
|
|
def[1] = "Quanto esforço fÃsico foi exigido (por exemplo: empurrar, puxar, virar, controlar, ativar, etc)? A tarefa foi fácil ou exigente, morosa ou rápida, leve ou pesada?";
|
|
|
|
|
|
|
|
+abrv[2] = "DTO";
|
|
scale[2] = "Demanda de tempo";
|
|
scale[2] = "Demanda de tempo";
|
|
left[2] = "Baixa";
|
|
left[2] = "Baixa";
|
|
right[2] = "Alta";
|
|
right[2] = "Alta";
|
|
def[2] = "Quanta pressão em relação ao tempo você sentiu no ritmo de execução da tarefa? O ritmo era lento e vagaroso ou rápido e frenético?";
|
|
def[2] = "Quanta pressão em relação ao tempo você sentiu no ritmo de execução da tarefa? O ritmo era lento e vagaroso ou rápido e frenético?";
|
|
|
|
|
|
|
|
+abrv[3] = "DES";
|
|
scale[3] = "Desempenho";
|
|
scale[3] = "Desempenho";
|
|
left[3] = "Boa";
|
|
left[3] = "Boa";
|
|
right[3] = "Ruim";
|
|
right[3] = "Ruim";
|
|
def[3] = "Quão bem sucedido você se considera ao realizar os objetivos da tarefa? Ficou satisfeito com o seu desempenho no cumprimento dessas metas?";
|
|
def[3] = "Quão bem sucedido você se considera ao realizar os objetivos da tarefa? Ficou satisfeito com o seu desempenho no cumprimento dessas metas?";
|
|
|
|
|
|
|
|
+
|
|
|
|
+abrv[4] = "ESF";
|
|
scale[4] = "Esforço";
|
|
scale[4] = "Esforço";
|
|
left[4] = "Baixo";
|
|
left[4] = "Baixo";
|
|
right[4] = "Alto";
|
|
right[4] = "Alto";
|
|
def[4] = "O quão duro você teve de trabalhar o (mental e fisicamente) para alcançar o seu nÃvel de desempenho?";
|
|
def[4] = "O quão duro você teve de trabalhar o (mental e fisicamente) para alcançar o seu nÃvel de desempenho?";
|
|
|
|
|
|
|
|
+abrv[5] = "FRU";
|
|
scale[5] = "Frustração";
|
|
scale[5] = "Frustração";
|
|
left[5] = "Baixa";
|
|
left[5] = "Baixa";
|
|
right[5] = "Alta";
|
|
right[5] = "Alta";
|
|
@@ -310,7 +320,7 @@ function setPairLabels () {
|
|
if (pair_num > 0) {
|
|
if (pair_num > 0) {
|
|
pairs_reg += ', '
|
|
pairs_reg += ', '
|
|
}
|
|
}
|
|
- pairs_reg += '{' + pair1 + ' x ' + pair2 + '}';
|
|
|
|
|
|
+ pairs_reg += '{' + abrv[indexes[0]] + ' x ' + abrv[indexes[1]] + '}';
|
|
|
|
|
|
document.getElementById('pair1').value = pair1;
|
|
document.getElementById('pair1').value = pair1;
|
|
document.getElementById('pair2').value = pair2;
|
|
document.getElementById('pair2').value = pair2;
|
|
@@ -326,7 +336,7 @@ function buttonPair1 () {
|
|
indexes = pair[pair_num].split(" ");
|
|
indexes = pair[pair_num].split(" ");
|
|
results_tally[indexes[0]]++; // register the winning item (just to total amount)
|
|
results_tally[indexes[0]]++; // register the winning item (just to total amount)
|
|
|
|
|
|
- pairs_reg += ' = ' + scale[indexes[0]];
|
|
|
|
|
|
+ pairs_reg += ' = ' + abrv[indexes[0]];
|
|
|
|
|
|
nextPair();
|
|
nextPair();
|
|
return true;
|
|
return true;
|
|
@@ -339,7 +349,7 @@ function buttonPair2 () {
|
|
indexes = pair[pair_num].split(" ");
|
|
indexes = pair[pair_num].split(" ");
|
|
results_tally[indexes[1]]++; // register the winning item (just to total amount)
|
|
results_tally[indexes[1]]++; // register the winning item (just to total amount)
|
|
|
|
|
|
- pairs_reg += ' = ' + scale[indexes[1]];
|
|
|
|
|
|
+ pairs_reg += ' = ' + abrv[indexes[1]];
|
|
|
|
|
|
nextPair();
|
|
nextPair();
|
|
return true;
|
|
return true;
|