echo "<td><center><input type=\"text\" name=\"url[]\" value=\"{$row['2']}\" size=40 maxlength=200></td>"; echo "<input type=\"hidden\" name=\"id[]\" value=\"{$row['0']}\">"; echo "</tr>"; } echo "<input type=\"hidden\" name=\"actionc\" value=\"2\">"; echo "<input type=\"hidden\" name=\"page\" value=\"fiches_clubs\">"; echo "<input type=\"hidden\" name=\"action\" value=\"rens\">"; echo "<tr><td colspan=\"2\"><br /></tr>"; echo "<tr><td colspan=\"2\"><center><input type=\"submit\" value=" . ADMIN_RENS_11 . "></tr>"; echo "</table></center></form><br />"; echo "<hr>"; // Classer les renseignements // Entrer un renseignement dans une classe echo "<br />"; echo "</center>"; $nb_rens2 = nb_rens2($id); $nb_rens2 = $nb_rens2 + 1; echo ADMIN_RENS_4; echo "<form method=\"post\" action=\"\">"; echo "<select name=\"rens\">"; echo "<option value=\"0\"> </option>"; $result = mysql_query("SELECT id, nom, id_classe FROM phpl_rens ORDER BY nom"); while ($row = mysql_fetch_array($result)) { $a = $row[1] + 1; $rens_nom = stripslashes($row[1]); echo " <option value=\"{$row['0']}\">{$rens_nom}"; echo "</option>\n"; } echo "</select>"; echo ADMIN_RENS_1; echo "<select name=\"classe[]\">";
echo "</form>"; } elseif ($go != "1") { // On met a jour la bd //$query= "SELECT * FROM phpl_logo WHERE id_club='$id'"; //$result = mysql_query ($query); //$nb=mysql_num_rows($result); // Si pas d'URL logo renseignée, on l'insère //if ($nb=='0') //{ //mysql_query ("INSERT INTO phpl_logo (id_club) VALUES ('$id')") or die ("probleme " .mysql_error()); //mysql_query ("UPDATE phpl_clubs SET url_logo = '$pts' WHERE id = '$id_equipe'") or die ("probleme " .mysql_error()); //} $query2 = "SELECT * FROM phpl_donnee WHERE id_clubs='{$id}'"; $result2 = mysql_query($query2); $nb2 = mysql_num_rows($result2); $nb_rens = nb_rens2(); // Si pas de donnée pour les renseignements, on les crée if (!$nb2 == $nb_rens) { $query = "SELECT id FROM phpl_rens"; $result = mysql_query($query); while ($row = mysql_fetch_array($result)) { mysql_query("INSERT INTO phpl_donnee (id_clubs, id_rens) VALUES ('{$id}', '{$row['0']}')") or die("probleme " . mysql_error()); } } echo "<h3>"; $query = "SELECT id, nom FROM phpl_clubs WHERE id='{$id}'"; $result = mysql_query($query); while ($row = mysql_fetch_array($result)) { $row[1] = stripslashes($row[1]); echo "<h3 align=\"center\">"; echo ADMIN_GESTEQUIPE_1 . " ";