diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-01-12 14:53:41 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-01-12 14:53:41 +0100 |
commit | 393709dcf84776c760146722560816172167fe98 (patch) | |
tree | 4b5c1f24beae72a0ed9e6535f725031b46be165d /app/view/templates/homeopt.php | |
parent | 19458f7fc46c5a275f9a04b9e80fdf8175c85c6e (diff) | |
download | wcms-393709dcf84776c760146722560816172167fe98.tar.gz wcms-393709dcf84776c760146722560816172167fe98.zip |
visit counter
Diffstat (limited to 'app/view/templates/homeopt.php')
-rw-r--r-- | app/view/templates/homeopt.php | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/app/view/templates/homeopt.php b/app/view/templates/homeopt.php index a37e65b..5dab881 100644 --- a/app/view/templates/homeopt.php +++ b/app/view/templates/homeopt.php @@ -51,9 +51,9 @@ foreach ($opt->taglist() as $tagfilter => $count) { if (in_array($tagfilter, $opt->tagfilter())) { - echo '<li><input type="checkbox" name="tagfilter[]" id="' . $tagfilter . '" value="' . $tagfilter . '" checked /><label for="' . $tagfilter . '">' . $tagfilter . ' (' . $count . ')</label></li>'; + echo '<li><input type="checkbox" name="tagfilter[]" id="tag_' . $tagfilter . '" value="' . $tagfilter . '" checked /><label for="tag_' . $tagfilter . '">' . $tagfilter . ' (' . $count . ')</label></li>'; } else { - echo '<li><input type="checkbox" name="tagfilter[]" id="' . $tagfilter . '" value="' . $tagfilter . '" /><label for="' . $tagfilter . '">' . $tagfilter . ' (' . $count . ')</label></li>'; + echo '<li><input type="checkbox" name="tagfilter[]" id="tag_' . $tagfilter . '" value="' . $tagfilter . '" /><label for="tag_' . $tagfilter . '">' . $tagfilter . ' (' . $count . ')</label></li>'; } } if ($in = true || $out = true) { @@ -78,5 +78,33 @@ if ($in = true || $out = true) { <input type="submit" name="submit" value="filter"> ⬅<input type="submit" name="submit" value="reset"> +<?php if($user->isadmin()) { ?> + </form> + +<h2>Columns</h2> + +<form action="" method="post"> + +<ul> + +<?php + +foreach ($opt->col() as $col) { + ?> + <li> + <input type="checkbox" name="col[]" id="col_<?= $col ?>"> + <label for="col_<?= $col ?>"><?= $col ?></label> + </li> + <?php +} + +?> + +</ul> + +</form> + +<?php } ?> + </div> |