39 lines
1.0 KiB
PHP
39 lines
1.0 KiB
PHP
|
|
||
|
<?php
|
||
|
$thisPage="admin";
|
||
|
$thissheet = "/admin/index";
|
||
|
|
||
|
require(__DIR__ . "/../../layout/header.php");
|
||
|
include __DIR__ . "./../../../views/layout/css/navi.css";
|
||
|
require __DIR__ . "/../../layout/navigation.php";
|
||
|
?>
|
||
|
|
||
|
<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 $a): ?>
|
||
|
<li>
|
||
|
<a href="posts-edit_c?id=<?php echo e($a->id); ?>">
|
||
|
<?php echo e($a->title)."<br></a>";
|
||
|
echo " -> ".e($a->content);?>
|
||
|
</li> <?php
|
||
|
endforeach; ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<?php include (__DIR__ . "./../../layout/footer.php"); ?>
|