Diario di Bordo

Uncategorized



[php]

global $current_user;
get_currentuserinfo();
$utente = $current_user->user_email ;

require_once(ABSPATH . ‘wp-content/plugins/contact-form-7-to-database-extension/CFDBFormIterator.php’);
$exp = new CFDBFormIterator();

# **** PRIMA DEL CORSO ****
$BGCOLOR=”style=’background-color:white;'”;

$exp->export(‘prima_del_corso_REV2’, $atts);
while ($row = $exp->nextRow()) {
extract($row);
if ($user_email== $utente) {
$domanda1=$domanda_1;$domanda2=$domanda_2;$domanda3=$domanda_3;
$controllo1=1;$BGCOLOR=””;
}
}

# **** DOPO LA PRIMA LEZIONE ****
$BGCOLORB=”style=’background-color:white;'”;

$exp->export(‘dopo_prima_lez_REV2’, $atts);
while ($row = $exp->nextRow()) {
extract($row);
if ($user_email== $utente) {
$domandab1=$domanda_1;$domandab2=$domanda_2;$domandab3=$domanda_3;
$controlloa1=1; $BGCOLORB=””;
}
}

# **** DOPO LA SECONDA LEZIONE ****
$BGCOLORC=”style=’background-color:white;'”;

$exp->export(‘dopo_seconda_lez_REV2’, $atts);
while ($row = $exp->nextRow()) {
extract($row);
if ($user_email== $utente) {
$domandac1=$domanda_1;$domandac2=$domanda_2;$domandac3=$domanda_3;
$controllob1=1; $BGCOLORC=””;
}
}

# **************** DOPO IL CORSO ***************
$BGCOLORD=”style=’background-color:white'”;

$exp->export(‘dopo_il_corso_REV2’, $atts);
while ($row = $exp->nextRow()) {
extract($row);
if ($user_email== $utente) {
$domandad1=$domanda_1;$domandad2=$domanda_2;$domandad3=$domanda_3;
$controlloc1=1; $BGCOLORD=””;
}
}
### echo “< >”; ECHO “< >”

# ********************************
# ******* PRIMA DEL CORSO *******
# ********************************

# ********* APERTURA TABLE ***********
echo “<TABLE BORDER=1>”;
echo “<TR><TD “.$BGCOLOR.” >”;

#####echo “<DIV style=\”position:relative; height:900px; top:40px; margin-left:10px; width:350px;\”>”;
if ($controllo1!=1){
echo “<H3> <a title=’Prima del corso’ href=’http://betonmath.polimi.it/?p=1741′> PRIMA DEL CORSO </a> </H3> <BR > <BR > “;

}
else
{
echo “<H3>PRIMA DEL CORSO </H3> <BR > “;
echo “<B >Quanto il percorso insegna effettivamente la probabilità?</B ><BR >_____________________<BR ><I > $domanda1 </I ><BR ><BR >”;
echo “<B >Gli strumenti sono utili e efficaci?</B ><BR >_____________________<BR ><I > $domanda2 </I ><BR ><BR >”;
echo “<B >Il percorso ha un effetto preventivo sull’abuso del gioco d’azzardo?</B ><BR >_____________________<BR ><I > $domanda3 </I ><BR ><BR >”;

}
###echo “</DIV>”;

# ****CHIUSURA TABLE ******
echo “</TR></TD>”;
echo “</TABLE>”;

# *******************************
# **** DOPO LA PRIMA LEZIONE ****
# *******************************

# ********* APERTURA TABLE ***********
echo “<TABLE BORDER=1 WIDTH=100%>”;
echo “<TR><TD “.$BGCOLORB.” >”;

