56 lines
1.7 KiB
PHP
56 lines
1.7 KiB
PHP
|
<?php
|
||
|
$thisPage="admin";
|
||
|
$thissheet = "/admin/edit";
|
||
|
require __DIR__ . "/../../layout/header.php";
|
||
|
include __DIR__ . "./../../../views/layout/css/navi.css";
|
||
|
require __DIR__ . "/../../layout/navigation.php";
|
||
|
//echo "edit: "; var_dump($entry);
|
||
|
?>
|
||
|
|
||
|
<br /> <br />
|
||
|
<div class="container">
|
||
|
<div class="starter-template">
|
||
|
<h3>Edit - Post editieren!</h3><?php
|
||
|
if(!empty($savedSuccess)): ?>
|
||
|
<p>Die Korrektur wurde erfolgreich gespeichert</p><?php
|
||
|
else: ?>
|
||
|
<p> </p> <?php
|
||
|
endif;
|
||
|
// Kommentar Titel anzeigen ?>
|
||
|
<div class="panel panel-default">
|
||
|
<div class="panel-heading">
|
||
|
<h1 class="panel-title"><?php echo e($entry->title); ?></h1>
|
||
|
</div>
|
||
|
</div><?php
|
||
|
// Kommentarfelder anzeigen?>
|
||
|
<form method="POST" action="posts-edit?id=<?php echo e($entry->id); ?>" class="form-horizontal">
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-md-3">
|
||
|
Titel:
|
||
|
</label>
|
||
|
<div class="col-md-9">
|
||
|
<input type="text" name="title" value="<?php echo e($entry->title); ?>" class="form-control" />
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-md-3">
|
||
|
Inhalt:
|
||
|
</label>
|
||
|
<div class="col-md-9">
|
||
|
<textarea name="content" class="form-control" rows="10"><?php echo e($entry->content); ?></textarea>
|
||
|
</div>
|
||
|
</div><?php
|
||
|
// Speichern?>
|
||
|
<input type="submit" value="Post (Korrektur) speichern!" class="btn btn-primary" />
|
||
|
</form>
|
||
|
<br><?php
|
||
|
// Ohne Speichern zurück ?>
|
||
|
<div class="w3-container">
|
||
|
<a href="posts-admin" class="w3-btn w3-red">zurück</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<?php include __DIR__ . "/../../layout/footer.php"; ?>
|