当前位置: 首页>>代码示例>>PHP>>正文


PHP Infocom::showForItem方法代码示例

本文整理汇总了PHP中Infocom::showForItem方法的典型用法代码示例。如果您正苦于以下问题:PHP Infocom::showForItem方法的具体用法?PHP Infocom::showForItem怎么用?PHP Infocom::showForItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Infocom的用法示例。


在下文中一共展示了Infocom::showForItem方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: switch

                }
        }
    }
} else {
    switch ($_REQUEST['glpi_tab']) {
        case -1:
            NetworkPort::showForItem('NetworkEquipment', $_POST["id"]);
            Infocom::showForItem($netdevice);
            Contract::showAssociated($netdevice);
            Document::showAssociated($netdevice, $_POST["withtemplate"]);
            Ticket::showListForItem('NetworkEquipment', $_POST["id"]);
            Link::showForItem('NetworkEquipment', $_POST["id"]);
            Plugin::displayAction($netdevice, $_REQUEST['glpi_tab']);
            break;
        case 4:
            Infocom::showForItem($netdevice);
            Contract::showAssociated($netdevice);
            break;
        case 5:
            Document::showAssociated($netdevice, $_POST["withtemplate"]);
            break;
        case 6:
            Ticket::showListForItem('NetworkEquipment', $_POST["id"]);
            break;
        case 7:
            Link::showForItem('NetworkEquipment', $_POST["id"]);
            break;
        case 10:
            showNotesForm($_POST['target'], 'NetworkEquipment', $_POST["id"]);
            break;
        case 11:
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:networkequipment.tabs.php

示例2: switch

         default:
             Plugin::displayAction($monitor, $_REQUEST['glpi_tab'], $_POST["withtemplate"]);
     }
 } else {
     switch ($_REQUEST['glpi_tab']) {
         case -1:
             Computer_Item::showForItem($monitor);
             Infocom::showForItem($monitor);
             Contract::showAssociated($monitor);
             Document::showAssociated($monitor, $_POST["withtemplate"]);
             Ticket::showListForItem('Monitor', $_POST["id"]);
             Link::showForItem('Monitor', $_POST["id"]);
             Plugin::displayAction($monitor, $_REQUEST['glpi_tab']);
             break;
         case 4:
             Infocom::showForItem($monitor);
             Contract::showAssociated($monitor);
             break;
         case 5:
             Document::showAssociated($monitor, $_POST["withtemplate"]);
             break;
         case 6:
             Ticket::showListForItem('Monitor', $_POST["id"]);
             break;
         case 7:
             Link::showForItem('Monitor', $_POST["id"]);
             break;
         case 10:
             showNotesForm($_POST['target'], 'Monitor', $_POST["id"]);
             break;
         case 11:
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:monitor.tabs.php

示例3: sprintf

} else {
    if (isset($_POST["purge"])) {
        $ic->check($_POST["id"], PURGE);
        $ic->delete($_POST, 1);
        Event::log($_POST["id"], "infocom", 4, "financial", sprintf(__('%s purges an item'), $_SESSION["glpiname"]));
        Html::back();
    } else {
        if (isset($_POST["update"])) {
            $ic->check($_POST["id"], UPDATE);
            $ic->update($_POST);
            Event::log($_POST["id"], "infocom", 4, "financial", sprintf(__('%s updates an item'), $_SESSION["glpiname"]));
            Html::back();
        } else {
            Session::checkRight("infocom", READ);
            Html::popHeader(Infocom::getTypeName(), $_SERVER['PHP_SELF']);
            if (isset($_GET["id"])) {
                $ic->getFromDB($_GET["id"]);
                $_GET["itemtype"] = $ic->fields["itemtype"];
                $_GET["items_id"] = $ic->fields["items_id"];
            }
            $item = false;
            if (isset($_GET["itemtype"]) && ($item = getItemForItemtype($_GET["itemtype"]))) {
                if (!isset($_GET["items_id"]) || !$item->getFromDB($_GET["items_id"])) {
                    $item = false;
                }
            }
            Infocom::showForItem($item, 0);
            Html::popFooter();
        }
    }
}
开发者ID:glpi-project,项目名称:glpi,代码行数:31,代码来源:infocom.form.php

示例4: switch

             }
     }
 } else {
     switch ($_REQUEST['glpi_tab']) {
         case -1:
             Computer_Item::showForItem($periph);
             NetworkPort::showForItem('Peripheral', $_POST["id"], $_POST["withtemplate"]);
             Infocom::showForItem($periph);
             Contract::showAssociated($periph);
             Document::showAssociated($periph);
             Ticket::showListForItem('Peripheral', $_POST["id"]);
             Link::showForItem('Peripheral', $_POST["id"]);
             Plugin::displayAction($periph, $_REQUEST['glpi_tab']);
             break;
         case 4:
             Infocom::showForItem($periph);
             Contract::showAssociated($periph);
             break;
         case 5:
             Document::showAssociated($periph);
             break;
         case 6:
             Ticket::showListForItem('Peripheral', $_POST["id"]);
             break;
         case 7:
             Link::showForItem('Peripheral', $_POST["id"]);
             break;
         case 10:
             showNotesForm($_POST['target'], 'Peripheral', $_POST["id"]);
             break;
         case 11:
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:peripheral.tabs.php

示例5: switch

             }
     }
 } else {
     switch ($_REQUEST['glpi_tab']) {
         case -1:
             Computer_Item::showForItem($phone);
             NetworkPort::showForItem('Phone', $_POST["id"], $_POST["withtemplate"]);
             Infocom::showForItem($phone);
             Contract::showAssociated($phone);
             Document::showAssociated($phone);
             Ticket::showListForItem('Phone', $_POST["id"]);
             Link::showForItem('Phone', $_POST["id"]);
             Plugin::displayAction($phone, $_REQUEST['glpi_tab']);
             break;
         case 4:
             Infocom::showForItem($phone);
             Contract::showAssociated($phone);
             break;
         case 5:
             Document::showAssociated($phone);
             break;
         case 6:
             Ticket::showListForItem('Phone', $_POST["id"]);
             break;
         case 7:
             Link::showForItem('Phone', $_POST["id"]);
             break;
         case 10:
             showNotesForm($_POST['target'], 'Phone', $_POST["id"]);
             break;
         case 11:
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:phone.tabs.php

示例6: showNotesForm

     Ticket::showListForItem('Computer', $_POST["id"]);
     Link::showForItem('Computer', $_POST["id"]);
     RegistryKey::showForComputer($_POST["id"]);
     ComputerVirtualMachine::showForVirtualMachine($computer);
     ComputerVirtualMachine::showForComputer($computer);
     Plugin::displayAction($computer, $_REQUEST['glpi_tab']);
     break;
 case 2:
     Computer_SoftwareVersion::showForComputer($computer);
     break;
 case 3:
     Computer_Item::showForComputer($_POST['target'], $computer);
     NetworkPort::showForItem('Computer', $_POST["id"]);
     break;
 case 4:
     Infocom::showForItem($computer);
     Contract::showAssociated($computer);
     break;
 case 5:
     Document::showAssociated($computer);
     break;
 case 6:
     Ticket::showListForItem('Computer', $_POST["id"]);
     break;
 case 7:
     Link::showForItem('Computer', $_POST["id"]);
     break;
 case 10:
     showNotesForm($_POST['target'], 'Computer', $_POST["id"]);
     break;
 case 11:
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:computer.tabs.php

示例7: checkRight

if (!isset($_POST["withtemplate"])) {
    $_POST["withtemplate"] = "";
}
checkRight("software", "r");
$license = new SoftwareLicense();
if ($_POST["id"] > 0 && $license->can($_POST["id"], 'r')) {
    switch ($_REQUEST['glpi_tab']) {
        case -1:
            Infocom::showForItem($license);
            Document::showAssociated($license);
            Plugin::displayAction($license, $_REQUEST['glpi_tab']);
            break;
        case 2:
            Computer_SoftwareLicense::showForLicense($license);
            break;
        case 4:
            Infocom::showForItem($license);
            break;
        case 5:
            Document::showAssociated($license);
            break;
        case 12:
            Log::showForItem($license);
            break;
        default:
            if (!Plugin::displayAction($license, $_REQUEST['glpi_tab'])) {
                Computer_SoftwareLicense::showForLicenseByEntity($license);
            }
    }
}
ajaxFooter();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:softwarelicense.tabs.php

示例8: switch

 if (!isset($_REQUEST['glpi_tab'])) {
     exit;
 }
 switch ($_REQUEST['glpi_tab']) {
     case -1:
         $cartridge->showCompatiblePrinters();
         Cartridge::showAddForm($cartridge);
         Cartridge::showForCartridgeItem($cartridge);
         Cartridge::showForCartridgeItem($cartridge, 1);
         Infocom::showForItem($cartridge);
         Document::showAssociated($cartridge);
         Link::showForItem('CartridgeItem', $_POST["id"]);
         Plugin::displayAction($cartridge, $_REQUEST['glpi_tab']);
         break;
     case 4:
         Infocom::showForItem($cartridge);
         break;
     case 5:
         Document::showAssociated($cartridge);
         break;
     case 7:
         Link::showForItem('CartridgeItem', $_POST["id"]);
         break;
     case 10:
         showNotesForm($_POST['target'], 'CartridgeItem', $_POST["id"]);
         break;
     default:
         if (!Plugin::displayAction($cartridge, $_REQUEST['glpi_tab'])) {
             $cartridge->showCompatiblePrinters();
             Cartridge::showAddForm($cartridge);
             Cartridge::showForCartridgeItem($cartridge);
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:cartridgeitem.tabs.php

示例9: sprintf

        Html::back();
    } else {
        if (isset($_POST["update"])) {
            $ic->check($_POST["id"], 'w');
            $ic->update($_POST);
            Event::log($_POST["id"], "infocom", 4, "financial", sprintf(__('%s updates an item'), $_SESSION["glpiname"]));
            Html::back();
        } else {
            Session::checkRight("infocom", "r");
            Html::popHeader(Infocom::getTypeName(), $_SERVER['PHP_SELF']);
            if (isset($_GET["id"])) {
                $ic->getFromDB($_GET["id"]);
                $_GET["itemtype"] = $ic->fields["itemtype"];
                $_GET["items_id"] = $ic->fields["items_id"];
            }
            $item = false;
            if (isset($_GET["itemtype"]) && ($item = getItemForItemtype($_GET["itemtype"]))) {
                if (!isset($_GET["items_id"]) || !$item->getFromDB($_GET["items_id"])) {
                    $item = false;
                }
            }
            if (isset($_GET["update"]) && $_GET["update"] == 1) {
                $withtemplate = 0;
            } else {
                $withtemplate = 2;
            }
            Infocom::showForItem($item, $withtemplate);
            Html::popFooter();
        }
    }
}
开发者ID:geldarr,项目名称:hack-space,代码行数:31,代码来源:infocom.form.php

示例10: showNotesForm

     Cartridge::showInstalled($printer, 1);
     Computer_Item::showForItem($printer);
     NetworkPort::showForItem('Printer', $_POST["id"], $_POST["withtemplate"]);
     Infocom::showForItem($printer);
     Contract::showAssociated($printer);
     Document::showAssociated($printer);
     Ticket::showListForItem('Printer', $_POST["id"]);
     Link::showForItem('Printer', $_POST["id"]);
     Plugin::displayAction($printer, $_REQUEST['glpi_tab']);
     break;
 case 3:
     Computer_Item::showForItem($printer);
     NetworkPort::showForItem('Printer', $_POST["id"]);
     break;
 case 4:
     Infocom::showForItem($printer);
     Contract::showAssociated($printer);
     break;
 case 5:
     Document::showAssociated($printer);
     break;
 case 6:
     Ticket::showListForItem('Printer', $_POST["id"]);
     break;
 case 7:
     Link::showForItem('Printer', $_POST["id"]);
     break;
 case 10:
     showNotesForm($_POST['target'], 'Printer', $_POST["id"]);
     break;
 case 11:
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:printer.tabs.php

示例11: showNotesForm

 case -1:
     SoftwareVersion::showForSoftware($soft);
     SoftwareLicense::showForSoftware($soft);
     Computer_SoftwareVersion::showForSoftware($soft);
     Infocom::showForItem($soft);
     Contract::showAssociated($soft);
     Document::showAssociated($soft);
     Ticket::showListForItem('Software', $_POST["id"]);
     Link::showForItem('Software', $_POST["id"]);
     Plugin::displayAction($soft, $_REQUEST['glpi_tab']);
     break;
 case 2:
     Computer_SoftwareVersion::showForSoftware($soft);
     break;
 case 4:
     Infocom::showForItem($soft);
     Contract::showAssociated($soft);
     break;
 case 5:
     Document::showAssociated($soft);
     break;
 case 6:
     Ticket::showListForItem('Software', $_POST["id"]);
     break;
 case 7:
     Link::showForItem('Software', $_POST["id"]);
     break;
 case 10:
     showNotesForm($_POST['target'], 'Software', $_POST["id"]);
     break;
 case 11:
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:software.tabs.php

示例12: checkRight

}
checkRight("consumable", "r");
$consumable = new ConsumableItem();
if ($_POST["id"] > 0 && $consumable->can($_POST["id"], 'r')) {
    switch ($_REQUEST['glpi_tab']) {
        case -1:
            Consumable::showAddForm($consumable);
            Consumable::showForItem($consumable);
            Consumable::showForItem($consumable, 1);
            Infocom::showForItem($consumable);
            Document::showAssociated($consumable);
            Link::showForItem('ConsumableItem', $_POST["id"]);
            Plugin::displayAction($consumable, $_REQUEST['glpi_tab']);
            break;
        case 4:
            Infocom::showForItem($consumable);
            break;
        case 5:
            Document::showAssociated($consumable);
            break;
        case 7:
            Link::showForItem('ConsumableItem', $_POST["id"]);
            break;
        case 10:
            showNotesForm($_POST['target'], 'ConsumableItem', $_POST["id"]);
            break;
        default:
            if (!Plugin::displayAction($consumable, $_REQUEST['glpi_tab'])) {
                Consumable::showAddForm($consumable);
                Consumable::showForItem($consumable);
                Consumable::showForItem($consumable, 1);
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:consumableitem.tabs.php


注:本文中的Infocom::showForItem方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。