19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: bazar.fonct.cal.php,v 1.18 2007-06-12 14:58:25 alexandre_tb Exp $ |
// CVS : $Id: bazar.fonct.cal.php,v 1.19 2007-06-25 08:29:04 alexandre_tb Exp $ |
/** |
* |
* Fonctions calendrier du module bazar |
29,7 → 29,7 |
*@author David Delon <david.delon@clapas.net> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.18 $ $Date: 2007-06-12 14:58:25 $ |
*@version $Revision: 1.19 $ $Date: 2007-06-25 08:29:04 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
66,8 → 66,29 |
|
// $type : calendrier |
// $type : calendrier_appplette |
function GestionAffichageCalendrier($type = 'calendrier') { |
function GestionAffichageCalendrier($arguments = array(), $type = 'calendrier') { |
|
// recuperation des arguments de l applette |
$balise = isset ($arguments[0]) ? $arguments[0] : ''; |
$tab_arguments = $arguments; |
unset($tab_arguments[0]); |
if (is_array($tab_arguments)) { |
foreach($tab_arguments as $argument) { |
if ($argument != '') { |
$tab_parametres = explode('=', $argument, 2); |
$options[$tab_parametres[0]] = trim($tab_parametres[1], '"'); |
} |
} |
} |
|
if (!isset($options['template'])) { |
$options['template'] = BAZ_CHEMIN_SQUELETTE.BAZ_SQUELETTE_DEFAUT; |
} else { |
if (file_exists(BAZ_CHEMIN_SQUELETTE.$options['template'])) { |
$options['template'] = BAZ_CHEMIN_SQUELETTE.$options['template']; |
} |
} |
|
$retour = ''; |
|
$url = $GLOBALS['_GEN_commun']['url'] ; |
107,23 → 128,14 |
$fr_month = array( "1"=>BAZ_JANVIER,"2"=>BAZ_FEVRIER,"3"=>BAZ_MARS,"4"=>BAZ_AVRIL,"5"=>BAZ_MAI,"6"=>BAZ_JUIN, |
"7"=>BAZ_JUILLET,"8"=>BAZ_AOUT,"9"=>BAZ_SEPTEMBRE,"10"=>BAZ_OCTOBRE,"11"=>BAZ_NOVEMBRE,"12"=>BAZ_DECEMBRE); |
|
$retour.= "<div class=\"navi\">"; |
$retour.= "<a href=\"".$prev."\" id=\"navi_ant\"> << </a>"; |
// Appel du template |
|
$retour.= " "; |
$retour.= "<a href=\"".$cur; |
$retour.= "\"> "; |
$retour.= $fr_month[(date('n',$curStamp))]; |
$retour.= " "; |
$retour.= (date('Y',$curStamp)); |
$retour.= "</a>"; |
$retour.= " "; |
$retour.= "<a href=\"".$next."\" id=\"navi_post\"> >> </a>"; |
ob_start(); |
include ($options['template']); |
$retour .= ob_get_contents(); |
ob_end_clean(); |
|
|
$retour.= "</div>"; |
|
$retour.="<br></br>"; |
|
// Vue Mois calendrier ou vue applette |
|
if ((!isset($_GET['id_fiche']) && ($type=='calendrier')) || ($type=='calendrier_applette')){ |
260,6 → 272,7 |
} |
} |
else { |
|
$lien_date= "<td class=\"".$class."\">".$day->thisDay()."\n"; |
if ($day->isSelected() ) { |
$evenements=$day->getEntry(); |