Line 19... |
Line 19... |
19 |
// | |
|
19 |
// | |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
24 |
// CVS : $Id: hba_manipulation.fonct.php,v 1.1 2005-11-23 10:32:32 jp_milcent Exp $
|
24 |
// CVS : $Id: hba_manipulation.fonct.php,v 1.2 2006-10-30 18:57:46 jp_milcent Exp $
|
25 |
/**
|
25 |
/**
|
26 |
* Fonctions de manipulation de la base de données Herbier.
|
26 |
* Fonctions de manipulation de la base de données Herbier.
|
27 |
*
|
27 |
*
|
28 |
* Fonctions permettant d'ajouter, modifier ou supprimer des informations dans la base de données Herbier.
|
28 |
* Fonctions permettant d'ajouter, modifier ou supprimer des informations dans la base de données Herbier.
|
29 |
*
|
29 |
*
|
Line 32... |
Line 32... |
32 |
//Auteur original :
|
32 |
//Auteur original :
|
33 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
33 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
34 |
//Autres auteurs :
|
34 |
//Autres auteurs :
|
35 |
*@author Jean-Pascal MILCENT <jpm@clapas.org>
|
35 |
*@author Jean-Pascal MILCENT <jpm@clapas.org>
|
36 |
*@copyright Tela-Botanica 2000-2005
|
36 |
*@copyright Tela-Botanica 2000-2005
|
37 |
*@version $Revision: 1.1 $ $Date: 2005-11-23 10:32:32 $
|
37 |
*@version $Revision: 1.2 $ $Date: 2006-10-30 18:57:46 $
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
*/
|
39 |
*/
|
Line 40... |
Line 40... |
40 |
|
40 |
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
Line 278... |
Line 278... |
278 |
// insertion des donnees administrative dans la base
|
278 |
// insertion des donnees administrative dans la base
|
279 |
// et des informations sur le correspondant
|
279 |
// et des informations sur le correspondant
|
280 |
function nouveau_v(&$un_herbier)
|
280 |
function nouveau_v(&$un_herbier)
|
281 |
{
|
281 |
{
|
282 |
$retour = '';
|
282 |
$retour = '';
|
283 |
$form = new formFromTable($GLOBALS['_HERBIER_']['bdd'], '');
|
283 |
$form = new formFromTable($GLOBALS['_HERBIER_']['bdd'], 'HERBIERS_ORGANISATION');
|
284 |
$form = $form->acquerir('HERBIERS_ORGANISATION');
|
284 |
$form = $form->acquerir('HERBIERS_ORGANISATION');
|
- |
|
285 |
|
285 |
$id = $form->insertMySQL();
|
286 |
$id = $form->insertMySQL();
|
286 |
if ($_POST['INSTITUTION_NAME'] == '') {
|
287 |
if ($_POST['INSTITUTION_NAME'] == '') {
|
287 |
$form = new formFromTable($GLOBALS['_HERBIER_']['bdd'], 'HERBIERS_ORGANISATION', 'MOD', $id, 'ID_ORG');
|
288 |
$form = new formFromTable($GLOBALS['_HERBIER_']['bdd'], 'HERBIERS_ORGANISATION', 'MOD', $id, 'ID_ORG');
|
288 |
form_administratif(&$form, $un_herbier);
|
289 |
form_administratif(&$form, $un_herbier);
|
289 |
$retour .= '<h1>'.'Vous devez saisir un nom d\'institution'.'</h1>'."\n";
|
290 |
$retour .= '<h1>'.'Vous devez saisir un nom d\'institution'.'</h1>'."\n";
|
Line 327... |
Line 328... |
327 |
$form->addCommentaire('Indiquez ci-dessous tous les détails concernant l\'accès aux collections de l\'institution, comme les horaires d\'ouverture, les droits à acquitter...');
|
328 |
$form->addCommentaire('Indiquez ci-dessous tous les détails concernant l\'accès aux collections de l\'institution, comme les horaires d\'ouverture, les droits à acquitter...');
|
328 |
$form->addChamps('ACCESS_RESTRICTION', 'Conditions d\'accès : ');
|
329 |
$form->addChamps('ACCESS_RESTRICTION', 'Conditions d\'accès : ');
|
329 |
$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.');
|
330 |
$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.');
|
330 |
$form->addChamps('SOURCE_DES_DONNEES', 'Source des informations');
|
331 |
$form->addChamps('SOURCE_DES_DONNEES', 'Source des informations');
|
331 |
$form->addCommentaire('<strong><span class="symbole_obligatoire">'.'*'.'</span>'.' : '.'</strong>'.'champ obligatoire.');
|
332 |
$form->addCommentaire('<strong><span class="symbole_obligatoire">'.'*'.'</span>'.' : '.'</strong>'.'champ obligatoire.');
|
- |
|
333 |
$form->addChamps('DATE_DERNIERE_MODIF', '', date('Y-m-j H:i:s', time()), $type = 'hidden');
|
- |
|
334 |
$form->addChamps('CE_MODIFIER_PAR', '', $un_herbier->utilisateur->getId(), $type = 'hidden');
|
Line 332... |
Line 335... |
332 |
|
335 |
|
333 |
if ($form->id != HBA_EXEMPLE_ID) {
|
336 |
if ($form->id != HBA_EXEMPLE_ID) {
|
334 |
$form->submit('Valider', 'herbier_pere');
|
337 |
$form->submit('Valider', 'herbier_pere');
|
335 |
}
|
338 |
}
|
Line 682... |
Line 685... |
682 |
'l\'acquisition, notices nécrologiques et/ou biographiques...)'.'</li>'.
|
685 |
'l\'acquisition, notices nécrologiques et/ou biographiques...)'.'</li>'.
|
683 |
'</ul>'."\n"
|
686 |
'</ul>'."\n"
|
684 |
);
|
687 |
);
|
685 |
$form->addChamps('DOC_STATE', 'État de la documentation : ');
|
688 |
$form->addChamps('DOC_STATE', 'État de la documentation : ');
|
686 |
$form->addChamps('PERCENT_DATABASED', '% de la documentation en base de données : ');
|
689 |
$form->addChamps('PERCENT_DATABASED', '% de la documentation en base de données : ');
|
- |
|
690 |
$form->addChamps('DATE_DERNIERE_MODIF', '', date('Y-m-j H:i:s', time()), $type = 'hidden');
|
- |
|
691 |
$form->addChamps('CE_MODIFIER_PAR', '', $un_herbier->utilisateur->getId(), $type = 'hidden');
|
- |
|
692 |
|
687 |
if ($un_herbier->organisation->getId() != HBA_EXEMPLE_ID) {
|
693 |
if ($un_herbier->organisation->getId() != HBA_EXEMPLE_ID) {
|
688 |
$form->submit('Valider');
|
694 |
$form->submit('Valider');
|
689 |
}
|
695 |
}
|
690 |
$form->annuler('Annuler', sprintf($un_herbier->url_action_org, MOD_HERB, $un_herbier->organisation->getId()));
|
696 |
$form->annuler('Annuler', sprintf($un_herbier->url_action_org, MOD_HERB, $un_herbier->organisation->getId()));
|
691 |
}
|
697 |
}
|
Line 1390... |
Line 1396... |
1390 |
// +------------------------------------------------------------------------------------------------------+
|
1396 |
// +------------------------------------------------------------------------------------------------------+
|
Line 1391... |
Line 1397... |
1391 |
|
1397 |
|
1392 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1398 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1393 |
*
|
1399 |
*
|
- |
|
1400 |
* $Log: not supported by cvs2svn $
|
- |
|
1401 |
* Revision 1.1 2005/11/23 10:32:32 jp_milcent
|
- |
|
1402 |
* Ajout au dépot de l'application Herbiers.
|
- |
|
1403 |
* Elle doit à terme migrer dans eFlore.
|
1394 |
* $Log: not supported by cvs2svn $
|
1404 |
*
|
1395 |
* Revision 1.5 2005/06/09 17:31:42 jpm
|
1405 |
* Revision 1.5 2005/06/09 17:31:42 jpm
|
1396 |
* Affichage en permanence dans le menu du lien vers l'accueil.
|
1406 |
* Affichage en permanence dans le menu du lien vers l'accueil.
|
1397 |
*
|
1407 |
*
|
1398 |
* Revision 1.4 2005/06/07 15:30:44 jpm
|
1408 |
* Revision 1.4 2005/06/07 15:30:44 jpm
|