/****************************************************************************** # Booking Script v3.1 #****************************************************************************** # Author: Convergine.com # Email: info@convergine.com # Website: http://www.convergine.com # # # Version: 3.1 # Copyright: (c) 2010 - Convergine.com # Icons from PixelMixer - http://pixel-mixer.com/basic_set/ # #*******************************************************************************/ session_start(); require_once("includes/dbconnect.php"); //Load the settings require_once("includes/functions.php"); //Load the functions $date = (!empty($_REQUEST["date"]))?strip_tags(str_replace("'","`",$_REQUEST["date"])):''; $lb1 = (!empty($_REQUEST["lb1"]))?strip_tags(str_replace("'","`",$_REQUEST["lb1"])):''; $lb2 = (!empty($_REQUEST["lb2"]))?strip_tags(str_replace("'","`",$_REQUEST["lb2"])):''; ############################## REQUEST CALENDAR DATE IF NAVIGATION USED ################################ $startDay = getFirstDay(); $iMonth = (!empty($_REQUEST["month"]))?strip_tags(str_replace("'","`",$_REQUEST["month"])):date('n'); $iYear = (!empty($_REQUEST["year"]))?strip_tags(str_replace("'","`",$_REQUEST["year"])):date('Y'); $calendar = ""; $calendar = setupCalendar($iMonth,$iYear); list($iPrevMonth, $iPrevYear) = prevMonth($iMonth, $iYear); list($iNextMonth, $iNextYear) = nextMonth($iMonth, $iYear); $iCurrentMonth = date('n'); $iCurrentYear = date('Y'); $iCurrentDay = ''; if(($iMonth == $iCurrentMonth) && ($iYear == $iCurrentYear)){ $iCurrentDay = date('d'); $thismonth=true; } $iNextMonth = mktime(0, 0, 0, $iNextMonth, 1, $iNextYear); $iPrevMonth = mktime(0, 0, 0, $iPrevMonth, 1, $iPrevYear); $iCurrentDay = $iCurrentDay; $iCurrentMonth = mktime(0, 0, 0, $iMonth, 1, $iYear); $title = date('F Y',$iCurrentMonth); ################### PREPARE LINKS FOR CALENDAR NAVIGATION ###################### $prev_month_link = "".date('M',$iPrevMonth).""; $next_month_link = "".date('M',$iNextMonth).""; ################### PREPARE CALENDAR HEADER DEPENDING ON MON OR SUN AS FIRST DAY ###################### if($startDay=="0"){ $calendarHeader = 'SunMonTueWedThuFriSat'; } else if($startDay=="1"){ $calendarHeader = 'MonTueWedThuFriSatSun'; } ?> Booking System v3.1

Welcome to Inthebox Appointment Scheduling


Creative Business Consultancy - INTHEBOX