[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();
$eventService = new EventService();
//$eventArr = $eventService->getEventList(“id in (‘1’, ‘2’, ‘3’)”);
$eventArr = $eventService->getEventList($con, “active = 1”);
$eventCount = count($eventArr);
//echo “Count = ” . $eventCount . “
“;
echo “If you will be particpiating in one upcoming seminars, please click on the appropriate link in order to register:
“;
for ($i=0; $i < $eventCount; $i++)
{
$event = $eventArr[$i];
$regAllowed = $event->getRegAllowed();
//echo “regAllowed = ” . $regAllowed . “
“;
if ($regAllowed == 1)
{
$link = “https://karate-family.com/event-registration?eid=” . $event->getId();
echo “
\n”;
}
else
{
echo $event->getTitle() . ” (registration not allowed)”;
}
}
//echo “09/28/19 – 09/29/2019 : HMAF East Coast Gasshuku (Jui Jitsu)“;
echo “”;
closeDbConnection($con);
[/insert_php]