function outputMoveHref() { $request = new Request(); $request->setView('MoveProducts'); $request->setAction('MoveToProducts'); return $request->getURL(); }
/** * MailInfo constructor */ function MailInfo() { global $application; $MR =& $application->getInstance('MessageResources'); //initialize form data with null values when adding a new notification $this->currentNotificationId = modApiFunc("Notifications", "getCurrentNotificationId"); if ($this->currentNotificationId == 'Add') { $this->notificationInfo = array('Id' => '', 'Name' => '', 'Subject' => '', 'Body' => '', 'JavascriptBody' => '', 'From_addr' => '', 'Email_Code' => '', 'Active' => 'checked', 'Action_id' => 1); $request = new Request(); $request->setView('NotificationInfo'); $request->setAction('AddNotification'); $formAction = $request->getURL(); $this->properties = array('SubmitButton' => $MR->getMessage('BTN_ADD'), 'FormAction' => $formAction); } else { //initialize form data with database values when editing the notification $this->notificationInfo = modApiFunc("Notifications", "getNotificationInfo", $this->currentNotificationId); if (sizeof($this->notificationInfo) == 1) { $this->notificationInfo = $this->notificationInfo[0]; $this->notificationInfo['JavascriptBody'] = addcslashes(addslashes($this->notificationInfo['Body']), "