Exemple #1
0
include_once 'guestlistclass.inc.php';
$bcat = new BookingCategory();
$book = new Booking();
$guestlist = new Guestlist();
$cal = new Calendar();
$smarty->assign("tpl_title", "Zimmerplan");
$smarty->assign('tpl_nav', 'calendar');
$smarty->assign('tpl_type', 'calendar');
// check for old reservations
$numoldres = $book->getnumoldreservations();
if ($numoldres > 0 && $request->GetVar('showoldres', 'Session') !== 'noshow') {
    $smarty->assign('tpl_oldreservations', 'true');
} else {
    $smarty->assign('tpl_oldreservations', 'false');
}
$numbirthday = count($guestlist->getBirthdayReminders());
if ($numbirthday > 0 && $request->GetVar('showbirthdays', 'Session') !== 'noshow') {
    $smarty->assign('tpl_birthdays', 'true');
} else {
    $smarty->assign('tpl_birthdays', 'false');
}
$smarty->assign('tpl_numoldres', $numoldres);
$todaydate = getdate();
$month = $todaydate['mon'];
$year = $todaydate['year'];
$view = 'type';
if ($request->GetVar('month', 'get') !== $request->undefined) {
    $month = $request->GetVar('month', 'get');
    $year = $request->GetVar('year', 'get');
} else {
    if ($request->GetVar('month', 'post') !== $request->undefined) {
Exemple #2
0
*  the Free Software Foundation; either version 2 of the License, or
*  (at your option) any later version.
* 
*  The GNU General Public License can be found at
*  http://www.gnu.org/copyleft/gpl.html.
*  A copy is found in the textfile GPL.txt and important notices to the license 
*  from the author is found in LICENSE.txt distributed with these scripts.
*
* 
*  This script is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Show birthdays
* 
* calendar
* 
* 02/07/2004 by Christian Ehret chris@ehret.name
*/
$smartyType = "www";
include_once "../includes/default.inc.php";
$auth->is_authenticated();
include_once 'guestlistclass.inc.php';
$guestlist = new Guestlist();
$smarty->assign('tpl_guests', $guestlist->getBirthdayReminders());
$sess->SetVar('showbirthdays', 'noshow');
$smarty->display('birthdays.tpl');