function _shn_get_coe_records($eid) { $res = Browse::getEventCOE($eid); if (count($res) != 0) { ?> <table class="table table-bordered table-striped table-hover"> <thead> <tr> <th><?php echo _t('THE_EVENT_IS_LINKED'); ?> </th> </tr> </thead> <tbody> <?php foreach ($res as $record) { ?> <tr> <td><?php echo " By "; ?> <a href="<?php echo get_url('events', 'get_event', null, array('eid' => $record['event'])); ?> "><?php echo $record['event_title']; ?> </a> <?php echo " as "; ?> <?php echo "<strong>" . get_mt_term($record['type_of_chain_of_events']) . "</strong>"; ?> </td> </tr> <?php } ?> </tbody> </table> <?php } }