aboutsummaryrefslogtreecommitdiff
path: root/app/class
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-08-18 03:33:11 +0200
committervincent-peugnet <v.peugnet@free.fr>2019-08-18 03:33:11 +0200
commit50e367e56b367259a2e6fb29621c97e9b0fc9c5e (patch)
tree082c451342bc52deffb9c36eacd5df125de7bbb1 /app/class
parent11233711f4e16957fbe6f5c4f4399e269e87f68f (diff)
downloadwcms-50e367e56b367259a2e6fb29621c97e9b0fc9c5e.tar.gz
wcms-50e367e56b367259a2e6fb29621c97e9b0fc9c5e.zip
interface home update
Diffstat (limited to 'app/class')
-rw-r--r--app/class/controllerhome.php12
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');
}