echo "<table id=table_1><tr><td>"; //metaform_bool_appared ("Importer un seul fichier ",null,$onchange,null,"lonely_file","f"); metaform_sel("Catalogue", "", 30, $ref[$champ_ref["idCatalogue"]], "idCatalogue", "", pg_fetch_result(pg_query($db, $query_description . "'idCatalogue'" . ";"), 0, "description")); echo "</td></tr></table>"; metaform_sel("CBN (auteur principal)*", "", 30, $array_cbn, "idTerritoireObligatoire", "", pg_fetch_result(pg_query($db, $query_description . "'idTerritoire'" . ";"), 0, "description")); metaform_sel("Présence sur le territoire d'agrément du CBN", "", 30, $ref[$champ_ref["statutChorologie"]], "statutChorologie", "", pg_fetch_result(pg_query($db, $query_description . "'statutChorologie'" . ";"), 0, "description")); //metaform_sel ("Catalogue","",30,$ref[$champ_ref["idCatalogue"]],"idCatalogue",'', pg_fetch_result(pg_query ($db,$query_description."'idCatalogue'".";"),0,"description" )); echo "</fieldset>"; echo "<fieldset><LEGEND>Syntaxonomie</LEGEND>"; // metaform_text ("<b>Code de l'enregistrement*</b>"," ",30,"width:30em;","codeEnregistrementSyntax",sql_format_quote(pg_result($result,0,"\"codeEnregistrementSyntax\"" ),'undo_text'), pg_fetch_result(pg_query ($db,$query_description."'codeEnregistrementSyntax'".";"),0,"description" )); echo "<br>"; metaform_text("Identifiant du syntaxon", " ", 30, "width:30em;", "idSyntaxon", '', pg_fetch_result(pg_query($db, $query_description . "'idSyntaxon'" . ";"), 0, "description")); metaform_text("Nom scientifique", "", 30, "width:30em;", "nomSyntaxon", '', pg_fetch_result(pg_query($db, $query_description . "'nomSyntaxon'" . ";"), 0, "description"), '', "off"); metaform_text("Auteur", "", 30, "width:30em;", "auteurSyntaxon", '', pg_fetch_result(pg_query($db, $query_description . "'auteurSyntaxon'" . ";"), 0, "description"), '', "off"); metaform_text("Nom complet", " bloque", 30, "width:30em;", "nomCompletSyntaxon", '', pg_fetch_result(pg_query($db, $query_description . "'nomCompletSyntaxon'" . ";"), 0, "description")); metaform_sel("Rang syntaxon", "", "", $ref[$champ_ref["rangSyntaxon"]], "rangSyntaxon", '', pg_fetch_result(pg_query($db, $query_description . "'rangSyntaxon'" . ";"), 0, "description")); echo "</fieldset>"; /*------------------------------------------------------------------------------ SAVE */ echo "<div style=\"float:right;\"><br>"; echo "<button id=\"enregistrer2-add-button\">" . $lang[$lang_select]['enregistrer'] . "</button> "; echo "<button id=\"retour2-button\">" . $lang[$lang_select]['liste_taxons'] . "</button> "; echo "</div>"; echo "</form>"; echo "</div>"; echo "<div id=\"exit-confirm\" title=\"Retour\">"; echo "<p><span class=\"ui-icon ui-icon-alert\" style=\"float:left; margin:0 7px 20px 0;\"></span>" . $lang[$lang_select]['retour_dialog'] . "</p>"; echo "</div>"; echo "<div id=\"enregistrer-dialog\">"; echo "<center><img src=\"../../_GRAPH/check.png\" /><br>" . $lang[$lang_select]['enregistrer_dialog'] . "</center>"; echo "</div>"; ?>
echo "</div>"; echo "<div style=\"float:right;\">"; echo "<button id=\"enregistrer1-add-button\">" . $lang[$lang_select]['enregistrer'] . "</button> "; echo "<button id=\"retour1-button\">" . $lang[$lang_select]['liste_taxons'] . "</button> "; echo "</div><br><br>"; echo "<br><br>"; echo "<div id=\"radio2\">"; echo "<input type=\"hidden\" name=\"etape\" id=\"etape2\" value=\"2\">"; /*------------------------------------------------------------------------------ AJOUT Fiche */ $rang = array('' => '', 'ES' => 'ES', 'SSES' => 'SSES', 'VAR' => 'VAR', 'SVAR' => 'SVAR', 'FO' => 'FO', 'SSFO' => 'SSFO', 'CAR' => 'CAR'); echo "<fieldset><LEGEND>Taxonomie</LEGEND>"; metaform_text("Code NOM.", "", "", "style=width:10em;", "cd_nom", ""); metaform_text("Famille", "", "", "style=width:30em;", "famille", ""); metaform_text("Nom scientifique", "", "", "style=width:30em;", "nom_complet", ""); metaform_text("Nom(s) vernaculaire(s)", "", "", "style=width:51em;", "nom_vern", ""); metaform_sel("Rang", "", "", $rang, "rang", ""); metaform_bout("Taxon hybride?", "", "hybride", ""); echo "</fieldset>"; echo "<fieldset><LEGEND>Rubrique</LEGEND>"; metaform_bool("Rub. CATNAT", "", "catnat", "f"); metaform_bool("Rub. Liste rouge", "", "liste_rouge", "f"); metaform_bool("Rub Liste EEE", "", "eee", "f"); echo "</fieldset>"; /*------------------------------------------------------------------------------ SAVE */ echo "<div style=\"float:right;\"><br>"; echo "<button id=\"enregistrer2-add-button\">" . $lang[$lang_select]['enregistrer'] . "</button> "; echo "<button id=\"retour2-button\">" . $lang[$lang_select]['liste_taxons'] . "</button> "; echo "</div>"; echo "</form>"; echo "</div>"; echo "<div id=\"exit-confirm\" title=\"Retour\">";
// metaform_text_area (""," no_lab bloque","10","50","height:133;width:100;resize:none;","fiaba",""); // echo ("<br>"); // metaform_text_area (""," no_lab bloque","10","50","height:133;width:100;resize:none;","fiabb",""); // echo ("<br>"); // metaform_text_area (""," no_lab bloque","10","50","height:133;width:100;resize:none;","fiabc",""); // echo ("<br>"); // metaform_text_area (""," no_lab","10","50","height:30;width:100;resize:none;","fiabtot",""); echo "<h3 style=\"margin-right:40px;\">Evaluation globale de l'espèce</h3>"; echo "A l'issu de l'évaluation, comment l'espèce est-elle considérée?"; metaform_text_area("A l'issu de l'évaluation, le taxon est considéré de la manière suivante", " no_lab {$desc}", "10", "50", "height:200;", "eval_expert", sql_format_quote($eval_expert, 'undo_html')); echo "<h3 style=\"margin-right:40px\">Statuts de l'espèce</h3>"; metaform_sel("Le taxon appartient à la ", $desc, "", $liste_eval, "liste_eval", $liste_eval_base); echo "<br>"; metaform_sel("Le taxon est", $desc, "", $carac_emerg, "carac_emerg", $carac_emerg_base); echo "<br>"; metaform_sel("Caractère envahissant", $desc, "", $carac_avere, "carac_avere", $carac_avere_base); echo "<br><br><br><br><br><br><br>"; echo "</td></tr></table><br>"; echo "</fieldset>"; echo "</div>"; //------------------------------------------------------------------------------ EDIT LR GRP6 echo "<div id=\"radio2\">"; echo "<fieldset><LEGEND> " . $lang[$lang_select]['groupe_lr_5'] . "</LEGEND>"; /*requete discussion*/ $query = $query_discussion . $id . ";"; $discussion = pg_query($db, $query) or fatal_error("Erreur pgSQL : " . pg_result_error($query), false); if ($niveau < 64) { echo "<label class=\"preField_calc\">Discussion sur la fiche</label>"; } else { echo "<label class=\"preField\">Discussion sur la fiche</label>"; }
echo "</td><td width=33%>"; metaform_sel("Début de période optimale", "", 30, $ref[$champ_ref['periodeDebObsOptimale']], "periodeDebObsOptimale", pg_result($result_syntaxon, 0, "\"periodeDebObsOptimale\""), pg_fetch_result(pg_query($db, $query_description . "'periodeDebObsOptimale'" . ";"), 0, "description")); echo "</td><td width=33%>"; metaform_sel("Fin de période optimale", "", 30, $ref[$champ_ref['periodeFinObsOptimale']], "periodeFinObsOptimale", pg_result($result_syntaxon, 0, "\"periodeFinObsOptimale\""), pg_fetch_result(pg_query($db, $query_description . "'periodeFinObsOptimale'" . ";"), 0, "description")); echo "</td></tr></table>"; echo "<br>"; echo "<table><tr><td width=50%>"; metaform_sel("Humidité principale", "", 30, $ref[$champ_ref['humiditePrincipale']], "humiditePrincipale", pg_result($result_syntaxon, 0, "\"humiditePrincipale\""), pg_fetch_result(pg_query($db, $query_description . "'humiditePrincipale'" . ";"), 0, "description")); echo "</td><td width=50%>"; metaform_sel("Humidité secondaire", "", 30, $ref[$champ_ref['humiditeSecondaire']], "humiditeSecondaire", pg_result($result_syntaxon, 0, "\"humiditeSecondaire\""), pg_fetch_result(pg_query($db, $query_description . "'humiditeSecondaire'" . ";"), 0, "description")); echo "</td></tr></table>"; echo "<br>"; echo "<table><tr><td width=50%>"; metaform_sel("Ph principal", "", 30, $ref[$champ_ref['phPrincipal']], "phPrincipal", pg_result($result_syntaxon, 0, "\"phPrincipal\""), pg_fetch_result(pg_query($db, $query_description . "'phPrincipal'" . ";"), 0, "description")); echo "</td><td width=50%>"; metaform_sel("Ph secondaire", "", 30, $ref[$champ_ref['phSecondaire']], "phSecondaire", pg_result($result_syntaxon, 0, "\"phSecondaire\""), pg_fetch_result(pg_query($db, $query_description . "'phPrincipal'" . ";"), 0, "description")); echo "</td></tr></table>"; echo "<br>"; /*table des valences écologiques*/ $liste_valences = array('trophie' => 'trophie', 'température' => 'temperature', 'luminosité' => 'luminosite', 'exposition' => 'exposition', 'salinité' => 'salinite', 'neige' => 'neige', 'continentalité' => 'continentalite', 'ombroclimat' => 'ombroclimat'); echo "<table border=1 width=\"1200\">"; echo "<th style=\"width:5em;\"></th>"; /*en-tête*/ foreach ($liste_valences as $label_valence => $champ_valence) { echo "<th style=\" text-align: center;\tvertical-align: center; width:5em;\">{$label_valence}</th>"; } /*valeurs*/ echo "<tr valign=top>"; echo "<td style=\" text-align: center;\tvertical-align: center;\">valences</td>"; foreach ($liste_valences as $label_valence => $champ_valence) { echo "<td>";
while ($row = pg_fetch_array($result2, NULL, PGSQL_ASSOC)) { $tag_select[$row["id_tag"]] = $row["libelle_tag"]; } pg_free_result($result2); $result3 = pg_query($db, $query3) or fatal_error("Erreur pgSQL : " . pg_result_error($result3), false); while ($row = pg_fetch_array($result3, NULL, PGSQL_ASSOC)) { $tag[$row["id_tag"]] = $row["libelle_tag"]; } pg_free_result($result3); if (pg_num_rows($result1)) { echo "<br>"; //------------------------------------------------------------------------------ echo "<fieldset><LEGEND>" . $lang[$lang_select]['groupe_lsi_1'] . "</LEGEND>"; metaform_text("Titre", null, 70, null, "title", sql_format_quote(pg_result($result1, 0, "title"), 'undo_text')); metaform_text("Date", null, 20, null, "date", sql_format_quote(pg_result($result1, 0, "date"), 'undo_text')); metaform_sel("Sujet", "", "", $subject, "id_subject", pg_result($result1, 0, "sub")); echo "<br>"; echo "<label class=\"preField\">Extrait</label><textarea name=\"abstract\" id=\"abstract\" cols=\"150\" rows=\"2\" />" . sql_format_quote(pg_result($result1, 0, "abstract"), 'undo') . "</textarea> "; echo "<br><br>"; metaform_sel_multi("TAG", "", 5, "width: 120px;", "OnDblClick='javascript: deplacer( this.form.tag, this.form.tag_select);' ", $tag, "tag", ""); metaform_sel_multi("TAG Selectionné(s)", "", 5, "width: 120px;", "OnDblClick='javascript: deplacer( this.form.tag_select, this.form.tag);'", $tag_select, "tag_select", ""); echo "<br><br>"; metaform_text("Lien hypertexte", null, 150, null, "link", sql_format_quote(pg_result($result1, 0, "link"), 'undo_text')); metaform_text("Lien hypertexte 2", null, 150, null, "link_2", sql_format_quote(pg_result($result1, 0, "link_2"), 'undo_text')); echo "</fieldset>"; //------------------------------------------------------------------------------ echo "<br>"; echo "<div style=\"float:right;\">"; if ($mode == "edit") { echo "<button id=\"enregistrer2-edit-button\";>" . $lang[$lang_select]['enregistrer'] . "</button> "; echo "<button id=\"retour2-button\">" . $lang[$lang_select]['lsi'] . "</button> ";
echo "<table border=0 width=\"100%\"><tr valign=top >"; echo "<td style=\"width: 800px;\">"; //metaform_text ("Code de l'enregistrement"," ",20,"","codeEnregistrementSyntax",sql_format_quote(pg_result($result,0,"\"$colname1\"" ),'undo_text')); metaform_text("Nom du syntaxon", "", 100, "", "nomSyntaxon", pg_result($result, 0, "\"{$colname2}\""), pg_fetch_result(pg_query($db, $query_description . "'{$colname2}'" . ";"), 0, "description")); metaform_text("Auteur du syntaxon", "", 100, "", "auteurSyntaxon", sql_format_quote(pg_result($result, 0, "\"{$colname4}\""), 'undo_text'), pg_fetch_result(pg_query($db, $query_description . "'{$colname4}'" . ";"), 0, "description")); metaform_text("Nom complet du syntaxon", " bloque", 100, "", "nomCompletSyntaxon", pg_result($result, 0, "\"{$colname5}\""), pg_fetch_result(pg_query($db, $query_description . "'{$colname5}'" . ";"), 0, "description")); metaform_text("Nom raccourcit", " bloque", 100, "", "nomSyntaxonRaccourci", pg_result($result, 0, "\"{$colname6}\""), pg_fetch_result(pg_query($db, $query_description . "'{$colname6}'" . ";"), 0, "description")); metaform_sel("Type de synonymie", "", 100, $ref[$champ_ref['typeSynonymie']], "typeSynonymie", pg_result($result, 0, "\"{$colname8}\""), pg_fetch_result(pg_query($db, $query_description . "'{$colname8}'" . ";"), 0, "description")); metaform_text("Nom syntaxon retenu", " bloque", 100, "", "nomSyntaxonRetenu", pg_result($result, 0, "\"{$colname9}\""), pg_fetch_result(pg_query($db, $query_description . "'{$colname9}'" . ";"), 0, "description")); echo "</td></tr></table>"; $tooltip = pg_fetch_result(pg_query($db, $query_description . "'{$colname7}'" . ";"), 0, "description"); echo "<br><label title= \"{$tooltip}\" class=\"preField\">Remarque nomenclaturale</label><textarea name=\"rqNomenclaturale\" style=\"width:70em;\" rows=\"2\" >" . sql_format_quote(pg_result($result, 0, "\"{$colname7}\""), 'undo_hmtl') . "</textarea><br><br>"; echo "<table border=0 width=\"100%\"><tr valign=top >"; echo "</td><td style=\"width:300px;\">"; //metaform_text ("Code REF."," bloque",8,"","cd_ref",pg_result($result,0,"cd_ref")); metaform_sel("Rang syntaxon", "", "", $ref[$champ_ref[$colname11]], "rangSyntaxon", pg_result($result, 0, "\"{$colname11}\""), pg_fetch_result(pg_query($db, $query_description . "'{$colname11}'" . ";"), 0, "description")); /* //bout de code a utiliser si on veut aller vers une fiche taxon dans refnat echo ("</td><td>"); if ($niveau >= 128) echo ("<a href = \"../refnat/index.php?m=edit&id=$id\" class=edit id=\"modif_taxon\" ><img src=\"../../_GRAPH/psuiv.gif\" title=\"Accès rapide Refnat\" ></a>"); */ echo "</td></tr></table>"; echo "</fieldset>"; /*------------------------------------------------------------------------------ EDIT fieldset2*/ echo "<fieldset><LEGEND>Bibliographie</LEGEND>"; echo "<div id=\"p_scents\">\n\t\t\t\t<p><TABLE BORDER=\"0\"> <caption align=\"left\"> Correspondance des habitats </caption> \n\t\t\t\t<tr valign=top ><th> Typologie </th> <th> Code habitat </th> </tr> \n\t\t\t\t<tr>\n\t\t\t\t<th> <label for=\"p_scnts\"><input type=\"text\" id=\"p_scnt_code\" size=\"20\" name=\"code\" value=\"\" placeholder=\"Valeur de l'input\" /> </label></th> \n\t\t\t\t<th> <label for=\"p_scnts\"><input type=\"text\" id=\"p_scnt_typo\" size=\"20\" name=\"typo\" value=\"\" placeholder=\"Valeur de l''input\" /> </label></th> \n\t\t\t\t</tr> </TABLE></p> </div>"; echo "<p colspan=\"4\" align=\"left\"><button type=\"button\" href=\"#\" id=\"addScnt\">Ajouter un habitat</button></p>"; /*On utilise ici le résultat de la query_biblio (result2) pour avoir accès à la table st_biblio*/ /* $colname1="idBiblio";$colname3="libPublication";$colname4="urlPublication"; $colname5="codePublication";
} elseif ($i > 0) { echo "<fieldset><LEGEND>" . $lang[$lang_select]['groupe_fsd_1'] . "</LEGEND>"; echo "<table border=0 width=\"100%\"><tr valign=top >"; echo "<td style=\"width: 40%;\">"; // metaform_text ("Version FSD"," bloque",10,"","version_stay",$row["version"]); // metaform_sel ("Module",$bloq,null,$modl,"modl_stay",$row["modl"]); // metaform_sel ("Sous-module",$bloq,null,$ssmodl,"ssmodl_stay",$row["ssmodl"]); metaform_text("Code du champ", $bloq, 40, "", "cd_stay", sql_format_quote($row["cd"], "undo")); metaform_text("Libellé du champ", $bloq, 40, "", "lib_stay", sql_format_quote($row["lib"], "undo")); echo "<BR>"; metaform_sel("Format", $bloq, null, $format, "format_stay", $row["format"]); metaform_text("Taille", $bloq, 10, "", "taille_stay", sql_format_quote($row["taille"], "undo")); metaform_sel("Vocabulaire contrôlé", $bloq, null, $voca_ctrl, "vocaCtrl_stay", $row["vocaCtrl"]); echo "<BR>"; metaform_sel("Obligatoire (Data)", $bloq, null, $oblig, "oDat_staya", $row["oData"]); metaform_sel("Obligatoire (Taxa)", $bloq, null, $oblig, "oTaxa_stay", $row["oTaxa"]); // metaform_sel ("Obligatoire (Syntdata)",$bloq,null,$oblig,"oSynData_stay",$row["oSynData"]); // metaform_sel ("Obligatoire (Syntaxa)",$bloq,null,$oblig,"oSynTaxa_stay",$row["oSynTaxa"]); echo "<BR>"; metaform_text("Exemple 1", $bloq, 60, "", "ex1_stay", sql_format_quote($row["ex1"], "undo")); metaform_text("Exemple 2", $bloq, 60, "", "ex2_stay", sql_format_quote($row["ex2"], "undo")); echo "</td><td style=\"width:60%;\">"; echo "<label class=\"preField_calc\">Description</label>"; echo "<textarea name=\"descr_stay\" {$disa} style=\"width:80%;{$gris}\" rows=\"3\" >" . sql_format_quote($row["descr"], "undo") . "</textarea><br><br>"; echo "<label class=\"preField_calc\">Objectif du partage</label>"; echo "<textarea name=\"obj_stay\" {$disa} style=\"width:80%;{$gris}\" rows=\"3\" >" . sql_format_quote($row["obj"], "undo") . "</textarea><br><br>"; echo "<label class=\"preField_calc\">Règles de renseignement</label>"; echo "<textarea name=\"regleRens_stay\" {$disa} style=\"width:80%;{$gris}\" rows=\"3\" >" . sql_format_quote($row["regleRens"], "undo") . "</textarea><br><br>"; metaform_sel_multi("Champ(s) d'origine", null, 5, "width: 190px;{$gris}", null, $autre_chp, "id_from_to_{$i}", null); metaform_sel_multi("Champ(s) d'origine", " no_lab", 5, "width: 190px;{$gris}", null, $id_from, "id_from_{$i}", null); echo "<BR><BR>";
echo "</td><td width=250>"; if ($niveau <= 64) { echo "<label class=\"preField_calc\">Explication eval</label>"; } else { echo "<label class=\"preField\">Explication eval</label>"; } if ($niveau <= 64) { echo "<textarea name=\"notes\" {$disa} style=\"width:30em;background-color: #EFEFEF;\" rows=\"2\" >" . sql_format_quote(pg_result($result, 0, "notes"), 'undo') . "</textarea><br><br>"; } else { echo "<textarea name=\"notes\" {$disa} style=\"width:30em;\" rows=\"2\" >" . sql_format_quote(pg_result($result, 0, "notes"), 'undo') . "</textarea><br><br>"; } echo "</td></tr></table><br>"; echo "<table border=0 width=\"100%\"><tr valign=top ><td width=250>"; metaform_sel("Ajustement", $desc2, null, $ref[$champ_ref['cd_ajustmt']], "cd_ajustmt", pg_result($result, 0, "cd_ajustmt")); echo "</td><td width=250>"; metaform_sel("Changement de Catégorie", $desc2, null, $ref[$champ_ref['id_raison_ajust']], "id_raison_ajust", pg_result($result, 0, "id_raison_ajust")); echo "</td></tr></table><br>"; echo "</fieldset>"; //------------------------------------------------------------------------------ EDIT LR GRP5 echo "<fieldset><LEGEND> " . $lang[$lang_select]['groupe_lr_5'] . "</LEGEND>"; /*requete discussion*/ $query = $query_discussion . $id . ";"; $discussion = pg_query($db, $query) or fatal_error("Erreur pgSQL : " . pg_result_error($query), false); if ($avancement != 3) { if ($niveau < 64) { echo "<label class=\"preField_calc\">Discussion sur la fiche</label>"; } else { echo "<label class=\"preField\">Discussion sur la fiche</label>"; } if ($niveau < 64) { echo "<textarea name=\"commentaire_eval\" {$disa} style=\"width:100em;background-color: #EFEFEF;\" rows=\"4\" ></textarea><br><br>";
echo "<td style=\" text-align: center;\tvertical-align: center;\">{$lib_stt}</td>"; foreach ($ref['region'] as $id_reg => $region) { if (empty($res_stt[$type_stt][$id_reg])) { echo "<td>"; if ($type_stt == 'RAR') { metaform_text("Rar", " no_lab bloque", "", "width:5.5em;", "rar", ""); } else { metaform_sel("", " no_lab bloque", "width:5em;", $liste_statut[$type_stt], $type_stt . "_" . $id_reg, ""); } echo "</td>"; } else { echo "<td>"; if ($type_stt == 'RAR') { metaform_text("Rar", " no_lab bloque", "", "width:5.5em;", "rar", sql_format_quote($res_stt[$type_stt][$id_reg], 'undo_text')); } else { metaform_sel("", " no_lab bloque", "width:5em;", $liste_statut[$type_stt], $type_stt . "_" . $id_reg, $res_stt[$type_stt][$id_reg]); } echo "</td>"; } } echo "</tr>"; } echo "</table><br>"; echo "</fieldset>"; echo "</div>"; /*------------------------------------------------------------------------------ EDIT catnat GRP3*/ echo "<div id=\"radio2\">"; echo "<fieldset><LEGEND> " . $lang[$lang_select]['groupe_catnat_3'] . "</LEGEND>"; $path = "../../_GRAPH/carte/"; foreach ($ref['statut'] as $type_stt => $lib_stt) { /*Récupération des fichiers existants*/