aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/homeopt.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/view/templates/homeopt.php')
-rw-r--r--app/view/templates/homeopt.php32
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>