diff --git a/application/controllers/GiantController.php b/application/controllers/GiantController.php index 205603471..47dd3385b 100644 --- a/application/controllers/GiantController.php +++ b/application/controllers/GiantController.php @@ -231,11 +231,13 @@ class GiantController extends Zend_Controller_Action $this->view->lang = $this->getRequest()->getParam('lang'); $this->view->CompanyId = $this->getRequest()->getParam('CompanyId'); $this->view->Pays = $this->getRequest()->getParam('Pays'); + $this->view->CompanyName = $this->getRequest()->getParam('CompanyName'); + $this->view->action = $this->getRequest()->getParam('action'); $this->view->values = $this->getRequest()->getParams(); if ($this->getRequest()->isPost()) { $giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId')); - $result = $giantController->monitoring($this->getRequest()->getParam('CompanyId'), + $result = $giantController->startmonitoring($this->getRequest()->getParam('CompanyId'), $this->getRequest()->getParam('CategoryName'), $this->getRequest()->getParam('EventType'), $this->getRequest()->getParam('StartDate'), @@ -248,4 +250,26 @@ class GiantController extends Zend_Controller_Action } } + public function stopmonitoringAction() + { + $this->_helper->layout()->disableLayout(); + $this->view->headLink()->appendStylesheet('/themes/default/styles/giant.css', 'all'); + $this->view->CompanyId = $this->getRequest()->getParam('CompanyId'); + $this->view->Pays = $this->getRequest()->getParam('Pays'); + $this->view->InternalOrderId = $this->getRequest()->getParam('InternalOrderId'); + $this->view->CompanyName = $this->getRequest()->getParam('CompanyName'); + $this->view->action = $this->getRequest()->getParam('action'); + $this->view->values = $this->getRequest()->getParams(); + + if ($this->getRequest()->isPost()) { + $giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId')); + $result = $giantController->stopmonitoring($this->getRequest()->getParam('CompanyId'), + $this->getRequest()->getParam('EndDate'), + $this->getRequest()->getParam('InternalOrderId'), + $this->getRequest()->getParam('Pays') + ); + $this->view->result = $result; + } + + } } \ No newline at end of file diff --git a/application/views/default/scripts/giant/identite.phtml b/application/views/default/scripts/giant/identite.phtml index 42f76dfd1..79561a2dd 100644 --- a/application/views/default/scripts/giant/identite.phtml +++ b/application/views/default/scripts/giant/identite.phtml @@ -133,7 +133,8 @@

Liste des monitoring

- Start monitoring + raisonSociale)?>'>Start monitoring
+ raisonSociale)?>'>Stop monitoring ';print_r($this->modification); ?> diff --git a/application/views/default/scripts/giant/startmonitoring.phtml b/application/views/default/scripts/giant/startmonitoring.phtml index 42b1962e7..b7578623b 100644 --- a/application/views/default/scripts/giant/startmonitoring.phtml +++ b/application/views/default/scripts/giant/startmonitoring.phtml @@ -2,33 +2,42 @@
+

CompanyId: CompanyId?>

+Company Name: CompanyName?>

-LanguageCode:
+

+Category Name:
+

+Event Type:
+

+Language Code:


-CategoryName:
-

-EventType:
-

-PreferredStartDate:
- optional

-PreferredEndDate:
- optional

-MonitoringVersion:
+
+
+Preferred Start Date:
+ optional

+Preferred End Date:
+ optional

+Monitoring Version:


+

+ '; print_r($this->values);print_r($this->result);?>