<?php require_once __DIR__ . '/auth.php'; $pageTitle='Brother Directory'; require_once __DIR__ . '/includes/header.php'; $brothers=$pdo->query("SELECT * FROM brothers ORDER BY LENGTH(identifier) ASC, identifier ASC")->fetchAll(); ?>
<main><section class="section"><div class="container"><div class="panel"><h1>Brother Directory</h1><table class="module-table"><tr><th>ID</th><th>Name</th><th>Phone</th></tr><?php foreach($brothers as $b): ?><tr><td><?php echo h($b['identifier']); ?></td><td><?php echo h($b['name']); ?></td><td><?php if($b['phone']): ?><a class="call-link" href="tel:<?php echo h(phone_digits($b['phone'])); ?>"><?php echo h($b['phone']); ?></a><?php endif; ?></td></tr><?php endforeach; ?></table></div></div></section></main><?php require_once __DIR__ . '/includes/footer.php'; ?>
