-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexec.dadosmodelagem.php
55 lines (43 loc) · 1.47 KB
/
exec.dadosmodelagem.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
<?php session_start();
//error_reporting(E_ALL);
//ini_set('display_errors','1');
require_once('classes/experimento.class.php');
require_once('classes/conexao.class.php');
$conexao = new Conexao;
$conn = $conexao->Conectar();
$Experimento = new Experimento();
$Experimento->conn = $conn;
$id = $_REQUEST['id'];
$tab = $_REQUEST['tab'];
$idtipoparticionamento = $_REQUEST['cmboxtipoparticionamento'];
$numpontos = $_REQUEST['edtnumpontos'];
$buffer = $_REQUEST['edtbuffer'];
$tss = $_REQUEST['edttss'];
$numparticoes = $_REQUEST['edtnumparticoes'];
$resolution = $_REQUEST['edtresolution'];
$repetitions = $_REQUEST['edtnumrepetitions'];
$trainpercent = $_REQUEST['edttrainpercent'];
$Experimento->idpartitiontype = $idtipoparticionamento;//integer,
$Experimento->num_partition = $numparticoes;//integer,
$Experimento->num_points = $numpontos ;//integer,
$Experimento->buffer = "'" . $buffer[0] . "'" ;//string
$Experimento->tss = $tss;
$Experimento->resolution = "'" . $resolution[0] . "'";
$Experimento->repetitions = $repetitions;
$Experimento->trainpercent = $trainpercent;
if(!empty($_REQUEST['algoritmo'])){
$result = $Experimento->limparAlgoritmo($id);
}
$box=$_REQUEST['algoritmo'];
while (list ($key,$val) = @each($box)) {
$result = $Experimento->incluirAlgoritmo($id,$val);
}
if ($result = $Experimento->alterar($id))
{
header("Location: cadexperimento.php?op=A&MSGCODIGO=84&id=$id&tab=$tab");
}
else
{
header("Location: cadexperimento.php?op=A&MSGCODIGO=85&id=$id&tab=$tab");
}
?>