<?php
//25.0.2.0 IHM/Champ/Calendrier/DateCalendrier.php GF
//VersionVI: 01F250083h
//(c) 2005-2012 PC SOFT - Release
 if (!defined('__INC__FMK/Date.php')) { define('__INC__FMK/Date.php',true); include_once(WB_INCLUDE_PATH.'WD97af71f4453b9d548e8ff90b4bbaba9f.php'); } if (!defined('__INC__FMK/Compat/ctype.php')) { define('__INC__FMK/Compat/ctype.php',true); include_once(WB_INCLUDE_PATH.'WD71f01babd828f48594d95888dcf3c976.php'); } if (!defined('__INC__IHM/Champ/Calendrier/DateTime.php')) { define('__INC__IHM/Champ/Calendrier/DateTime.php',true); include_once(WB_INCLUDE_PATH.'WD8a3f9ea956942dad24d3a1c8d98a8330.php'); } if (!defined('__INC__FMK/Chaine.php')) { define('__INC__FMK/Chaine.php',true); include_once(WB_INCLUDE_PATH.'WD55acb2e708e26f23cb8956cd93e98123.php'); } class CDateCalendrier { var $m_szDate; function F2c185292() { return F01dad99e($this->m_szDate); } function F7f6d730f() { $this->m_szDate = ''; } function Ff5b208cb(&$pMixed) { if (is_string($pMixed)) return strcmp($this->m_szDate,$pMixed); else return $this->Ff5b208cb($pMixed->m_szDate); } function F0ee5647e($pszDate) {return ($this->Ff5b208cb($pszDate) == 0); } function F09992612() { return $this->m_szDate; } function nGetJour () { return F16692e7d($this->F09992612()); } function nGetMois () { return Fff2709c1($this->F09992612()); } function nGetAnnee () { return F98d1a8ba($this->F09992612()); } function Fea34dd7d($pMixed) { if (is_scalar($pMixed)) { $this->F5684ef2d($pMixed); } elseif (strcmp( get_class($pMixed) , get_class($this) ) == 0 ) { $this->Fea34dd7d($pMixed->m_szDate); } else { $this->Fce792fd9($pMixed); } } function CDateCalendrier() { $this->m_szDate = ''; $nNbArg = func_num_args(); if ($nNbArg==0){ $this->F1333af95(); } else { $args=func_get_args(); $this->F6fbbc5fd($args[0]); } } function F1333af95() { $this->m_szDate=''; $this->Ff04c7c3b(); } function F6fbbc5fd( $pszDate) { $this->m_szDate = ''; if (strcmp($pszDate,'')!=0) { $this->Fea34dd7d($pszDate); } else { } } function F9c5b5dfc($clBorneMin, $clBorneMax) { if (XVER_DEBUG) { if ($clBorneMin->F2c185292() && $clBorneMax->F2c185292()) { } } $bCorrige = false; if ($clBorneMin->F2c185292() && ($this->Ff5b208cb($clBorneMin) < 0)) { $this->Fea34dd7d($clBorneMin); $bCorrige = true; } if ($clBorneMax->F2c185292() && ($this->Ff5b208cb($clBorneMax) > 0)) { $this->Fea34dd7d($clBorneMax); $bCorrige = true; } return $bCorrige; } function VersChaine ( &$pszDate) { $pszDate = utf8_substr($this->m_szDate,0,LONGUEUR_DATE); } function F7b946724( $nJour) { $this->m_szDate= utf8_substr_replace($this->m_szDate, floor( ($nJour / 10) % 10 ),6, 1); $this->m_szDate= utf8_substr_replace($this->m_szDate, floor( $nJour % 10 ),7, 1); } function F820be7fb( $nDecalage) { $clDateTimeTemp = new CDateTime(); $clDateTimeTemp->F3d039ca0($this->F09992612()); $clDateTimeTemp->Fee154cfe($nDecalage); $this->Fea34dd7d($clDateTimeTemp); } function F828394a6( $nDecalage) { $clDateTimeTemp = new CDateTime(); $clDateTimeTemp->F3d039ca0($this->F09992612()); $clDateTimeTemp->F328928c5($nDecalage); $this->Fea34dd7d($clDateTimeTemp); } function F54cf0678( $nDecalage) { $clDateTimeTemp = new CDateTime(); $clDateTimeTemp->F3d039ca0($this->F09992612()); $clDateTimeTemp->F7fae8dcf($nDecalage); $this->Fea34dd7d($clDateTimeTemp); } function F4c110548() { $clDateTimeTemp = new CDateTime(); $clDateTimeTemp->F3d039ca0($this->F09992612()); return $clDateTimeTemp->F4c110548(); } function F15ca4863() { if (!empty($this->m_szDate)) { return F82a4319d($this->nGetMois(), $this->nGetAnnee()); } else { return 31; } } function Fc734cbfe() { if (!empty($this->m_szDate)) { return F3f09af17($this->nGetJour(), $this->nGetMois(), $this->nGetAnnee()); } else { return 0; } } function Ff04c7c3b() { $clDateCourante = new CDateTime(); $clDateCourante->Ff04c7c3b(); $this->Fea34dd7d($clDateCourante); } function F43a2e5ec( $pszDate) { $this->m_szDate = ''; if ($pszDate != '') { $this->Fea34dd7d($pszDate); } else { } } function F5684ef2d( $pszDate) { $this->m_szDate = utf8_substr($pszDate,0,LONGUEUR_DATE); } function Fce792fd9( $clDate) { $clDate->Fc6436172($this->m_szDate, LONGUEUR_DATE); } } function F16692e7d($pszDate) { return intval(utf8_substr($pszDate,6,2));} function Fff2709c1($pszDate) { return intval(utf8_substr($pszDate,4,2)); } function F98d1a8ba($pszDate) { return intval(utf8_substr($pszDate,0,4)); } function F01dad99e( $pszDate) { $nLength = utf8_strlen($pszDate); if ($nLength != LONGUEUR_DATE) { return false; } if (!is_numeric($pszDate)) return false; $nAnnee = F98d1a8ba($pszDate); if ( ($nAnnee < 1) || ($nAnnee > 9999) ) return false; $nMois = Fff2709c1($pszDate); if (($nMois < 1) || ($nMois > 12)) return false; $nJour = F16692e7d($pszDate); if (($nJour < 1) || ($nJour > F82a4319d($nMois,$nAnnee))) return false; return true; } function Fd66f914e( &$pclDate1, &$pclDate2) { return $pclDate1->Ff5b208cb($pclDate2); } ?>