/** * iTop User Portal main page * * @copyright Copyright (C) 2010-2012 Combodo SARL * @license http://opensource.org/licenses/AGPL-3.0 */ require_once('../approot.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/nicewebpage.class.inc.php'); require_once(APPROOT.'/application/wizardhelper.class.inc.php'); /** * Displays the portal main menu * @param WebPage $oP The current web page * @return void */ function DisplayMainMenu(WebPage $oP) { $oP->AddMenuButton('showongoing', 'Portal:ShowOngoing', '../portal/index.php?operation=show_ongoing'); $oP->AddMenuButton('newrequest', 'Portal:CreateNewRequest', '../portal/index.php?operation=create_request'); $oP->AddMenuButton('showclosed', 'Portal:ShowClosed', '../portal/index.php?operation=show_closed'); if (UserRights::CanChangePassword()) { $oP->AddMenuButton('change_pwd', 'Portal:ChangeMyPassword', '../portal/index.php?loginop=change_pwd'); } } /** * Displays the current tickets * @param WebPage $oP The current web page * @return void */ function ShowOngoingTickets(WebPage $oP) { $oP->add("
"); $oP->p(" ".$oService->GetAsHTML('description')." |
"); $oP->add(""); $oP->add(" | "); $oP->add("");
$oP->add(" "); $oP->add(" ".$oSubService->GetAsHTML('description')." "); $oP->add(" | ");
$oP->add("
'); $oP->DisplayObjectDetails($oObj, $aAttList['col:0']); $oP->add(' | '); $oP->add(''); $oP->DisplayObjectDetails($oObj, $aAttList['col:1']); $oP->add(' | '); $oP->add('
'); $oAttPlugin = new AttachmentPlugIn(); if ($bEditAttachments) { $oAttPlugin->EnableDelete(false); $oAttPlugin->OnDisplayRelations($oObj, $oP, true /* edit */); } else { $oAttPlugin->OnDisplayRelations($oObj, $oP, false /* read */); } $oP->add(' | '); $oP->add('|
'); //$oP->add(" |