コード例 #1
0
along with GLPI; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
--------------------------------------------------------------------------
*/
// ----------------------------------------------------------------------
// Original Author of file: Julien Dombre
// Purpose of file:
// ----------------------------------------------------------------------
define('GLPI_ROOT', '..');
include GLPI_ROOT . "/inc/includes.php";
header("Content-Type: text/html; charset=UTF-8");
header_nocache();
if (!isset($_POST["id"]) || !isset($_POST["itemtype"])) {
    exit;
}
if (!isset($_REQUEST['glpi_tab'])) {
    exit;
}
$setupdisplay = new DisplayPreference();
if ($_POST["id"] < 0) {
    switch ($_REQUEST['glpi_tab']) {
        case 1:
            $setupdisplay->showFormGlobal($_POST['target'], $_POST["displaytype"]);
            break;
        case 2:
            checkRight('search_config', 'w');
            $setupdisplay->showFormPerso($_POST['target'], $_POST["displaytype"]);
            break;
    }
}
ajaxFooter();