Forum » » SFORM » » Un formulaire sform pour présenter des données en tableau
Posté : 09-11-2007 21:40 
<?PHP
/************************************************************** **********/
/* SFORM Extender for NPDS V Forum &n bsp; &nb sp; */
br />/* =========================== &nbs p;   ; */
/* &nb sp; &nbs p;   ; & nbsp; */
/* 2002 - 2003 &nb sp; &nbs p;   ; */
/* &nb sp; &nbs p;   ; & nbsp; */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
br />
// ---------------------------------------------------------------------
// CE CHAMPS est indispensable --- Don't remove this field
// Champ text : Longueur = 50 / obligatoire / Pas de vérification
$m->add_field('subject', "Dénomination :","",'text',false,50,"","");
// ---------------------------------------------------------------------
// Titre de la Grille de Formulaire
$m->add_title("Echange formules TP<BR> -: CFA :-");
// ---------------------------------------------------------------------
// CE CHAMPS est indispensable --- Don't remove this field
// Champ text : Longueur = 50 / obligatoire / Pas de vérification
$m->add_field('message', "Forme pharmaceutique :","",'text',true,50,"","");
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
// CE CHAMPS est indispensable --- Don't remove this field
// Champ text : Longueur = 600 / TextArea / Obligatoire / Pas de Vérification
$m->add_field('formule', "Formule réalisée :","",'textarea',true,600,10,"","");
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
// CE CHAMPS est indispensable --- Don't remove this field
// Champ text : Longueur = 600 / TextArea / Obligatoire / Pas de Vérification
$m->add_field('fabrication', "Protocole de fabrication :","",'textarea',true,600,15,"","");
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
// CE CHAMPS est indispensable --- Don't remove this field
// Champ text : Longueur = 600 / TextArea / Obligatoire / Pas de Vérification
$m->add_field('reglementation', "Réglementation :","",'textarea',false,600,10,"","");
// ---------------------------------------------------------------------
// Champ Boite à cocher / Valeur de retour true / coché
$m->add_checkbox('sig', "Ma signature", 'true', false, true);
// Champ Boite à cocher / Valeur de retour true / non-coché
$m->add_checkbox('notify2', "Notification par Email?", 'true', false, false);
// ----------------------------------------------------------------
// CES CHAMPS sont indispensables --- Don't remove these fields
// Champ Hidden
$m->add_field("forum","",$forum,'hidden',false);
// extra
$m->add_extra("<tr><td align=center colspan=2>");
// Reset bouton
$m->add_field('Reset',"","R a z",'reset',false);
$m->add_extra(" ..::.. ");
// Submit bouton
$m->add_field('Submit',"","Soumettre",'submit',false);
$m->add_extra("</TD></TR>");
// ----------------------------------------------------------------
?>
Cet article provient de NPDS REvolution 16
https://lab.grottes-et-karsts-de-chine.org/viewtopic.php?topic=22984&forum=19