53 lines
1.3 KiB
PHP
Executable File
53 lines
1.3 KiB
PHP
Executable File
|
|
<?php
|
|
$thisPage="admin";
|
|
$thissheet = "/admin/index_c";
|
|
require(__DIR__ . "/../../layout/header.php");
|
|
|
|
include __DIR__ . "./../../../views/layout/css/navi.css";
|
|
require __DIR__ . "/../../layout/navigation.php";
|
|
var_dump($all);
|
|
echo "<br>";
|
|
var_dump($comment);
|
|
//die();
|
|
?>
|
|
|
|
<br /> <br />
|
|
|
|
<div class="container">
|
|
<div class="starter-template">
|
|
<h3>Posts editieren ?</h3>
|
|
<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>
|
|
|
|
<ul>
|
|
<?php foreach ($all AS $entry): ?>
|
|
<li>
|
|
<a href="admin_c?id=<?php echo e($entry->id); ?>">
|
|
<?php echo e($entry->content); ?>
|
|
</a>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
<h3>Kommentare editieren</h3>
|
|
<ul class="list-group"><?php
|
|
$i = 1;
|
|
foreach($comments AS $comment): ?>
|
|
<li class="list-group-item"><?php
|
|
echo $i.". ".e($comment->content);
|
|
$i++;?>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<?php include __DIR__ . "/../../layout/footer.php"; ?>
|