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.68 2007-08-27 12:31:31 alexandre_tb Exp $
|
22 |
// CVS : $Id: bazar.fonct.php,v 1.69 2007-09-18 07:39:42 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
*
|
24 |
*
|
25 |
* Fonctions du module bazar
|
25 |
* Fonctions du module bazar
|
26 |
*
|
26 |
*
|
27 |
*
|
27 |
*
|
Line 29... |
Line 29... |
29 |
//Auteur original :
|
29 |
//Auteur original :
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
31 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
31 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
32 |
//Autres auteurs :
|
32 |
//Autres auteurs :
|
33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@version $Revision: 1.68 $ $Date: 2007-08-27 12:31:31 $
|
34 |
*@version $Revision: 1.69 $ $Date: 2007-09-18 07:39:42 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 756... |
Line 756... |
756 |
}
|
756 |
}
|
757 |
if (isset($_GET['image'])) {
|
757 |
if (isset($_GET['image'])) {
|
758 |
baz_suppression_image($GLOBALS['_BAZAR_']['id_fiche']);
|
758 |
baz_suppression_image($GLOBALS['_BAZAR_']['id_fiche']);
|
759 |
}
|
759 |
}
|
760 |
}
|
760 |
}
|
761 |
|
761 |
$res = '';
|
762 |
//titre de la rubrique
|
762 |
//titre de la rubrique
|
763 |
if (!BAZ_UTILISE_TEMPLATE) $res= '<h2>'.BAZ_TITRE_SAISIE_ANNONCE.' '.$GLOBALS['_BAZAR_']['typeannonce'].'</h2><br />'."\n";
|
763 |
if (!BAZ_UTILISE_TEMPLATE) $res= '<h2>'.BAZ_TITRE_SAISIE_ANNONCE.' '.$GLOBALS['_BAZAR_']['typeannonce'].'</h2><br />'."\n";
|
764 |
if (($GLOBALS['_BAZAR_']['condition']!='')AND(!isset($_POST['accept_condition']))AND(!isset($_GET['url'])OR(!isset($_GET['fichier']))OR(!isset($_GET['image'])))) {
|
764 |
if (($GLOBALS['_BAZAR_']['condition']!='')AND(!isset($_POST['accept_condition']))AND(!isset($_GET['url'])OR(!isset($_GET['fichier']))OR(!isset($_GET['image'])))) {
|
765 |
require_once PAP_CHEMIN_API_PEAR.'HTML/QuickForm/html.php';
|
765 |
require_once PAP_CHEMIN_API_PEAR.'HTML/QuickForm/html.php';
|
766 |
$conditions= new HTML_QuickForm_html('<tr><td colspan="2" style="padding:5px; margin:5px; width: 90%; background: #C1CBA7;">'.$GLOBALS['_BAZAR_']['condition'].'</td>'."\n".'</tr>'."\n");
|
766 |
$conditions= new HTML_QuickForm_html('<tr><td colspan="2" style="padding:5px; margin:5px; width: 90%; background: #C1CBA7;">'.$GLOBALS['_BAZAR_']['condition'].'</td>'."\n".'</tr>'."\n");
|
Line 962... |
Line 962... |
962 |
}
|
962 |
}
|
963 |
// Envoie d un mail aux administrateurs
|
963 |
// Envoie d un mail aux administrateurs
|
964 |
$utilisateur = new Administrateur_bazar($GLOBALS['AUTH']);
|
964 |
$utilisateur = new Administrateur_bazar($GLOBALS['AUTH']);
|
965 |
if ($utilisateur->isRedacteur($GLOBALS['_BAZAR_']['id_typeannonce'])) {
|
965 |
if ($utilisateur->isRedacteur($GLOBALS['_BAZAR_']['id_typeannonce'])) {
|
966 |
$mails = bazar::getMailAdmin($GLOBALS['_BAZAR_']['id_typeannonce']);
|
966 |
$mails = bazar::getMailAdmin($GLOBALS['_BAZAR_']['id_typeannonce']);
|
- |
|
967 |
include_once BAZ_CHEMIN_APPLI.'bibliotheque/bazarTemplate.class.php';
|
967 |
$template = new bazarTemplate($GLOBALS['_BAZAR_']['db']);
|
968 |
$template = new bazarTemplate($GLOBALS['_BAZAR_']['db']);
|
968 |
$sujet = $template->getTemplate(BAZ_TEMPLATE_MAIL_NOUVELLE_FICHE_SUJET, $GLOBALS['_BAZAR_']['langue'], $GLOBALS['_BAZAR_']['id_typeannonce']);
|
969 |
$sujet = $template->getTemplate(BAZ_TEMPLATE_MAIL_NOUVELLE_FICHE_SUJET, $GLOBALS['_BAZAR_']['langue'], $GLOBALS['_BAZAR_']['id_typeannonce']);
|
969 |
$corps = $template->getTemplate(BAZ_TEMPLATE_MAIL_NOUVELLE_FICHE_CORPS, $GLOBALS['_BAZAR_']['langue'], $GLOBALS['_BAZAR_']['id_typeannonce']);
|
970 |
$corps = $template->getTemplate(BAZ_TEMPLATE_MAIL_NOUVELLE_FICHE_CORPS, $GLOBALS['_BAZAR_']['langue'], $GLOBALS['_BAZAR_']['id_typeannonce']);
|
970 |
if (is_array ($mails)) {
|
971 |
if (is_array ($mails)) {
|
971 |
foreach ($mails as $mail) {
|
972 |
foreach ($mails as $mail) {
|
Line 1420... |
Line 1421... |
1420 |
}
|
1421 |
}
|
Line 1421... |
Line 1422... |
1421 |
|
1422 |
|
1422 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1423 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1423 |
*
|
1424 |
*
|
- |
|
1425 |
* $Log: not supported by cvs2svn $
|
- |
|
1426 |
* Revision 1.68 2007-08-27 12:31:31 alexandre_tb
|
- |
|
1427 |
* mise en place de modele
|
1424 |
* $Log: not supported by cvs2svn $
|
1428 |
*
|
1425 |
* Revision 1.67 2007-07-04 10:01:30 alexandre_tb
|
1429 |
* Revision 1.67 2007-07-04 10:01:30 alexandre_tb
|
1426 |
* mise en place de divers templates :
|
1430 |
* mise en place de divers templates :
|
1427 |
* - mail pour admin (sujet et corps)
|
1431 |
* - mail pour admin (sujet et corps)
|
1428 |
* - modele carte_google
|
1432 |
* - modele carte_google
|