diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-03-23 21:04:15 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-03-23 21:04:46 +0100 |
commit | 1a93d70c938f3ae2b050f3a102c961cf1cc3cefc (patch) | |
tree | b7ae3dd51fc3008169295d693f320fae901b14af /app/view | |
parent | a7174bb27de46b2f64118181221fad3658f511d3 (diff) | |
download | wcms-1a93d70c938f3ae2b050f3a102c961cf1cc3cefc.tar.gz wcms-1a93d70c938f3ae2b050f3a102c961cf1cc3cefc.zip |
filter map and orphans hide
Diffstat (limited to 'app/view')
-rw-r--r-- | app/view/templates/home.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 204864f..33bca81 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -30,7 +30,7 @@ <div class="block"> - <h2 class="hidephone">Pages (<?= count($table2) ?>) <span class="right"><a href="?display=list" <?= $display === 'list' ? 'style="color: white"' : '' ?> >list</a> / <a href="?display=map" <?= $display === 'map' ? 'style="color: white"' : '' ?> >map</a></span> </h2> + <h2 class="hidephone">Pages (<?= count($pagelistopt) ?>) <span class="right"><a href="?display=list" <?= $display === 'list' ? 'style="color: white"' : '' ?> >list</a> / <a href="?display=map" <?= $display === 'map' ? 'style="color: white"' : '' ?> >map</a></span> </h2> <?php if($display === 'map') { ?> @@ -39,12 +39,12 @@ <div id="deepsearchbar"> <form action="" method="get"> <input type="hidden" name="display" value="map"> - <input type="checkbox" name="" id="orphan" checked> - <label for="orphan">Show orphans pages</label> + <input type="checkbox" name="hideorphans" value="1" id="hideorphans" <?= $hideorphans ? 'checked' : '' ?>> + <label for="hideorphans">hide orphans pages</label> <select name="layout" id="layout"> <?= options(Wcms\Model::MAP_LAYOUTS, $layout) ?> </select> - <label for="layout">graph style</label> + <label for="layout">graph layout</label> <input type="submit" value="update"> </form> </div> @@ -134,7 +134,7 @@ </tr> </thead> <tbody> - <?php foreach ($table2 as $item) { ?> + <?php foreach ($pagelistopt as $item) { ?> <tr> <?php if($user->issupereditor()) { ?><td class="hidephone"><input type="checkbox" name="pagesid[]" value="<?= $item->id() ?>" id="id_<?= $item->id() ?>" form="multi"></td><?php } ?> <?php if($columns['favicon']) { ?> |