Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<HTML> <HEAD>
<!--
Copyright (c) 2000 Microsoft Corporation -->
<OBJECT ID=pchealth classid=CLSID:FC7D9E02-3F9E-11d3-93C0-00C04F72DAF7></OBJECT>
</HEAD>
<BODY>
<TABLE cellspacing=0 cellpadding=0 width=100%> <TR> <TD WIDTH=100%> <INPUT id=idKEYWORD style="width:100%"> </TD> <TD style="padding-left: .2em"> <BUTTON id=idSEARCH accesskey="S" onClick="onClick_search();"><U>S</U>earch</BUTTON> </TD> </TR> </TABLE>
<BR>
<DIV id=idList></DIV>
</BODY>
<SCRIPT LANGUAGE=JavaScript>
var g_semgr = null; var g_lookup = [];
var ID_KEYWORD = "9488F2E9-47AF-46da-AE4A-86372DEBD56C";
function onClick_search() { g_semgr = pchealth.CreateObject_SearchEngineMgr();
for(var oEnumEngine = new Enumerator(g_semgr.EnumEngine()); !oEnumEngine.atEnd(); oEnumEngine.moveNext()) { var oSearchEng = oEnumEngine.item();
// Display the search engine only if it has been enabled oSearchEng.Enabled = (oSearchEng.ID == ID_KEYWORD); }
g_semgr.NumResult = 500; g_semgr.QueryString = idKEYWORD.value;
g_semgr.onComplete = onComplete;
g_semgr.ExecuteAsynchQuery();
}
function onComplete() { var html = ""; var i = 0;
keywordsearch();
for(var oEnumEngine = new Enumerator(g_semgr.EnumEngine()); !oEnumEngine.atEnd(); oEnumEngine.moveNext()) { var oSearchEng = oEnumEngine.item();
// Display the search engine only if it has been enabled if(oSearchEng.ID == ID_KEYWORD) { var coll = oSearchEng.Result( 0, g_semgr.NumResult ); var iTotalResult = coll.Count;
for(var e = new Enumerator( coll ); !e.atEnd(); e.moveNext()) { var item = e.item(); var obj = g_lookup[item.URI]; var pri = 0;
if(obj) pri = obj.Priority;
html += "<DIV><TABLE>"; html += "<TR><TD colspan=2><B>" + i++ + "</B></TD></TR>"; html += "<TR><TD>ContentType</TD><TD>" + item.ContentType + "</TD></TR>"; html += "<TR><TD>Priority</TD><TD>" + pri + "</TD></TR>"; html += "<TR><TD>Title</TD><TD>" + item.Title + "</TD></TR>"; html += "<TR><TD>URI</TD><TD>" + item.URI + "</TD></TR></TABLE><BR>"; html += "</DIV>"; }
break; } }
idList.innerHTML = html; }
function keywordsearch() { var html = ""; var i = 0; var lst = pchealth.Database.KeywordSearch( idKEYWORD.value );
g_lookup = [];
for(var e = new Enumerator( lst ); !e.atEnd(); e.moveNext()) { var item = e.item(); var obj;
g_lookup[item.TopicURL] = item; } }
</SCRIPT>
</HTML>
|