static function configCron($target, $ID) { echo "<div align='center'>"; echo "<form method='post' action=\"{$target}\">"; echo "<table class='tab_cadre_fixe' cellpadding='5'>"; $colspan = 2; echo "<tr class='tab_bg_1'>"; echo "<td>" . __('Parameter', 'additionalalerts') . "</td>"; echo "<td>" . __('Status used by OCS-NG', 'additionalalerts'); Dropdown::show('State', array('name' => "states_id")); echo " <input type='submit' name='add_state' value=\"" . _sx('button', 'Add') . "\" class='submit' ></div></td>"; echo "</tr>"; echo "</table>"; Html::closeForm(); echo "</div>"; $state = new PluginAdditionalalertsNotificationState(); $state->showForm($target); }
Additionalalerts is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Additionalalerts is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with additionalalerts. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; $state = new PluginAdditionalalertsNotificationState(); $ocsalert = new PluginAdditionalalertsOcsAlert(); if (isset($_POST["add"])) { if ($ocsalert->canCreate()) { $newID = $ocsalert->add($_POST); } Html::back(); } else { if (isset($_POST["update"])) { if ($ocsalert->canCreate()) { $ocsalert->update($_POST); } Html::back(); } else { if (isset($_POST["add_state"])) { if ($ocsalert->canCreate()) {