[insert_php]
require_once $_SERVER[‘DOCUMENT_ROOT’] . “/sysadmin/db.php”;
require_once $_SERVER[‘DOCUMENT_ROOT’] . “/sysadmin/common.php”;
require_once $_SERVER[‘DOCUMENT_ROOT’] . “/sysadmin/service/EventService.php”;
require_once $_SERVER[‘DOCUMENT_ROOT’] . “/sysadmin/model/Event.php”;
$con = getDbConnection();
$debug = false;
$validParam = 0;
$eid = $_GET[“eid”];
//echo “EID = ” . $eid . “
“;
$eventService = new EventService();
$event = $eventService->getEventById($con, $eid);
if ($event != null)
{
$validParam = 1;
}
echo “
\n”;
if ($validParam == 1)
{
//echo $event->getTitle() . “
” . $event->getDateTime();
//echo $event->getTitle() . “
” . $event->getDate();
echo $event->getTitle() . “
” . $event->getDate() . “, ” . $event->getStartTime() . ” – ” . $event->getEndTime() ;
echo “
“;
echo ““;
echo “Location :
“;
echo $event->getLocName() . “
“;
echo $event->getLocAddress() . “
“;
$locAddress2 = $event->getLocAddress2();
if ($locAddress2 != “”)
{
echo $locAddress2 . “
“;
}
echo $event->getLocCity() . “, ” . $event->getLocState() . ” ” . $event->getLocZip() . “
“;
echo ““;
// details
$details = “”;
$details = $event->getDetails();
if ($details != “”)
{
echo “
” . $details ;
}
$flyerUrl = “”;
$flyerUrl = $event->getFlyerUrl();
$flyerThumbnail = “”;
$flyerThumbnail = $event->getFlyerThumbnail();
if ($flyerThumbnail != “”)
{
echo “
“;
if ($flyerUrl != “”)
{
echo ““;
}
echo ““;
if ($flyerUrl != “”)
{
echo ““;
}
}
if ($flyerUrl != “”)
{
//echo “
View the flyer with all the details“;
// echo “
“;
}
}
else
{
echo “Invalid Param – Registration not allowed”;
}
echo “
\n”;
[/insert_php]