<?php 
	require_once('../core/connect.php');
	require_once('../core/CoreClass.php');
	require_once('../BLL/AppoinmentCalendarBLL.php');
	
	
	$objAppointment=new AppointmentCalendarClass($db);
	
	$msg="";
	
	if(isset($_POST['id']))
	{
		$id=$_POST['id'];
		$objAppointment->appointmentid=$id;
		$objAppointment->approveby=$_SESSION['login'];
		$msg=$objAppointment->ApproveAppointmentCalendar();
	}
		
	echo $msg;

?>
예제 #2
0


		$day=1;

		

		$currentTimeStamp = strtotime("$year-$month-$day");

		$monthName = date("F", $currentTimeStamp);

		$numDays = date("t", $currentTimeStamp);

		

		$aCalObj=new AppointmentCalendarClass($db);

		$frmdt=$year."-".$month."-"."01";

		$todt=$year."-".$month."-".$numDays;

		$aCalObj->fromdate=$frmdt;

		$aCalObj->todate=$todt;

		$eventArr=$aCalObj->GetAMonthAppoinments();

		

		$counter = 0;
예제 #3
0
<?php
require_once('core/connect.php');
require_once('core/CoreClass.php');
require_once('BLL/AppoinmentCalendarBLL.php');
require_once('BLL/UserBLL.php');
$ip=$_SERVER['REMOTE_ADDR'];

$objAppCal=new AppointmentCalendarClass($db);
if(isset($_POST['SearchBtn']))
{
	if(isset($_POST['desc'])!="")
	{
		$objAppCal->description=$_POST['desc'];
	}
	if(isset($_POST['fromdt'])!="")
	{
		$objAppCal->fromdate=$_POST['fromdt'];
	}
	if(isset($_POST['todt'])!="")
	{
		$objAppCal->todate=$_POST['todt'];
	}
	$arrAppCal=$objAppCal->SearchAppointment_calendar();
}
$objUser=new UserClass($db);
$arrUser=$objUser->SearchUser();

function approved($isapprove)
{
	if($isapprove==1) return "Approved";
	else			 return "Not Approved";
예제 #4
0
<?php 
	require_once('../core/connect.php');
	require_once('../core/CoreClass.php');
	require_once('../BLL/AppoinmentCalendarBLL.php');
	
	
	$objAppointment=new AppointmentCalendarClass($db);
	
	$msg="";
	
	if(isset($_POST['id']))
	{
		$id=$_POST['id'];
		$objAppointment->appointmentid=$id;
		$msg=$objAppointment->DeleteAppointment_calendar();
	}
		
	echo $msg;

?>
예제 #5
0
<?php 
	require_once('../core/connect.php');
	require_once('../core/CoreClass.php');
	require_once('../BLL/AppoinmentCalendarBLL.php');
	
	$fromdate=$_POST['startdate'];
	$todate=$_POST['enddate'];
	$description=$_POST['jobdesc'];
	//$cust_ac_ta=$_POST['cust_ac_ta'];
	
	
	$objAppointment=new AppointmentCalendarClass($db);
	$objAppointment->fromdate=$fromdate;
	$objAppointment->todate=$todate;
	$objAppointment->description=nl2br($description);
	
	$msg="";
	
	if(isset($_POST['id']))
	{
		$id=$_POST['id'];
		$objAppointment->appointmentid=$id;
		$msg=$objAppointment->UpdateAppointment_calendar();
	}
	else{
		$objAppointment->appointmentby=$_SESSION['login'];
		$msg=$objAppointment->InsertAppointment_calendar();
	}
	
	
	echo $msg;