예제 #1
0
                                $projet_item->addItem($_POST);
                            }
                            Html::back();
                        } else {
                            if (isset($_POST["deleteitem"])) {
                                foreach ($_POST["item"] as $key => $val) {
                                    if ($val == 1) {
                                        $projet_item->check($key, 'w');
                                        $projet_item->delete(array('id' => $key));
                                    }
                                }
                                Html::back();
                            } else {
                                if (isset($_POST["deletedevice"])) {
                                    $projet_item->check($_POST["id"], 'w');
                                    $projet_item->delete(array('id' => $_POST["id"]));
                                    Html::back();
                                } else {
                                    $projet->checkGlobal("r");
                                    Html::header(PluginProjetProjet::getTypeName(2), '', "plugins", "projet");
                                    $projet->showForm($_GET["id"], array('withtemplate' => $_GET["withtemplate"], 'helpdesk_id' => $_GET["helpdesk_id"], 'helpdesk_itemtype' => $_GET["helpdesk_itemtype"]));
                                    Html::footer();
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}