Sorgenti per FAD
git-svn-id: svn://10.65.10.50/trunk@9787 c028cbd2-c16b-5b4b-a496-9718f37d4682
20
corsi/admin/admin.php
Executable file
@ -0,0 +1,20 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Admin</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table width="100%" height="100%" border="0"><tr>
|
||||
<td valign="middle" align="center" class="grande">Gestione corsi</font></td></tr></table>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
93
corsi/admin/assegna.php
Executable file
@ -0,0 +1,93 @@
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
if (isset ($aggiorna))
|
||||
{
|
||||
$criteri = "SELECT * FROM $tbl_utenti WHERE id = $utente";
|
||||
$result = mysql_query($criteri, $db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
if ($myrow[idcorso] == 0)
|
||||
{
|
||||
$sql = "UPDATE $tbl_utenti SET idcorso = $corso WHERE id = $utente";
|
||||
//echo $sql;
|
||||
$ins = mysql_query($sql,$db);
|
||||
if ($ins)
|
||||
echo "<br><br><p class=success>Aggiornamento effettutato con successo!</p><br><br>";
|
||||
else
|
||||
echo "<br><br><p class=error>Aggiornamento non effettutato!</p><br><br>";
|
||||
}
|
||||
else
|
||||
echo "<br><br><p class=error>L'utente é giá assegnato ad un corso!</p><br><br>";
|
||||
}
|
||||
|
||||
echo "<form name=assegna action=assegna.php method=get>";
|
||||
echo "<table border=0 align=center>";
|
||||
echo "<tr><th>Utente</td></tr>";
|
||||
|
||||
// SELECT UTENTI
|
||||
$criteri = "SELECT * FROM $tbl_utenti ORDER BY cognome, nome";
|
||||
$result = mysql_query($criteri, $db);
|
||||
if ($myrow = mysql_fetch_array($result))
|
||||
{
|
||||
echo "<tr><td align=center><select name=utente>";
|
||||
//echo "<option></option>";
|
||||
do
|
||||
{
|
||||
$font = "";
|
||||
if ($myrow[idcorso] != 0) $font = "class=rosso";
|
||||
|
||||
$nominativo = $myrow["cognome"]." ".$myrow["nome"];
|
||||
if (isset ($utente) && $myrow[id] == $utente)
|
||||
echo "<option value=$myrow[id] selected $font>$nominativo</option>";
|
||||
else
|
||||
echo "<option value=$myrow[id] $font>$nominativo</option>";
|
||||
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
echo "</select></td></tr>";
|
||||
}
|
||||
else
|
||||
echo "<tr><td><p class=error>Nessun Utente trovato!</p></td></tr>";
|
||||
|
||||
|
||||
echo "<tr><td><br></td></tr><tr><th>Corso</td></tr>";
|
||||
// SELECT CORSI
|
||||
$criteri = "SELECT * FROM $tbl_corsi ORDER BY nome";
|
||||
$result = mysql_query($criteri, $db);
|
||||
if ($myrow = mysql_fetch_array($result))
|
||||
{
|
||||
echo "<tr><td align=center><select name=corso>";
|
||||
//echo "<option></option>";
|
||||
do
|
||||
{
|
||||
if (isset ($corso) && $myrow[id] == $corso)
|
||||
echo "<option value=$myrow[id] selected>$myrow[nome]</option>";
|
||||
else
|
||||
echo "<option value=$myrow[id]>$myrow[nome]</option>";
|
||||
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
echo "</select></td></tr>";
|
||||
}
|
||||
else
|
||||
echo "<tr><td><p class=error>Nessun Corso trovato!</p></td></tr>";
|
||||
|
||||
echo "<tr><td><br></td></tr><tr><td align=center><input type=submit name=aggiorna value=Assegna class=bottoni></td></tr>";
|
||||
|
||||
echo "</table></form>";
|
||||
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
95
corsi/admin/cestino/Copia di prove.php
Executable file
@ -0,0 +1,95 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Corsi</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
echo "<table border=0 align=center>";
|
||||
|
||||
$criteri = "SELECT prove.risultato, utenti.nome as utente, corsi.nome as corso, prove.data ";
|
||||
|
||||
//$criteri .= "FROM (corsi INNER JOIN utenti ON corsi.id = utenti.idcorso) INNER JOIN prove ON utenti.id = prove.idutente ";
|
||||
$criteri .= "FROM (corsi LEFT JOIN utenti ON corsi.id = utenti.idcorso) LEFT JOIN prove ON utenti.id = prove.idutente ";
|
||||
//$criteri .= "FROM (corsi STRAIGHT JOIN utenti ON corsi.id = utenti.idcorso) STRAIGHT JOIN prove ON utenti.id = prove.idutente ";
|
||||
//$criteri .= "FROM corsi RIGHT JOIN (utenti RIGHT JOIN prove ON utenti.id = prove.idutente) ON corsi.id = utenti.idcorso ";
|
||||
|
||||
// Selezione dei criteri di ricerca
|
||||
|
||||
// CORSO
|
||||
if ($corso != 9000) $s_corso = "(corsi.id = $corso)";
|
||||
|
||||
// UTENTE
|
||||
if ($utente != 9000) $s_utente = "(utenti.id = $utente)";
|
||||
|
||||
// DATA
|
||||
if ($data != 9000)
|
||||
{
|
||||
switch ($data)
|
||||
{
|
||||
case "prima": $s_data = "(prove.data < $v_data)";
|
||||
break;
|
||||
case "dopo": $s_data = "(prove.data > $v_data)";
|
||||
break;
|
||||
case "giorno": $s_data = "(prove.data = $v_data)";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// RISULTATO
|
||||
if ($ris != 9000)
|
||||
{
|
||||
switch ($ris)
|
||||
{
|
||||
case "minore": $s_ris = "(prove.risultato < $v_ris)";
|
||||
break;
|
||||
case "maggiore": $s_ris = "(prove.risultato > $v_ris)";
|
||||
break;
|
||||
case "uguale": $s_ris = "(prove.risultato = $v_ris)";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//if ($ris == 9000) $criteri .= "Where ".$s_corso." AND ".$s_utente." AND ".$s_data." AND ".$s_ris;
|
||||
|
||||
echo $criteri;
|
||||
|
||||
$result = mysql_query($criteri, $db);
|
||||
if ($myrow = mysql_fetch_array($result))
|
||||
{
|
||||
do
|
||||
{
|
||||
if ($riga == true)
|
||||
{
|
||||
echo "<tr bgcolor=#CCCCCC><td>".$myrow["data"]."</td><td>".$myrow["risultato"]."</td><td>".$myrow["utente"]."</td><td>".$myrow["corso"]."</td></tr>";
|
||||
$riga = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<tr bgcolor=#DDDDDD><td>".$myrow["data"]."</td><td>".$myrow["risultato"]."</td><td>".$myrow["utente"]."</td><td>".$myrow["corso"]."</td></tr>";
|
||||
$riga = true;
|
||||
}
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
echo "</table>";
|
||||
}
|
||||
else
|
||||
echo "<br><br><p class=error>Nessun record trovato!</p><br><br>";
|
||||
|
||||
echo "<p><a href=# onclick=history.back()>Torna</a></p>";
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
30
corsi/admin/cestino/cancella.php
Executable file
@ -0,0 +1,30 @@
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
|
||||
if (isset($tbl) && isset($id))
|
||||
{
|
||||
$query = "DROP ".$tbl." WHERE id = ".$id;
|
||||
echo $query;
|
||||
//$canc = mysql_query($query,$db);
|
||||
if (!$canc)
|
||||
echo "<br><br><p class=error>Cancellazione non effettuata!</p><br><br>";
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
55
corsi/admin/cestino/classe_old.php
Executable file
@ -0,0 +1,55 @@
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
class Table
|
||||
{
|
||||
var $table_array = array();
|
||||
var $headers = array();
|
||||
var $cols;
|
||||
|
||||
function table($headers)
|
||||
{
|
||||
$this->headers = $headers;
|
||||
$this->cols = count($headers);
|
||||
}
|
||||
|
||||
function addrow($row)
|
||||
{
|
||||
if (count($row) != $this->cols)
|
||||
return false;
|
||||
array_push($this->table_array, $row);
|
||||
return true;
|
||||
}
|
||||
|
||||
function output()
|
||||
{
|
||||
print "<pre>";
|
||||
foreach($this->headers as $headers)
|
||||
print "<b>$headers</b>";
|
||||
print "\n";
|
||||
foreach($this->table_array as $y)
|
||||
{
|
||||
foreach($y as $xcell)
|
||||
print "$xcell";
|
||||
print "\n";
|
||||
}
|
||||
print "</pre>";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$test = new table(array("a","b","c"));
|
||||
$test->addrow(array(1,2,3));
|
||||
$test->addrow(array(4,5,6));
|
||||
$test->output();
|
||||
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
74
corsi/admin/cestino/elenco_corsi.php
Executable file
@ -0,0 +1,74 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Corsi</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
echo "<table border=0 align=center>";
|
||||
|
||||
$criteri = "SELECT * FROM corsi ORDER BY nome";
|
||||
|
||||
$result = mysql_query($criteri, $db);
|
||||
if ($myrow = mysql_fetch_array($result))
|
||||
{
|
||||
do
|
||||
{
|
||||
echo "<tr bgcolor=#AAAAAA><td><b>".$myrow["nome"]."</b></td><td>".$myrow["descrizione"]."</td></tr>";
|
||||
|
||||
$criteri1 = "SELECT lezioni.progressivo, test.posizione, lezioni.nome, test.nome ";
|
||||
$criteri1 .= "FROM lezioni LEFT JOIN test ON lezioni.id = test.idlezione ";
|
||||
$criteri1 .= "WHERE (lezioni.progressivo = 0) AND (test.posizione = 'inizio') AND (idcorso = ".$myrow["id"].")";
|
||||
|
||||
$result1 = mysql_query($criteri1, $db);
|
||||
if ($myrow1 = mysql_fetch_array($result1))
|
||||
{
|
||||
echo "<tr bgcolor=#CCCCCC><td>".$myrow1["nome"]."</td><td>".$myrow1["posizione"]."</td></tr>";
|
||||
}
|
||||
$criteri2 = "SELECT * FROM lezioni WHERE (progressivo <> 0) AND (idcorso = ".$myrow["id"].") ORDER BY progressivo";
|
||||
$result2 = mysql_query($criteri2, $db);
|
||||
if ($myrow2 = mysql_fetch_array($result2))
|
||||
{
|
||||
do
|
||||
{
|
||||
echo "<tr bgcolor=#EEEEEE><td>".$myrow2["nome"]."</td><td>".$myrow2["progressivo"]."</td></tr>";
|
||||
}while ($myrow2 = mysql_fetch_array($result2));
|
||||
|
||||
}
|
||||
$criteri3 = "SELECT lezioni.progressivo, test.posizione, lezioni.nome, test.nome ";
|
||||
$criteri3 .= "FROM lezioni LEFT JOIN test ON lezioni.id = test.idlezione ";
|
||||
$criteri3 .= "WHERE (lezioni.progressivo = 0) AND (test.posizione = 'fine') AND (idcorso = ".$myrow["id"].")";
|
||||
$result3 = mysql_query($criteri3, $db);
|
||||
if ($myrow3 = mysql_fetch_array($result3))
|
||||
{
|
||||
echo "<tr bgcolor=Silver><td>".$myrow3["nome"]."</td><td>".$myrow3["posizione"]."</td></tr>";
|
||||
}
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
echo "</table>";
|
||||
}
|
||||
else
|
||||
echo "<br><br><p class=error>Nessun record trovato!</p><br><br>";
|
||||
|
||||
echo "<p><a href=# onclick=history.back()>Torna</a></p>";
|
||||
|
||||
|
||||
|
||||
SELECT prove.risultato, utenti.id, corsi.id
|
||||
FROM (corsi INNER JOIN utenti ON corsi.id = utenti.idcorso) INNER JOIN prove ON utenti.id = prove.idutente
|
||||
WHERE (((utenti.id)=5) AND ((corsi.id)=1));
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
18
corsi/admin/cestino/funzioni.php
Executable file
@ -0,0 +1,18 @@
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
|
||||
function righe($tabella)
|
||||
{
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
$criteri = "SELECT * FROM $tabella";
|
||||
$result = mysql_query($criteri, $db);
|
||||
//$myrow = mysql_fetch_array($result);
|
||||
//return $myrow;
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
?>
|
31
corsi/admin/cestino/mappa.html
Executable file
@ -0,0 +1,31 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Untitled</title>
|
||||
</head>
|
||||
|
||||
<script>
|
||||
function messaggio(n)
|
||||
{
|
||||
if (n == 1) alert ("NORD");
|
||||
if (n == 2) alert ("CENTRO");
|
||||
if (n == 3) alert ("SUD");
|
||||
return false;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<MAP name="italymap">
|
||||
<AREA shape="rect" coords=" 0, 0,180,110" href="#" onclick="return messaggio(1);">
|
||||
<AREA shape="rect" coords=" 80,110,220,200" href="#" onclick="return messaggio(2);">
|
||||
<AREA shape="rect" coords="120,200,300,350" href="#" onclick="return messaggio(3);">
|
||||
</MAP>
|
||||
<IMG src="../images/italy.gif" border="0" align="left" usemap="#italymap" WIDTH="304" HEIGHT="350">
|
||||
<BR><BR><BR>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
22
corsi/admin/cestino/menu.html
Executable file
@ -0,0 +1,22 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Menu</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="menu.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
</form>
|
||||
|
||||
<table border=0 cellpadding=0 cellspacing=0>
|
||||
<tr><td><a href="assegna.php" target="destra">Assegna Corsi</a></td></tr>
|
||||
<tr><td><a href="prove.php" target="destra">Prove</a></td></tr>
|
||||
<tr><td><a href="elenco.php?tbl=accessi" target="destra">Presenze</a></td></tr></tr>
|
||||
<tr><td><a href="elenco.php?tbl=utenti" target="destra">Utenti</a></td></tr></tr>
|
||||
<tr><td><a href="elenco.php?tbl=corsi" target="destra">Corsi</a></td></tr></tr>
|
||||
<tr><td><a href="elenco.php?tbl=lezioni" target="destra">Lezioni</a></td></tr></tr>
|
||||
<tr><td><a href="elenco.php?tbl=test" target="destra">Test</a></td></tr></tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
41
corsi/admin/cestino/modifica.php
Executable file
@ -0,0 +1,41 @@
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
if (isset($tbl) && isset($id))
|
||||
{
|
||||
$criteri = "SELECT * FROM $tbl WHERE id = $id ";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri, $db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
$num_fields = mysql_num_fields($result);
|
||||
echo "<form name=form1><table border=1 align=center>";
|
||||
for($x = 0; $x < $num_fields; $x++)
|
||||
{
|
||||
echo "<tr>";
|
||||
echo "<td>".mysql_field_name($result, $x)."</td>";
|
||||
echo "<td><input type=text name='".mysql_field_name($result, $x)."' value='".$myrow[mysql_field_name($result, $x)]."'></td>";
|
||||
echo "</tr>";
|
||||
|
||||
}
|
||||
echo "</table></form>";
|
||||
}
|
||||
|
||||
echo "<p><a href=# onclick=history.back()>Torna</a></p>";
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
65
corsi/admin/cestino/punteggi.php
Executable file
@ -0,0 +1,65 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Corsi</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
echo "<table border=0 align=center>";
|
||||
|
||||
$criteri = "SELECT prove.risultato, utenti.nome as utente, corsi.nome as corso, prove.data ";
|
||||
//$criteri .= "FROM (corsi INNER JOIN utenti ON corsi.id = utenti.idcorso) INNER JOIN prove ON utenti.id = prove.idutente ";
|
||||
//$criteri .= "FROM (corsi STRAIGHT JOIN utenti ON corsi.id = utenti.idcorso) STRAIGHT JOIN prove ON utenti.id = prove.idutente ";
|
||||
$criteri .= "FROM corsi RIGHT JOIN (utenti RIGHT JOIN prove ON utenti.id = prove.idutente) ON corsi.id = utenti.idcorso ";
|
||||
|
||||
// Selezione dei criteri di ricerca
|
||||
// Utente e Corso
|
||||
if (($corso != "") && ($utente != "")) $criteri .= "WHERE (utenti.id = $utente) AND (corsi.id = $corso) ORDER BY prove.data DESC";
|
||||
// Solo Corso
|
||||
if (($corso != "") && ($utente == "")) $criteri .= "WHERE (corsi.id = $corso) ORDER BY prove.data DESC";
|
||||
// Solo Utente
|
||||
if (($corso == "") && ($utente != "")) $criteri .= "WHERE (utenti.id = $utente) ORDER BY prove.data DESC";
|
||||
// Nessuno
|
||||
if (($corso == "") && ($utente == "")) $criteri .= "ORDER BY prove.data DESC";
|
||||
|
||||
//echo $criteri;
|
||||
|
||||
$result = mysql_query($criteri, $db);
|
||||
if ($myrow = mysql_fetch_array($result))
|
||||
{
|
||||
do
|
||||
{
|
||||
if ($riga == true)
|
||||
{
|
||||
echo "<tr bgcolor=#CCCCCC><td>".$myrow["data"]."</td><td>".$myrow["risultato"]."</td><td>".$myrow["utente"]."</td><td>".$myrow["corso"]."</td></tr>";
|
||||
$riga = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<tr bgcolor=#DDDDDD><td>".$myrow["data"]."</td><td>".$myrow["risultato"]."</td><td>".$myrow["utente"]."</td><td>".$myrow["corso"]."</td></tr>";
|
||||
$riga = true;
|
||||
}
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
echo "</table>";
|
||||
}
|
||||
else
|
||||
echo "<br><br><p class=error>Nessun record trovato!</p><br><br>";
|
||||
|
||||
echo "<p><a href=# onclick=history.back()>Torna</a></p>";
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
26
corsi/admin/cestino/stile_n.css
Executable file
@ -0,0 +1,26 @@
|
||||
body{background-color:#D3DCED;}
|
||||
|
||||
p{font-family:Arial; font-size:12pt; text-align:center;}
|
||||
p.titolo{font-family:Arial; font-size:14pt; text-align:center;}
|
||||
p.error{font-family:Garamond; font-size:12pt; color:red; font-weight:900; text-align:center;}
|
||||
th{font-family:Arial; font-size:10pt; background-color:Navy; color:white;}
|
||||
td{font-family:Arial; font-size:9pt; font-weight:bold;}
|
||||
td.titolo{font-family:Arial; font-size:12pt; font-weight:bold;}
|
||||
td.menu{font-family:Arial; font-size:9pt; font-weight:bold; text-align:center; color:white;}
|
||||
td.menug{font-family:Arial; font-size:12pt; font-weight:bold; text-align:center; color:Navy;}
|
||||
input{font-family:Arial; font-size:9pt; font-weight:bold;}
|
||||
input.bottoni{font-family:Arial; font-size:9pt; font-weight:bold;}
|
||||
|
||||
A:visited{color:Teal; text-decoration:none;}
|
||||
A:active{color:blue; text-decoration:none;}
|
||||
A:link{color:blue; text-decoration:none;}
|
||||
A:hover{color:red; text-decoration:underline;}
|
||||
|
||||
|
||||
/*
|
||||
TAVOLA DEI COLORI
|
||||
|
||||
#BF210B = rosso
|
||||
#D3DCED = celeste
|
||||
|
||||
*/
|
57
corsi/admin/cestino/utenti.php
Executable file
@ -0,0 +1,57 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Corsi</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
echo "<table border=0 align=center>";
|
||||
|
||||
$criteri = "SELECT prove.risultato, utenti.nome as utente, corsi.nome as corso, prove.data ";
|
||||
//$criteri .= "FROM (corsi INNER JOIN utenti ON corsi.id = utenti.idcorso) INNER JOIN prove ON utenti.id = prove.idutente ";
|
||||
//$criteri .= "FROM (corsi STRAIGHT JOIN utenti ON corsi.id = utenti.idcorso) STRAIGHT JOIN prove ON utenti.id = prove.idutente ";
|
||||
$criteri .= "FROM corsi RIGHT JOIN (utenti RIGHT JOIN prove ON utenti.id = prove.idutente) ON corsi.id = utenti.idcorso ";
|
||||
|
||||
// Selezione dei criteri di ricerca
|
||||
// Utente e Corso
|
||||
if (($corso != "") && ($utente != "")) $criteri .= "WHERE (utenti.id = $utente) AND (corsi.id = $corso) ORDER BY prove.data DESC";
|
||||
// Solo Corso
|
||||
if (($corso != "") && ($utente == "")) $criteri .= "WHERE (corsi.id = $corso) ORDER BY prove.data DESC";
|
||||
// Solo Utente
|
||||
if (($corso == "") && ($utente != "")) $criteri .= "WHERE (utenti.id = $utente) ORDER BY prove.data DESC";
|
||||
// Nessuno
|
||||
if (($corso == "") && ($utente == "")) $criteri .= "ORDER BY prove.data DESC";
|
||||
|
||||
//echo $criteri;
|
||||
|
||||
$result = mysql_query($criteri, $db);
|
||||
if ($myrow = mysql_fetch_array($result))
|
||||
{
|
||||
do
|
||||
{
|
||||
if ($riga == true)
|
||||
{
|
||||
echo "<tr bgcolor=#CCCCCC><td>".$myrow["data"]."</td><td>".$myrow["risultato"]."</td><td>".$myrow["utente"]."</td><td>".$myrow["corso"]."</td></tr>";
|
||||
$riga = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<tr bgcolor=#DDDDDD><td>".$myrow["data"]."</td><td>".$myrow["risultato"]."</td><td>".$myrow["utente"]."</td><td>".$myrow["corso"]."</td></tr>";
|
||||
$riga = true;
|
||||
}
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
echo "</table>";
|
||||
}
|
||||
else
|
||||
echo "<br><br><p class=error>Nessun record trovato!</p><br><br>";
|
||||
|
||||
echo "<p><a href=# onclick=history.back()>Torna</a></p>";
|
||||
|
135
corsi/admin/classe.php
Executable file
@ -0,0 +1,135 @@
|
||||
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
class Table
|
||||
{
|
||||
var $table_array = array();
|
||||
var $headers = array();
|
||||
var $cols;
|
||||
|
||||
function table($headers)
|
||||
{
|
||||
$this->headers = $headers;
|
||||
$this->cols = count($headers);
|
||||
}
|
||||
|
||||
function addrow($row)
|
||||
{
|
||||
if (count($row) != $this->cols)
|
||||
return false;
|
||||
array_push($this->table_array, $row);
|
||||
return true;
|
||||
}
|
||||
|
||||
function output()
|
||||
{
|
||||
echo "<table align=center border=0>";
|
||||
echo "<tr>";
|
||||
foreach($this->headers as $headers)
|
||||
echo "<th bgcolor=#CCCCCC>$headers</th>";
|
||||
echo "</tr>";
|
||||
foreach($this->table_array as $y)
|
||||
{
|
||||
echo "<tr>";
|
||||
foreach($y as $xcell)
|
||||
if ($xcell != "")
|
||||
echo "<td bgcolor=#DDDDDD>$xcell</td>";
|
||||
else
|
||||
echo "<td><br></td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
//$tabella = "domande";
|
||||
if (!isset($tbl))
|
||||
{
|
||||
echo "<form action=classe.php><select name=tbl>";
|
||||
echo "<option value=corsi>corsi</option>";
|
||||
echo "<option value=domande>domande</option>";
|
||||
echo "<option value=risposte>risposte</option>";
|
||||
echo "<option value=test>test</option>";
|
||||
echo "<option value=lezioni>lezioni</option>";
|
||||
echo "</select><input type=submit value=Visualizza></form>";
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (isset($tbl))
|
||||
{
|
||||
include("required.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
$criteri = "SELECT * FROM $tbl ";
|
||||
$result = mysql_query($criteri, $db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
$dati = array();
|
||||
$num_fields = mysql_num_fields($result);
|
||||
for($x = 0; $x < $num_fields; $x++)
|
||||
$dati[] = mysql_field_name($result, $x);
|
||||
$tabella = new table($dati);
|
||||
do
|
||||
{
|
||||
$temp = array();
|
||||
foreach($dati as $nome)
|
||||
$temp[] = $myrow[$nome];
|
||||
$tabella -> addrow($temp);
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
|
||||
$tabella -> output();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
// Scelta del DATABASE
|
||||
if (!isset($dbs) && !isset($tbl))
|
||||
{
|
||||
include("required.php");
|
||||
$link = mysql_connect($ip, $user, $password);
|
||||
|
||||
$db_res = mysql_list_dbs($link);
|
||||
$num = mysql_num_rows($db_res);
|
||||
for ($x = 0; $x < $num; $x++)
|
||||
echo "<a href=classe.php?dbs=".mysql_tablename($db_res, $x).">".mysql_tablename($db_res, $x)."</a><br>";
|
||||
mysql_close($link);
|
||||
}
|
||||
|
||||
|
||||
// Scelta della TABELLA
|
||||
if (isset($dbs))
|
||||
{
|
||||
echo $dbs;
|
||||
include("required.php");
|
||||
$link = mysql_connect($ip, $user, $password);
|
||||
//$result = mysql_list_tables($dbs, $link);
|
||||
$result = mysql_list_tables($dbs);
|
||||
$tab_rows = mysql_fetch_row($result);
|
||||
for ($x = 0; $x < $tab_rows; $x++)
|
||||
{
|
||||
//echo "$tab_rows[$x]<br>";
|
||||
$table = mysql_tablename($result, $x);
|
||||
echo $table;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
*/
|
||||
?>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
177
corsi/admin/crea_db.php
Executable file
@ -0,0 +1,177 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Corsi</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
if (isset($dbname) && ($dbname != ""))
|
||||
{
|
||||
$query = mysql_query("CREATE DATABASE $dbname");
|
||||
if (!$query)
|
||||
mysql_die();
|
||||
else
|
||||
{
|
||||
$link = mysql_connect("localhost", "root", "");
|
||||
if (!$link)
|
||||
die("Impossibile connettersi a MySQL");
|
||||
mysql_select_db($dbname, $link);
|
||||
|
||||
|
||||
# Struttura della tavola 'accessi'
|
||||
|
||||
$criteri = "CREATE TABLE accessi (
|
||||
id int(11) NOT NULL auto_increment,
|
||||
idutente int(11) NOT NULL,
|
||||
login datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
|
||||
logout datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
|
||||
descrizione text NOT NULL,
|
||||
modifica varchar(10) NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY idutente (idutente),
|
||||
KEY login (login),
|
||||
KEY logout (logout)
|
||||
)";
|
||||
echo "<p>".$criteri."</p>";
|
||||
$query = mysql_query($criteri, $link);
|
||||
|
||||
|
||||
# Struttura della tavola 'corsi'
|
||||
|
||||
$criteri = "CREATE TABLE corsi (
|
||||
id int(11) NOT NULL auto_increment,
|
||||
nome varchar(100) NOT NULL,
|
||||
descrizione text,
|
||||
costo bigint(20),
|
||||
immagine varchar(50) NOT NULL,
|
||||
test_prima varchar(10) DEFAULT 'Falso' NOT NULL,
|
||||
modo int(11) NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
)";
|
||||
echo "<p>".$criteri."</p>";
|
||||
$query = mysql_query($criteri, $link);
|
||||
|
||||
|
||||
# Struttura della tavola 'domande'
|
||||
|
||||
$criteri = "CREATE TABLE domande (
|
||||
id int(11) NOT NULL auto_increment,
|
||||
idtest int(11) NOT NULL,
|
||||
domanda text NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY idtest (idtest)
|
||||
)";
|
||||
echo "<p>".$criteri."</p>";
|
||||
$query = mysql_query($criteri, $link);
|
||||
|
||||
|
||||
# Struttura della tavola 'download'
|
||||
|
||||
$criteri = "CREATE TABLE download (
|
||||
id int(11) NOT NULL auto_increment,
|
||||
idutente int(11) NOT NULL,
|
||||
idlezione int(11) NOT NULL,
|
||||
data date DEFAULT '0000-00-00' NOT NULL,
|
||||
terminato varchar(10) NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY idutente (idutente),
|
||||
KEY idlezione (idlezione)
|
||||
)";
|
||||
echo "<p>".$criteri."</p>";
|
||||
$query = mysql_query($criteri, $link);
|
||||
|
||||
|
||||
# Struttura della tavola 'lezioni'
|
||||
|
||||
$criteri = "CREATE TABLE lezioni (
|
||||
id int(11) NOT NULL auto_increment,
|
||||
idcorso int(11) NOT NULL,
|
||||
nome varchar(255) NOT NULL,
|
||||
progressivo smallint(6) NOT NULL,
|
||||
percorso varchar(50) NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY idcorso (idcorso)
|
||||
)";
|
||||
echo "<p>".$criteri."</p>";
|
||||
$query = mysql_query($criteri, $link);
|
||||
|
||||
|
||||
# Struttura della tavola 'prove'
|
||||
|
||||
$criteri = "CREATE TABLE prove (
|
||||
id int(11) NOT NULL auto_increment,
|
||||
idutente int(11) NOT NULL,
|
||||
idtest int(11) NOT NULL,
|
||||
data date DEFAULT '0000-00-00' NOT NULL,
|
||||
risultato varchar(20) NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY idutente (idutente),
|
||||
KEY idtest (idtest)
|
||||
)";
|
||||
echo "<p>".$criteri."</p>";
|
||||
$query = mysql_query($criteri, $link);
|
||||
|
||||
|
||||
# Struttura della tavola 'risposte'
|
||||
|
||||
$criteri = "CREATE TABLE risposte (
|
||||
id int(11) NOT NULL auto_increment,
|
||||
iddomanda int(11) NOT NULL,
|
||||
risposta text NOT NULL,
|
||||
valida varchar(10) NOT NULL,
|
||||
visibile varchar(10) NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY iddomanda (iddomanda)
|
||||
)";
|
||||
echo "<p>".$criteri."</p>";
|
||||
$query = mysql_query($criteri, $link);
|
||||
|
||||
|
||||
# Struttura della tavola 'test'
|
||||
|
||||
$criteri = "CREATE TABLE test (
|
||||
id int(11) NOT NULL auto_increment,
|
||||
idlezione int(11) NOT NULL,
|
||||
nome varchar(255) NOT NULL,
|
||||
posizione varchar(10) NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY idlezione (idlezione)
|
||||
)";
|
||||
echo "<p>".$criteri."</p>";
|
||||
$query = mysql_query($criteri, $link);
|
||||
|
||||
|
||||
# Struttura della tavola 'utenti'
|
||||
|
||||
$criteri = "CREATE TABLE utenti (
|
||||
id int(11) NOT NULL auto_increment,
|
||||
nome varchar(25) NOT NULL,
|
||||
cognome varchar(25) NOT NULL,
|
||||
email varchar(35) NOT NULL,
|
||||
username varchar(20) NOT NULL,
|
||||
pass varchar(20) NOT NULL,
|
||||
data date DEFAULT '0000-00-00' NOT NULL,
|
||||
idcorso varchar(5) NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
KEY idcorso (idcorso)
|
||||
)";
|
||||
echo "<p>".$criteri."</p>";
|
||||
$query = mysql_query($criteri, $link);
|
||||
|
||||
echo "<p class=success>Database $dbname creato con successo!</p>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<form name=creadb action=$PHP_SELF? method=post><table align=center>";
|
||||
echo "<tr><td>Nome del database</td><td><input type=text name=dbname></td></tr>";
|
||||
echo "<tr><td colspan=2 align=center><input type=submit value='Crea Database'></td></tr>";
|
||||
echo "</table></form>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
245
corsi/admin/elenco.php
Executable file
@ -0,0 +1,245 @@
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
if ($mostra == 'canc')
|
||||
{
|
||||
if (isset($tbl) && isset($id))
|
||||
{
|
||||
$query = "DELETE FROM $tbl WHERE id = $id ";
|
||||
//echo $query;
|
||||
$canc = mysql_query($query, $db);
|
||||
if (!$canc)
|
||||
echo "<br><br><p class=error>Cancellazione non effettuata!</p><br><br>";
|
||||
}
|
||||
}
|
||||
|
||||
if (isset ($aggiorna))
|
||||
{
|
||||
if (isset($tbl))
|
||||
{
|
||||
$criteri = "SELECT * FROM $tbl ";
|
||||
$result = mysql_query($criteri, $db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
$num_fields = mysql_num_fields($result);
|
||||
|
||||
$query = "UPDATE $tbl SET ";
|
||||
for($x = 0; $x < $num_fields-1; $x++)
|
||||
$query .= " ".mysql_field_name($result, $x)." = '".$valori[mysql_field_name($result, $x)]."',";
|
||||
$query .= " ".mysql_field_name($result, $num_fields-1)." = '".$valori[mysql_field_name($result, $num_fields-1)]."'";
|
||||
$query .= " WHERE id = $id ";
|
||||
//echo $query;
|
||||
$agg = mysql_query($query, $db);
|
||||
if (!$agg)
|
||||
echo "<br><br><p class=error>Aggiornamento non effettuato!</p><br><br>";
|
||||
}
|
||||
}
|
||||
|
||||
if (isset ($salva))
|
||||
{
|
||||
if (isset($tbl))
|
||||
{
|
||||
$criteri = "SELECT * FROM $tbl ";
|
||||
$result = mysql_query($criteri, $db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
$num_fields = mysql_num_fields($result);
|
||||
|
||||
$query = "INSERT INTO $tbl (";
|
||||
for($x = 0; $x < $num_fields-1; $x++)
|
||||
$query .= " ".mysql_field_name($result, $x).",";
|
||||
$query .= " ".mysql_field_name($result, $num_fields-1)."";
|
||||
$query .= ") VALUES ( ";
|
||||
for($x = 0; $x < $num_fields-1; $x++)
|
||||
$query .= " '".$valori[mysql_field_name($result, $x)]."',";
|
||||
$query .= " '".$valori[mysql_field_name($result, $x)]."')";
|
||||
//echo $query;
|
||||
$sal = mysql_query($query, $db);
|
||||
if (!$sal)
|
||||
echo "<br><br><p class=error>Salvataggio non riuscito!</p><br><br>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//if ($mostra == 'deletesicuro')
|
||||
if ($mostra == 'mod')
|
||||
{
|
||||
if (isset($tbl))
|
||||
{
|
||||
echo "<p class=titolo>Aggiornamento dati<br></p>";
|
||||
if (isset($id)) $criteri = "SELECT * FROM $tbl WHERE id = $id ";
|
||||
else $criteri = "SELECT * FROM $tbl ";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri, $db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
$num_fields = mysql_num_fields($result);
|
||||
echo "<form name=form1 action=elenco.php method=post><table border=0 align=center>";
|
||||
//$valori = array();
|
||||
for($x = 0; $x < $num_fields; $x++)
|
||||
{
|
||||
//$tipo = "<td>".mysql_field_type($result, $x)."</td>"; // Visualizza il tipo del campo
|
||||
$dati = "";
|
||||
$t = ereg_replace("'", "", $myrow[mysql_field_name($result, $x)]); // Rimozione delle stringhe del singolo apice
|
||||
if (isset($id)) $dati = $t;
|
||||
if ($riga == true)
|
||||
{
|
||||
echo "<tr class=chiaro><td>".mysql_field_name($result, $x)."</td>";
|
||||
$riga = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<tr class=scuro><td>".mysql_field_name($result, $x)."</td>";
|
||||
$riga = true;
|
||||
}
|
||||
if (mysql_field_type($result, $x) == "blob")
|
||||
//if (mysql_field_type($result, $x) == "blob" || mysql_field_len($result, $x) > 30 )
|
||||
echo "$tipo<td><textarea cols=25 rows=3 name='valori[".mysql_field_name($result, $x)."]' wrap=hard>$dati</textarea></td></tr>";
|
||||
else
|
||||
echo "$tipo</td><td><input type=text size=20 name='valori[".mysql_field_name($result, $x)."]' value='$dati'></td></tr>";
|
||||
}
|
||||
echo "<tr><td><br></td></tr>";
|
||||
echo "<tr><td align=left><input type=hidden name=tbl value=$tbl><input type=hidden name=id value=$id>";
|
||||
if (isset($id)) echo "<input type=submit name=aggiorna value=Aggiorna></td></tr>";
|
||||
else echo "<input type=submit name=salva value=Salva></td></tr>";
|
||||
echo "</table></form>";
|
||||
}
|
||||
}
|
||||
elseif ($mostra == 'delete')
|
||||
{
|
||||
echo "<table><tr><td>La tabella '$tbl' verrá vuotata. Proseguire?";
|
||||
echo "<form name=deletesicuro action=elenco.php method=post><input type=submit name=drop value=SI class=bottoni> ";
|
||||
echo "<input type=hidden name=tbl value=$tbl><input type=submit value=NO name=drop class=bottoni></form></td></tr></table>";
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($drop == "SI")
|
||||
{
|
||||
if (isset($tbl))
|
||||
{
|
||||
$query = "DELETE FROM $tbl ";
|
||||
//echo $query;
|
||||
$del = mysql_query($query, $db);
|
||||
if (!$del)
|
||||
echo "<br><br><p class=error>Cancellazione non riuscita!</p><br><br>";
|
||||
}
|
||||
}
|
||||
if (isset($tbl))
|
||||
{
|
||||
if (isset($links_shown1)) $links_shown = $links_shown1;
|
||||
if (isset($links_shown_p1)) $links_shown = $links_shown_p1;
|
||||
$row_max = 30; // Numero di righe per pagina
|
||||
if (!$links_shown)
|
||||
$links_shown = 0;
|
||||
else
|
||||
$old_link = $links_shown;
|
||||
|
||||
echo "<p class=titolo>Tabella: <b>$tbl</b><br></p>";
|
||||
$sql = "SELECT count(*) as conto FROM $tbl";
|
||||
if (isset($total_result) == false)
|
||||
{
|
||||
$result1 = mysql_query($sql,$db);
|
||||
$myrow1 = mysql_fetch_array($result1);
|
||||
$total_result = $myrow1["conto"];
|
||||
}
|
||||
|
||||
$criteri = "SELECT * FROM $tbl limit $links_shown, $row_max";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri, $db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
$dati = array();
|
||||
$num_fields = mysql_num_fields($result);
|
||||
//echo $total_result;
|
||||
if ($total_result > 0)
|
||||
{
|
||||
for($x = 0; $x < $num_fields; $x++)
|
||||
$dati[] = mysql_field_name($result, $x);
|
||||
$table = array();
|
||||
do
|
||||
{
|
||||
$temp = array();
|
||||
foreach($dati as $nome)
|
||||
$temp[] = $myrow[$nome];
|
||||
array_push($table,$temp);
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
|
||||
echo "<table align=center border=0>";
|
||||
echo "<tr>";
|
||||
foreach($dati as $headers)
|
||||
echo "<th>$headers</th>";
|
||||
echo "<td><br></td><td><br></td></tr>";
|
||||
foreach($table as $y)
|
||||
{
|
||||
if ($riga == true)
|
||||
{
|
||||
echo "<tr class=chiaro>";
|
||||
$riga = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<tr class=scuro>";
|
||||
$riga = true;
|
||||
}
|
||||
foreach($y as $xcell)
|
||||
{
|
||||
if ($xcell != "")
|
||||
echo "<td>$xcell</td>";
|
||||
else
|
||||
echo "<td><br></td>";
|
||||
|
||||
}
|
||||
//echo "<td><a href=elenco.php?mostra=mod&tbl=$tbl&id=$y[0]>Modifica</a></td><td><a href=elenco.php?mostra=canc&tbl=$tbl&id=$y[0]>Cancella</a></td></tr>";
|
||||
echo "<td><a href=elenco.php?mostra=mod&tbl=$tbl&id=$y[0]>Modifica</a></td>";
|
||||
echo "<td><a href=elenco.php?mostra=canc&tbl=$tbl&id=$y[0]>Cancella</a></td></tr>";
|
||||
}
|
||||
echo "<tr><td><br></td></tr><tr><td colspan=$num_fields align=left><a href=elenco.php?mostra=delete&tbl=$tbl>Vuota la tabella</a></td></tr>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<table align=center border=0><tr><td class=titolo>La Tabella non contiene record</font></td></tr>";
|
||||
}
|
||||
|
||||
$links_shown = $links_shown + $row_max;
|
||||
echo "<tr><td><br></td></tr><tr><td colspan=$num_fields align=left><a href=elenco.php?mostra=mod&tbl=$tbl>Aggiungi nuovo record</a></td></tr>";
|
||||
echo "</table>";
|
||||
$links_shown = $links_shown - 1;
|
||||
if (($links_shown + 1) != $row_max)
|
||||
{
|
||||
$links_on_this_page = $links_shown - $old_link;
|
||||
$links_shown_prev = $links_shown - (($row_max + $links_on_this_page));
|
||||
}
|
||||
if ($links_shown != ($total_result-1))
|
||||
$links_shown = ($links_shown + 1);
|
||||
|
||||
echo "<table align=center><tr>";
|
||||
if ($total_result > $row_max)
|
||||
{
|
||||
if (isset($links_shown_prev)==true)
|
||||
echo "<td><a href=elenco.php?tbl=$tbl&links_shown=$links_shown_prev&total_result=$total_result>Precedente</a></td>";
|
||||
echo "<td><br></td>";
|
||||
//if ($links_shown!=$total_result-1)
|
||||
if ($links_shown < ($total_result - 1))
|
||||
echo "<td><a href=elenco.php?tbl=$tbl&links_shown=$links_shown&total_result=$total_result>Successivo</a></td>";
|
||||
echo "</tr></table>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//echo "<p><a href=# onclick=history.back()>Torna</a></p>";
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
358
corsi/admin/funzioni.php
Executable file
@ -0,0 +1,358 @@
|
||||
<?php
|
||||
|
||||
|
||||
// Controlla il login di un utente
|
||||
function validazione($username, $psw)
|
||||
{
|
||||
include("required.php");
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
$criteri = "SELECT id FROM $tbl_utenti WHERE username = '$username' AND pass = '$psw'";
|
||||
$result = mysql_query($criteri, $db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
if ($myrow)
|
||||
return $myrow["id"];
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Restituisce il corso a cui un utente e' abilitato
|
||||
function corso($utente)
|
||||
{
|
||||
include("required.php");
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
$criteri = "SELECT idcorso FROM $tbl_utenti WHERE (id = $utente)";
|
||||
$result = mysql_query($criteri, $db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
if ($myrow)
|
||||
return $myrow["idcorso"];
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Restituisce tutte le informazioni su un utente
|
||||
function generale($id)
|
||||
{
|
||||
include("required.php");
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
$criteri = "SELECT * FROM $tbl_utenti WHERE id = $id ";
|
||||
$result = mysql_query($criteri, $db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
return $myrow;
|
||||
}
|
||||
|
||||
// Scrive il login di un utente nella tabella accessi
|
||||
function login($idutente, $login)
|
||||
{
|
||||
include("required.php");
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
$sql = "INSERT INTO $tbl_accessi (idutente, login, descrizione, modifica) VALUES($idutente, '$login', 'ONLINE', 'no') ";
|
||||
$ins = mysql_query($sql,$db);
|
||||
if ($ins)
|
||||
{
|
||||
$criteri = "SELECT id FROM $tbl_accessi WHERE login = '$login' ";
|
||||
$result = mysql_query($criteri, $db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
return $myrow["id"];
|
||||
}
|
||||
}
|
||||
|
||||
// Scrive il logout di un utente nella tabella accessi
|
||||
function logout($id, $ora)
|
||||
{
|
||||
include("required.php");
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
$sql = "UPDATE $tbl_accessi SET logout = '$ora' WHERE id = $id ";
|
||||
$ins = mysql_query($sql,$db);
|
||||
}
|
||||
|
||||
// Restituisce la differenza tra due date in Ore:Minuti:Secondi
|
||||
function differenza($periodo1, $periodo2)
|
||||
{
|
||||
//string substr(string string, int start, int [length]);
|
||||
$giorno1 = substr($periodo1, 8, 2);
|
||||
$giorno2 = substr($periodo2, 8, 2);
|
||||
$ora1 = substr($periodo1, 11, 2);
|
||||
$ora2 = substr($periodo2, 11, 2);
|
||||
$min1 = substr($periodo1, 14, 2);
|
||||
$min2 = substr($periodo2, 14, 2);
|
||||
$sec1 = substr($periodo1, 17, 2);
|
||||
$sec2 = substr($periodo2, 17, 2);
|
||||
$diff = (($ora2-$ora1)*3600) + (($min2-$min1)*60) + ($sec2-$sec1);
|
||||
if ($giorno1 != $giorno2)
|
||||
$diff = $diff + (($giorno2-$giorno1)*3600*24);
|
||||
$ore = $diff;
|
||||
$O = 0;
|
||||
while ($ore > 3600):
|
||||
$ore = ($ore-3600);
|
||||
$O = $O + 1;
|
||||
endwhile;
|
||||
$resto = ($diff-($O*3600));
|
||||
$min = $resto;
|
||||
$M = 0;
|
||||
while ($min > 60):
|
||||
$min = ($min-60);
|
||||
$M = $M + 1;
|
||||
endwhile;
|
||||
$sec = ($resto-($M*60));
|
||||
if (strlen($sec) < 2)
|
||||
$sec = "0".$sec;
|
||||
if (strlen($M) < 2)
|
||||
$M = "0".$M;
|
||||
$tempo = $O.":".$M.":".$sec;
|
||||
return $tempo;
|
||||
|
||||
}
|
||||
|
||||
// Effettua la somma di due tempi in Ore:Minuti:Secondi
|
||||
function somma_tempo($tempo1, $tempo2)
|
||||
{
|
||||
if (strlen($tempo1) < 8){
|
||||
$ora1 = substr($tempo1, 0, 1);
|
||||
$min1 = substr($tempo1, 2, 2);
|
||||
$sec1 = substr($tempo1, 5, 2);
|
||||
}else{
|
||||
$ora1 = substr($tempo1, 0 ,2);
|
||||
$min1 = substr($tempo1, 3, 2);
|
||||
$sec1 = substr($tempo1, 6, 2);
|
||||
}
|
||||
if (strlen($tempo2) < 8){
|
||||
$ora2 = substr($tempo2, 0, 1);
|
||||
$min2 = substr($tempo2, 2, 2);
|
||||
$sec2 = substr($tempo2, 5, 2);
|
||||
}else{
|
||||
$ora2 = substr($tempo2, 0 ,2);
|
||||
$min2 = substr($tempo2, 3, 2);
|
||||
$sec2 = substr($tempo2, 6, 2);
|
||||
}
|
||||
$orat = ($ora1+$ora2);
|
||||
$mint = ($min1+$min2);
|
||||
$sect = ($sec1+$sec2);
|
||||
if ($sect >= 60){
|
||||
$sect = ($sect-60);
|
||||
$mint = $mint+1;
|
||||
}
|
||||
if ($mint >= 60){
|
||||
$mint = ($mint-60);
|
||||
$orat = $orat+1;
|
||||
}
|
||||
if (strlen($sect) < 2)
|
||||
$sect = "0".$sect;
|
||||
if (strlen($mint) < 2)
|
||||
$mint = "0".$mint;
|
||||
$somma = $orat.":".$mint.":".$sect;
|
||||
return $somma;
|
||||
}
|
||||
|
||||
// Stabilisce se l'utente e' abilitato a eseguire le lezioni di un corso
|
||||
function abilitato($utente, $corso)
|
||||
{
|
||||
include("required.php");
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
$criteri = "SELECT * FROM $tbl_utenti WHERE (id = $utente)";
|
||||
$result = mysql_query($criteri,$db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
if ($myrow)
|
||||
if ($myrow[idcorso] == $corso)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
// Restituisce il test iniziale del corso
|
||||
function inizio($utente)
|
||||
{
|
||||
include("required.php");
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
$criteri = "SELECT $tbl_utenti.id, $tbl_test.posizione, $tbl_test.nome, $tbl_test.id as test ";
|
||||
$criteri .= "FROM (($tbl_corsi LEFT JOIN $tbl_utenti ON $tbl_corsi.id = $tbl_utenti.idcorso) LEFT JOIN $tbl_lezioni ON $tbl_corsi.id = $tbl_lezioni.idcorso) LEFT JOIN $tbl_test ON $tbl_lezioni.id = $tbl_test.idlezione ";
|
||||
$criteri .= "WHERE ($tbl_utenti.id = $utente) AND ($tbl_test.posizione = '$s_inizio')";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri,$db);
|
||||
//$num_rows = mysql_num_rows($result);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
if ($myrow)
|
||||
//if ($num_rows != 0)
|
||||
{
|
||||
$criteri1 = "SELECT * FROM $tbl_prove WHERE (idutente = $utente) AND (idtest = $myrow[test])";
|
||||
//echo $criteri1;
|
||||
$result1 = mysql_query($criteri1,$db);
|
||||
$myrow1 = mysql_fetch_array($result1);
|
||||
if ($myrow1)
|
||||
return 0;
|
||||
else
|
||||
return $myrow[test];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Restutuisce il test finale del corso se un utente puo' eseguirlo
|
||||
function fine($utente)
|
||||
{
|
||||
include("required.php");
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
$criteri = "SELECT $tbl_utenti.id, $tbl_test.posizione, $tbl_test.nome, $tbl_test.id as test, $tbl_test.idlezione as lezione ";
|
||||
$criteri .= "FROM (($tbl_corsi LEFT JOIN $tbl_utenti ON $tbl_corsi.id = $tbl_utenti.idcorso) LEFT JOIN $tbl_lezioni ON $tbl_corsi.id = $tbl_lezioni.idcorso) LEFT JOIN $tbl_test ON $tbl_lezioni.id = $tbl_test.idlezione ";
|
||||
$criteri .= "WHERE ($tbl_utenti.id = $utente) AND ($tbl_test.posizione = '$s_fine')";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri,$db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
if ($myrow)
|
||||
{
|
||||
$criteri1 = "SELECT * FROM $tbl_prove WHERE (idutente = $utente) AND (idtest = $myrow[test])";
|
||||
//echo $criteri1;
|
||||
$result1 = mysql_query($criteri1,$db);
|
||||
$myrow1 = mysql_fetch_array($result1);
|
||||
if ($myrow1)
|
||||
return 0;
|
||||
else
|
||||
return $myrow[test];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Da il permesso di scaricare una lezione
|
||||
// Verificando, qualora fosse abilitato $test_prima, che sia stato effettuato il test iniziale della lezione,
|
||||
// Altrimenti che sia stato effettuato il test finale della lezione precedente.
|
||||
function controllo_download($lezione, $utente)
|
||||
{
|
||||
include("required.php");
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
if ($test_prima == 'Vero')
|
||||
{
|
||||
$criteri = "SELECT * FROM $tbl_lezioni WHERE (id = $lezione) ";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri,$db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
if ($myrow[progressivo] != 0)
|
||||
{
|
||||
if ($myrow[progressivo] >= 1)
|
||||
{
|
||||
//$cur = $myrow[progressivo] - 1;
|
||||
$cur = $myrow[progressivo];
|
||||
$criteri1 = "SELECT $tbl_lezioni.progressivo, $tbl_lezioni.nome, $tbl_test.nome, $tbl_test.posizione, $tbl_prove.id ";
|
||||
$criteri1 .= "FROM ($tbl_lezioni LEFT JOIN $tbl_test ON $tbl_lezioni.id = $tbl_test.idlezione) LEFT JOIN $tbl_prove ON $tbl_test.id = $tbl_prove.idtest ";
|
||||
$criteri1 .= "WHERE ($tbl_lezioni.progressivo = $cur) AND ($tbl_test.posizione = '$s_prima') AND ($tbl_prove.idutente = $utente)";
|
||||
//echo $criteri1;
|
||||
$result1 = mysql_query($criteri1,$db);
|
||||
if ($myrow1 = mysql_fetch_array($result1))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$criteri = "SELECT * FROM $tbl_lezioni WHERE (id = $lezione) ";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri,$db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
//echo $myrow[progressivo];
|
||||
if ($myrow[progressivo] != 0)
|
||||
{
|
||||
if ($myrow[progressivo] >= 1)
|
||||
{
|
||||
$cur = $myrow[progressivo] - 1;
|
||||
$criteri1 = "SELECT $tbl_lezioni.progressivo, $tbl_lezioni.nome, $tbl_test.nome, $tbl_test.posizione, $tbl_prove.id ";
|
||||
$criteri1 .= "FROM ($tbl_lezioni LEFT JOIN $tbl_test ON $tbl_lezioni.id = $tbl_test.idlezione) LEFT JOIN $tbl_prove ON $tbl_test.id = $tbl_prove.idtest ";
|
||||
$criteri1 .= "WHERE ($tbl_lezioni.progressivo = $cur) AND ($tbl_test.posizione = '$s_dopo') AND ($tbl_prove.idutente = $utente)";
|
||||
//echo $criteri1;
|
||||
$result1 = mysql_query($criteri1,$db);
|
||||
if ($myrow1 = mysql_fetch_array($result1))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Da il permesso di effettuare un test
|
||||
// Verificando che sia stato effettuato il test finale della lezione precedente
|
||||
function controllo_test($lezione, $utente)
|
||||
{
|
||||
include("required.php");
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
$criteri = "SELECT * FROM $tbl_lezioni WHERE (id = $lezione) ";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri,$db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
//echo $myrow[progressivo];
|
||||
if ($myrow[progressivo] != 0)
|
||||
{
|
||||
if ($myrow[progressivo] > 1)
|
||||
{
|
||||
$cur = $myrow[progressivo] - 1;
|
||||
$criteri1 = "SELECT $tbl_lezioni.progressivo, $tbl_lezioni.nome, $tbl_test.nome, $tbl_test.posizione, $tbl_prove.id ";
|
||||
$criteri1 .= "FROM ($tbl_lezioni LEFT JOIN $tbl_test ON $tbl_lezioni.id = $tbl_test.idlezione) LEFT JOIN $tbl_prove ON $tbl_test.id = $tbl_prove.idtest ";
|
||||
$criteri1 .= "WHERE ($tbl_lezioni.progressivo = $cur) AND ($tbl_test.posizione = '$s_dopo') AND ($tbl_prove.idutente = $utente)";
|
||||
//echo $criteri1;
|
||||
$result1 = mysql_query($criteri1,$db);
|
||||
if ($myrow1 = mysql_fetch_array($result1))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
function fine_abilita($utente)
|
||||
{
|
||||
include("required.php");
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
$criteri ="SELECT utenti.id, Max(lezioni.progressivo) AS ultimo ";
|
||||
$criteri .= "FROM utenti LEFT JOIN lezioni ON utenti.idcorso = lezioni.idcorso ";
|
||||
$criteri .= "GROUP BY utenti.id HAVING (utenti.id = $utente) ";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri,$db);
|
||||
$myrow = mysql_fetch_array($result);
|
||||
//echo $myrow["ultimo"];
|
||||
$criteri1 = "SELECT $tbl_lezioni.progressivo, $tbl_test.posizione, $tbl_prove.idutente ";
|
||||
$criteri1 .= "FROM ($tbl_lezioni LEFT JOIN $tbl_test ON $tbl_lezioni.id = $tbl_test.idlezione) LEFT JOIN $tbl_prove ON $tbl_test.id = $tbl_prove.idtest ";
|
||||
$criteri1 .= "WHERE ($tbl_lezioni.progressivo = $myrow[ultimo]) AND ($tbl_test.posizione = '$s_dopo') AND ($tbl_prove.idutente = $utente) ";
|
||||
//echo $criteri1;
|
||||
$result1 = mysql_query($criteri1,$db);
|
||||
if ($myrow1 = mysql_fetch_array($result1))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
BIN
corsi/admin/images/c.gif
Executable file
After Width: | Height: | Size: 55 B |
BIN
corsi/admin/images/i.gif
Executable file
After Width: | Height: | Size: 68 B |
BIN
corsi/admin/images/l.gif
Executable file
After Width: | Height: | Size: 67 B |
BIN
corsi/admin/images/m.gif
Executable file
After Width: | Height: | Size: 66 B |
BIN
corsi/admin/images/n.gif
Executable file
After Width: | Height: | Size: 61 B |
BIN
corsi/admin/images/pspbrwse.jbf
Executable file
BIN
corsi/admin/images/t.gif
Executable file
After Width: | Height: | Size: 71 B |
BIN
corsi/admin/images/trans.gif
Executable file
After Width: | Height: | Size: 42 B |
5
corsi/admin/index.php
Executable file
@ -0,0 +1,5 @@
|
||||
<!-- frames -->
|
||||
<frameset cols="15%,*" border="1">
|
||||
<frame name="sinistra" src="menu.php" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
|
||||
<frame name="destra" src="admin.php" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
|
||||
</frameset>
|
21
corsi/admin/menu.css
Executable file
@ -0,0 +1,21 @@
|
||||
body{background-color:#707070;}
|
||||
|
||||
p{font-family:Arial; font-size:12pt; text-align:center;}
|
||||
p.titolo{font-family:Arial; font-size:14pt; text-align:center;}
|
||||
th{font-family:Arial; font-size:10pt; background-color:Navy; color:white;}
|
||||
td{font-family:Arial; font-size:9pt; font-weight:bold;}
|
||||
td.titolo{font-family:Arial; font-size:9pt; font-weight:bold;}
|
||||
|
||||
A:visited{color:white; text-decoration:none;}
|
||||
/*A:active{color:red; text-decoration:none;}*/
|
||||
A:link{color:white; text-decoration:none;}
|
||||
A:hover{color:red; text-decoration:underline;}
|
||||
|
||||
|
||||
/*
|
||||
TAVOLA DEI COLORI
|
||||
|
||||
#BF210B = rosso
|
||||
#D3DCED = celeste
|
||||
|
||||
*/
|
36
corsi/admin/menu.php
Executable file
@ -0,0 +1,36 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Menu</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="menu.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table border=0 cellpadding=0 cellspacing=0>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
$tab_res = mysql_list_tables($dataname, $db);
|
||||
while ($tab_rows = mysql_fetch_row($tab_res))
|
||||
//echo "<tr><td>$tab_rows[0]</td></tr>";
|
||||
echo "<tr><td><a href=elenco.php?tbl=$tab_rows[0] target=destra>$tab_rows[0]</a></td></tr>";
|
||||
|
||||
echo "<tr><td><hr size=3></td></tr>";
|
||||
echo "<tr><td><a href=assegna.php target=destra>Assegna Corsi</a></td></tr>";
|
||||
echo "<tr><td><a href=prove.php target=destra>Prove</a></td></tr>";
|
||||
echo "<tr><td><a href=presenze.php target=destra>Presenze</a></td></tr>";
|
||||
//echo "<tr><td><a href=variabili.php target=destra>Variabili</a></td></tr>";
|
||||
echo "<tr><td><hr size=3></td></tr>";
|
||||
echo "<tr><td><a href=tuttitest.php target=destra>Tutti i Test</a></td></tr>";
|
||||
|
||||
?>
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
63
corsi/admin/n_lezione.php
Executable file
@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
include("funzioni.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
if (isset($nome))
|
||||
{
|
||||
$sql = "INSERT INTO $tbl_lezioni (idcorso, nome, progressivo, percorso) VALUES ("
|
||||
.$idcorso.",'"
|
||||
.$nome."',"
|
||||
.$progressivo.",'"
|
||||
.$immagine."')";
|
||||
//echo $sql;
|
||||
$ins = mysql_query($sql,$db);
|
||||
if ($ins)
|
||||
header ("location: tuttitest.php");
|
||||
//else
|
||||
//echo "<br><br><p class=error>Inserimento non effetttuato!</p><br><br>";
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Test</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
<META HTTP-EQUIV="Expires" CONTENT="3">
|
||||
</head>
|
||||
|
||||
<script language=javascript>
|
||||
function verifica()
|
||||
{
|
||||
esito = true;
|
||||
if (document.form1.nome.value == "") esito = false;
|
||||
if (document.form1.progressivo.value == "") esito = false;
|
||||
if (esito == false) alert('Dati inseriti non completi!');
|
||||
if (esito == true) document.form1.submit();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
echo "<form name=form1 action=n_lezione.php><table align=center>";
|
||||
echo "<tr><td><input type=text size=2 name=idcorso value=$idcorso></td></tr>";
|
||||
echo "<tr><td>Nome della lezione</td><td><input type=text name=nome value=$nome></td></tr>";
|
||||
echo "<tr><td>Progressivo</td><td><input type=text name=progressivo value=$progressivo></td></tr>";
|
||||
echo "<tr><td>Immagine</td><td><input type=file name=percorso></td></tr>";
|
||||
|
||||
echo "<tr><td> </td><td><input type=button class=bottoni value=Salva onclick='return verifica();'></td></tr>";
|
||||
|
||||
echo "</table></form>";
|
||||
|
||||
|
||||
echo "</body></html>";
|
||||
|
||||
}
|
119
corsi/admin/presenze.php
Executable file
@ -0,0 +1,119 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Corsi</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
</head>
|
||||
|
||||
<script language="JavaScript">
|
||||
function filtro()
|
||||
{
|
||||
document.form1.submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
include("funzioni.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
echo "<form name=form1 action=presenze.php method=post>";
|
||||
|
||||
echo "<p class=titolo><b>Presenze</b><br></p>";
|
||||
|
||||
$criteri = "SELECT * FROM $tbl_utenti ORDER BY cognome, nome";
|
||||
$result = mysql_query($criteri, $db);
|
||||
if ($myrow = mysql_fetch_array($result))
|
||||
{
|
||||
echo "<center><select name=utente onchange='filtro();'>";
|
||||
echo "<option value=9000>Tutti gli utenti</option>";
|
||||
do
|
||||
{
|
||||
$nominativo = $myrow["cognome"]." ".$myrow["nome"];
|
||||
if (isset ($utente) && $myrow[id] == $utente)
|
||||
echo "<option value=$myrow[id] selected>$nominativo</option>";
|
||||
else
|
||||
echo "<option value=$myrow[id]>$nominativo</option>";
|
||||
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
echo "</select></center>";
|
||||
}
|
||||
|
||||
echo "</form>";
|
||||
|
||||
|
||||
echo "<table align=center border=1>";
|
||||
|
||||
$criteri = "SELECT $tbl_utenti.cognome, $tbl_utenti.nome, $tbl_utenti.id, $tbl_corsi.nome as corso ";
|
||||
$criteri .= "FROM $tbl_utenti LEFT JOIN $tbl_corsi ON $tbl_utenti.idcorso = $tbl_corsi.id ";
|
||||
if (isset ($utente) && ($utente != 9000))
|
||||
$criteri .= " WHERE $tbl_utenti.id = $utente ORDER BY $tbl_utenti.cognome, $tbl_utenti.nome";
|
||||
elseif ($utente = 9000)
|
||||
$criteri .= " ORDER BY $tbl_utenti.cognome, $tbl_utenti.nome";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri, $db);
|
||||
if ($myrow = mysql_fetch_array($result))
|
||||
{
|
||||
do
|
||||
{
|
||||
echo "<tr><td>";
|
||||
$nominativo = $myrow["cognome"]." ".$myrow["nome"];
|
||||
echo "<br><p class=titolo>$nominativo<br><i>".$myrow["corso"]."</i></p>";
|
||||
$criteri1 = "SELECT * FROM $tbl_accessi WHERE (idutente = ".$myrow["id"].") ORDER BY login, logout";
|
||||
//echo $criteri1;
|
||||
$result1 = mysql_query($criteri1, $db);
|
||||
if ($myrow1 = mysql_fetch_array($result1))
|
||||
{
|
||||
echo "<table align=center cellpadding=2 cellspacing=1><tr><th>Login</th><th>Logout</th><th>Differenza</th><th>Descrizione</th></tr>";
|
||||
$c = 0;
|
||||
do
|
||||
{
|
||||
$tempo = differenza($myrow1["login"], $myrow1["logout"]);
|
||||
$tot = somma_tempo($tot, $tempo);
|
||||
$login = substr($myrow1["login"], 8,2) ."/". substr($myrow1["login"], 5,2) ."/" .substr($myrow1["login"], 0,4)." ".substr($myrow1["login"], 11);
|
||||
$logout = substr($myrow1["logout"], 8,2) ."/". substr($myrow1["logout"], 5,2) ."/" .substr($myrow1["logout"], 0,4)." ".substr($myrow1["logout"], 11);
|
||||
|
||||
if ($riga == true)
|
||||
{
|
||||
echo "<tr class=chiaro><td>".$login."</td><td>".$logout."</td><td>".$tempo."</td><td>".$myrow1["descrizione"]."</td></tr>";
|
||||
$riga = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<tr class=scuro><td>".$login."</td><td>".$logout."</td><td>".$tempo."</td><td>".$myrow1["descrizione"]."</td></tr>";
|
||||
$riga = true;
|
||||
}
|
||||
$c++;
|
||||
}while ($myrow1 = mysql_fetch_array($result1));
|
||||
//echo $c;
|
||||
//echo $ris;
|
||||
//echo "<tr><td colspan=3><br></td></tr><tr><td colspan=3 align=center>Media risultati: $media/100</td></tr>";
|
||||
if ($c != 0) echo "<tr><td colspan=4><br></td></tr><tr><td colspan=4 align=center><b>$c</b> accessi - tempo totale <b>$tot</b></td></tr>";
|
||||
echo "</table>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<p class=error>Nessun accesso trovato!</p><br>";
|
||||
}
|
||||
echo "</td></tr>";
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
echo "</table>";
|
||||
}
|
||||
else
|
||||
echo "<br><br><p class=error>Nessun utente trovato!</p><br><br>";
|
||||
|
||||
|
||||
//echo "<p><br></p><p><a href=# onclick=history.back()>Torna</a></p>";
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
125
corsi/admin/prove.php
Executable file
@ -0,0 +1,125 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Corsi</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
</head>
|
||||
|
||||
<script language="JavaScript">
|
||||
function filtro()
|
||||
{
|
||||
document.form1.submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
echo "<form name=form1 action=prove.php method=post>";
|
||||
|
||||
echo "<p class=titolo><b>Prove</b><br></p>";
|
||||
|
||||
$criteri = "SELECT * FROM $tbl_utenti ORDER BY cognome, nome";
|
||||
$result = mysql_query($criteri, $db);
|
||||
if ($myrow = mysql_fetch_array($result))
|
||||
{
|
||||
echo "<center><select name=utente onchange='filtro();'>";
|
||||
echo "<option value=9000>Tutti gli utenti</option>";
|
||||
do
|
||||
{
|
||||
$nominativo = $myrow["cognome"]." ".$myrow["nome"];
|
||||
if (isset ($utente) && $myrow[id] == $utente)
|
||||
echo "<option value=$myrow[id] selected>$nominativo</option>";
|
||||
else
|
||||
echo "<option value=$myrow[id]>$nominativo</option>";
|
||||
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
echo "</select></center>";
|
||||
}
|
||||
|
||||
echo "</form>";
|
||||
|
||||
|
||||
echo "<table align=center border=1>";
|
||||
|
||||
$criteri = "SELECT $tbl_utenti.cognome, $tbl_utenti.nome, $tbl_utenti.id, $tbl_corsi.nome as corso ";
|
||||
$criteri .= "FROM $tbl_utenti LEFT JOIN $tbl_corsi ON $tbl_utenti.idcorso = $tbl_corsi.id ";
|
||||
if (isset ($utente) && ($utente != 9000))
|
||||
$criteri .= " WHERE $tbl_utenti.id = $utente ORDER BY $tbl_utenti.cognome, $tbl_utenti.nome";
|
||||
elseif ($utente = 9000)
|
||||
$criteri .= " ORDER BY $tbl_utenti.cognome, $tbl_utenti.nome";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri, $db);
|
||||
if ($myrow = mysql_fetch_array($result))
|
||||
{
|
||||
do
|
||||
{
|
||||
echo "<tr><td>";
|
||||
$nominativo = $myrow["cognome"]." ".$myrow["nome"];
|
||||
echo "<br><p class=titolo>$nominativo<br><i>".$myrow["corso"]."</i></p>";
|
||||
$criteri1 = "SELECT * FROM $tbl_prove LEFT JOIN $tbl_test ON $tbl_prove.idtest = $tbl_test.id WHERE (idutente = ".$myrow["id"].") ORDER BY data";
|
||||
//echo $criteri1;
|
||||
$result1 = mysql_query($criteri1, $db);
|
||||
if ($myrow1 = mysql_fetch_array($result1))
|
||||
{
|
||||
echo "<table align=center cellpadding=2 cellspacing=1><tr><th>Data</th><th>Test</th><th>Risultato</th></tr>";
|
||||
$c = 0;
|
||||
$ris = 0;
|
||||
do
|
||||
{
|
||||
$data = substr($myrow1["data"], 8,2) ."/". substr($myrow1["data"], 5,2) ."/" .substr($myrow1["data"], 0,4);
|
||||
if ($riga == true)
|
||||
{
|
||||
echo "<tr class=chiaro><td>".$data."</td><td>".$myrow1["nome"]."</td><td>".$myrow1["risultato"]."</td></tr>";
|
||||
$riga = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<tr class=scuro><td>".$data."</td><td>".$myrow1["nome"]."</td><td>".$myrow1["risultato"]."</td></tr>";
|
||||
$riga = true;
|
||||
}
|
||||
$ris = $ris + $myrow1[risultato];
|
||||
if ($myrow1["risultato"] != "consegnato in bianco") $c++;
|
||||
}while ($myrow1 = mysql_fetch_array($result1));
|
||||
//echo $c;
|
||||
//echo $ris;
|
||||
if ($c == 0)
|
||||
$media = 0;
|
||||
else
|
||||
{
|
||||
if (($ris != 0) && ($c > 0))
|
||||
$media = $ris/($c);
|
||||
else
|
||||
$media = 0;
|
||||
}
|
||||
//echo "<tr><td colspan=3><br></td></tr><tr><td colspan=3 align=center>Media risultati: $media/100</td></tr>";
|
||||
echo "<tr><td colspan=3><br></td></tr><tr><td colspan=3 align=center>Media risultati: <b>$media</b></td></tr>";
|
||||
echo "</table>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<p class=error>Nessuna prova trovata!</p><br>";
|
||||
}
|
||||
echo "</td></tr>";
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
echo "</table>";
|
||||
}
|
||||
else
|
||||
echo "<br><br><p class=error>Nessun utente trovato!</p><br><br>";
|
||||
|
||||
|
||||
//echo "<p><br></p><p><a href=# onclick=history.back()>Torna</a></p>";
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
34
corsi/admin/required.php
Executable file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
$ip = "localhost";
|
||||
$user = "root";
|
||||
$password = "";
|
||||
$dataname = "corsi";
|
||||
|
||||
|
||||
//$test_prima = "Falso"; // Impostato su Vero indica che e' presente anche il test prima del download di una lezione.
|
||||
$test_prima = "Falso"; // Impostato su Vero indica che e' presente anche il test prima del download di una lezione.
|
||||
|
||||
|
||||
// Costanti di controllo
|
||||
$s_vero = "Vero";
|
||||
$s_falso = "Falso";
|
||||
$s_prima = "Prima";
|
||||
$s_dopo = "Dopo";
|
||||
$s_inizio = "Inizio";
|
||||
$s_fine = "Fine";
|
||||
|
||||
|
||||
// Nomi delle tabelle nel database
|
||||
$tbl_accessi = "accessi";
|
||||
$tbl_corsi = "corsi";
|
||||
$tbl_domande = "domande";
|
||||
$tbl_download = "download";
|
||||
$tbl_lezioni = "lezioni";
|
||||
$tbl_prove = "prove";
|
||||
$tbl_risposte = "risposte";
|
||||
$tbl_test = "test";
|
||||
$tbl_utenti = "utenti";
|
||||
|
||||
|
||||
?>
|
34
corsi/admin/stile.css
Executable file
@ -0,0 +1,34 @@
|
||||
body{background-color:#fafafa;}
|
||||
|
||||
p{font-family:Arial; font-size:12pt; text-align:center;}
|
||||
p.titolo{font-family:Arial; font-size:12pt; text-align:center; color:#006699}
|
||||
p.error{font-family:Garamond; font-size:12pt; color:red; font-weight:900; text-align:center;}
|
||||
p.success{font-family:Garamond; font-size:12pt; color:#0099ff; font-weight:900; text-align:center;}
|
||||
|
||||
tr.chiaro{background-color:#d7d7d7;}
|
||||
tr.scuro{background-color:#bcbcbc;}
|
||||
|
||||
th{font-family:Arial; font-size:10pt; background-color:#5a5a5a; color:white;}
|
||||
|
||||
td{font-family:Arial; font-size:9pt;}
|
||||
|
||||
td.corso{font-size:11pt; font-weight:bold}
|
||||
td.lezione{font-size:11pt;}
|
||||
td.test{font-size:9pt;}
|
||||
|
||||
td.grande{font-family:Arial; font-size:48pt; color:#707070;}
|
||||
td.titolo{font-family:Arial; font-size:12pt;}
|
||||
td.menu{font-family:Arial; font-size:9pt; font-weight:bold; text-align:center; color:white;}
|
||||
td.menug{font-family:Arial; font-size:12pt; font-weight:bold; text-align:center; color:Navy;}
|
||||
|
||||
input{font-family:Arial; font-size:9pt; font-weight:bold;}
|
||||
input.bottoni{font-family:Tahoma; font-size:9pt; font-weight:bold;}
|
||||
|
||||
A:visited{color:blue; text-decoration:none;}
|
||||
/*A:active{color:blue; text-decoration:none;}*/
|
||||
A:link{color:blue; text-decoration:none;}
|
||||
A:hover{color:red; text-decoration:underline;}
|
||||
|
||||
option.rosso{color:red}
|
||||
|
||||
|
157
corsi/admin/tuttitest.php
Executable file
@ -0,0 +1,157 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Test</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
<META HTTP-EQUIV="Expires" CONTENT="3">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
include("funzioni.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
if (isset($test))
|
||||
{
|
||||
$criteri = "SELECT $tbl_test.nome, $tbl_domande.idtest, $tbl_domande.domanda, $tbl_domande.id ";
|
||||
$criteri .= "FROM $tbl_test LEFT JOIN $tbl_domande ON $tbl_test.id = $tbl_domande.idtest WHERE ($tbl_domande.idtest = $test)";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri, $db);
|
||||
if ($myrow = mysql_fetch_array($result))
|
||||
{
|
||||
echo "<p>".$myrow[nome]."</p>";
|
||||
echo "<form name=form1 action=verifica.php target=destra method=post>";
|
||||
echo "<table align=center border=1 width=80% cellpadding=2 cellspacing=0>";
|
||||
$n = 1;
|
||||
do
|
||||
{
|
||||
echo "<tr bgcolor=#BF210B><td height=25><font color=white>$n) $myrow[domanda]</font></td></tr>";
|
||||
$criteri1 = "SELECT * FROM $tbl_risposte WHERE (iddomanda = $myrow[id]) ";
|
||||
//echo $criteri01;
|
||||
$result1 = mysql_query($criteri1, $db);
|
||||
if ($myrow1 = mysql_fetch_array($result1))
|
||||
{
|
||||
do
|
||||
{
|
||||
if ($riga == true)
|
||||
{
|
||||
echo "<tr class=chiaro><td><input type=checkbox name='scelte[]' value=$myrow1[id]>$myrow1[risposta]<br></td></tr>";
|
||||
$riga = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<tr class=scuro><td><input type=checkbox name='scelte[]' value=$myrow1[id]>$myrow1[risposta]<br></td></tr>";
|
||||
$riga = true;
|
||||
}
|
||||
}while ($myrow1 = mysql_fetch_array($result1));
|
||||
}
|
||||
$n++;
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
echo "<tr><td><input type=hidden name=test value=$test><input type=hidden name=verifica></td></tr>";
|
||||
echo "<tr><td align=center><input type=Reset value=Azzera class=bottoni> <input type=submit value=Correggi class=bottoni></td></tr></table></form>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<br><br><p class=error>Nessun record trovato!</p><br><br>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for($x = 1; $x < 2; $x++)
|
||||
$spazi1 = $spazi1." ";
|
||||
$spazi2 = $spazi1.$spazi1;
|
||||
|
||||
$criteri2 = "SELECT * FROM $tbl_corsi ORDER BY nome";
|
||||
$result2 = mysql_query($criteri2, $db);
|
||||
if ($myrow2 = mysql_fetch_array($result2))
|
||||
{
|
||||
//echo "<table align=center CELLSPACING=0 CELLPADDING=0 BORDER=0>";
|
||||
do
|
||||
{
|
||||
$criterix = "SELECT * FROM $tbl_lezioni LEFT JOIN $tbl_corsi ON $tbl_lezioni.idcorso = $tbl_corsi.id WHERE ($tbl_corsi.id = ".$myrow2["id"].")";
|
||||
$resultx = mysql_query($criterix, $db);
|
||||
$numx = mysql_num_rows($resultx);
|
||||
if ($numx == 0)
|
||||
echo "<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD class=corso><IMG SRC=images/trans.gif WIDTH=5 HEIGHT=21 BORDER=0><IMG SRC=images/n.gif WIDTH=9 HEIGHT=21 BORDER=0></TD><TD class=corso>$spazi1".$myrow2["nome"]."</TD></TR></TABLE>";
|
||||
//echo "<form action=n_lezione.php><tr><td class=corso>".$myrow2["nome"]."<input type=text size=2 name=idcorso value=".$myrow2["id"]."><input type=submit name=n_lezione value='Aggiungi lezione'></form></td></tr>";
|
||||
//echo "<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD class=corso><IMG SRC=images/trans.gif WIDTH=5 HEIGHT=21 BORDER=0><IMG SRC=images/n.gif WIDTH=9 HEIGHT=21 BORDER=0></td><form action=n_lezione.php><td class=corso>".$myrow2["nome"]."<input type=text size=2 name=idcorso value=".$myrow2["id"]."><input type=submit name=n_lezione value='Aggiungi lezione'></form></td></tr></TABLE>";
|
||||
else
|
||||
echo "<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD class=corso><IMG SRC=images/trans.gif WIDTH=5 HEIGHT=21 BORDER=0><IMG SRC=images/m.gif WIDTH=9 HEIGHT=21 BORDER=0></TD><TD class=corso>$spazi1".$myrow2["nome"]."</TD></TR></TABLE>";
|
||||
//echo "<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD class=corso><IMG SRC=images/trans.gif WIDTH=5 HEIGHT=21 BORDER=0><IMG SRC=images/m.gif WIDTH=9 HEIGHT=21 BORDER=0></td><form action=n_lezione.php><td class=corso>".$myrow2["nome"]."<input type=text size=2 name=idcorso value=".$myrow2["id"]."><input type=submit name=n_lezione value='Aggiungi lezione'></form></td></tr></TABLE>";
|
||||
$criteri3 = "SELECT * FROM $tbl_lezioni WHERE (idcorso = ".$myrow2["id"].")";
|
||||
$result3 = mysql_query($criteri3, $db);
|
||||
$num_lez = mysql_num_rows($result3);
|
||||
if ($myrow3 = mysql_fetch_array($result3))
|
||||
{
|
||||
$c = 1;
|
||||
//echo $num_lez;
|
||||
do
|
||||
{
|
||||
$criteriy = "SELECT * FROM $tbl_test LEFT JOIN $tbl_lezioni ON $tbl_test.idlezione = $tbl_lezioni.id WHERE ($tbl_lezioni.id = ".$myrow3["id"].")";
|
||||
$resulty = mysql_query($criteriy, $db);
|
||||
$numy = mysql_num_rows($resulty);
|
||||
if ($numy == 0)
|
||||
{
|
||||
if ($c == $num_lez)
|
||||
echo "<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD class=lezione><IMG SRC=images/trans.gif WIDTH=5 HEIGHT=21 BORDER=0><img src='images/l.gif' border=0 WIDTH=12 HEIGHT=21><IMG SRC=images/n.gif WIDTH=9 HEIGHT=21 BORDER=0></TD><TD class=lezione>$spazi1".$myrow3["nome"]."</TD></TR></TABLE>";
|
||||
else
|
||||
echo "<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD class=lezione><IMG SRC=images/trans.gif WIDTH=5 HEIGHT=21 BORDER=0><img src='images/t.gif' border=0 WIDTH=12 HEIGHT=21><IMG SRC=images/n.gif WIDTH=9 HEIGHT=21 BORDER=0></TD><TD class=lezione>$spazi1".$myrow3["nome"]."</TD></TR></TABLE>";
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($c == $num_lez)
|
||||
echo "<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD class=lezione><IMG SRC=images/trans.gif WIDTH=5 HEIGHT=21 BORDER=0><img src='images/l.gif' border=0 WIDTH=12 HEIGHT=21><IMG SRC=images/m.gif WIDTH=9 HEIGHT=21 BORDER=0></TD><TD class=lezione>$spazi1".$myrow3["nome"]."</TD></TR></TABLE>";
|
||||
else
|
||||
echo "<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD class=lezione><IMG SRC=images/trans.gif WIDTH=5 HEIGHT=21 BORDER=0><img src='images/t.gif' border=0 WIDTH=12 HEIGHT=21><IMG SRC=images/m.gif WIDTH=9 HEIGHT=21 BORDER=0></TD><TD class=lezione>$spazi1".$myrow3["nome"]."</TD></TR></TABLE>";
|
||||
}
|
||||
$criteri4 = "SELECT * FROM $tbl_test WHERE (idlezione = ".$myrow3["id"].")";
|
||||
$result4 = mysql_query($criteri4, $db);
|
||||
$num_test = mysql_num_rows($result4);
|
||||
if ($myrow4 = mysql_fetch_array($result4))
|
||||
{
|
||||
$c1 = 1;
|
||||
//echo $num_test;
|
||||
do
|
||||
{
|
||||
if ($c == $num_lez)
|
||||
{
|
||||
if ($c1 == $num_test)
|
||||
echo "<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD class=test><IMG SRC=images/trans.gif WIDTH=5 HEIGHT=21 BORDER=0><IMG SRC=images/trans.gif WIDTH=12 HEIGHT=21 BORDER=0><img src='images/l.gif' border=0 WIDTH=12 HEIGHT=21><IMG SRC=images/c.gif WIDTH=5 HEIGHT=21 BORDER=0></TD><TD class=test>$spazi1<a href=tuttitest.php?test=$myrow4[id] target=destra>".$myrow4["nome"]."</a></TD></TR></TABLE>";
|
||||
else
|
||||
echo "<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD class=test><IMG SRC=images/trans.gif WIDTH=5 HEIGHT=21 BORDER=0><IMG SRC=images/trans.gif WIDTH=12 HEIGHT=21 BORDER=0><img src='images/t.gif' border=0 WIDTH=12 HEIGHT=21><IMG SRC=images/c.gif WIDTH=5 HEIGHT=21 BORDER=0></TD><TD class=test>$spazi1<a href=tuttitest.php?test=$myrow4[id] target=destra>".$myrow4["nome"]."</a></TD></TR></TABLE>";
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($c1 == $num_test)
|
||||
echo "<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD class=test><IMG SRC=images/trans.gif WIDTH=5 HEIGHT=21 BORDER=0><img src='images/i.gif' border=0 WIDTH=12 HEIGHT=21><img src='images/l.gif' border=0 WIDTH=12 HEIGHT=21><IMG SRC=images/c.gif WIDTH=5 HEIGHT=21 BORDER=0></TD><TD class=test>$spazi1<a href=tuttitest.php?test=$myrow4[id] target=destra>".$myrow4["nome"]."</a></TD></TR></TABLE>";
|
||||
else
|
||||
echo "<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD class=test><IMG SRC=images/trans.gif WIDTH=5 HEIGHT=21 BORDER=0><IMG SRC=images/i.gif WIDTH=12 HEIGHT=21 BORDER=0><img src='images/t.gif' border=0 WIDTH=12 HEIGHT=21><IMG SRC=images/c.gif WIDTH=5 HEIGHT=21 BORDER=0></TD><TD class=test>$spazi1<a href=tuttitest.php?test=$myrow4[id] target=destra>".$myrow4["nome"]."</a></TD></TR></TABLE>";
|
||||
}
|
||||
$c1++;
|
||||
}while ($myrow4 = mysql_fetch_array($result4));
|
||||
}
|
||||
$c++;
|
||||
}while ($myrow3 = mysql_fetch_array($result3));
|
||||
}
|
||||
}while ($myrow2 = mysql_fetch_array($result2));
|
||||
//echo "</table>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<br><br><p class=error>Nessun test trovato!</p><br><br>";
|
||||
}
|
||||
}
|
||||
|
||||
//echo "<p><a href=# onclick=history.back()>Torna</a></p>";
|
||||
|
||||
echo "<p><a href=$PHP_SELF target=destra>Torna</a></p>";
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
116
corsi/admin/tuttitest_n.php
Executable file
@ -0,0 +1,116 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Test</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
<META HTTP-EQUIV="Expires" CONTENT="3">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
include("funzioni.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
if (isset($test)) // Visualizza il test da provare
|
||||
{
|
||||
$criteri = "SELECT $tbl_test.nome, $tbl_domande.idtest, $tbl_domande.domanda, $tbl_domande.id ";
|
||||
$criteri .= "FROM $tbl_test LEFT JOIN $tbl_domande ON $tbl_test.id = $tbl_domande.idtest WHERE ($tbl_domande.idtest = $test)";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri, $db);
|
||||
if ($myrow = mysql_fetch_array($result))
|
||||
{
|
||||
echo "<p>".$myrow[nome]."</p>";
|
||||
echo "<form name=form1 action=verifica.php target=destra method=post>";
|
||||
echo "<table align=center border=1 width=80% cellpadding=2 cellspacing=0>";
|
||||
$n = 1;
|
||||
do
|
||||
{
|
||||
echo "<tr bgcolor=#BF210B><td height=25><font color=white>$n) $myrow[domanda]</font></td></tr>";
|
||||
$criteri1 = "SELECT * FROM $tbl_risposte WHERE (iddomanda = $myrow[id]) ";
|
||||
//echo $criteri01;
|
||||
$result1 = mysql_query($criteri1, $db);
|
||||
if ($myrow1 = mysql_fetch_array($result1))
|
||||
{
|
||||
do
|
||||
{
|
||||
if ($riga == true)
|
||||
{
|
||||
echo "<tr class=chiaro><td><input type=checkbox name='scelte[]' value=$myrow1[id]>$myrow1[risposta]<br></td></tr>";
|
||||
$riga = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<tr class=scuro><td><input type=checkbox name='scelte[]' value=$myrow1[id]>$myrow1[risposta]<br></td></tr>";
|
||||
$riga = true;
|
||||
}
|
||||
}while ($myrow1 = mysql_fetch_array($result1));
|
||||
}
|
||||
$n++;
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
echo "<tr><td><input type=hidden name=test value=$test><input type=hidden name=verifica></td></tr>";
|
||||
echo "<tr><td align=center><input type=Reset value=Azzera class=bottoni> <input type=submit value=Correggi class=bottoni></td></tr></table></form>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<br><br><p class=error>Nessun record trovato!</p><br><br>";
|
||||
}
|
||||
}
|
||||
else // Visualizza lo schema dei corsi
|
||||
{
|
||||
//$criteri2 = "SELECT $tbl_corsi.nome as corso, $tbl_lezioni.nome as lezione, $tbl_test.nome as test ";
|
||||
//$criteri2 .= "FROM ($tbl_corsi LEFT JOIN $tbl_lezioni ON $tbl_corsi.id = $tbl_lezioni.idcorso) LEFT JOIN $tbl_test ON $tbl_lezioni.id = $tbl_test.idlezione ";
|
||||
for($x = 0; $x < 10; $x++)
|
||||
$spazi1 = $spazi1." ";
|
||||
|
||||
$spazi2 = $spazi1.$spazi1;
|
||||
|
||||
$criteri2 = "SELECT * FROM $tbl_corsi ORDER BY nome";
|
||||
$result2 = mysql_query($criteri2, $db);
|
||||
if ($myrow2 = mysql_fetch_array($result2))
|
||||
{
|
||||
echo "<table border=0 align=center>";
|
||||
do
|
||||
{
|
||||
//echo "<tr><td class=corso>".$myrow2["nome"]."</td></tr>";
|
||||
echo "<form action=n_lezione.php><tr><td class=corso>".$myrow2["nome"]."<input type=text size=2 name=idcorso value=".$myrow2["id"]."><input type=submit name=n_lezione value='Aggiungi lezione'></form></td></tr>";
|
||||
$criteri3 = "SELECT * FROM $tbl_lezioni WHERE (idcorso = ".$myrow2["id"].")";
|
||||
$result3 = mysql_query($criteri3, $db);
|
||||
if ($myrow3 = mysql_fetch_array($result3))
|
||||
{
|
||||
do
|
||||
{
|
||||
echo "<tr><td class=lezione>$spazi1".$myrow3["nome"]."</td></tr>";
|
||||
$criteri4 = "SELECT * FROM $tbl_test WHERE (idlezione = ".$myrow3["id"].")";
|
||||
$result4 = mysql_query($criteri4, $db);
|
||||
if ($myrow4 = mysql_fetch_array($result4))
|
||||
{
|
||||
do
|
||||
{
|
||||
//echo "<tr class=chiaro><td><a href=tuttitest.php?test=$myrow4[id] target=destra>".$myrow4["nome"]."</a></td></tr>";
|
||||
echo "<tr class=test><td><a href=tuttitest.php?test=$myrow4[id] target=destra>$spazi2".$myrow4["nome"]."</a></td></tr>";
|
||||
}while ($myrow4 = mysql_fetch_array($result4));
|
||||
}
|
||||
}while ($myrow3 = mysql_fetch_array($result3));
|
||||
}
|
||||
}while ($myrow2 = mysql_fetch_array($result2));
|
||||
echo "</table>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<br><br><p class=error>Nessun test trovato!</p><br><br>";
|
||||
}
|
||||
}
|
||||
|
||||
//echo "<p><a href=# onclick=history.back()>Torna</a></p>";
|
||||
|
||||
echo "<p><a href=$PHP_SELF target=destra>Torna</a></p>";
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
115
corsi/admin/tuttitest_old.php
Executable file
@ -0,0 +1,115 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Test</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
<META HTTP-EQUIV="Expires" CONTENT="3">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
include("funzioni.php");
|
||||
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
if (isset($test))
|
||||
{
|
||||
$criteri = "SELECT $tbl_test.nome, $tbl_domande.idtest, $tbl_domande.domanda, $tbl_domande.id ";
|
||||
$criteri .= "FROM $tbl_test LEFT JOIN $tbl_domande ON $tbl_test.id = $tbl_domande.idtest WHERE ($tbl_domande.idtest = $test)";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri, $db);
|
||||
if ($myrow = mysql_fetch_array($result))
|
||||
{
|
||||
echo "<p>".$myrow[nome]."</p>";
|
||||
echo "<form name=form1 action=verifica.php target=destra method=post>";
|
||||
echo "<table align=center border=1 width=80% cellpadding=2 cellspacing=0>";
|
||||
$n = 1;
|
||||
do
|
||||
{
|
||||
echo "<tr bgcolor=#BF210B><td height=25><font color=white>$n) $myrow[domanda]</font></td></tr>";
|
||||
$criteri1 = "SELECT * FROM $tbl_risposte WHERE (iddomanda = $myrow[id]) ";
|
||||
//echo $criteri01;
|
||||
$result1 = mysql_query($criteri1, $db);
|
||||
if ($myrow1 = mysql_fetch_array($result1))
|
||||
{
|
||||
do
|
||||
{
|
||||
if ($riga == true)
|
||||
{
|
||||
echo "<tr class=chiaro><td><input type=checkbox name='scelte[]' value=$myrow1[id]>$myrow1[risposta]<br></td></tr>";
|
||||
$riga = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<tr class=scuro><td><input type=checkbox name='scelte[]' value=$myrow1[id]>$myrow1[risposta]<br></td></tr>";
|
||||
$riga = true;
|
||||
}
|
||||
}while ($myrow1 = mysql_fetch_array($result1));
|
||||
}
|
||||
$n++;
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
echo "<tr><td><input type=hidden name=test value=$test><input type=hidden name=verifica></td></tr>";
|
||||
echo "<tr><td align=center><input type=Reset value=Azzera class=bottoni> <input type=submit value=Correggi class=bottoni></td></tr></table></form>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<br><br><p class=error>Nessun record trovato!</p><br><br>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//$criteri2 = "SELECT $tbl_corsi.nome as corso, $tbl_lezioni.nome as lezione, $tbl_test.nome as test ";
|
||||
//$criteri2 .= "FROM ($tbl_corsi LEFT JOIN $tbl_lezioni ON $tbl_corsi.id = $tbl_lezioni.idcorso) LEFT JOIN $tbl_test ON $tbl_lezioni.id = $tbl_test.idlezione ";
|
||||
for($x = 0; $x < 10; $x++)
|
||||
$spazi1 = $spazi1." ";
|
||||
|
||||
$spazi2 = $spazi1.$spazi1;
|
||||
|
||||
$criteri2 = "SELECT * FROM $tbl_corsi ORDER BY nome";
|
||||
$result2 = mysql_query($criteri2, $db);
|
||||
if ($myrow2 = mysql_fetch_array($result2))
|
||||
{
|
||||
echo "<table border=0 align=center>";
|
||||
do
|
||||
{
|
||||
echo "<tr><td class=corso>".$myrow2["nome"]."</td></tr>";
|
||||
$criteri3 = "SELECT * FROM $tbl_lezioni WHERE (idcorso = ".$myrow2["id"].")";
|
||||
$result3 = mysql_query($criteri3, $db);
|
||||
if ($myrow3 = mysql_fetch_array($result3))
|
||||
{
|
||||
do
|
||||
{
|
||||
echo "<tr><td class=lezione>$spazi1".$myrow3["nome"]."</td></tr>";
|
||||
$criteri4 = "SELECT * FROM $tbl_test WHERE (idlezione = ".$myrow3["id"].")";
|
||||
$result4 = mysql_query($criteri4, $db);
|
||||
if ($myrow4 = mysql_fetch_array($result4))
|
||||
{
|
||||
do
|
||||
{
|
||||
//echo "<tr class=chiaro><td><a href=tuttitest.php?test=$myrow4[id] target=destra>".$myrow4["nome"]."</a></td></tr>";
|
||||
echo "<tr class=test><td><a href=tuttitest.php?test=$myrow4[id] target=destra>$spazi2".$myrow4["nome"]."</a></td></tr>";
|
||||
}while ($myrow4 = mysql_fetch_array($result4));
|
||||
}
|
||||
}while ($myrow3 = mysql_fetch_array($result3));
|
||||
}
|
||||
}while ($myrow2 = mysql_fetch_array($result2));
|
||||
echo "</table>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<br><br><p class=error>Nessun test trovato!</p><br><br>";
|
||||
}
|
||||
}
|
||||
|
||||
//echo "<p><a href=# onclick=history.back()>Torna</a></p>";
|
||||
|
||||
echo "<p><a href=$PHP_SELF target=destra>Torna</a></p>";
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
33
corsi/admin/variabili.php
Executable file
@ -0,0 +1,33 @@
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
|
||||
echo "<table>";
|
||||
echo "<tr><th>Nome</th><th>Valore</th><th>Descrizione</th></tr>";
|
||||
//echo "<tr><td><b>s_vero</b></td><td>Vero</td><td>Indica la stringa di confronto con valore vero</td></tr>";
|
||||
echo "<tr><td><b>test_prima</b></td><td>falso</td><td>Impostato 'vero' indica che e' presente anche il test prima del download di una lezione</td></tr>";
|
||||
echo "<tr><td><b>tbl_accessi</b></td><td>$tbl_accessi</td><td>Nome della tabella degli accessi</td></tr>";
|
||||
echo "<tr><td><b>tbl_corsi</b></td><td>$tbl_corsi</td><td>Nome della tabella dei corsi</td></tr>";
|
||||
echo "<tr><td><b>tbl_domande</b></td><td>$tbl_domande</td><td>Nome della tabella delle domande</td></tr>";
|
||||
echo "<tr><td><b>tbl_download</b></td><td>$tbl_download</td><td>Nome della tabella dei download</td></tr>";
|
||||
echo "<tr><td><b>tbl_lezioni</b></td><td>$tbl_lezioni</td><td>Nome della tabella delle lezioni</td></tr>";
|
||||
echo "<tr><td><b>tbl_prove</b></td><td>$tbl_prove</td><td>Nome della tabella delle prove</td></tr>";
|
||||
echo "<tr><td><b>tbl_risposte</b></td><td>$tbl_risposte</td><td>Nome della tabella delle risposte</td></tr>";
|
||||
echo "<tr><td><b>tbl_test</b></td><td>$tbl_test</td><td>Nome della tabella dei test</td></tr>";
|
||||
echo "<tr><td><b>tbl_utenti</b></td><td>$tbl_utenti</td><td>Nome della tabella degli utenti</td></tr>";
|
||||
|
||||
echo "</table>";
|
||||
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
121
corsi/admin/verifica.php
Executable file
@ -0,0 +1,121 @@
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Corsi</title>
|
||||
<LINK rel="stylesheet" type="text/css" href="stile.css">
|
||||
<META HTTP-EQUIV="Expires" CONTENT="3">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("required.php");
|
||||
$db = mysql_connect($ip, $user, $password);
|
||||
mysql_select_db($dataname,$db);
|
||||
|
||||
$criteri = "SELECT * FROM $tbl_domande WHERE (idtest = $test)";
|
||||
//echo $criteri;
|
||||
$result = mysql_query($criteri, $db);
|
||||
if ($myrow = mysql_fetch_array($result))
|
||||
{
|
||||
echo "<form name=form1>";
|
||||
echo "<table align=center border=1 width=80% cellpadding=2 cellspacing=0>";
|
||||
echo "<tr><td class=titolo align=center colspan=2><font color=#1058BA>Risultato del test</font></td></tr><tr><td colspan=2><br></td></tr>";
|
||||
$totale = 0;
|
||||
$punteggio = 0;
|
||||
$n = 1;
|
||||
do
|
||||
{
|
||||
$vere = 0;
|
||||
$false = 0;
|
||||
$indovinate = 0;
|
||||
$sbagliate = 0;
|
||||
echo "<tr bgcolor=#1058BA><td width=5% bgcolor=#D3DCED><br></td><td height=25><font color=white>$n) $myrow[domanda]</font></td></tr>";
|
||||
//$criteri1 = "SELECT * FROM $tbl_risposte WHERE (iddomanda = $myrow[id]) AND (visibile = 'true') ";
|
||||
$criteri1 = "SELECT * FROM $tbl_risposte WHERE (iddomanda = $myrow[id]) ";
|
||||
//echo $criteri1;
|
||||
$result1 = mysql_query($criteri1, $db);
|
||||
if ($myrow1 = mysql_fetch_array($result1))
|
||||
{
|
||||
do
|
||||
{
|
||||
if ($myrow1[valida] == "$s_vero")
|
||||
{
|
||||
$valore = "checked";
|
||||
$vere++;
|
||||
}
|
||||
else
|
||||
{
|
||||
$valore ="";
|
||||
$false++;
|
||||
}
|
||||
$vera = "";
|
||||
if (isset ($scelte)) if (in_array($myrow1["id"], $scelte)) $vera = "checked";
|
||||
$font = "";
|
||||
|
||||
// Risposta errata ma segnata
|
||||
if (($vera != $valore) && ($valore != "checked"))
|
||||
{
|
||||
$font = "<font color=red>";
|
||||
$sbagliate++;
|
||||
}
|
||||
// Risposta giusta non segnata
|
||||
if (($vera != $valore) && ($valore == "checked"))
|
||||
$font = "<font color=green>";
|
||||
// Risposta giusta e segnata
|
||||
if (($vera == $valore) && ($valore == "checked"))
|
||||
$indovinate++;
|
||||
if ($riga == true)
|
||||
{
|
||||
echo "<tr bgcolor=#BBBBBB><td><input type=checkbox $valore></td><td><input type=checkbox $vera>$font$myrow1[risposta]</font><br></td></tr>";
|
||||
//echo "<tr><td><input type=checkbox $valore></td><td><input type=checkbox $vera>$font$myrow1[risposta]</font><br></td></tr>";
|
||||
$riga = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<tr bgcolor=#DDDDDD><td><input type=checkbox $valore></td><td><input type=checkbox $vera>$font$myrow1[risposta]</font><br></td></tr>";
|
||||
$riga = true;
|
||||
}
|
||||
}while ($myrow1= mysql_fetch_array($result1));
|
||||
//echo "false =".$false;
|
||||
//echo "vere = ".$vere;
|
||||
//echo "indovinate = ".$indovinate;
|
||||
//echo "sbagliate = ".$sbagliate;
|
||||
$punteggio = $punteggio + (1/$vere)*$indovinate - (1/$false)*$sbagliate;
|
||||
//echo "punteggio =".$punteggio;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<br><br><p class=error>Nessun record trovato!</p><br><br>";
|
||||
}
|
||||
$n++;
|
||||
}while ($myrow = mysql_fetch_array($result));
|
||||
//if ($punteggio != 0) $ris = ($punteggio/$totale) * 100;
|
||||
$n_test = $n -1;
|
||||
//echo "test =".$n_test;
|
||||
$ris = ((100 * ($punteggio + $n_test)) / $n_test)/2;
|
||||
//echo "ris =".$ris;
|
||||
if ($ris != 100)
|
||||
{
|
||||
if (substr($ris, 3,1) > 5)
|
||||
$ris = (substr($ris, 0,2) + 1); // Approssima per eccesso
|
||||
else
|
||||
$ris = substr($ris, 0,2); // Approssima per difetto
|
||||
}
|
||||
echo "<tr><td colspan=2><br></td></tr><tr><td colspan=2 align=center>Risultato del test: $ris/100</td></tr>";
|
||||
echo "</table></form>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<br><br><p class=error>Nessun record trovato!</p><br><br>";
|
||||
}
|
||||
|
||||
echo "<p><a href=tuttitest.php target=destra>Torna</a></p>";
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
2378
corsi/corsi.sql
Executable file
BIN
corsi/images/LOGOW.SYS
Executable file
After Width: | Height: | Size: 126 KiB |
BIN
corsi/images/excel.gif
Executable file
After Width: | Height: | Size: 3.0 KiB |
BIN
corsi/images/excel_av.gif
Executable file
After Width: | Height: | Size: 3.1 KiB |
BIN
corsi/images/excel_avanzato/criteri.gif
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
corsi/images/internet.gif
Executable file
After Width: | Height: | Size: 1.4 KiB |
BIN
corsi/images/italy.gif
Executable file
After Width: | Height: | Size: 7.8 KiB |
BIN
corsi/images/logo_excel.gif
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
corsi/images/logo_internet.gif
Executable file
After Width: | Height: | Size: 1.6 KiB |
BIN
corsi/images/logo_outlook.gif
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
corsi/images/logo_publisher.gif
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
corsi/images/logo_windows.gif
Executable file
After Width: | Height: | Size: 1.5 KiB |
BIN
corsi/images/logo_word.gif
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
corsi/images/outlook.gif
Executable file
After Width: | Height: | Size: 2.9 KiB |
BIN
corsi/images/project.gif
Executable file
After Width: | Height: | Size: 3.2 KiB |
BIN
corsi/images/pspbrwse.jbf
Executable file
BIN
corsi/images/publisher.gif
Executable file
After Width: | Height: | Size: 3.4 KiB |
BIN
corsi/images/test_images/Avanti.gif
Executable file
After Width: | Height: | Size: 995 B |
BIN
corsi/images/test_images/Imageword110.gif
Executable file
After Width: | Height: | Size: 1.6 KiB |
BIN
corsi/images/test_images/Imageword111.gif
Executable file
After Width: | Height: | Size: 1.9 KiB |
BIN
corsi/images/test_images/Imageword13.gif
Executable file
After Width: | Height: | Size: 994 B |
BIN
corsi/images/test_images/Imageword16.gif
Executable file
After Width: | Height: | Size: 874 B |
BIN
corsi/images/test_images/Imageword17.gif
Executable file
After Width: | Height: | Size: 9.8 KiB |
BIN
corsi/images/test_images/Imageword18.gif
Executable file
After Width: | Height: | Size: 3.4 KiB |
BIN
corsi/images/test_images/Imageword19.gif
Executable file
After Width: | Height: | Size: 3.3 KiB |
BIN
corsi/images/test_images/copia.gif
Executable file
After Width: | Height: | Size: 185 B |
BIN
corsi/images/test_images/copiagif.gif
Executable file
After Width: | Height: | Size: 965 B |
BIN
corsi/images/test_images/criteri.gif
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
corsi/images/test_images/dati.gif
Executable file
After Width: | Height: | Size: 965 B |
BIN
corsi/images/test_images/datiuni.gif
Executable file
After Width: | Height: | Size: 1.0 KiB |
BIN
corsi/images/test_images/image1.gif
Executable file
After Width: | Height: | Size: 922 B |
BIN
corsi/images/test_images/image10.gif
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
corsi/images/test_images/image11.gif
Executable file
After Width: | Height: | Size: 992 B |
BIN
corsi/images/test_images/image12.gif
Executable file
After Width: | Height: | Size: 1006 B |
BIN
corsi/images/test_images/image13.gif
Executable file
After Width: | Height: | Size: 1.0 KiB |
BIN
corsi/images/test_images/image14.gif
Executable file
After Width: | Height: | Size: 976 B |
BIN
corsi/images/test_images/image15.gif
Executable file
After Width: | Height: | Size: 965 B |
BIN
corsi/images/test_images/image16.gif
Executable file
After Width: | Height: | Size: 994 B |
BIN
corsi/images/test_images/image17.gif
Executable file
After Width: | Height: | Size: 952 B |
BIN
corsi/images/test_images/image18.gif
Executable file
After Width: | Height: | Size: 960 B |
BIN
corsi/images/test_images/image2.gif
Executable file
After Width: | Height: | Size: 933 B |
BIN
corsi/images/test_images/image3.gif
Executable file
After Width: | Height: | Size: 982 B |
BIN
corsi/images/test_images/image4.gif
Executable file
After Width: | Height: | Size: 1.0 KiB |
BIN
corsi/images/test_images/image5.gif
Executable file
After Width: | Height: | Size: 1023 B |
BIN
corsi/images/test_images/image6.gif
Executable file
After Width: | Height: | Size: 922 B |
BIN
corsi/images/test_images/image7.gif
Executable file
After Width: | Height: | Size: 913 B |
BIN
corsi/images/test_images/image8.gif
Executable file
After Width: | Height: | Size: 911 B |
BIN
corsi/images/test_images/image9.gif
Executable file
After Width: | Height: | Size: 928 B |
BIN
corsi/images/test_images/incolla.gif
Executable file
After Width: | Height: | Size: 978 B |
BIN
corsi/images/test_images/indietro.gif
Executable file
After Width: | Height: | Size: 985 B |
BIN
corsi/images/test_images/modifica.gif
Executable file
After Width: | Height: | Size: 932 B |
BIN
corsi/images/test_images/numerato.gif
Executable file
After Width: | Height: | Size: 905 B |
BIN
corsi/images/test_images/ordina.gif
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
corsi/images/test_images/puntato.gif
Executable file
After Width: | Height: | Size: 874 B |
BIN
corsi/images/test_images/taglia.gif
Executable file
After Width: | Height: | Size: 172 B |
BIN
corsi/images/test_images/test_b1.jpg
Executable file
After Width: | Height: | Size: 5.8 KiB |
BIN
corsi/images/test_images/test_b3.jpg
Executable file
After Width: | Height: | Size: 1.4 KiB |
BIN
corsi/images/test_images/test_b4.jpg
Executable file
After Width: | Height: | Size: 1.4 KiB |
BIN
corsi/images/test_images/unisci.gif
Executable file
After Width: | Height: | Size: 1.0 KiB |
BIN
corsi/images/windows.gif
Executable file
After Width: | Height: | Size: 2.9 KiB |
BIN
corsi/images/word.gif
Executable file
After Width: | Height: | Size: 3.1 KiB |
BIN
corsi/images/word/abc.gif
Executable file
After Width: | Height: | Size: 924 B |