\n"; echo "\n"; echo ""; echo ""; echo ""; echo "\n"; echo ""; echo "\n"; echo ""; echo "\n"; echo ""; echo "\n"; echo ""; echo "\n"; echo ""; echo "\n\n"; // echo ""; // echo "\n"; echo "
$titre[$lang]
$t_pren[$lang]:
$t_nom[$lang]:
$t_org[$lang]:
$t_mail[$lang]:
$t_vil[$lang]:
$t_com[$lang]:\n"; // echo "
<< $retour_liste[$lang]
"; echo "
"; echo "
\n"; echo "
<< $retour_liste[$lang]\n"; echo "
"; echo ""; echo ""; } elseif($mam_topic=='poster') // on poste les infos du signataire { if( empty($mam_nom) OR empty($mam_org) ) { echo "
$incomplet[$lang]

\n"; echo "
<< Retornar al formulario
\n"; } else { $db = mysql_connect("$host", "$login", "$password"); mysql_select_db("$base",$db); $date = date("d-m-Y"); $heure = date("H\hi"); $ip = getenv("REMOTE_ADDR"); $mam_nom = addslashes($mam_nom); $mam_pren = addslashes($mam_pren); $mam_mail = addslashes($mam_mail); $mam_vil = addslashes($mam_vil); $mam_org = addslashes($mam_org); $mam_com= addslashes($mam_com); mysql_query("INSERT INTO $tbl_petition VALUES('','$mam_nom','$mam_pren','$mam_mail','$mam_vil','$mam_org','$mam_com','$ip','$date','$heure')"); mysql_close(); echo ""; // Header("Location: $index"); } } } else // on affiche le texte et les signatures { $db = mysql_connect("$host", "$login", "$password"); mysql_select_db("$base",$db); if(!isset($mam_limit) || $mam_limit==''){ $mam_limit = 0; } $count_req = mysql_query("SELECT id FROM $tbl_petition"); $count = mysql_numrows($count_req); $comptage_req = mysql_query("SELECT * FROM $tbl_petition ORDER BY id LIMIT $mam_limit, $qte"); $comptage = mysql_numrows($comptage_req); // afficher bandeau et titre ?>


 

$titre[$lang]

"; // si 1e page, afficher texte if ($mam_limit == 0) { include $fich_texte[$lang]; } // echo "$signer[$lang]"; echo "
"; echo "$signer[$lang]"; echo "
"; echo "
$count $signature[$lang]"; // echo " | Contact echo "
\n"; echo "
\n"; echo "
\n"; echo "\n"; $i=0; WHILE($i!=$comptage) { $id = mysql_result($comptage_req,$i,"id"); $nom = mysql_result($comptage_req,$i,"nom"); $pren = mysql_result($comptage_req,$i,"prenom"); $org = mysql_result($comptage_req,$i,"org"); // $coment = mysql_result($comptage_req,$i,"coment"); $date = mysql_result($comptage_req,$i,"date"); // $heure = mysql_result($comptage_req,$i,"heure"); // $coment= stripslashes(stripslashes($coment)); $nom = stripslashes(stripslashes($nom)); $pren = stripslashes(stripslashes($pren)); $org = stripslashes(stripslashes($org)); if ($org!='') { $org=' ('.$org.')'; } if ($pren!='') { $nom=$pren.' '.$nom; } echo "\n"; // echo "\n"; $i++; } echo "
($id) $nom$org ($date)
$coment

\n\n"; // gestion des liens pages ---------------------------- $pages = $count / $qte; $pages = floor($pages); if($count>$qte) { $footer = "$page[$lang]: index\n"; if($count==40){ $i = 1; }else{ $i = 0; } $comptage = $qte; $page_num = 2; WHILE($i!=$pages) { if($mam_limit==$comptage) { $footer .= " | $page_num\n"; $comptage += $qte; $page_num++; $i++; } else { $footer .= " | $page_num\n"; $comptage += $qte; $page_num++; $i++; } } } $reste = $count - $mam_limit - $qte; $reste_limit = $mam_limit + $qte; if($reste<=0) { $reste = "Fin de las firmas"; $avant = ""; $apres = ""; } else { $reste = "$qte en pantalla - Faltan "; $reste .= $count - $mam_limit - $qte; $avant = ""; $apres = ""; } if($count==0) { $reste = "No hay firmas en el momento."; $avant = ""; $apres = ""; } // echo "
[$avant"."$reste"."$apres]

\n"; echo "
$footer
\n"; echo "


\n"; ?>

Home IniciativasPonenciasDocumentosMama Coca

2003 Mama Coca. Favor compartir esta información y ayudarnos a divulgarla citando a Mama Coca.