示例#1
0
文件: agenda.php 项目: rhertzog/lcs
function http_calendrier_agenda ($annee, $mois, $jour_ved, $mois_ved, $annee_ved, $semaine = false,  $script='', $ancre='', $evt='') {

  if (!$script) $script =  $GLOBALS['PHP_SELF'] ;

  if (!$mois) {$mois = 12; $annee--;}
  elseif ($mois==13) {$mois = 1; $annee++;}
  if (!$evt) $evt = quete_calendrier_agenda($annee, $mois);
  $nom = affdate_mois_annee("$annee-$mois-1");
  return 
    "<div class='calendrier-titre calendrier-arial10'>" .
    calendrier_href($script, $annee, $mois, 1, 'mois', '', $ancre,'', $nom,'','',    $nom,'color: black;') .
    "<table width='100%'>" .
    http_calendrier_agenda_rv ($annee, $mois, $evt,				
			        'calendrier_href', $script, $ancre,
			        $jour_ved, $mois_ved, $annee_ved, 
				$semaine) . 
    "</table>" .
    "</div>";
}
示例#2
0
function http_calendrier_agenda($month, $year, $day_ved, $month_ved, $annee_ved, $week = false, $script = '', $target = '')
{
    if (!$script) {
        $script = $_ENV['PHP_SELF'];
    }
    if (!strpos($script, '?')) {
        $script .= '?';
    }
    if (!$month) {
        $month = 12;
        $year--;
    } elseif ($month == 13) {
        $month = 1;
        $year++;
    }
    return "\n<!-- http_calendrier_agenda -->\n" . "<div style='width: 100%; text-align: center; padding: 2px; font-size: 10px;'>" . "<div style='padding-bottom: 5px;'>" . http_href($script . "mois={$month}&annee={$year}{$target}", affdate_mois_annee("{$year}-{$month}-1"), '', 'color: black;') . "</div>\n" . http_calendrier_agenda_rv($year, $month, sql_calendrier_agenda($month, $year), 'http_jour_clic', array($script, $target), $day_ved, $month_ved, $annee_ved, $week) . "</div>\n";
}