Subversion Repositories Applications.bazar

Compare Revisions

Regard whitespace Rev 183 → Rev 201

/branches/livraison_menes/bibliotheque/bazar.fonct.cal.php
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.10.2.1 2007-02-15 13:42:16 jp_milcent Exp $
// CVS : $Id: bazar.fonct.cal.php,v 1.10.2.2 2007-03-07 17:20:19 jp_milcent 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.10.2.1 $ $Date: 2007-02-15 13:42:16 $
*@version $Revision: 1.10.2.2 $ $Date: 2007-03-07 17:20:19 $
// +------------------------------------------------------------------------------------------------------+
*/
 
41,24 → 41,24
require_once PAP_CHEMIN_RACINE.'api/pear/Calendar/Day.php';
require_once PAP_CHEMIN_RACINE.'api/pear/Calendar/Decorator.php';
 
 
// +------------------------------------------------------------------------------------------------------+
// | LISTE de FONCTIONS |
// +------------------------------------------------------------------------------------------------------+
 
 
// Classe Utilitaire pour Calendrier
 
class DiaryEvent extends Calendar_Decorator {
var $entry=array();
function DiaryEvent($calendar) {
function DiaryEvent($calendar)
{
Calendar_Decorator::Calendar_Decorator($calendar);
}
function setEntry($entry) {
function setEntry($entry)
{
$this->entry[]=$entry;
}
function getEntry() {
function getEntry()
{
return $this->entry;
}
}
66,10 → 66,8
 
// $type : calendrier
// $type : calendrier_appplette
 
function GestionAffichageCalendrier($type='calendrier') {
$retour='';
 
$url = $GLOBALS['_GEN_commun']['url'] ;
84,7 → 82,6
$_GET['m'] = date('m');
}
// Construction Mois en Cours
$month = new Calendar_Month_Weekdays($_GET['y'],$_GET['m']);
 
100,6 → 97,7
$url->addQueryString ('m', date('n',$prevStamp));
$url->addQueryString ('d', date('j',$prevStamp));
$prev = $url->getUrl();
$nextStamp = $month->nextMonth(true);
$url->addQueryString ('y', date('Y',$nextStamp));
$url->addQueryString ('m', date('n',$nextStamp));
106,7 → 104,8
$url->addQueryString ('d', date('j',$nextStamp));
$next = $url->getUrl();
 
$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);
$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."\"> &lt;&lt; </a>";
305,8 → 304,12
$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_CORPS'] .= baz_voir_fiches(0,$_GET['id_fiches'] );
}
// Nettoyage de l'url
$url->removeQueryString('id_fiches');
$url->removeQueryString('y');
$url->removeQueryString('m');
$url->removeQueryString('d');
return $retour;
}
 
?>