Exemplo n.º 1
0
<?php

include_once '../../_includes/framework.php';
require_admin();
$page_title = "Admin";
include "_partials/admin-header.php";
$blacklists = Blacklist::all();
?>

<div class="container">
  <div class="col-md-12">
    <h1>Blacklist Entries</h1>
    <table class="table table-striped">
      <tr>
        <th>Badge Name</th>
        <th>Legal Name</th>
        <th>Trigger Badge Names</th>
        <th>Trigger Legal Names</th>
        <th>Reason</th>
        <th>Type</th>
        <th>Actions</th>
      </tr>
      <?php 
foreach ($blacklists as $blacklist) {
    ?>
        <?php 
    $type = BlacklistType::cached_find_by_db_name($blacklist->type);
    ?>
        <tr class="<?php 
    echo $type->alert_color;
    ?>