/[openfoncier]/branches/3.14.x-lettrerar/app/bible.php
ViewVC logotype

Diff of /branches/3.14.x-lettrerar/app/bible.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/app/bible.php revision 2408 by softime, Tue Oct 15 10:12:25 2013 UTC tags/3.14.0-b16/app/bible.php revision 3341 by vpihour, Wed Mar 18 15:50:17 2015 UTC
# Line 33  $f->displayTitle(); Line 33  $f->displayTitle();
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   *   *
# Line 52  ON bible.dossier_autorisation_type=dossi Line 52  ON bible.dossier_autorisation_type=dossi
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);
# Line 78  if ($res->numrows() > 0) { Line 79  if ($res->numrows() > 0) {
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          //          //
# Line 89  if ($res->numrows() > 0) { Line 90  if ($res->numrows() > 0) {
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";

Legend:
Removed from v.2408  
changed lines
  Added in v.3341

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26