Пример #1
0
 require_once '../approot.inc.php';
 require_once APPROOT . '/application/application.inc.php';
 require_once APPROOT . '/application/itopwebpage.class.inc.php';
 require_once APPROOT . '/application/wizardhelper.class.inc.php';
 require_once APPROOT . '/application/startup.inc.php';
 $operation = utils::ReadParam('operation', '');
 $oKPI = new ExecutionKPI();
 $oKPI->ComputeAndReport('Data model loaded');
 $oKPI = new ExecutionKPI();
 require_once APPROOT . '/application/loginwebpage.class.inc.php';
 $sLoginMessage = LoginWebPage::DoLogin();
 // Check user rights and prompt if needed
 $oAppContext = new ApplicationContext();
 $oKPI->ComputeAndReport('User login');
 $oP = new iTopWebPage(Dict::S('UI:WelcomeToITop'));
 $oP->SetMessage($sLoginMessage);
 // All the following actions use advanced forms that require more javascript to be loaded
 switch ($operation) {
     case 'new':
         // Form to create a new object
     // Form to create a new object
     case 'modify':
         // Form to modify an object
     // Form to modify an object
     case 'apply_new':
         // Creation of a new object
     // Creation of a new object
     case 'apply_modify':
         // Applying the modifications to an existing object
     // Applying the modifications to an existing object
     case 'form_for_modify_all':