Subversion Repositories Applications.bazar

Rev

Rev 383 | Rev 399 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 383 Rev 384
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.cal.php,v 1.27 2008-03-17 18:25:03 jp_milcent Exp $
22
// CVS : $Id: bazar.fonct.cal.php,v 1.28 2008-03-17 18:32:51 jp_milcent Exp $
23
/**
23
/**
24
*
24
*
25
* Fonctions calendrier du module bazar
25
* Fonctions calendrier du module bazar
26
*
26
*
27
* TODO : ajouter la gestion du multilinguisme
27
* TODO : ajouter la gestion du multilinguisme
Line 29... Line 29...
29
*@package bazar
29
*@package bazar
30
//Auteur original :
30
//Auteur original :
31
*@author        David Delon <david.delon@clapas.net>
31
*@author        David Delon <david.delon@clapas.net>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.27 $ $Date: 2008-03-17 18:25:03 $
34
*@version       $Revision: 1.28 $ $Date: 2008-03-17 18:32:51 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 193... Line 193...
193
							'FROM bazar_nature '.
193
							'FROM bazar_nature '.
194
							'WHERE bn_id_nature IN ('.BAZ_NUM_ANNONCE_CALENDRIER.') ';
194
							'WHERE bn_id_nature IN ('.BAZ_NUM_ANNONCE_CALENDRIER.') ';
195
	$resultat_nature_fiche = $db->query($requete_nature_fiche);
195
	$resultat_nature_fiche = $db->query($requete_nature_fiche);
196
	(DB::isError($resultat_nature_fiche)) ? trigger_error(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat_nature_fiche->getMessage(), $requete_nature_fiche), E_USER_WARNING) : '';
196
	(DB::isError($resultat_nature_fiche)) ? trigger_error(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat_nature_fiche->getMessage(), $requete_nature_fiche), E_USER_WARNING) : '';
Line 197... Line 197...
197
	
197
	
198
	// Ajout du javascript
198
	// Ajout du javascript et des styles du bazar
199
	if (defined('PAP_VERSION')) { //si on est dans Papyrus
199
	if (defined('PAP_VERSION')) { //si on est dans Papyrus
200
		GEN_stockerStyleExterne( 'bazar_interne', 'client/bazar/bazar.interne.css');
200
		GEN_stockerStyleExterne( 'bazar_interne', 'client/bazar/bazar.interne.css');
201
		GEN_stockerFichierScript('domLib', '/api/js/domtooltip/domLib.js');
201
		GEN_stockerFichierScript('domLib', '/api/js/domtooltip/domLib.js');
202
		GEN_stockerFichierScript('domTT', '/api/js/domtooltip/domTT.js');
202
		GEN_stockerFichierScript('domTT', '/api/js/domtooltip/domTT.js');
Line 214... Line 214...
214
		GEN_stockerCodeScript('var domTT_styleClass = "niceTitle";'."\n");
214
		GEN_stockerCodeScript('var domTT_styleClass = "niceTitle";'."\n");
215
	}
215
	}
Line 216... Line 216...
216
	
216
	
217
	// Titre
217
	// Titre
218
	if ($type == 'calendrier') {
-
 
219
		// Ajout des styles du bazar
-
 
220
		if (defined('PAP_VERSION')) { //si on est dans Papyrus
-
 
221
			
-
 
222
		}
218
	if ($type == 'calendrier') {
223
		$retour .= '<div id="cal_entete">'."\n";
219
		$retour .= '<div id="cal_entete">'."\n";
224
		$retour .= '<span class="cal_navigation">'."\n";	
220
		$retour .= '<span class="cal_navigation">'."\n";	
225
		$retour .= '<a id="cal_precedent_lien" href="'.$prev.'" title="Allez au mois précédent"><img id="cal_precedent_img" src="client/bazar/images/cal_precedent.png" alt="&lt;&lt;"/></a>'."\n"; 
221
		$retour .= '<a id="cal_precedent_lien" href="'.$prev.'" title="Allez au mois précédent"><img id="cal_precedent_img" src="client/bazar/images/cal_precedent.png" alt="&lt;&lt;"/></a>'."\n"; 
226
		$retour .= '&nbsp;&nbsp;'."\n";
222
		$retour .= '&nbsp;&nbsp;'."\n";