<%@Page ContentType="text/html" Language="C#" Inherits="SpbDev.DotNetInfo.Index"%>
<%@ Register TagPrefix="spbdev" Namespace="SpbDev.DotNetInfo" Assembly="SpbDev.DotNetInfo"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;">
<style type="text/css">
<!--
body,table,td{font-size:12px;color:#81a0e3;word-break:break-all;}
form{margin:0;padding:0}
td td{padding-left:12px;}
a{color:#000090;}
a:hover{color:#FF3333}
.InputTxt{font-size:12px;width:140px;height:18px;border:solid 1px #81a0e3;}
.Button{font-size:12px;width:40px;height:16px;border:solid 1px #81a0e3;background:#81a0e3}
.TrHead{font-size:12px;color:#81a0e3;font-weight:600;text-align:center;height:28px;background:#81a0e3}
.close{
    border-right: medium none;
    border-top: medium none; float: right; border-left: medium none; border-bottom: medium none;
    background-color: darkgray
}

//-->
</style>
<title>Asp.Net探针</title>
<link rel="stylesheet" href="style/style.css" type="text/css" />
<script src="../JS/jquery.min.js" type="text/javascript"></script>
<script src="../JS/cookie.js" type="text/javascript"></script>
<script src="../JS/jqDnR.js" type="text/javascript"></script>


</head>


<body>

<script type="text/javascript">
$(function(){
 
         $("#framepanel").attr("src","PopupPanel.aspx");
          showPanel($("#popupPanel"));
         $('#popupPanel').jqDrag();

});
function showPanel(panel){
        var maskHeight = $(document).height();
        var maskWidth =  $(document).width();
        var dialogTop =  50;//(maskHeight/4) - (panel.height()/4)+(document.documentElement.scrollTop || document.body.scrollTop);
        var dialogLeft = (maskWidth/3) - (panel.width()/3)+(document.documentElement.scrollLeft || document.body.scrollLeft);
        panel.css({left:dialogLeft,top:dialogTop});
        panel.show();
}
</script>
  <div id="popupPanel" style="display:none;border-right: #a1badf 10px solid;
        border-top: #a1badf 10px solid; margin: 0px; border-left: #a1badf 10px solid;
        width: 700px; border-bottom: #a1badf 10px solid; position:absolute; left: 162px; top: 148px; background-color: #ffffff;">
    <table cellpadding="0" cellspacing="0"><tr><td align="right" style="background-color: whitesmoke"> 
    <input id="btnClose" type="button" value="关闭" class="close"  onclick="$('#popupPanel').hide()" />
    </td></tr>
     <tr><td>
     <iframe id="framepanel" frameborder="0"  scrolling="no" style="width: 695px; height: 550px"  >
     
        
     </iframe>
     </td></tr>
    </table>
    </div>

<table width="750px" border="1" align="left" cellspacing="1" cellpadding="3" bordercolor="#666666" bgcolor="#EEEEEE" style="border-collapse:collapse">
	<tr> 
		<td align="center">
			<table border="0" width="95%">
				<tr>
					<td align="center" height="30">
                        当前服务器信息</td>
				</tr>
			</table>
			<table width="95%" align="center" border="1" bordercolor="#EEEEEE" cellspacing="0" style="border-collapse:collapse">
				<tr> 
					<td colspan="2" class="TrHead">服务器基本信息</td>
				</tr>
				<tr> 
					<td width="38%" height="26">服务器计算机名</td>
					<td><spbdev:SpbLabel ID="ServerName" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">服务器IP地址</td>
					<td><spbdev:SpbLabel ID="ServerIP" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">服务器域名</td>
					<td><spbdev:SpbLabel ID="ServerDomain" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">服务器端口</td>
					<td><spbdev:SpbLabel ID="ServerPort" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">服务器IIS版本</td>
					<td><spbdev:SpbLabel ID="ServerIIS" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">执行文件绝对路径</td>
					<td><spbdev:SpbLabel ID="ServerFilePath" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">站点虚拟目录绝对路径</td>
					<td><spbdev:SpbLabel ID="ServerPhyAppPath" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">站点虚拟目录名称</td>
					<td><spbdev:SpbLabel ID="ServerAppPath" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr>
					<td style="height: 26px">服务器操作系统</td>
					<td style="height: 26px"><spbdev:SpbLabel ID="ServerOS" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr>
					<td height="26">服务器操作系统安装目录</td>
					<td><spbdev:SpbLabel ID="ServerRoot" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr>
					<td height="26">服务器应用程序安装目录</td>
					<td><spbdev:SpbLabel ID="ServerProgramRoot" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr>
					<td height="26">.NET Framework语言种类</td>
					<td><spbdev:SpbLabel ID="ServerDotNetLang" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr>
					<td height="26">.NET Framework 版本</td>
					<td><spbdev:SpbLabel ID="ServerDotNetVer" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr>
					<td height="26">服务器当前时间</td>
					<td><spbdev:SpbLabel ID="ServerNowDate" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr>
					<td height="26">服务器上次启动到现在已运行</td>
					<td><spbdev:SpbLabel ID="ServerLastStartToNow" AllowHtml="false" runat="server"/></td>
				</tr>
			</table>
			<br>
			<table width="95%" align="center" border="1" bordercolor="#EEEEEE" cellspacing="0" style="border-collapse:collapse">
				<tr> 
					<td colspan="2" class="TrHead">服务器相关硬件信息</td>
				</tr>
				<tr> 
					<td width="38%" height="26">物理内存总数</td>
					<td><spbdev:SpbLabel ID="ServerMemSize" AllowHtml="false" runat="server"/> MB</td>
				</tr>
				<tr> 
					<td height="26">可用物理内存</td>
					<td><spbdev:SpbLabel ID="ServerMemFreeSize" AllowHtml="false" runat="server"/> MB</td>
				</tr>
				<tr> 
					<td height="26">正使用的内存</td>
					<td><spbdev:SpbLabel ID="ServerMemUseSize" AllowHtml="false" runat="server"/> %</td>
				</tr>
				<tr> 
					<td height="26">交换文件大小</td>
					<td><spbdev:SpbLabel ID="ServerExFileSize" AllowHtml="false" runat="server"/> MB</td>
				</tr>
				<tr> 
					<td height="26">交换文件可用大小</td>
					<td><spbdev:SpbLabel ID="ServerExFileFreeSize" AllowHtml="false" runat="server"/> MB</td>
				</tr>
				<tr> 
					<td height="26">总虚拟内存</td>
					<td><spbdev:SpbLabel ID="ServerExMemSize" AllowHtml="false" runat="server"/> MB</td>
				</tr>
				<tr> 
					<td height="26">剩余虚拟内存</td>
					<td><spbdev:SpbLabel ID="ServerExMemFreeSize" AllowHtml="false" runat="server"/> MB</td>
				</tr>
				<tr> 
					<td width="38%" height="26">逻辑驱动器</td>
					<td><spbdev:SpbLabel ID="ServerLogicalDriver" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">CPU 总数</td>
					<td><form method="post" action="<%=Request.FilePath%>"><spbdev:SpbLabel ID="ServerCpuCount" AllowHtml="false" runat="server"/> 个 &nbsp;<input type="hidden" name="ServerCpuCheck" value="ShowMore" style="width: 160px"><spbdev:SpbLabel id="ServerCpuCheckIt" allowHtml="true" runat="Server"><input type="submit" value="详细" class="Button"></spbdev:SpbLabel></form></td>
				</tr>
				<asp:Repeater id="ServerCpuInfo" runat="server">
				<HeaderTemplate>
				</table>
				<br>
				<table width="95%" align="center" border="1" bordercolor="#FFFFFF" cellspacing="0" style="border-collapse:collapse">
				<tr> 
					<td colspan="2" class="TrHead">服务器CPU详细信息</td>
				</tr>
				</HeaderTemplate>
				<ItemTemplate>
				<tr> 
					<td width="38%" height="26">第 <%#DataBinder.Eval(Container.DataItem,"CpuNum","")%> 个 CPU 标识</td>
					<td><%#DataBinder.Eval(Container.DataItem,"ProcessorID","")%></td>
				</tr>
				<tr> 
					<td height="26">第 <%#DataBinder.Eval(Container.DataItem,"CpuNum","")%> 个 CPU 描述</td>
					<td><%#DataBinder.Eval(Container.DataItem,"Description","")%></td>
				</tr>
				<tr> 
					<td height="26">第 <%#DataBinder.Eval(Container.DataItem,"CpuNum","")%> 个 CPU 工作频率</td>
					<td><%#DataBinder.Eval(Container.DataItem,"CurrentClockSpeed","")%> MHz</td>
				</tr>
				<tr> 
					<td height="26">第 <%#DataBinder.Eval(Container.DataItem,"CpuNum","")%> 个 CPU 最高频率</td>
					<td><%#DataBinder.Eval(Container.DataItem,"MaxClockSpeed","")%> MHz</td>
				</tr>
				<tr> 
					<td height="26">第 <%#DataBinder.Eval(Container.DataItem,"CpuNum","")%> 个 CPU 二级缓存大小</td>
					<td><%#DataBinder.Eval(Container.DataItem,"L2CacheSize","")%></td>
				</tr>
				<tr> 
					<td height="26">第 <%#DataBinder.Eval(Container.DataItem,"CpuNum","")%> 个 CPU 二级缓存速度</td>
					<td><%#DataBinder.Eval(Container.DataItem,"L2CacheSpeed","")%></td>
				</tr>
				</ItemTemplate>
				</asp:Repeater>
				
			</table>
			<br>
			<table width="95%" align="center" border="1" bordercolor="#EEEEEE" cellspacing="0" style="border-collapse:collapse">
				<tr> 
					<td colspan="2" class="TrHead">服务器COM组件安装检测</td>
				</tr>
				<tr> 
					<td width="38%" height="26">数据库访问组件(Adodb.Recordset)</td>
					<td><spbdev:SpbLabel ID="ServerComAdodb" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">JRO数据库压缩组件(JRO.JetEngine)</td>
					<td><spbdev:SpbLabel ID="ServerComJro" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">FSO文件操作组件(Scripting.FileSystemObject)</td>
					<td><spbdev:SpbLabel ID="ServerComFso" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">CDONTS邮件发送组件(CDONTS.NewMail)</td>
					<td><spbdev:SpbLabel ID="ServerComCdonts" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">JMail邮件组件(Jmail.Message)</td>
					<td><spbdev:SpbLabel ID="ServerComJMail" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">Persits文件上传组件(Persits.Upload.1)</td>
					<td><spbdev:SpbLabel ID="ServerComPersitsUp" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">SoftArtisans文件上传组件(SoftArtisans.FileUp)</td>
					<td><spbdev:SpbLabel ID="ServerComSAUp" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">Dundas文件上传组件(Dundas.Upload)</td>
					<td><spbdev:SpbLabel ID="ServerComDundasUp" AllowHtml="false" runat="server"/></td>
				</tr>
				<tr> 
					<td height="26">其它COM组件检测</td>
					<td><form method="post" action="<%=Request.FilePath%>"><input type="text" name="ComProgID" value="<%=ProgID%>" class="InputTxt">&nbsp;&nbsp;<input type="submit" value="检测" class="Button" style="width: 48px">&nbsp;<font color="#FF3333"><spbdev:SpbLabel ID="ServerComCheckRslt" AllowHtml="false" Visible="false" runat="server"/></font></form></td>
				</tr>
			</table>
			<br>
			<table width="95%" align="center" border="1" bordercolor="#EEEEEE" cellspacing="0" style="border-collapse:collapse">
				<tr> 
					<td width="100%" colspan="2" class="TrHead">服务器性能及网络速度检测</td>
				</tr>
				<tr> 
					<td width="38%" height="26">2000万次整数运算性能</td>
					<td><form method="post" action="<%=Request.FilePath%>"><input type="hidden" name="IntCalCheck" value="2000"><input type="submit" value="检测" class="Button" style="width: 48px">&nbsp;&nbsp;<font color="#FF3333"><spbdev:SpbLabel ID="ServerIntCalCheck" AllowHtml="false" Visible="false" runat="server"/></font></form></td>
				</tr>
				<tr> 
					<td height="26">2000万次浮点运算性能</td>
					<td><form method="post" action="<%=Request.FilePath%>"><input type="hidden" name="DblCalCheck" value="2000"><input type="submit" value="检测" class="Button" style="width: 48px">&nbsp;&nbsp;<font color="#FF3333"><spbdev:SpbLabel ID="ServerDblCalCheck" AllowHtml="false" Visible="false" runat="server"/></font></form></td>
				</tr>
				<tr> 
					<td height="26">网络速度检测（填写一个正确网址，让服务器去获取数据来测网络速度，<font color="#FF3333"><B>务必耐心等待</B></font>）</td>
					<td><form method="post" action="<%=Request.FilePath%>"><input type="text" name="ServerNetWorkCheck" class="InputTxt">&nbsp;<input type="submit" value="检测" class="Button" style="width: 48px">&nbsp;&nbsp;<font color="#FF3333"><spbdev:SpbLabel ID="ServerNetWorkCheck" AllowHtml="false" Visible="false" runat="server"/></font></form></td>
				</tr>
			
			</table>
			<table border="0" width="95%">
				<tr>
					<td align="center" height="30">&nbsp;&nbsp;执行时间：<%=ProcessTime%> 毫秒</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</body>
</html>
