// // Copyright (c) 2001 Microsoft Corporation // function Desktop_Generate() { try { var query = []; var image = []; var i = 0; image['TopLevelBucket_1'] = "hcp://system/images/48x48/desktop_icon_01.bmp"; image['TopLevelBucket_2'] = "hcp://system/images/48x48/desktop_icon_02.bmp"; image['TopLevelBucket_3'] = "hcp://system/images/48x48/desktop_icon_03.bmp"; image['TopLevelBucket_4'] = "hcp://system/images/48x48/desktop_icon_04.bmp"; var html = ""; var qrc = pchealth.Database.LookupSubNodes( "", true ); for(var e = new Enumerator( qrc ); !e.atEnd(); e.moveNext()) { var qr = e.item(); var img; if(qr.IconURL) img = qr.IconURL; // use the bucket icon if one is present in the database else img = "hcp://system/images/48x48/desktop_icon_generic.bmp"; // use a generic icon if(image[qr.Entry]) img = image[qr.Entry]; html += ""; html += ""; } html += "
"; if(img.match( /\.bmp$/i )) { html += ""; } else { html += "
"; } html += "
"; var qrc2 = pchealth.Database.LookupSubNodes( qr.FullPath, true ); for(var e2 = new Enumerator( qrc2 ); !e2.atEnd(); e2.moveNext()) { var qr2 = e2.item(); var strURL = pchealth.TextHelpers.QuoteEscape( qr2.TopicURL ); var strTitle = pchealth.TextHelpers.HTMLEscape ( qr2.Title ); var strToolTip = pchealth.TextHelpers.QuoteEscape( qr2.Description ); html += ""; html += ""; } html += "
  • " + strTitle + "
    "; idTaxo.innerHTML = html; var tbl = idTaxo.firstChild; for(i=0;i