Exemplo n.º 1
0
  ------------------------------------------------------------------------
*/
define('GLPI_ROOT', '../../..');
include GLPI_ROOT . "/inc/includes.php";
header("Content-Type: text/html; charset=UTF-8");
header_nocache();
if (!isset($_POST["id"])) {
    exit;
}
if (!isset($_POST["sort"])) {
    $_POST["sort"] = "";
}
if (!isset($_POST["order"])) {
    $_POST["order"] = "";
}
if (!isset($_POST["withtemplate"])) {
    $_POST["withtemplate"] = "";
}
$pmBusinessrule = new PluginMonitoringBusinessrule();
//show computer form to add
//if ($_POST["id"]>0 && $pmBusinessrule->can($_POST["id"],'r')) {
switch ($_POST['glpi_tab']) {
    case -1:
        break;
    case 2:
        $pmBusinessrule->showForm();
        break;
    default:
}
//}
ajaxFooter();
Exemplo n.º 2
0
function plugin_headings_monitoring_businessrules($item)
{
    $pMonitoringBusinessrule = new PluginMonitoringBusinessrule();
    $pMonitoringBusinessrule->showForm($item->fields['id']);
}
 /**
  * @param $item            CommonGLPI object
  * @param $tabnum          (default 1)
  * @param $withtemplate    (default 0)
  */
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     $pmBusinessrule = new PluginMonitoringBusinessrule();
     $pmBusinessrule->showForm($item->fields['id']);
     return true;
 }