$ret = photo_viewer($id, $va, $opt, $optb); break; case "chat": $ret = plugin_func($n, $id, $va, $opt, $res); break; case "chatxml": $ret = plugin_func($n, $id, $va, $opt, $res); break; //sys //sys case "offon": $ret = offon($id); break; case "nbp": req('pop,spe,tri'); $ret = nbp($id, $va); $t = 'footnote #' . $id; $s = 400; break; case "export": $ret = exportation($id, $va, $opt, $optb); $t = 'export:' . $id; $s = 440; break; case "deploy": $ret = plugin('deploy', $id); $t = 'deployement: ' . $id; $s = 440; break; //j //j
$choix[$val] = ""; while ($couleur[$j]) { if ($j > 0) { $condition = "' OR couleur = '"; } $choix[$val] .= $condition . $couleur[$j]; $j++; } $choix[$val] .= "' "; if (count($couleur) > 1) { $choix[$val] .= ") "; } } $critere = $choix[0] . $choix[1] . " "; for ($j = 2; $j < $i; $j += 2) { $critere .= " AND " . $choix[$j] . $choix[$j + 1] . " "; } if ($i > 0) { //================ limite ======================= $sql = mysql_query("SELECT id FROM csv where {$critere} ", $connexion); $nb_de_lignes = mysql_num_rows($sql); $nb_de_pages = nbp($nb_de_lignes, $increment); //-- pour verification uniquement - a desactiver //echo "nb ligne $nb_de_lignes <br>"; //echo "nb page $nb_de_pages <br>"; //---------------------------------------------- if ($_GET['page']) { //test si un lien a été cliqué $flagpage = 1; // on met le drapeau à 1 $page = $_GET['page'];