diff options
Diffstat (limited to 'public/w/home.php')
-rw-r--r-- | public/w/home.php | 49 |
1 files changed, 34 insertions, 15 deletions
diff --git a/public/w/home.php b/public/w/home.php index 7115918..3094d03 100644 --- a/public/w/home.php +++ b/public/w/home.php @@ -9,27 +9,27 @@ echo '<section class="home">'; if ($app->session() >= $app::EDITOR) { $app->bddinit($config); - $opt = new Opt(Art::classvarlist()); - - if(!empty($_GET)) { - - $_SESSION['opt'] = $_GET; - $opt->hydrate($_GET); - - } - if(isset($_GET['submit']) && $_GET['submit'] == 'reset') { - $opt = new Opt(Art::classvarlist()); - } elseif(isset($_SESSION['opt'])) { - $opt->hydrate($_SESSION['opt']); - - } + $opt = new Opt(Art::classvarlist()); $opt->setcol(['id', 'tag', 'lien', 'contenu', 'intro', 'titre', 'datemodif', 'datecreation', 'secure']); $table = $app->getlisteropt($opt); $app->listcalclien($table); $opt->settaglist($table); + $opt->submit(); + + + + + + + + + + + $opt->setcol(['id', 'tag', 'lien', 'contenu', 'intro', 'titre', 'datemodif', 'datecreation', 'secure', 'liento']); + $aff->option($app, $opt); $filtertagfilter = $app->filtertagfilter($table, $opt->tagfilter(), $opt->tagcompare()); @@ -55,8 +55,27 @@ if ($app->session() >= $app::EDITOR) { $app->artlistsort($table2, $opt->sortby(), $opt->order()); + echo '<div id="flex">'; + + + $aff->home2table($app, $table2, $app->getlister()); + + + + + echo '<div id="map">'; + $aff->mapheader(); + if(isset($_GET['map'])) { + $aff->mermaid($app->map($table2)); + } + echo '</div>'; + + + + + + echo '</div>'; - $aff->home2table($app, $table2, $app->getlister()); } |