Exemple #1
0
 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> ";
     } else {
         echo "<button id=\"retour4-button\">" . $lang[$lang_select]['retour'] . "</button> ";
     }
     echo "</div>";
     echo "</form>";
Exemple #2
0
 if ($num_rows_etag > 0) {
     metaform_sel_multi("Etages de végétation", "", 5, "width: 240px;", "OnDblClick='javascript: deplacer( this.form.etage_veg, this.form.etage_veg_select);'", $ref[$champ_ref['codeEtageVeg']], "etage_veg", "", pg_fetch_result(pg_query($db, $query_description . "'codeEtageVeg'" . ";"), 0, "description"));
     metaform_sel_multi("Etages de végétation sélectionné(s)", "", 5, "width: 240px;", "OnDblClick='javascript: deplacer( this.form.etage_veg_select, this.form.etage_veg);'", $result_etage_veg_enregistre, "etage_veg_select", "");
 } else {
     metaform_sel_multi("Etages de végétation", "", 5, "width: 240px;", "OnDblClick='javascript: deplacer( this.form.etage_veg, this.form.etage_veg_select);'", $ref[$champ_ref['codeEtageVeg']], "etage_veg", "", pg_fetch_result(pg_query($db, $query_description . "'codeEtageVeg'" . ";"), 0, "description"));
     metaform_sel_multi("Etages de végétation sélectionné(s)", "", 5, "width: 240px;", "OnDblClick='javascript: deplacer( this.form.etage_veg_select, this.form.etage_veg);'", "", "etage_veg_select", "");
 }
 echo "<br>";
 echo "<br>";
 $num_rows_etag_bioclim = pg_num_rows($result_etage_bioclim);
 if ($num_rows_etag_bioclim > 0) {
     metaform_sel_multi("Etages bioclimatiques", "", 5, "width: 240px;", "OnDblClick='javascript: deplacer( this.form.etage_bioclim, this.form.etage_bioclim_select);'", $ref[$champ_ref['codeEtageBioclim']], "etage_bioclim", "", pg_fetch_result(pg_query($db, $query_description . "'codeEtageBioclim'" . ";"), 0, "description"));
     metaform_sel_multi("Etages bioclimatiques sélectionné(s)", "", 5, "width: 240px;", "OnDblClick='javascript: deplacer( this.form.etage_bioclim_select, this.form.etage_bioclim);'", $result_etage_bioclim_enregistre, "etage_bioclim_select", "");
 } else {
     metaform_sel_multi("Etages bioclimatiques", "", 5, "width: 240px;", "OnDblClick='javascript: deplacer( this.form.etage_bioclim, this.form.etage_bioclim_select);'", $ref[$champ_ref['codeEtageBioclim']], "etage_bioclim", "", pg_fetch_result(pg_query($db, $query_description . "'codeEtageBioclim'" . ";"), 0, "description"));
     metaform_sel_multi("Etages bioclimatiques sélectionné(s)", "", 5, "width: 240px;", "OnDblClick='javascript: deplacer( this.form.etage_bioclim_select, this.form.etage_bioclim);'", "", "etage_bioclim_select", "");
 }
 echo "<br>";
 /*Cortège floristique*/
 echo "<br>CORTEGE FLORISTIQUE <hr>";
 echo "<br>";
 echo "<input type=\"hidden\" size=\"60\" id=\"idsyntaxon\" value={$id} />";
 echo "<input type=\"hidden\" size=\"60\" id=\"taxref_flore_sql\" value=\"SELECT cd_ref_referentiel as cd_ref,nom_complet_taxon_referentiel as nom_complet, id_rattachement_referentiel FROM syntaxa.referentiel_taxo where code_referentiel ='TAXREF' and version_referentiel='7' AND \" />";
 echo "<label class=\"preField\">Plantes</label><input type=\"text\" style=\"padding: 2px;font-size: 14;border: 2px solid #C6C5B5;\" id=\"taxon2\" size=\"45\" maxlength=\"200\" /> ";
 echo "<input type=\"hidden\" id=\"taxon2_CD_REF\" />";
 echo "<input type=\"hidden\" id=\"idrattachement\" />";
 echo "<input type=\"hidden\" size=\"60\" id=\"id_user\" value={$id_user} />";
 echo "<img src=\"../../_GRAPH/details_open.png\" class=\"add\" border=\"0\" title=\"Ajouter\" onclick=\"javascript:return taxon_add(2);\"/><br>";
 echo "<label class=\"preField\">Commentaire</label><input type=\"text\" style=\"padding: 2px;font-size: 14;border: 2px solid #C6C5B5;\" id=\"COMM\" size=\"49\" maxlength=\"200\" /><br> ";
 //			echo "liste taxon2:<br>";
 echo "<div id=\"taxon_list_2\"></div>";
Exemple #3
0
         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>";
         metaform_text("champ SINP", $bloq, 20, "", "lien_SINP_stay", sql_format_quote($row["lien_sinp"], "undo"));
         echo "</td></tr></table>";
         echo "<table border=0 width=\"100%\"><tr valign=top >";
         echo "<td style=\"width: 100%;\">";
         echo "<BR>";
         echo "<label class=\"preField_calc\">Evolutions à apporter?</label>";
         echo "<textarea name=\"discussion_stay\" {$disa} style=\"width:80%;{$gris}\" rows=\"4\" >" . sql_format_quote($row["discussion"], "undo") . "</textarea><br><br>";
         echo "</td></tr></table>";
         echo "</fieldset>";
     }
     $i++;
 }
 //------------------------------------------------------------------------------ EDIT Discussion
 echo "<div id=\"radio2\">";