Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: bazar.fonct.php,v 1.22 2005-12-01 16:05:41 florian Exp $
|
22 |
// CVS : $Id: bazar.fonct.php,v 1.23 2005-12-01 17:03:34 florian Exp $
|
23 |
/**
|
23 |
/**
|
24 |
*
|
24 |
*
|
25 |
* Fonctions du module bazar
|
25 |
* Fonctions du module bazar
|
26 |
*
|
26 |
*
|
27 |
*@package bazar
|
27 |
*@package bazar
|
28 |
//Auteur original :
|
28 |
//Auteur original :
|
29 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
29 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
30 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
31 |
//Autres auteurs :
|
31 |
//Autres auteurs :
|
32 |
*@copyright Tela-Botanica 2000-2004
|
32 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@version $Revision: 1.22 $ $Date: 2005-12-01 16:05:41 $
|
33 |
*@version $Revision: 1.23 $ $Date: 2005-12-01 17:03:34 $
|
34 |
// +------------------------------------------------------------------------------------------------------+
|
34 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
*/
|
35 |
*/
|
Line 36... |
Line 36... |
36 |
|
36 |
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
Line 564... |
Line 564... |
564 |
if (DB::isError($resultat)) {
|
564 |
if (DB::isError($resultat)) {
|
565 |
die ($resultat->getMessage().$resultat->getDebugInfo()) ;
|
565 |
die ($resultat->getMessage().$resultat->getDebugInfo()) ;
|
566 |
}
|
566 |
}
|
567 |
$ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC);
|
567 |
$ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC);
|
568 |
if (($ligne['bn_condition']!='')AND(!isset($_POST['accept_condition']))AND(!isset($_GET['url'])OR(!isset($_GET['fichier']))OR(!isset($_GET['image'])))) {
|
568 |
if (($ligne['bn_condition']!='')AND(!isset($_POST['accept_condition']))AND(!isset($_GET['url'])OR(!isset($_GET['fichier']))OR(!isset($_GET['image'])))) {
|
569 |
require_once PAP_CHEMIN_RACINE.'api/pear/HTML/QuickForm/html.php';
|
569 |
require_once 'HTML/QuickForm/html.php';
|
570 |
$conditions= new HTML_QuickForm_html('<li><p style="padding:5px; margin:5px; width: 90%; background: #C1CBA7;">'.$ligne['bn_condition'].'</li>'."\n");
|
570 |
$conditions= new HTML_QuickForm_html('<li><p style="padding:5px; margin:5px; width: 90%; background: #C1CBA7;">'.$ligne['bn_condition'].'</li>'."\n");
|
571 |
$formtemplate->addElement($conditions);
|
571 |
$formtemplate->addElement($conditions);
|
572 |
$formtemplate->addElement('hidden','typeannonce', $_REQUEST['typeannonce']);
|
572 |
$formtemplate->addElement('hidden','typeannonce', $_REQUEST['typeannonce']);
|
573 |
if (isset($_REQUEST['id_fiche'])) $formtemplate->addElement('hidden','id_fiche', $_REQUEST['id_fiche']);
|
573 |
if (isset($_REQUEST['id_fiche'])) $formtemplate->addElement('hidden','id_fiche', $_REQUEST['id_fiche']);
|
574 |
$formtemplate->addElement('checkbox', 'accept_condition',BAZ_ACCEPTE_CONDITIONS) ;
|
574 |
$formtemplate->addElement('checkbox', 'accept_condition',BAZ_ACCEPTE_CONDITIONS) ;
|
Line 1341... |
Line 1341... |
1341 |
}
|
1341 |
}
|
Line 1342... |
Line 1342... |
1342 |
|
1342 |
|
1343 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1343 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1344 |
*
|
1344 |
*
|
- |
|
1345 |
* $Log: not supported by cvs2svn $
|
- |
|
1346 |
* Revision 1.22 2005/12/01 16:05:41 florian
|
- |
|
1347 |
* changement des chemins pour appli Pear
|
1345 |
* $Log: not supported by cvs2svn $
|
1348 |
*
|
1346 |
* Revision 1.21 2005/12/01 15:31:30 florian
|
1349 |
* Revision 1.21 2005/12/01 15:31:30 florian
|
1347 |
* correction bug modifs et saisies
|
1350 |
* correction bug modifs et saisies
|
1348 |
*
|
1351 |
*
|
1349 |
* Revision 1.20 2005/11/30 13:58:45 florian
|
1352 |
* Revision 1.20 2005/11/30 13:58:45 florian
|