Пример #1
0
function go2page($view, $param = null)
{
    if ($view === 'user') {
        return viewUser($param);
    }
    return viewList();
}
Пример #2
0
echo "<tr class='tab_bg_1'><td class='center b'>";
if (isset($_POST["go_test"])) {
    $limit = isset($_POST['limit']) ? $_POST['limit'] : 99999999;
    $where = isset($_POST['where']) ? $_POST['where'] : 0;
    switch ($_POST["type_test"]) {
        case 'view':
            testViewHtml($limit, $where);
            break;
        case 'add':
            testAdd($where);
            break;
        case 'nbPcToInject':
            nbPcToInject();
            break;
        case 'viewList':
            viewList();
            break;
    }
}
echo "</td></tr>";
echo "</table>";
echo "</div>";
Html::footer();
function viewList()
{
    global $PluginSccmSccm;
    $PluginSccmSccm->getDevices();
    echo "<table class='tab_glpi'>";
    foreach ($PluginSccmSccm->devices as $device_values) {
        echo "<tr><td>" . $device_values['MD-SystemName'] . "</td></tr>";
    }