if (isset($data->year)) { $year = $data->year; } else { $year = getTodayYear(); } //ich brauche für jahr einen integer: $year += 1; $year -= 1; //und fürs monat einen integer $month -= 1; $month += 1; $month = 1; //setSessionWert(ZIMMER_ID,$zimmer_id); //datenbank öffnen: include_once "../../conf/rdbmsConfig.php"; //funktions einbinden: include_once "../../include/unterkunftFunctions.php"; include_once "../../include/uebersetzer.php"; include_once "../../include/zimmerFunctions.php"; include_once "../../include/datumFunctions.php"; include_once "../../include/reservierungFunctions.php"; include_once "../../include/gastFunctions.php"; include_once "../../include/benutzerFunctions.php"; include_once "../../include/uebersetzer.php"; //helper-funktionen einfügen: include_once "./jahresuebersichtHelper.php"; include_once "../../include/propertiesFunctions.php"; $saAktiviert = getPropertyValue(SHOW_OTHER_COLOR_FOR_SA, $unterkunft_id, $link); $response = ""; $response .= showYear(1, $year, $unterkunft_id, $zimmer_id, $sprache, $saAktiviert, $link); echo $response;
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> </td>"; } /* end the table */ echo '</tr></table>'; echo '</td>'; } echo "</tr>"; } echo "</table>"; } include "includes/header.php"; grab($y . "-01-01", $y . "-12-31", $c); showYear($y); include "includes/footer.php";
<?php //helper-funktionen einf�gen: include_once $root . "/include/jahresuebersichtHelper.inc.php"; ?> <table width="100%" border="0" class="<?php echo TABLE_STANDARD; ?> "> <tr> <td colspan="2"><?php showYear(1, $jahr, $gastro_id, $mietobjekt_id); ?> </td> </tr> <tr valign="middle"> <td width="50%"><?php $jah = $jahr - 1; if (!($jah < getTodayYear() - 4)) { ?> <form action="./start.php" method="post" name="monatZurueck" target="_self" id="monatZurueck"> <div align="right"> <input name="monat" type="hidden" id="monat" value="<?php echo $monat; ?> "> <input name="mietobjekt_id" type="hidden" id="mietobjekt_id" value="<?php echo $mietobjekt_id; ?> ">
<?php //helper-funktionen einfügen: include_once $root . "/include/jahresuebersichtHelper.inc.php"; include_once $root . "/templates/constants.inc.php"; $ansicht = JAHRESUEBERSICHT; ?> <table width="100%" border="0" class="<?php echo TABLE_STANDARD; ?> "> <tr> <td colspan="2"><?php showYear(1, $jahr, $vermieter_id, $mietobjekt_id); ?> </td> </tr> <tr valign="middle"> <td width="50%"><?php $jah = $jahr - 1; if (!($jah < getTodayYear() - 4)) { ?> <form action="./index.php" method="post" name="monatZurueck" target="_self" id="monatZurueck"> <div align="right"> <input name="monat" type="hidden" id="monat" value="<?php echo $monat; ?> "> <input name="mietobjekt_id" type="hidden" id="mietobjekt_id" value="<?php echo $mietobjekt_id; ?>
< <?php } } } ?> <br/> <table width="100%" border="0" class="table"> <tr> <td colspan="2"><?php //monat ausgeben: showYear(1, $jahr, $unterkunft_id, $zimmer_id, $link, $saAktiviert, $sprache); ?> </td> </tr> <tr valign="middle"> <td width="50%"><?php $jah = $jahr - 1; if (!($jah < getTodayYear())) { ?> <form action="./jahresuebersicht.php" method="post" name="monatZurueck" target="_self" id="monatZurueck"> <div align="right"> <input name="monat" type="hidden" id="monat" value="1"> <input name="zimmer_id" type="hidden" id="zimmer_id" value="<?php echo $zimmer_id; ?> ">