//------------------------------------------------------------------------- // Desc: Class for displaying lock manager information in HTML on a web page. // Tabs: 3 // // Copyright (c) 2002-2003,2005-2006 Novell, Inc. All Rights Reserved. // // This program is free software; you can redistribute it and/or // modify it under the terms of version 2 of the GNU General Public // License as published by the Free Software Foundation. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, contact Novell, Inc. // // To contact Novell about this file by physical or electronic mail, // you may find current contact information at www.novell.com // // $Id: imonslmg.cpp 12329 2006-01-20 17:49:30 -0700 (Fri, 20 Jan 2006) ahodgkinson $ //------------------------------------------------------------------------- #include "flaimsys.h" /**************************************************************************** Desc: Implements the display function of the F_ServerLockMgrPage *****************************************************************************/ RCODE F_ServerLockMgrPage::display( FLMUINT uiNumParams, const char ** ppszParams) { RCODE rc = FERR_OK; ServerLockManager_p pServerLockMgr; FLMBOOL bHighlight = FALSE; FLMBOOL bRefresh; char szAddress[20]; char * pszTemp = NULL; if( RC_BAD( rc = f_alloc( 150, &pszTemp))) { printErrorPage( rc, TRUE, "Failed to allocate temporary buffer"); goto Exit; } stdHdr(); fnPrintf( m_pHRequest, HTML_DOCTYPE); fnPrintf( m_pHRequest, "\n"); // Get the pointer to the ServerLockManager pServerLockMgr = gv_FlmSysData.pServerLockMgr; if (!pServerLockMgr) { rc = RC_SET(FERR_NOT_FOUND); printErrorPage( rc, TRUE, "No ServerLockManager exists"); goto Exit; } //Check to see if we are to refresh this page automatically. if ((bRefresh = DetectParameter( uiNumParams, ppszParams, "Refresh")) == TRUE) { //Send back the page with a refresh command in the header char szTemp[100]; f_sprintf(szTemp, "%s/ServerLockManager?Refresh", m_pszURLString); fnPrintf( m_pHRequest, "
" "" "