diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-11 17:19:26 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-11 17:19:26 +0100 |
commit | d7f3313ff4514e38c9f53439cd1a1287e56e45f7 (patch) | |
tree | abff39ab11cb317f5fcd2db558da1c59bdae9239 /app/view/templates/delete.php | |
parent | 2f363e8fa26ab849539e64ff7caa21bd164e8979 (diff) | |
download | wcms-d7f3313ff4514e38c9f53439cd1a1287e56e45f7.tar.gz wcms-d7f3313ff4514e38c9f53439cd1a1287e56e45f7.zip |
reboot folder
Diffstat (limited to 'app/view/templates/delete.php')
-rw-r--r-- | app/view/templates/delete.php | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/app/view/templates/delete.php b/app/view/templates/delete.php new file mode 100644 index 0000000..be54451 --- /dev/null +++ b/app/view/templates/delete.php @@ -0,0 +1,44 @@ +<?php $this->layout('layout', ['title' => 'delete', 'description' => 'delete']) ?> + + +<?php $this->start('page') ?> + + +<?php $this->insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]) ?> + +<div> + +<h1>Delete</h1> + +<ul> +<li>Id : <?= $art->title() ?></li> +<li>Title : <?= $art->title() ?></li> +<li>Article(s) linked to this one : <?= $art->linkto('sort') ?></li> +<li>Article(s) linked from this one : <?= $art->linkfrom('sort') ?></li> +<li>Number of edits : <?= $art->editcount() ?></li> +</ul> + +<?php if (!empty($art->linkto())) { ?> + +<h2>Article linked to :</h2> + +<ul> +<?php foreach ($art->linkto('array') as $linkto) { + echo '<li><a href="./?id=' . $linkto . '">' . $linkto . '</a></li>'; +} ?> +</ul> + +<?php +} ?> + +</div> + + +<form action="./?id=<?= $art->id() ?>&action=delete" method="post"> +<input type="hidden" name="deleteconfirm" value="true"> +<input type="submit" value="confirm delete"> +</form> + + + +<?php $this->stop() ?>
\ No newline at end of file |