| Line 251... |
Line 251... |
| 251 |
* en fonction de la requete passé en parametre
|
251 |
* en fonction de la requete passé en parametre
|
| 252 |
*
|
252 |
*
|
| 253 |
* @return Renvoie le code HTML de la liste des inscrits
|
253 |
* @return Renvoie le code HTML de la liste des inscrits
|
| 254 |
*/
|
254 |
*/
|
| Line 255... |
Line 255... |
| 255 |
|
255 |
|
| 256 |
function listes_inscrit(& $donnees_membres, $affiche_form_mail=1) {
|
256 |
function listes_inscrit(& $donnees_membres, $affiche_form_mail=1, $carto_config = '') {
|
| 257 |
$res = '';
|
257 |
$res = '';
|
| 258 |
if ($GLOBALS['AUTH']->getAuth()&&$affiche_form_mail) {$res .= '<form action="'.$GLOBALS['ins_url']->getURL().'" method="post" name="formmail">'."\n";}
|
258 |
if ($GLOBALS['AUTH']->getAuth()&&$affiche_form_mail) {$res .= '<form action="'.$GLOBALS['ins_url']->getURL().'" method="post" name="formmail">'."\n";}
|
| 259 |
$res .= '<ul style="clear:both;">'."\n";
|
259 |
$res .= '<ul style="clear:both;">'."\n";
|
| Line 260... |
Line 260... |
| 260 |
if ($GLOBALS['AUTH']->getAuth()&&$affiche_form_mail) {
|
260 |
if ($GLOBALS['AUTH']->getAuth()&&$affiche_form_mail) {
|
| 261 |
|
261 |
|
| 262 |
$res .= '<form action="'.$GLOBALS['ins_url']->getURL().'" method="post" name="formmail">'."\n";
|
262 |
$res .= '<form action="'.$GLOBALS['ins_url']->getURL().'" method="post" name="formmail">'."\n";
|
| 263 |
}
|
263 |
}
|
| - |
|
264 |
$res .= '<ul>'."\n";
|
| - |
|
265 |
for ($i=0;$i<count($donnees_membres);$i++) {
|
| - |
|
266 |
if (isset($carto_config['cc_champs_id'])) {
|
| 264 |
$res .= '<ul>'."\n";
|
267 |
$id = $donnees_membres[$i][$carto_config['cc_champs_id']] ;
|
| - |
|
268 |
} else {
|
| 265 |
for ($i=0;$i<count($donnees_membres);$i++) {
|
269 |
$id = $donnees_membres[$i][INS_CHAMPS_ID];
|
| 266 |
$id = array_shift($donnees_membres[$i]);
|
270 |
}
|
| 267 |
$GLOBALS['ins_url']->addQueryString('voir_fiche', $id);
|
271 |
$GLOBALS['ins_url']->addQueryString('voir_fiche', $id);
|
| 268 |
$res .= '<li>'."\n";
|
272 |
$res .= '<li>'."\n";
|
| 269 |
if ($GLOBALS['AUTH']->getAuth()&&$affiche_form_mail) {
|
273 |
if ($GLOBALS['AUTH']->getAuth()&&$affiche_form_mail) {
|
| 270 |
$res.='<input type="checkbox" name="select[]" value="'.$id.'" />'."\n";
|
274 |
$res.='<input type="checkbox" name="select[]" value="'.$id.'" />'."\n";
|
| 271 |
}
|
275 |
}
|
| 272 |
$res .= '<a href="'.$GLOBALS['ins_url']->getURL().'">'."\n";
|
276 |
$res .= '<a href="'.$GLOBALS['ins_url']->getURL().'">'."\n";
|
| - |
|
277 |
if (isset($carto_config['cc_titre'])) {
|
| 273 |
$res .= '<strong>'.$donnees_membres[$i][INS_CHAMPS_NOM].
|
278 |
$nom = $donnees_membres[$i][$carto_config['cc_titre']];
|
| - |
|
279 |
} else {
|
| 274 |
' '.$donnees_membres[$i][INS_CHAMPS_PRENOM].'</strong>'."\n".
|
280 |
$nom = $donnees_membres[$i][INS_CHAMPS_NOM];
|
| 275 |
' '.$donnees_membres[$i][INS_CHAMPS_CODE_POSTAL].
|
281 |
}
|
| 276 |
' '.$donnees_membres[$i][INS_CHAMPS_VILLE];
|
282 |
$res .= '<strong>'.$nom;
|
| 277 |
$res .= '</a>'."\n".'</li>'."\n";
|
283 |
$res .= '</a>'."\n".'</li>'."\n";
|
| 278 |
}
|
284 |
}
|
| 279 |
$res .= '</ul>'."\n";
|
285 |
$res .= '</ul>'."\n";
|
| 280 |
if ($GLOBALS['AUTH']->getAuth()&&$affiche_form_mail) {
|
286 |
if ($GLOBALS['AUTH']->getAuth()&&$affiche_form_mail) {
|
| 281 |
$res .= INS_CHECK_UNCHECK ;
|
287 |
$res .= INS_CHECK_UNCHECK ;
|
| 282 |
$res .= ' <input type="checkbox" name="selecttotal" onclick="javascript:setCheckboxes(\'formmail\');"><br />';
|
288 |
$res .= ' <input type="checkbox" name="selecttotal" onclick="javascript:setCheckboxes(\'formmail\');"><br />';
|
| 283 |
$res .= '<h3>'.INS_ENVOYER_MAIL.'</h3>'."\n";
|
289 |
$res .= '<h3>'.INS_ENVOYER_MAIL.'</h3>'."\n";
|
| 284 |
$res .= '<p style="text-align:right;">'.INS_SUJET.' : <input style="border:1px solid #000;width:450px;" type="text" name="titre_mail"><br />'."\n".
|
290 |
$res .= '<p style="text-align:right;">'.INS_SUJET.' : <input style="border:1px solid #000;width:450px;" type="text" name="titre_mail"><br />'."\n".
|
| 285 |
INS_MESSAGE.' : <textarea style="border:1px solid #000;width:450px;" name="corps" rows="5" cols="60"></textarea></p>'."\n".
|
- |
|
| 286 |
'<p style="width:100px;margin:4px auto;text-align:center;"><input name="bouton_envoi_mail" type="submit" value="'.INS_ENVOYER.'" /></p>'."\n".
|
291 |
INS_MESSAGE.' : <textarea style="border:1px solid #000;width:450px;" name="corps" rows="5" cols="60"></textarea></p>'."\n".
|
| 287 |
'<p style="width:100px;margin:4px auto;text-align:center;"><input type="submit" value="'.INS_ENVOYER.'" /></p>'."\n".
|
292 |
'<p style="width:100px;margin:4px auto;text-align:center;"><input name="bouton_envoi_mail" type="submit" value="'.INS_ENVOYER.'" /></p>'."\n".
|
| 288 |
'<input type="hidden" name="fin" value="true" /><input type="hidden" name="mailer" value="1" />'.
|
293 |
'<input type="hidden" name="fin" value="true" /><input type="hidden" name="mailer" value="1" />'.
|
| 289 |
'</form>'."\n";
|
294 |
'</form>'."\n";
|
| 290 |
} else {
|
295 |
} else {
|
| Line 336... |
Line 341... |
| 336 |
/** function carto_liste_fiches()
|
341 |
/** function carto_liste_fiches()
|
| 337 |
*
|
342 |
*
|
| 338 |
*
|
343 |
*
|
| 339 |
* @return string HTML
|
344 |
* @return string HTML
|
| 340 |
*/
|
345 |
*/
|
| 341 |
function carto_liste_fiches(&$monde, $nom_table1, $nom_table2, $nom_champs_pays, $nom_champs_cp, $requete_sql) {
|
346 |
function carto_liste_fiches(&$monde, &$carto_config) {
|
| Line 342... |
Line 347... |
| 342 |
|
347 |
|
| 343 |
global $mailer;
|
348 |
global $mailer;
|
| Line -... |
Line 349... |
| - |
|
349 |
global $select;//utilisé dans liste_inscrit.php
|
| 344 |
global $select;//utilisé dans liste_inscrit.php
|
350 |
|
| 345 |
|
351 |
|
| 346 |
$javascript = "
|
352 |
$javascript = "
|
| 347 |
function confirmer () {
|
353 |
function confirmer () {
|
| 348 |
if (window.confirm ('Cliquez sur OK pour confirmer.')) {
|
354 |
if (window.confirm ('Cliquez sur OK pour confirmer.')) {
|
| Line 370... |
Line 376... |
| 370 |
|
376 |
|
| 371 |
";
|
377 |
";
|
| Line 372... |
Line 378... |
| 372 |
GEN_stockerCodeScript($javascript);
|
378 |
GEN_stockerCodeScript($javascript);
|
| 373 |
|
- |
|
| Line 374... |
Line -... |
| 374 |
$res = '';
|
- |
|
| 375 |
$tabmonde = explode ('*',$monde->historique);
|
- |
|
| 376 |
|
- |
|
| 377 |
// Premier cas, on vient de cliquer sur un pays qui n'est pas
|
- |
|
| 378 |
// la France, on affiche les adhérents de ce pays
|
- |
|
| 379 |
if (count($tabmonde) == 3) {
|
- |
|
| 380 |
$argument = $tabmonde[2];
|
- |
|
| 381 |
$query = 'SELECT * FROM carto_PAYS WHERE CP_ID_pays="'.$argument.'"';
|
- |
|
| 382 |
$result = $GLOBALS['ins_db']->query($query);
|
- |
|
| 383 |
if (DB::isError($result)) {
|
- |
|
| 384 |
die ($result->getMessage().'<br />'.$result->getDebugInfo()) ;
|
- |
|
| 385 |
}
|
- |
|
| 386 |
$row = $result->fetchRow(DB_FETCHMODE_OBJECT) ;
|
- |
|
| 387 |
$pays = $row->CP_Intitule_pays;
|
- |
|
| 388 |
$monde->nom = $monde->nom.'*'.$pays;
|
- |
|
| 389 |
$tabonglet = explode ('*', $monde->historique);
|
- |
|
| 390 |
$tabnom = explode ('*', $monde->nom);
|
- |
|
| 391 |
$res .='<br /><strong>'.INS_RETOUR_A_LA_CARTE."\n";
|
- |
|
| 392 |
foreach ($tabonglet as $key => $value) {
|
- |
|
| 393 |
if ($key == 0) {
|
- |
|
| 394 |
$chemin = $value;
|
- |
|
| 395 |
$value = 'monde';
|
- |
|
| 396 |
$res .= "<a class=\"chemin_carto\" href=\"".$monde->url."&historique_cartes=$chemin\"> > ".$tabnom[$key]."</a>";
|
- |
|
| 397 |
} else if ($key == (count($tabonglet)-1)) {
|
- |
|
| 398 |
$res .= "<a class=\"chemin_carto\"> > $pays</a>";
|
- |
|
| 399 |
} else {
|
- |
|
| 400 |
$chemin .= '*'.$value;
|
- |
|
| 401 |
$res .= "<a class=\"chemin_carto\" href=\"".$monde->url."&historique_cartes=$chemin\"> > ".$tabnom[$key]."</a>";
|
- |
|
| 402 |
}
|
- |
|
| 403 |
}
|
- |
|
| 404 |
$res .= '</strong>'."\n";
|
- |
|
| 405 |
$capitale = $row->CP_Intitule_capitale;
|
- |
|
| 406 |
$query2 = ' SELECT count('.$nom_champs_cp.') as nbr'.
|
- |
|
| 407 |
' FROM '.$nom_table1;
|
- |
|
| 408 |
if ($nom_table2!=0) $query2 .= ', '.$nom_table2;
|
- |
|
| 409 |
$query2 .= ' WHERE '.$nom_champs_pays.'="'.$argument.'"';
|
- |
|
| 410 |
if ($requete_sql!='') $query2 .= ' AND ('.$requete_sql.')';
|
- |
|
| 411 |
|
- |
|
| 412 |
$result2 = $GLOBALS['ins_db']->query($query2);
|
- |
|
| 413 |
if (DB::isError($result2)) {
|
- |
|
| 414 |
die ($result2->getMessage().'<br />'.$result2->getDebugInfo()) ;
|
- |
|
| 415 |
}
|
- |
|
| 416 |
$row2 = $result2->fetchRow(DB_FETCHMODE_OBJECT) ;
|
- |
|
| 417 |
$res .= '<br /><br /><div class="info_pays">'.$pays.' (capitale: '.$capitale.') : ' ;
|
- |
|
| 418 |
if ($row2->nbr == 0) {
|
- |
|
| 419 |
$res .= INS_AUCUN_INSCRIT.' '.INS_LABEL_PROJET ;
|
- |
|
| 420 |
|
- |
|
| 421 |
}
|
- |
|
| 422 |
else if ($row2->nbr == 1) {
|
- |
|
| 423 |
$res .= $row2->nbr.' '.INS_INSCRIT.' '.INS_LABEL_PROJET ;
|
- |
|
| 424 |
}
|
- |
|
| 425 |
else {
|
- |
|
| 426 |
$res .= $row2->nbr.' '.INS_INSCRIT.'s '.INS_LABEL_PROJET ;
|
- |
|
| 427 |
}
|
- |
|
| 428 |
$res .= "</div>\n";
|
- |
|
| 429 |
if ($row2->nbr>0) {
|
- |
|
| 430 |
if ((INS_NECESSITE_LOGIN)and(!$GLOBALS['AUTH']->getAuth())) {
|
- |
|
| 431 |
$res .= '<br /><p class="zone_alert">'.INS_VOUS_DEVEZ_ETRE_INSCRIT.'</p>'."\n" ;
|
- |
|
| 432 |
}
|
- |
|
| 433 |
else {
|
- |
|
| 434 |
$requete = 'SELECT '.INS_CHAMPS_ID.', '.INS_CHAMPS_NOM.', '.INS_CHAMPS_PRENOM.', '.INS_CHAMPS_VILLE.', '.INS_CHAMPS_CODE_POSTAL.' FROM '.$nom_table1;
|
- |
|
| 435 |
if ($nom_table2!=0) $requete .= ', '.$nom_table2;
|
- |
|
| 436 |
$requete .= ' WHERE '.$nom_champs_pays.'="'.$argument.'"';
|
- |
|
| 437 |
if ($requete_sql!='') $requete .= ' AND ('.$requete_sql.')';
|
- |
|
| 438 |
$requete .= ' ORDER BY '.INS_CHAMPS_NOM.', '.INS_CHAMPS_PRENOM;
|
- |
|
| 439 |
$resultat = $GLOBALS['ins_db']->query($requete);
|
- |
|
| 440 |
$i=0;
|
- |
|
| 441 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
|
- |
|
| 442 |
$donnees_membres[$i++]=$ligne;
|
- |
|
| 443 |
}
|
- |
|
| 444 |
$res .= listes_inscrit($donnees_membres, 1);
|
- |
|
| 445 |
if ($mailer==1) {
|
- |
|
| 446 |
if (!is_array($select)) {
|
- |
|
| 447 |
$res .= "<div>".INS_NO_DESTINATAIRE."</div>";
|
- |
|
| 448 |
}
|
- |
|
| 449 |
else {
|
- |
|
| 450 |
$res .= '<div class="zone_info">'.INS_MESSAGE_ENVOYE.'</div>'."\n" ;
|
- |
|
| 451 |
carto_envoie_mail() ;
|
- |
|
| 452 |
}
|
- |
|
| 453 |
}
|
- |
|
| 454 |
else {
|
- |
|
| 455 |
$res .= carto_texte_cocher() ;
|
- |
|
| 456 |
}
|
- |
|
| 457 |
$res .= carto_formulaire() ;
|
- |
|
| 458 |
}
|
- |
|
| 459 |
}
|
- |
|
| 460 |
|
- |
|
| 461 |
// 2 ème cas, on vient de cliquer sur un département français
|
- |
|
| 462 |
} else if (count($tabmonde) == 4) {
|
- |
|
| 463 |
$argument = $tabmonde[3];
|
- |
|
| 464 |
$query = 'SELECT * FROM '.INS_TABLE_DPT.' WHERE '.INS_CHAMPS_ID_DEPARTEMENT.'='.$argument;
|
- |
|
| 465 |
$result = $GLOBALS['ins_db']->query($query);
|
- |
|
| 466 |
if (DB::isError($result)) {
|
- |
|
| 467 |
die ($result->getMessage() .'<br />'.$result->getDebugInfo());
|
- |
|
| 468 |
}
|
- |
|
| 469 |
$row = $result->fetchRow(DB_FETCHMODE_ASSOC);
|
- |
|
| 470 |
$nom = $row[INS_CHAMPS_NOM_DEPARTEMENT];
|
- |
|
| 471 |
|
- |
|
| 472 |
$query2 = ' SELECT count('.$nom_champs_cp.') as nbr'.
|
- |
|
| 473 |
' FROM '.$nom_table1;
|
- |
|
| 474 |
if ($nom_table2!=0) $query2 .= ', '.$nom_table2;
|
- |
|
| 475 |
$query2 .= ' WHERE '.$nom_champs_cp.' LIKE "'.$argument.'%"'.
|
- |
|
| 476 |
' AND '.$nom_champs_pays.'="FR"';
|
- |
|
| 477 |
if ($requete_sql!='') $query2 .= ' AND ('.$requete_sql.')';
|
- |
|
| 478 |
$result2 = $GLOBALS['ins_db']->query($query2);
|
- |
|
| Line -... |
Line 379... |
| - |
|
379 |
|
| - |
|
380 |
$res = '';
|
| - |
|
381 |
|
| - |
|
382 |
|
| - |
|
383 |
$tabonglet = explode ('*', $monde->historique);
|
| - |
|
384 |
$id_zone = $tabonglet[count($tabonglet)-1];
|
| - |
|
385 |
$tabnom = explode ('*', $monde->nom);
|
| - |
|
386 |
|
| - |
|
387 |
$query = 'SELECT * FROM '.$monde->_info_table_zg['nom_table_zone'].
|
| - |
|
388 |
' WHERE '.$monde->_info_table_zg['nom_chp_id_zone'].'="'.$id_zone.'"';
|
| - |
|
389 |
$result = $GLOBALS['ins_db']->query($query);
|
| - |
|
390 |
if (DB::isError($result)) {
|
| - |
|
391 |
return ($result->getMessage().'<br />'.$result->getDebugInfo()) ;
|
| - |
|
392 |
}
|
| - |
|
393 |
$row = $result->fetchRow(DB_FETCHMODE_ASSOC) ;
|
| - |
|
394 |
$pays = $row[$monde->_info_table_zg['nom_chp_nom_zone']];
|
| - |
|
395 |
|
| - |
|
396 |
$res .='<br /><strong>'.INS_RETOUR_A_LA_CARTE."\n";
|
| - |
|
397 |
foreach ($tabonglet as $key => $value) {
|
| - |
|
398 |
if ($key == 0) {
|
| - |
|
399 |
$chemin = $value;
|
| - |
|
400 |
$value = 'monde';
|
| - |
|
401 |
$GLOBALS['ins_url']->addQueryString('historique_cartes', $chemin);
|
| - |
|
402 |
$res .= '<a class="chemin_carto" href="'.$GLOBALS['ins_url']->getURL().'"> > '.$tabnom[$key]."</a>";
|
| - |
|
403 |
} else if ($key == (count($tabonglet)-1)) {
|
| - |
|
404 |
$res .= "<a class=\"chemin_carto\"> > $pays</a>";
|
| - |
|
405 |
} else {
|
| - |
|
406 |
$chemin .= '*'.$value;
|
| - |
|
407 |
$GLOBALS['ins_url']->addQueryString('historique_cartes', $chemin);
|
| - |
|
408 |
$res .= '<a class="chemin_carto" href="'.$GLOBALS['ins_url']->getURL().'"> > '.$tabnom[$key]."</a>";
|
| - |
|
409 |
}
|
| - |
|
410 |
}
|
| - |
|
411 |
$res .= '</strong>'."\n";
|
| - |
|
412 |
if (isset($_GET['voir_fiche'])) {
|
| - |
|
413 |
include_once PAP_CHEMIN_RACINE.'/client/bazar/bibliotheque/bazar.fonct.rss.php' ;
|
| - |
|
414 |
if (defined('PAP_VERSION')) { //si on est dans Papyrus
|
| - |
|
415 |
GEN_stockerStyleExterne( 'bazar_interne', 'client/bazar/bazar.interne.css');
|
| - |
|
416 |
}
|
| - |
|
417 |
$res .= baz_voir_fiche(0, $_GET['voir_fiche']);
|
| - |
|
418 |
return $res ;
|
| - |
|
419 |
}
|
| - |
|
420 |
$query2 = ' SELECT count('.$monde->champs_jointure.') as nbr'.
|
| - |
|
421 |
' FROM '.$carto_config['cc_table1'];
|
| - |
|
422 |
if ($carto_config['cc_table2']!='') $query2 .= ', '.$carto_config['cc_table2'].' as '.$monde->id;
|
| - |
|
423 |
//$query2 .= ' WHERE '.$nom_champs_pays.'="'.$argument.'"';
|
| - |
|
424 |
if ($carto_config['cc_sql'] != '') $query2 .= ' where ('.$carto_config['cc_sql'].')';
|
| - |
|
425 |
$query2 .= ' and '.$monde->champs_jointure.'="'.$id_zone.'"';
|
| - |
|
426 |
if ($monde->sql_complementaire != '') $query2 .= ' and '.$monde->sql_complementaire;
|
| 479 |
if (DB::isError($result2)) {
|
427 |
$result2 = $GLOBALS['ins_db']->query($query2);
|
| 480 |
die ($result2->getMessage().'<br />'.$result2->getDebugInfo()) ;
|
428 |
if (DB::isError($result2)) {
|
| 481 |
}
|
429 |
return ($result2->getMessage().'<br />'.$result2->getDebugInfo()) ;
|
| 482 |
|
430 |
}
|
| - |
|
431 |
$row2 = $result2->fetchRow(DB_FETCHMODE_OBJECT) ;
|
| - |
|
432 |
$res .= '<br /><br /><div class="info_pays">'.$pays.' : ' ;
|
| - |
|
433 |
if ($row2->nbr == 0) {
|
| - |
|
434 |
$res .= INS_AUCUN_INSCRIT.' '.INS_LABEL_PROJET ;
|
| - |
|
435 |
} else {
|
| - |
|
436 |
$res .= $row2->nbr.' '.INS_INSCRIT;
|
| - |
|
437 |
if ($row2->nbr > 1) $res .= 's' ;
|
| - |
|
438 |
$res .= ' '.INS_LABEL_PROJET ;
|
| - |
|
439 |
}
|
| - |
|
440 |
|
| - |
|
441 |
$res .= "</div>\n";
|
| 483 |
$row2 = $result2->fetchRow(DB_FETCHMODE_OBJECT);
|
442 |
//*/
|
| 484 |
$res .= '<br /><p class="zone_info">'."\n" ;
|
- |
|
| 485 |
if ($row2->nbr == 0) {
|
- |
|
| 486 |
$res .= INS_AUCUN_INSCRIT." ".INS_LABEL_PROJET ;
|
- |
|
| 487 |
}
|
443 |
if ($row2->nbr>0) {
|
| 488 |
else if ($row2->nbr == 1) {
|
444 |
if ((INS_NECESSITE_LOGIN)and(!$GLOBALS['AUTH']->getAuth())) {
|
| 489 |
$res .= $row2->nbr." ".INS_INSCRIT." ".INS_LABEL_PROJET ;
|
- |
|
| 490 |
}
|
445 |
$res .= '<br /><p class="zone_alert">'.INS_VOUS_DEVEZ_ETRE_INSCRIT.'</p>'."\n" ;
|
| 491 |
else {
|
446 |
}
|
| - |
|
447 |
else {
|
| 492 |
$res .= $row2->nbr." ".INS_INSCRIT."s ".INS_LABEL_PROJET ;
|
448 |
$requete = 'SELECT '.$carto_config['cc_titre'].','.$carto_config['cc_champs_id'].' FROM '.
|
| 493 |
}
|
449 |
$carto_config['cc_table1'];
|
| 494 |
$res .= '</p>'."\n";
|
- |
|
| 495 |
if ($row2->nbr>0) {
|
450 |
if ($carto_config['cc_table2'] != '') $requete .= ', '.$carto_config['cc_table2'].' as '.$monde->id;
|
| 496 |
if ((INS_NECESSITE_LOGIN)and(!$GLOBALS['AUTH']->getAuth())) {
|
451 |
|
| 497 |
$res .= '<br /><p class="zone_alert">'.INS_VOUS_DEVEZ_ETRE_INSCRIT.'</p>'."\n" ;
|
452 |
$requete .= ' where '.$monde->champs_jointure.'="'.$id_zone.'"';
|
| - |
|
453 |
if ($carto_config['cc_sql'] != '') $requete .= ' and '.$carto_config['cc_sql'].'';
|
| 498 |
} else {
|
454 |
if ($monde->sql_complementaire != '') $requete .= ' and '.$monde->sql_complementaire;
|
| - |
|
455 |
$requete .= ' ORDER BY '.$carto_config['cc_titre'];
|
| - |
|
456 |
|
| - |
|
457 |
$resultat = $GLOBALS['ins_db']->query($requete);
|
| - |
|
458 |
if (DB::isError($resultat)) {
|
| - |
|
459 |
return ($resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ;
|
| - |
|
460 |
}
|
| - |
|
461 |
$i=0;
|
| - |
|
462 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
|
| 499 |
$requete = 'SELECT '.INS_CHAMPS_ID.', '.INS_CHAMPS_NOM.', '.INS_CHAMPS_PRENOM.', '.INS_CHAMPS_VILLE.', '.INS_CHAMPS_CODE_POSTAL.' FROM '.$nom_table1;
|
463 |
$donnees_membres[$i++]=$ligne;
|
| - |
|
464 |
}
|
| 500 |
if ($nom_table2!=0) $requete .= ', '.$nom_table2;
|
465 |
$res .= listes_inscrit($donnees_membres, 1, $carto_config);
|
| 501 |
|
- |
|
| 502 |
if (strlen($argument)==1) {
|
- |
|
| 503 |
$argument='0'.$argument;
|
- |
|
| 504 |
}
|
- |
|
| 505 |
|
- |
|
| 506 |
$requete .= ' WHERE '.$nom_champs_cp.' LIKE "'.$argument.'%"'.
|
- |
|
| 507 |
' AND '.$nom_champs_pays.'="FR"';
|
- |
|
| 508 |
if ($requete_sql!='') $requete .= ' AND ('.$requete_sql.')';
|
- |
|
| 509 |
$requete .= ' ORDER BY '.INS_CHAMPS_NOM.', '.INS_CHAMPS_PRENOM;
|
- |
|
| 510 |
$resultat = $GLOBALS['ins_db']->query($requete);
|
- |
|
| 511 |
$i=0;
|
- |
|
| 512 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
|
- |
|
| 513 |
$donnees_membres[$i++]=$ligne;
|
- |
|
| 514 |
}
|
- |
|
| 515 |
$res .= listes_inscrit($donnees_membres, 1);
|
- |
|
| 516 |
|
466 |
if ($mailer==1) {
|
| 517 |
if ($mailer==1) {
|
467 |
if (!is_array($select)) {
|
| 518 |
if (!is_array($select)) {
|
468 |
$res .= "<div>".INS_NO_DESTINATAIRE."</div>";
|
| 519 |
$res.= INS_NO_DESTINATAIRE;
|
- |
|
| 520 |
} else {
|
469 |
}
|
| - |
|
470 |
else {
|
| - |
|
471 |
$res .= '<div class="zone_info">'.INS_MESSAGE_ENVOYE.'</div>'."\n" ;
|
| - |
|
472 |
carto_envoie_mail() ;
|
| 521 |
$res .= '<p class="zone_info">'.INS_MESSAGE_ENVOYE."</p>\n" ;
|
473 |
}
|
| - |
|
474 |
}
|
| 522 |
carto_envoie_mail() ;
|
475 |
else {
|
| - |
|
476 |
//$res .= carto_texte_cocher() ;
|
| - |
|
477 |
}
|
| - |
|
478 |
//$res .= carto_formulaire() ;
|
| 523 |
}
|
479 |
}
|
| 524 |
}
|
480 |
|
| 525 |
}
|
481 |
|
| Line 1282... |
Line 1238... |
| 1282 |
|
1238 |
|
| 1283 |
|
1239 |
|
| 1284 |
//-- Fin du code source ------------------------------------------------------------
|
1240 |
//-- Fin du code source ------------------------------------------------------------
|
| - |
|
1241 |
/*
|
| - |
|
1242 |
* $Log$
|
| - |
|
1243 |
* Revision 1.8 2006/12/01 13:23:15 florian
|
| 1285 |
/*
|
1244 |
* integration annuaire backoffice
|
| 1286 |
* $Log$
|
1245 |
*
|
| 1287 |
* Revision 1.7 2006/10/05 13:53:54 florian
|
1246 |
* Revision 1.7 2006/10/05 13:53:54 florian
|
| 1288 |
* amélioration des fichiers sql
|
1247 |
* amélioration des fichiers sql
|
| 1289 |
*
|
1248 |
*
|