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/class/controllerhome.php | |
parent | a91c916248f967da2d4218b575e665242b7c975b (diff) | |
download | wcms-e17392e46259e6f2e012017987cf7c31c171488f.tar.gz wcms-e17392e46259e6f2e012017987cf7c31c171488f.zip |
abstract config NWY
Diffstat (limited to 'w/class/controllerhome.php')
-rw-r--r-- | w/class/controllerhome.php | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/w/class/controllerhome.php b/w/class/controllerhome.php index ecbc3c7..8c98949 100644 --- a/w/class/controllerhome.php +++ b/w/class/controllerhome.php @@ -4,6 +4,7 @@ class Controllerhome extends Controllerdb { protected $modelhome; + protected $opt; public function __construct() { parent::__construct(); @@ -15,24 +16,32 @@ class Controllerhome extends Controllerdb public function desktop() { - echo '<h1>Desktop</h1>'; - - echo '<h2>Menu Bar</h2>'; $this->table2(); } public function table2() { - if ($this->useriseditor()) { - $datas = $this->modelhome->table2(); + $table = $this->artmanager->getlister(['id', 'tag', 'linkfrom', 'linkto', 'description', 'title', 'datemodif', 'datecreation', 'secure']); + $this->opt = $this->modelhome->optinit($table); + + $table2 = $this->modelhome->table2($table, $this->opt); + + $this->showtemplate('home', ['user' => $this->user, 'table2' => $table2, 'opt' =>$this->opt]); - var_dump($datas); - - } } + public function analyseall() + { + if($this->user->level() >= Modeluser::EDITOR) { + $scan = new Modelanalyse; + $scan->analyseall(); + + $this->table2(); + } + } + public function massedit() { echo '<h2>Mass Edit</h2>'; |