".htmlentities($msg["gen_signature_notice"], ENT_QUOTES, $charset)."
";
$query = mysql_query("SELECT notice_id FROM notices LIMIT $start, $lot");
if(mysql_num_rows($query)) {
// définition de l'état de la jauge
$state = floor($start / ($count / $jauge_size));
// mise à jour de l'affichage de la jauge
print "";
print " |
";
// calcul pourcentage avancement
$percent = floor(($start/$count)*100);
// affichage du % d'avancement et de l'état
print "$percent%
";
while ($row = mysql_fetch_row($query) ) {
$val= $sign->gen_signature($row[0]);
mysql_query("update notices set signature='$val' where notice_id=".$row[0], $dbh);
}
mysql_free_result($query);
$next = $start + $lot;
print "
";
} else {
$spec = $spec - GEN_SIGNATURE_NOTICE;
$v_state .= "
".htmlentities($msg["gen_signature_notice_status"], ENT_QUOTES, $charset);
$v_state .= $count." ".htmlentities($msg["gen_signature_notice_status_end"], ENT_QUOTES, $charset);
$opt = mysql_query('OPTIMIZE TABLE notices');
// mise à jour de l'affichage de la jauge
print "
100%
";
print "
";
}