21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: hba_manipulation.fonct.php,v 1.2 2006-10-30 18:57:46 jp_milcent Exp $ |
// CVS : $Id: hba_manipulation.fonct.php,v 1.3 2006-10-31 15:06:44 jp_milcent Exp $ |
/** |
* Fonctions de manipulation de la base de données Herbier. |
* |
34,7 → 34,7 |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@clapas.org> |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.2 $ $Date: 2006-10-30 18:57:46 $ |
*@version $Revision: 1.3 $ $Date: 2006-10-31 15:06:44 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
330,8 → 330,8 |
$form->addCommentaire('<br />'.'Pensez à supprimer le contenu du champs ci-dessous si les informations que vous saisissez ne viennent pas de l\'Index Herbariorum, remplacez par votre nom.'); |
$form->addChamps('SOURCE_DES_DONNEES', 'Source des informations'); |
$form->addCommentaire('<strong><span class="symbole_obligatoire">'.'*'.'</span>'.' : '.'</strong>'.'champ obligatoire.'); |
$form->addChamps('DATE_DERNIERE_MODIF', '', date('Y-m-j H:i:s', time()), $type = 'hidden'); |
$form->addChamps('CE_MODIFIER_PAR', '', $un_herbier->utilisateur->getId(), $type = 'hidden'); |
// Gestion des métadonnées |
gererMetaForm(&$form, &$un_herbier); |
|
if ($form->id != HBA_EXEMPLE_ID) { |
$form->submit('Valider', 'herbier_pere'); |
484,6 → 484,9 |
$form->addChamps('FAX', 'Fax : '); |
$form->addChamps('FONCTION', 'Fonction : '); |
$form->radioEnum('CONTACT', 'La personne est-elle contact ? : ','non'); |
// Gestion des métadonnées |
gererMetaForm(&$form, &$un_herbier); |
|
if ($un_herbier->organisation->getId() != HBA_EXEMPLE_ID) { |
$form->submit('Valider'); |
} |
687,9 → 690,10 |
); |
$form->addChamps('DOC_STATE', 'État de la documentation : '); |
$form->addChamps('PERCENT_DATABASED', '% de la documentation en base de données : '); |
$form->addChamps('DATE_DERNIERE_MODIF', '', date('Y-m-j H:i:s', time()), $type = 'hidden'); |
$form->addChamps('CE_MODIFIER_PAR', '', $un_herbier->utilisateur->getId(), $type = 'hidden'); |
// Gestion des métadonnées |
gererMetaForm(&$form, &$un_herbier); |
|
|
if ($un_herbier->organisation->getId() != HBA_EXEMPLE_ID) { |
$form->submit('Valider'); |
} |
829,6 → 833,7 |
$form->addChamps('REM_INDIC', 'Remarque : '); |
$form->checkboxFromTable( 'HERBIERS_INDIC par HERBIERS_A_UN_TYPE et HERBIERS_TYPE', |
'Cocher les cases : ', '', 'LIGNE', 'ID_INDIC', 'ID_TYPE', 'ID_TYPE'); |
|
$form->submit('Valider'); |
$form->annuler('Annuler', sprintf($un_herbier->getUrlActionOrgColl(), HBA_ACTION_COLL_DEROULER, $id_org, $id_coll)); |
} |
1393,11 → 1398,27 |
} |
return $retour; |
} |
|
function gererMetaForm(&$form, &$herbier) |
{ |
// Pour écraser ces valeurs même en modification nous métons temporairement le mode à vide. |
$mode = ''; |
if ($form->mode == 'MOD') { |
$form->mode = ''; |
$mode = 'MOD'; |
} |
$form->addChamps('DATE_DERNIERE_MODIF', '', date('Y-m-j H:i:s', time()), $type = 'hidden'); |
$form->addChamps('CE_MODIFIER_PAR', '', $herbier->utilisateur->getId(), $type = 'hidden'); |
$form->mode = $mode; |
} |
// +------------------------------------------------------------------------------------------------------+ |
|
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.2 2006/10/30 18:57:46 jp_milcent |
* Ajout de champs pour les flux rss. |
* |
* Revision 1.1 2005/11/23 10:32:32 jp_milcent |
* Ajout au dépot de l'application Herbiers. |
* Elle doit à terme migrer dans eFlore. |