<?php echo H2Configuration::getUserMenu(); $triggerList = array(); foreach (o(db)->get('SELECT * FROM events') as $evt) { $triggerList[$evt['e_address']] = $evt['e_address']; $triggerList[$evt['e_address_rev']] = $evt['e_address_rev']; } ?> <div class="iconOpt"> <?php if (isset($_REQUEST['id'])) { } asort($triggerList); foreach ($triggerList as $tr) { if ($tr != '') { ?> <div onclick="eventCommand('<?php echo htmlspecialchars($tr); ?> ')" class="bigBtn"><br/> <?php echo str_replace('-', '-<br/>', $tr); ?> </div><?php } } ?> </div>