"_section_"
), "PMBSECTIONS");
$allow_section = 1;
}
print $begin_result_liste;
$requete = "select * from parametres where gestion=0 order by type_param, section_param, sstype_param ";
$res = pmb_mysql_query($requete);
$i = 0;
$type_param = '';
$section_param = '';
while ($param = pmb_mysql_fetch_object($res)) {
if (! $type_param) {
$type_param = $param->type_param;
$creer = 1;
$fincreer = 0;
$odd_even = 0;
} elseif ($type_param != $param->type_param) {
$type_param = $param->type_param;
$creer = 1;
$fincreer = 1;
$odd_even = 0;
} else {
$creer = 0;
$fincreer = 0;
}
if (($section_param != $param->section_param) && ($allow_section)) {
$section_param = $param->section_param;
$creer_section = 1;
} else
$creer_section = 0;
if ($fincreer) {
print "\n";
}
if ($creer) {
$lab_param = $msg["param_" . $type_param];
if ($lab_param == "")
$lab_param = $type_param;
print "\n
" . $lab_param . "
\n
";
print "\n
";
print "
" . $msg[1603] . " |
" . $msg[1604] . " |
" . $msg['param_explication'] . " |
";
}
if ($odd_even == 0) {
$class_liste = "odd";
$odd_even = 1;
} else if ($odd_even == 1) {
$class_liste = "even";
$odd_even = 0;
}
$surbrillance = "surbrillance";
if ($param->type_param == $form_type_param && $param->sstype_param == $form_sstype_param) {
$class_liste .= " justmodified";
$surbrillance .= " justmodified";
}
$tr_javascript = " onmouseover=\"this.className='$surbrillance'\" onmouseout=\"this.className='$class_liste'\" ";
if ($section_param && $creer_section) {
print "\n" . $section_table[$section_param]["LIB"] . " |
";
}
if ($param->type_param == $form_type_param && $param->sstype_param == $form_sstype_param) {
print "\n $type_param . ' ' . $param->sstype_param . ' ' . $param->comment_param . ' ' . $param->valeur_param
))) . "' class='$class_liste' $tr_javascript style='cursor: pointer;'>
$param->sstype_param | ";
} else {
print "\n
$type_param . ' ' . $param->sstype_param . ' ' . $param->comment_param . ' ' . $param->valeur_param
))) . "' class='$class_liste' $tr_javascript style='cursor: pointer'>
$param->sstype_param | ";
}
$valeur_param = $param->valeur_param;
// Si $param->valeur_param contient un balise html... on formate la valeur pour l'affichage
if (preg_match("/<.+>/", $param->valeur_param)) {
$valeur_param = ""
.htmlentities($param->valeur_param, ENT_QUOTES, $charset).
"
";
}
print "
$valeur_param
|
$param->comment_param | \n
";
} // fin while
print "
";
print "";
}