diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-10-31 15:28:37 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-10-31 15:28:37 +0100 |
commit | 26f88e043ebedcadd337011ce527f6148350f0dc (patch) | |
tree | b41d1c9dd646c35a2cac88ba999b0cdd35726a68 /w/view | |
parent | e17392e46259e6f2e012017987cf7c31c171488f (diff) | |
download | wcms-26f88e043ebedcadd337011ce527f6148350f0dc.tar.gz wcms-26f88e043ebedcadd337011ce527f6148350f0dc.zip |
homemade very root database engine
Diffstat (limited to 'w/view')
-rw-r--r-- | w/view/templates/edit.php | 7 | ||||
-rw-r--r-- | w/view/templates/edittopbar.php | 2 | ||||
-rw-r--r-- | w/view/templates/read.php | 2 | ||||
-rw-r--r-- | w/view/templates/readcreate.php | 4 |
4 files changed, 8 insertions, 7 deletions
diff --git a/w/view/templates/edit.php b/w/view/templates/edit.php index 39c2104..4db6706 100644 --- a/w/view/templates/edit.php +++ b/w/view/templates/edit.php @@ -21,11 +21,10 @@ <form action="?id=<?= $art->id() ?>&action=update" method="post" id="artedit"> - - - <?php $this->insert('edittopbar', ['config' => $config, 'art' => $art]) ?> - <?php $this->insert('editsidebar', ['config' => $config, 'art' => $art]) ?> + + <?php $this->insert('edittopbar', ['art' => $art]) ?> + <?php $this->insert('editsidebar', ['art' => $art]) ?> <style>textarea{font-size: <?= Config::fontsize() ?>px}</style> diff --git a/w/view/templates/edittopbar.php b/w/view/templates/edittopbar.php index 7e7f9e8..ffd1c0f 100644 --- a/w/view/templates/edittopbar.php +++ b/w/view/templates/edittopbar.php @@ -4,7 +4,7 @@ <!-- <input type="submit" name="action" value="display" accesskey="c" onclick="document.getElementById('artedit').submit();" form="artedit"> --> <!-- <input type="submit" name="action" value="delete" onclick="confirmSubmit(event, 'Delete this article', 'artedit')" form="artedit"> --> <a href="?id=<?= $art->id() ?>" target="_blank">👁</a> - + <a href="?id=<?= $art->id() ?>&aff=log" target="_blank">¶</a> <span id="headid"><?= $art->id() ?></span> <label for="fontsize">Font-size</label> diff --git a/w/view/templates/read.php b/w/view/templates/read.php index 5c544b3..4964a47 100644 --- a/w/view/templates/read.php +++ b/w/view/templates/read.php @@ -1,4 +1,4 @@ -<?php $this->layout('layout', ['title' => $art->title()]) ?> +<?php $this->layout('layout', ['title' => $art->title(), 'description' => $art->description()]) ?> diff --git a/w/view/templates/readcreate.php b/w/view/templates/readcreate.php index fd5df18..dc36420 100644 --- a/w/view/templates/readcreate.php +++ b/w/view/templates/readcreate.php @@ -1,3 +1,5 @@ -<form action="/?id=<?= $id ?>&action=add"> +<form action="./" method="get"> +<input type="hidden" name="id" value="<?= $id ?>"> +<input type="hidden" name="action" value="add"> <input type="submit" value="create"> </form>
\ No newline at end of file |