Exemple #1
0
     $rc = new RequestClass();
     $rc->retrive();
     $rc->tplComboboxInner('LIST', 'name', 'id');
     $tpl->assign(array('TARGET' => $reqData->targetname, 'URL' => '?action=step2', 'TITLE' => '33% - New - Requests - TO'));
     $tpl->parse('BODY', 'step1');
     $ses->valueOf('tmp_request', $reqData);
     break;
 case 'step2':
     $reqData = $ses->valueOf('tmp_request');
     if (isset($_POST['CLASS_ID'])) {
         $reqData->cid = $_POST['CLASS_ID'];
     }
     $cidData = new RequestClass($reqData->cid);
     $pc = new Computer('*');
     $pc->sortBy('description');
     $pc->tplComboboxInner('LIST', 'description', 'cn');
     $tpl->assign(array('TARGET' => $reqData->targetname, 'CLASS' => $cidData->name[0], 'BACK_URL' => '?action=step1', 'URL' => '?action=step3', 'TITLE' => '66% - New - Requests - TO'));
     $tpl->parse('BODY', 'step2');
     $ses->valueOf('tmp_request', $reqData);
     break;
 case 'step3':
     $reqData = $ses->valueOf('tmp_request');
     if (isset($_POST['OBJ'])) {
         $reqData->pcname = $_POST['OBJ'];
     }
     $cidData = new RequestClass($reqData->cid);
     $tpl->assign(array('PC' => $reqData->pcname, 'TARGET' => $reqData->targetname, 'CLASS' => $cidData->name[0], 'BACK_URL' => '?action=step2', 'URL' => '?action=finish', 'TITLE' => '100% - New - Requests - TO'));
     $tpl->parse('BODY', 'step4');
     $ses->valueOf('tmp_request', $reqData);
     break;
 default: