33 |
* |
* |
34 |
*/ |
*/ |
35 |
// |
// |
36 |
(isset($_GET["ev"]) ? $evenement = $_GET["ev"] : $evenement = ""); |
($f->get_submitted_get_value("ev") ? $evenement = $f->get_submitted_get_value("ev") : $evenement = ""); |
37 |
$evenement = intval($evenement); |
$evenement = intval($evenement); |
38 |
// |
// |
39 |
(isset($_GET["idx"]) ? $idx = $_GET["idx"] : $idx = ""); |
($f->get_submitted_get_value("idx") ? $idx = $f->get_submitted_get_value("idx") : $idx = ""); |
40 |
$nature = substr($idx, 0, 2); |
$nature = substr($idx, 0, 2); |
41 |
// |
// |
42 |
(isset($_GET["complement"]) ? $complement = $_GET["complement"] : $complement = "1"); |
($f->get_submitted_get_value("complement") ? $complement = $f->get_submitted_get_value("complement") : $complement = "1"); |
43 |
|
|
44 |
/** |
/** |
45 |
* |
* |
52 |
WHERE evenement=".$evenement." |
WHERE evenement=".$evenement." |
53 |
AND complement=".$complement." |
AND complement=".$complement." |
54 |
AND (bible.dossier_autorisation_type IS NULL |
AND (bible.dossier_autorisation_type IS NULL |
55 |
OR dossier_autorisation_type.code ='".$nature."') "; |
OR dossier_autorisation_type.code ='".$nature."') |
56 |
|
ORDER BY bible_lib ASC"; |
57 |
$res = $f->db->query($sql); |
$res = $f->db->query($sql); |
58 |
$f->addToLog("app/bible.php: db->query(\"".$sql."\");", VERBOSE_MODE); |
$f->addToLog("app/bible.php: db->query(\"".$sql."\");", VERBOSE_MODE); |
59 |
$f->isDatabaseError($res); |
$f->isDatabaseError($res); |
79 |
// |
// |
80 |
echo "<td class=\"center\"><input type=\"checkbox\" name=\"choix[]\" value=\"".$i."\" id=\"checkbox".$i."\" /></td>"; |
echo "<td class=\"center\"><input type=\"checkbox\" name=\"choix[]\" value=\"".$i."\" id=\"checkbox".$i."\" /></td>"; |
81 |
// XXX utilisation de l'attribut titre pour afficher une infobulle |
// XXX utilisation de l'attribut titre pour afficher une infobulle |
82 |
echo "<td><span class=\"content\" title=\"".$row['contenu']."\" id=\"content".$i."\">".$row['bible_lib']."</span></td>"; |
echo "<td><span class=\"content\" title=\"".htmlentities($row['contenu'])."\" id=\"content".$i."\">".$row['bible_lib']."</span></td>"; |
83 |
// |
// |
84 |
echo "</tr>\n"; |
echo "</tr>\n"; |
85 |
// |
// |
90 |
echo "<div class=\"formControls\">\n"; |
echo "<div class=\"formControls\">\n"; |
91 |
$f->layout->display_form_button(array( |
$f->layout->display_form_button(array( |
92 |
"value" => _("Valider"), |
"value" => _("Valider"), |
93 |
"onclick" => "bible_return('f2', 'complement".($complement == "1" ? "" : $complement)."'); return false;", |
"onclick" => "bible_return('f2', 'complement".($complement == "1" ? "" : $complement)."_om_html'); return false;", |
94 |
)); |
)); |
95 |
$f->displayLinkJsCloseWindow(); |
$f->displayLinkJsCloseWindow(); |
96 |
echo "</div>\n"; |
echo "</div>\n"; |