| Line 66... |
Line 66... |
| 66 |
die ('Echec de la requete<br />'.$resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ;
|
66 |
die ('Echec de la requete<br />'.$resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ;
|
| 67 |
}
|
67 |
}
|
| 68 |
if ($resultat->numRows() != 0) {
|
68 |
if ($resultat->numRows() != 0) {
|
| 69 |
$tableAttr = array('id' => 'table_bazar') ;
|
69 |
$tableAttr = array('id' => 'table_bazar') ;
|
| 70 |
$table = new HTML_Table($tableAttr) ;
|
70 |
$table = new HTML_Table($tableAttr) ;
|
| 71 |
$entete = array (BAZ_TITREANNONCE ,BAZ_ANNONCEUR, BAZ_TYPEANNONCE, BAZ_PUBLIER, BAZ_SUPPRIMER) ;
|
71 |
$entete = array (BAZ_TITREANNONCE ,BAZ_ANNONCEUR, BAZ_TYPEANNONCE, BAZ_PUBLIER, BAZ_SUPPRIMER, BAZ_DATE_DEBUT_EVENEMENT) ;
|
| 72 |
$table->addRow($entete) ;
|
72 |
$table->addRow($entete) ;
|
| 73 |
$table->setRowType (0, 'th') ;
|
73 |
$table->setRowType (0, 'th') ;
|
| Line 74... |
Line 74... |
| 74 |
|
74 |
|
| 75 |
// On affiche une ligne par proposition
|
75 |
// On affiche une ligne par proposition
|
| Line 123... |
Line 123... |
| 123 |
$annonceur."\n", // col 2 : annonceur
|
123 |
$annonceur."\n", // col 2 : annonceur
|
| 124 |
$ligne['bn_label_nature']."\n", // col 3 : type annonce
|
124 |
$ligne['bn_label_nature']."\n", // col 3 : type annonce
|
| 125 |
"<a href=\"".$lien_publie_oui."\">".BAZ_OUI."</a> / \n".
|
125 |
"<a href=\"".$lien_publie_oui."\">".BAZ_OUI."</a> / \n".
|
| 126 |
"<a href=\"".$lien_publie_non."\">".BAZ_NON."</a>", // col 4 : publier ou pas
|
126 |
"<a href=\"".$lien_publie_non."\">".BAZ_NON."</a>", // col 4 : publier ou pas
|
| 127 |
"<a href=\"".$lien_supprimer."\"".
|
127 |
"<a href=\"".$lien_supprimer."\"".
|
| 128 |
" onclick=\"javascript:return confirm('".BAZ_CONFIRMATION_SUPPRESSION."');\">".BAZ_SUPPRIMER."</a>\n")) ; // col 5 : supprimer
|
128 |
" onclick=\"javascript:return confirm('".BAZ_CONFIRMATION_SUPPRESSION."');\">".BAZ_SUPPRIMER."</a>\n", // col 5 : supprimer
|
| - |
|
129 |
date('d', strtotime($ligne['bf_date_debut_evenement'])).' '.$GLOBALS['mois'][date('n', strtotime ($ligne['bf_date_debut_evenement']))].' '.date('Y', strtotime ($ligne['bf_date_debut_evenement'])) // col 6 date début d'évenement
|
| - |
|
130 |
)) ;
|
| Line 129... |
Line 131... |
| 129 |
|
131 |
|
| 130 |
}
|
132 |
}
|
| 131 |
$table->altRowAttributes(1, array("class" => "ligne_impaire"), array("class" => "ligne_paire"));
|
133 |
$table->altRowAttributes(1, array("class" => "ligne_impaire"), array("class" => "ligne_paire"));
|
| 132 |
$table->updateColAttributes(1, array("align" => "center"));
|
134 |
$table->updateColAttributes(1, array("align" => "center"));
|
| 133 |
$table->updateColAttributes(2, array("align" => "center"));
|
135 |
$table->updateColAttributes(2, array("align" => "center"));
|
| 134 |
$table->updateColAttributes(3, array("align" => "center"));
|
136 |
$table->updateColAttributes(3, array("align" => "center"));
|
| - |
|
137 |
$table->updateColAttributes(4, array("align" => "center"));
|
| 135 |
$table->updateColAttributes(4, array("align" => "center"));
|
138 |
$table->updateColAttributes(5, array("align" => "center"));
|
| 136 |
$res .= $table->toHTML() ;
|
139 |
$res .= $table->toHTML() ;
|
| 137 |
}
|
140 |
}
|
| 138 |
else {
|
141 |
else {
|
| 139 |
$res .= '<p class="zone_info">'.BAZ_PAS_DE_FICHE_A_VALIDER.'</p>'."\n" ;
|
142 |
$res .= '<p class="zone_info">'.BAZ_PAS_DE_FICHE_A_VALIDER.'</p>'."\n" ;
|
| Line 158... |
Line 161... |
| 158 |
die ('Echec de la requete<br />'.$resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ;
|
161 |
die ('Echec de la requete<br />'.$resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ;
|
| 159 |
}
|
162 |
}
|
| 160 |
if ($resultat->numRows() != 0) {
|
163 |
if ($resultat->numRows() != 0) {
|
| 161 |
$tableAttr = array('id' => 'table_bazar') ;
|
164 |
$tableAttr = array('id' => 'table_bazar') ;
|
| 162 |
$table = new HTML_Table($tableAttr) ;
|
165 |
$table = new HTML_Table($tableAttr) ;
|
| 163 |
$entete = array (BAZ_TITREANNONCE ,BAZ_ANNONCEUR, BAZ_TYPEANNONCE, BAZ_PUBLIER, BAZ_SUPPRIMER) ;
|
166 |
$entete = array (BAZ_TITREANNONCE ,BAZ_ANNONCEUR, BAZ_TYPEANNONCE, BAZ_PUBLIER, BAZ_SUPPRIMER, BAZ_DATE_DEBUT_EVENEMENT) ;
|
| 164 |
$table->addRow($entete) ;
|
167 |
$table->addRow($entete) ;
|
| 165 |
$table->setRowType (0, 'th') ;
|
168 |
$table->setRowType (0, 'th') ;
|
| Line 166... |
Line 169... |
| 166 |
|
169 |
|
| 167 |
// On affiche une ligne par proposition
|
170 |
// On affiche une ligne par proposition
|
| Line 215... |
Line 218... |
| 215 |
$annonceur."\n", // col 2 : annonceur
|
218 |
$annonceur."\n", // col 2 : annonceur
|
| 216 |
$ligne['bn_label_nature']."\n", // col 3 : type annonce
|
219 |
$ligne['bn_label_nature']."\n", // col 3 : type annonce
|
| 217 |
"<a href=\"".$lien_publie_oui."\">".BAZ_OUI."</a> / \n".
|
220 |
"<a href=\"".$lien_publie_oui."\">".BAZ_OUI."</a> / \n".
|
| 218 |
"<a href=\"".$lien_publie_non."\">".BAZ_NON."</a>", // col 4 : publier ou pas
|
221 |
"<a href=\"".$lien_publie_non."\">".BAZ_NON."</a>", // col 4 : publier ou pas
|
| 219 |
"<a href=\"".$lien_supprimer."\"".
|
222 |
"<a href=\"".$lien_supprimer."\"".
|
| 220 |
" onclick=\"javascript:return confirm('".BAZ_CONFIRMATION_SUPPRESSION."');\">".BAZ_SUPPRIMER."</a>\n")) ; // col 5 : supprimer
|
223 |
" onclick=\"javascript:return confirm('".BAZ_CONFIRMATION_SUPPRESSION."');\">".BAZ_SUPPRIMER."</a>\n", // col 5 : supprimer
|
| - |
|
224 |
date('d', strtotime($ligne['bf_date_debut_evenement'])).' '.$GLOBALS['mois'][date('n', strtotime ($ligne['bf_date_debut_evenement']))].' '.date('Y', strtotime ($ligne['bf_date_debut_evenement'])) // col 6 date début d'évenement
|
| 221 |
|
225 |
)) ;
|
| 222 |
}
|
226 |
}
|
| 223 |
$table->altRowAttributes(1, array("class" => "ligne_impaire"), array("class" => "ligne_paire"));
|
227 |
$table->altRowAttributes(1, array("class" => "ligne_impaire"), array("class" => "ligne_paire"));
|
| 224 |
$table->updateColAttributes(1, array("align" => "center"));
|
228 |
$table->updateColAttributes(1, array("align" => "center"));
|
| 225 |
$table->updateColAttributes(2, array("align" => "center"));
|
229 |
$table->updateColAttributes(2, array("align" => "center"));
|
| 226 |
$table->updateColAttributes(3, array("align" => "center"));
|
230 |
$table->updateColAttributes(3, array("align" => "center"));
|