<SCRIPT LANGUAGE=javascript>
<!--
var selectedServicesValue = '<%=Request.QueryString("view")%>;';
if (selectedServicesValue=0)
selectedServicesValue=101;
function UpdateSelectedServicesValue()
{
selectedServicesValue = select1.value
window.location.replace('displayservices.asp?view='+selectedServicesValue);
}
//-->
</SCRIPT>
<%
Function BuildTable()
Dim theStatus
Dim theSelectServicesValue
If theSelectServicesValue = 0 Then
theSelectServicesValue = 101
End If
strMachineName = MY_MACHINE_NAME
If strMachineName = "" Then
strMachineName = Request.ServerVariables("SERVER_NAME")
End If
%>
<!--Top table, holds title and dropdown box-->
<div align=center>
<table border=0 width="600" aligh="center">
<tr>
<td width='50%'><p align="left"><H4>启动或者停止<%=strMachineName%>上的服务<H4></td>
<td width='50%'><p align="right">Show
<SELECT id=select1 onchange="UpdateSelectedServicesValue();return false">
<OPTION VALUE=101 <%If theSelectServicesValue=101 then Response.Write("SELECTED")%>>All</OPTION>
<OPTION VALUE=4 <%If theSelectServicesValue=4 then Response.Write("SELECTED")%>>Started</OPTION>
<OPTION VALUE=2 <%If theSelectServicesValue=2 then Response.Write("SELECTED")%>>Starting</OPTION>
<OPTION VALUE=1 <%If theSelectServicesValue=1 then Response.Write("SELECTED")%>>Stopped</OPTION>
<OPTION VALUE=999 <%If theSelectServicesValue=999 then Response.Write("SELECTED")%>>Stopping</OPTION>
</SELECT>
</td>
</tr>
</table>