alert(\"".$msg["sauv_misc_timer_valid"]."\"); history.go(-1);"; exit(); } //calcul du délai en minutes if ($sauv_timer==1) { $delai=0; } if ($sauv_timer==2) { $delai=$sauv_delay; } if ($sauv_timer==3) { $h=explode(":",date("H:i",time())); $h_now=$h[0]*60+$h[1]; $h_start=$sauv_time_hour*60+$sauv_time_min; $delai=$h_start-$h_now; if ($delai<0) { echo ""; exit(); } else if ($delai==0) $delai=0; } } else { $delai=$delai-1; } if ($delai==0) $url="run.php"; else $url="timer.php"; print "
\n"; echo "

".sprintf($msg["sauv_misc_timer_delay"],$delai)."

\n"; echo "
\n"; echo "\n"; echo "

\n"; $sauv=implode(",",$sauvegardes); $requete="select sauv_sauvegarde_nom,sauv_sauvegarde_tables from sauv_sauvegardes where sauv_sauvegarde_id in (".$sauv.") order by sauv_sauvegarde_nom"; $resultat=mysql_query($requete) or die(mysql_error()); $sauv_name=array(); $sauv_table=array(); while (list($nom,$tables)=mysql_fetch_row($resultat)) { $sauv_name[]=$nom; $sauv_tables[]=$tables; } for ($i=0; $i\n"; } echo "
".$msg["sauv_misc_timer_sets"]."".$msg["sauv_misc_timer_groups"]."
".$sauv_name[$i]."".implode(", ",$tTables)."
\n"; for ($i=0; $i\n"; } echo "

"; echo "
"; if ($delai==0) $timeout=10; else $timeout=30000; echo ""; echo ""; echo "\n"; //echo $footer; echo "
"; ?>