aboutsummaryrefslogtreecommitdiff
path: root/app/class/controllerhome.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-11 17:19:26 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-11 17:19:26 +0100
commitd7f3313ff4514e38c9f53439cd1a1287e56e45f7 (patch)
treeabff39ab11cb317f5fcd2db558da1c59bdae9239 /app/class/controllerhome.php
parent2f363e8fa26ab849539e64ff7caa21bd164e8979 (diff)
downloadwcms-d7f3313ff4514e38c9f53439cd1a1287e56e45f7.tar.gz
wcms-d7f3313ff4514e38c9f53439cd1a1287e56e45f7.zip
reboot folder
Diffstat (limited to 'app/class/controllerhome.php')
-rw-r--r--app/class/controllerhome.php66
1 files changed, 66 insertions, 0 deletions
diff --git a/app/class/controllerhome.php b/app/class/controllerhome.php
new file mode 100644
index 0000000..31d27c3
--- /dev/null
+++ b/app/class/controllerhome.php
@@ -0,0 +1,66 @@
+<?php
+
+class Controllerhome extends Controllerdb
+{
+
+ protected $modelhome;
+ protected $opt;
+
+ public function __construct() {
+ parent::__construct();
+ $this->modelhome = new Modelhome;
+ }
+
+
+
+
+ public function desktop()
+ {
+
+ $this->table2();
+ }
+
+ public function table2()
+ {
+ $table = $this->modelhome->getlister();
+ $this->opt = $this->modelhome->optinit($table);
+
+ $table2 = $this->modelhome->table2($table, $this->opt);
+
+ $this->showtemplate('home', ['user' => $this->user, 'table2' => $table2, 'opt' =>$this->opt]);
+
+
+ }
+
+ public function analyseall()
+ {
+ if($this->user->level() >= Modeluser::EDITOR) {
+ $scan = new Modelanalyse;
+ $scan->analyseall();
+ $this->redirect('./');
+
+ }
+ }
+
+ public function massedit()
+ {
+ echo '<h2>Mass Edit</h2>';
+
+ }
+
+
+
+
+
+
+
+}
+
+
+
+
+
+
+
+
+?> \ No newline at end of file