<i class="ion ion-clipboard"></i> <h3 class="box-title">Pick community Events</h3> </div><!-- /.box-header --> <div class="box-body"> <table class="table table-bordered table-striped"> <thead> <tr> <th><input type="checkbox" name ="parentcommunityevent" onchange="selectAllCheckboxchilds('parentcommunityevent','childcommunityevent')" /></th> <th>Event Name</th> <th></th> </tr> </thead> <tbody id="eventtablebody"> <?php $eventnames = $event->getAllEventNames(); if (!empty($eventnames) && count($eventnames)) { foreach ($eventnames as $key => $value) { ?> <tr><td> <input type="checkbox" value="<?php echo $key; ?> " name="childcommunityevent" id="eventid" <?php echo in_array($key, $selectedEvents) ? ' checked ' : ''; ?> /> </td> <td> <span class="text"><?php
function GetAllEventNames() { include_once CLASSFOLDER . "/events.php"; $events = new eventclass($this->internalDB); return $events->getAllEventNames(); }