if ($controlloa1!=1){
#echo “<DIV style=\”position:relative; height:900px; margin-top:$top; margin-left:10px; width:350px;z-index:2;\”>”;
echo “<H3> <a title=’Dopo la prima lezione’ href=’http://betonmath.polimi.it/?p=2263′> DOPO LA PRIMA LEZIONE </a> </H3> <BR > <BR > “;
#echo “</DIV>”;
}
else
{
#echo “<DIV style=\”position:relative; height:900px; margin-top:$top; margin-left:10px; width:350px;\”>”;
echo “<H3>DOPO LA PRIMA LEZIONE </H3> <BR > “;
echo “<B >Il percorso insegna in modo efficace la probabilità?</B ><BR >_____________________<BR ><I > $domandab1 </I ><BR ><BR >”;
echo “<B >Gli strumenti sono utili e efficaci?</B ><BR >_____________________<BR ><I > $domandab2 </I ><BR ><BR >”;
echo “<B >Il percorso ha un effetto preventivo sull’abuso del gioco d’azzardo?</B ><BR >_____________________<BR ><I > $domandab3 </I ><BR ><BR >”;
#echo “</DIV>”;
}

# ****CHIUSURA TABLE ******
echo “</TR></TD>”;
echo “</TABLE>”;

# ************************************************

# *******************************************************
# ***************** DOPO LA SECONDA LEZIONE ************
# *******************************************************

# ********* APERTURA TABLE ***********
echo “<TABLE BORDER=1 WIDTH=100%>”;
echo “<TR><TD “.$BGCOLORC.” >”;

if ($controllob1!=1){
#echo “<DIV style=\”position:absolute; height:900px; top:160px; margin-left:500px; width:350px;z-index:2\”>”;
echo “<H3> <a title=’Dopo la prima lezione’ href=’http://betonmath.polimi.it/?p=2268′> DOPO LA SECONDA LEZIONE </a> </H3> <BR > <BR > “;
#echo “</DIV>”;
}
else
{
#echo “<DIV style=\”position:relative; height:900px; top:160px; margin-left:500px; width:350px;\”>”;
echo “<H3>DOPO LA SECONDA LEZIONE </H3> <BR > “;
echo “<B >Quanto il percorso insegna effettivamente la probabilità?</B ><BR >_____________________<BR ><I > $domandac1 </I ><BR ><BR >”;
echo “<B >Gli strumenti sono utili e efficaci?</B ><BR >_____________________<BR ><I > $domandac2 </I ><BR ><BR >”;
echo “<B >Il percorso ha un effetto preventivo sull’abuso del gioco d’azzardo?</B ><BR >_____________________<BR ><I > $domandac3 </I ><BR ><BR >”;
#echo “</DIV>”;
}

# ****CHIUSURA TABLE ******
echo “</TR></TD>”;
echo “</TABLE>”;

# ************************************************

# **********************************************
# **************** DOPO IL CORSO ***************
# **********************************************

# ********* APERTURA TABLE ***********
echo “<TABLE BORDER=1 WIDTH=100%>”;
echo “<TR><TD “.$BGCOLORD.” >”;

if ($controlloc1!=1){
#echo “<DIV style=\”position:absolute; height:500px; top:200px; width:350px; margin-left:500px;z-index:2\”>”;
echo “<H3><a title=’Dopo il corso’ href=’http://betonmath.polimi.it/?p=1749′>DOPO IL CORSO </a> </H3> <BR > <BR > “;
#echo “</DIV>”;
}
else
{
#echo “<DIV style=\”position:absolute; height:500px; top:500px; width:350px; margin-left:700px;\”>”;
echo “<H3>DOPO IL CORSO </H3> <BR > “;
echo “<B >Quanto il percorso insegna effettivamente la probabilità?</B ><BR >_____________________<BR ><I > $domandad1 </I ><BR ><BR >”;
echo “<B >Gli strumenti sono utili e efficaci?</B ><BR >_____________________<BR ><I > $domandad2 </I ><BR ><BR >”;
echo “<B >Il percorso ha un effetto preventivo sull’abuso del gioco d’azzardo?</B ><BR >_____________________<BR ><I > $domandad3 </I ><BR ><BR >”;
#echo “</DIV>”;
}
# ****CHIUSURA TABLE ******
echo “</TR></TD>”;
echo “</TABLE>”;

# ************************************************

# **** IMMAGINE DI COPERTINA INIZIALE ******
if ($controllob1!=1 && $controllo1!=1){
echo “<DIV style=\”position:absolute; top:100px; margin-left:370px;\”> <img src=’http://betonmath.polimi.it/wp-content/uploads/diario.jpg’ border=0 > </DIV>”;
}

[/php]

Comments are closed.