//monat ausgeben:
    showMonth($monat, $jahr, $unterkunft_id, $zimmer_id, $link, $saAktiviert, $sprache);
    //monat erhöhen für nächste ausgabe:
    $monat += 1;
    ?>
    <?php 
    //kontrolle ob monat nicht 0 oder 13:
    if ($monat > 12) {
        $monat = 1;
        $jahr += 1;
    } elseif ($monat < 1) {
        $monat = 12;
        $jahr -= 1;
    }
    //monat ausgeben:
    showMonth($monat, $jahr, $unterkunft_id, $zimmer_id, $link, $saAktiviert, $sprache);
    ?>
 
  
    <?php 
    //wenn jahr zu klein, button nicht anzeigen:
    $mon = $monat - 7;
    //		echo($mon);
    $jah = $jahr;
    switch ($mon) {
        case 0:
            $mon = 12;
            $jah = $jah - 1;
            break;
        case -1:
            $mon = 11;
?>
">

  <tr> 
    <td colspan="2"> 
      <?php 
//kontrolle ob monat nicht 0 oder 13:
if ($monat > 12) {
    $monat = 1;
    $jahr = $jahr + 1;
} elseif ($monat < 1) {
    $monat = 12;
    $jahr = $jahr - 1;
}
//monat ausgeben:
showMonth($monat, $jahr, $vermieter_id, $mietobjekt_id, MODUS_BELEGUNGSPLAN);
?>
    </td>
  </tr>
  <tr valign="middle"> 
    <td> 
      <?php 
$mon = $monat - 1;
$jah = $jahr;
if ($mon < 1) {
    $mon = 12;
    $jah = $jah - 1;
}
?>
      <form action="./start.php" method="post" name="monatZurueck" target="_self" id="monatZurueck">
        <div align="right">           
Esempio n. 3
0
<?php

require_once dirname(__FILE__) . '/monthCalendar.php';
$month = 06;
$year = date('Y');
if (!empty($_GET['month'])) {
    $month = $_GET['month'];
}
if (!empty($_GET['year'])) {
    $year = $_GET['year'];
}
try {
    $db = new PDO('mysql:host=localhost;dbname=scroll', 'root', '');
    $sth = $db->prepare("SELECT username,user_url,avatar,DAY(birth_date) as day from birthday_events where MONTH(birth_date) = :month");
    $sth->bindParam(':month', $month, PDO::PARAM_INT);
    $sth->execute();
    $results = $sth->fetchAll(PDO::FETCH_ASSOC);
    $dbh = null;
    echo showMonth($month, $year, $results);
} catch (PDOException $e) {
    print "Error!: " . $e->getMessage() . "<br/>";
    exit;
}
echo TABLE_STANDARD;
?>
">
  <tr> 
    <td colspan="2"> 
      <?php 
//kontrolle ob monat nicht 0 oder 13:
if ($monat > 12) {
    $monat = 1;
    $jahr = $jahr + 1;
} elseif ($monat < 1) {
    $monat = 12;
    $jahr = $jahr - 1;
}
//monat ausgeben:
showMonth($monat, $jahr, $vermieter_id, $mietobjekt_id, MODUS_WEBINTERFACE);
?>
    </td>
  </tr>
  <tr valign="middle"> 
    <td> 
      <?php 
$mon = $monat - 1;
$jah = $jahr;
if ($mon < 1) {
    $mon = 12;
    $jah = $jah - 1;
}
?>
      <form action="./index.php" method="post" name="monatZurueck" target="_self" id="monatZurueck">
        <div align="right">           
Esempio n. 5
0
        /* correct date format */
        $coredate = date("Ymd", mktime(0, 0, 0, $calmonth, $d, $calyear));
        showGrid($coredate);
        echo "</td>";
        $offset++;
        /* if we're on the last day of the week, wrap to the other side */
        if ($offset > 6) {
            $offset = 0;
            echo '</tr>';
            if ($day < $totaldays) {
                echo '<tr>';
            }
        }
    }
    /* fill in the remaining spaces for the end of the month, just to make it look
       pretty */
    if ($offset > 0) {
        $offset = 7 - $offset;
    }
    for ($t = 0; $t < $offset; $t++) {
        echo "<td>&nbsp;</td>";
    }
    /* end the table */
    echo '</tr></table>';
}
include "includes/header.php";
$thismonth = $y . "-" . $m;
$nextmonth = $next["month"]["y"] . "-" . $next["month"]["m"];
grab($thismonth . "-01", $nextmonth . "-01", $c);
showMonth($m, $y);
include "includes/footer.php";