".htmlentities($msg["gen_signature_docnum"], ENT_QUOTES, $charset)."
";
$result = pmb_mysql_query("SELECT explnum_id FROM explnum LIMIT ".$start.", ".$lot);
if(pmb_mysql_num_rows($result)) {
print netbase::get_display_progress($start, $count);
while ($row = pmb_mysql_fetch_object($result) ) {
$explnum = new explnum($row->explnum_id);
pmb_mysql_query("update explnum set explnum_signature='".$explnum->gen_signature()."' where explnum_id=".$row->explnum_id, $dbh);
}
pmb_mysql_free_result($result);
$next = $start + $lot;
print netbase::get_current_state_form($v_state, $spec, '', $next, $count);
} else {
$spec = $spec - GEN_SIGNATURE_DOCNUM;
$v_state .= "
".htmlentities($msg["gen_signature_docnum_status"], ENT_QUOTES, $charset);
$v_state .= $count." ".htmlentities($msg["gen_signature_docnum_status_end"], ENT_QUOTES, $charset);
$opt = pmb_mysql_query('OPTIMIZE TABLE explnum');
// mise à jour de l'affichage de la jauge
print netbase::get_display_final_progress();
print netbase::get_process_state_form($v_state, $spec);
}