diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-08-18 03:33:11 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-08-18 03:33:11 +0200 |
commit | 50e367e56b367259a2e6fb29621c97e9b0fc9c5e (patch) | |
tree | 082c451342bc52deffb9c36eacd5df125de7bbb1 /app/class | |
parent | 11233711f4e16957fbe6f5c4f4399e269e87f68f (diff) | |
download | wcms-50e367e56b367259a2e6fb29621c97e9b0fc9c5e.tar.gz wcms-50e367e56b367259a2e6fb29621c97e9b0fc9c5e.zip |
interface home update
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/controllerhome.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/class/controllerhome.php b/app/class/controllerhome.php index e177272..5a6d839 100644 --- a/app/class/controllerhome.php +++ b/app/class/controllerhome.php @@ -62,7 +62,17 @@ class Controllerhome extends Controller public function search() { if(isset($_POST['id']) && !empty($_POST['id'])) { - $this->routedirect('artread/', ['art' => $_POST['id']]); + if(isset($_POST['action'])) { + switch ($_POST['action']) { + case 'read': + $this->routedirect('artread/', ['art' => $_POST['id']]); + break; + + case 'edit': + $this->routedirect('artedit', ['art' => $_POST['id']]); + break; + } + } } else { $this->routedirect('home'); } |