
<?php
  $thisPage="admin";
  $thissheet = "/admin/verwalten";
  require(__DIR__ . "/../../layout/header.php");

  include __DIR__ . "./../../../views/layout/css/navi.css";
  require __DIR__ . "/../../layout/navigation.php";

  foreach ($all as $a) {
    echo "<br>";var_dump($a);
  }
  echo "<br>";
  //var_dump($entry);

  ?>

<div class="container">
  <div class="starter-template">
    <h3>Posts verwalten (posts-admin)</h3>
    <h4>Posts editieren (posts-edit)</h4>
    <ul>
      <?php foreach ($all AS $entry): ?>
        <li>
          <a href="posts-edit?id=<?php echo e($entry->id); ?>">
            <?php echo e($entry->title); ?>
          </a>
        </li>	            	            
      <?php endforeach; ?>
    </ul>

    <h4>Kommentare editieren (posts-edit_c)</h4>
    <ul>
      <?php foreach ($all AS $entry): ?>
        <li>
          <a href="posts-edit_c?id=<?php echo e($entry->id); ?>">
            <?php echo e($entry->title); ?>
          </a><?php
          echo "<br>".$entry->content."<br>"; ?>
        </li>	            	            
      <?php endforeach; ?>
    </ul>
  </div>
</div>

<?php require(__DIR__ . "/../../layout/footer.php"); ?>
