diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-10-28 19:56:27 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-10-28 19:56:27 +0100 |
commit | e17392e46259e6f2e012017987cf7c31c171488f (patch) | |
tree | 72b61b63e32819e81433e8df6f14dc92b0e3a604 /w/view/templates/home.php | |
parent | a91c916248f967da2d4218b575e665242b7c975b (diff) | |
download | wcms-e17392e46259e6f2e012017987cf7c31c171488f.tar.gz wcms-e17392e46259e6f2e012017987cf7c31c171488f.zip |
abstract config NWY
Diffstat (limited to 'w/view/templates/home.php')
-rw-r--r-- | w/view/templates/home.php | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/w/view/templates/home.php b/w/view/templates/home.php new file mode 100644 index 0000000..34bac1a --- /dev/null +++ b/w/view/templates/home.php @@ -0,0 +1,85 @@ +<?php $this->layout('layout', ['title' => 'home']) ?> + + + + +<?php $this->start('page') ?> + + +<body> + + <?php $this->insert('navback', ['user' => $user]) ?> + + +<section> +<div id="flex"> + + + <?php $this->insert('homeopt', ['opt' => $opt]) ?> + + + +<div id="main"> +<h2>Articles</h2> +<form action="./" method="post"> + + + <div id="massedit"> + <h3>Mass Edit</h3> + <select name="massedit" required> + <option value="public">set as public</option> + <option value="private">set as private</option> + <option value="not published">set as not published</option> + <option value="erasetag">erase all tags</option> + <option value="erasetemplate">erase template</option> + <option value="delete">delete</option> + </select> + + <input type="submit" name="massaction" value="do" onclick="confirmSubmit(event, 'Are you sure')" > + + <input type="text" name="targettag" placeholder="add tag"> + <input type="submit" name="massaction" value="add tag" onclick="confirmSubmit(event, 'Are you sure')" > + + <select name="masstemplate"> + <?php + foreach ($table2 as $art) { + echo '<option value="' . $art->id() . '">' . $art->id() . '</option>'; + } + ?> + </select> + + <input type="submit" name="massaction" value="set template" onclick="confirmSubmit(event, 'Are you sure')" > + + <input type="hidden" name="action" value="massedit"> + </div> + + + <table id="home2table"> + <tr><th>x</th><th>id</th><th>edit</th><th>see</th><th>log</th><th>tag</th><th>summary</th><th>β to</th><th>β from</th><th>last modification</th><th>date of creation</th><th>privacy</th></tr> + <?php foreach ($table2 as $item) { ?> + <tr> + <td><input type="checkbox" name="id[]" value="<?= $item->id() ?>" id="<?= $item->id() ?>"></td> + <td><label title="<?= $item->title() ?>" for="<?= $item->id() ?>"><?= $item->id() ?></label></td> + <td><a href="?id=<?= $item->id() ?>&aff=edit">β</a></td> + <td><a href="?id=<?= $item->id() ?>" target="_blank">π</a></td> + <td><a href="?id=<?= $item->id() ?>&aff=log" target="_blank">ΒΆ</a></td> + <td><?= $item->tag('sort') ?></td> + <td><?= $item->description() ?></td> + <td><?= $item->linkto('sort') ?></td> + <td><?= $item->linkfrom('sort') ?></td> + <td><?= $item->datemodif('hrdi') ?></td> + <td><?= $item->datecreation('hrdi') ?></td> + <td><?= $item->secure('string') ?></td> + </tr> + + <?php }?> + </table> +</form> +</div> +</div> +</section> +</body> + + + +<?php $this->stop() ?>
\ No newline at end of file |