Afficher l'outil de variable d'application/de session du serveur
Auteur:Eve Cole
Date de mise à jour:2009-06-24 17:04:58
< %@LANGUAGE="javascript " CODEPAGE="936"%>
<%
Réponse.Expire = 0 ;
Réponse.Buffer = true ;
var tPageStartTime = new Date();
%>
<html>
<tête>
<title>网站-Application变量-Session变量</title>
<méta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>
corps,td {TAILLE DE POLICE : 10 pt ; FAMILLE DE POLICE : "Arial", "Helvetica", "sans-serif" }
.Table1 { BORDURE DROITE : #FF9900 1px solide ; BORDURE-HAUT : #FF9900 1px solide ; TAILLE DE LA POLICE : 9 pts ; BORDURE GAUCHE : #FF9900 1px solide ; BORDURE-BAS : #FF9900 1px solide }
.Table2 { COULEUR DE FOND : #FF9900 }
.TR1 {couleur de FOND :#FF9955}
.TD1 { BORDURE DROITE : #FEDFB3 1px solide ; BORDURE-HAUT : #FEDFB3 1px solide ; BORDURE GAUCHE : #FEDFB3 1px solide ; couleur : #ff9900 ; BORDURE-BAS : #FEDFB3 1px solide ; COULEUR DE FOND : #FEDFB3}
.TD2 {COULEUR DE FOND : #FEEED6 ; remplissage : 7 px ;}
</STYLE>
<table width="750" border="0" cellpadding="3" cellpacing="1" class="Table1">
<tr>
<td classe="TR1">
<table width="100%" border="0" Cellpacing="0" cellpadding="0">
<tr>
<td><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif"> <strong>服务器Application变量 [共 <%=Application.Contents.Count%> 个]
<script>showTools();</script></strong></font></td>
<td align="right"> </td>
</tr>
</table></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="3" cellpacing="1" class="Table2">
<tr>
<td width="35%" class="TD1"> 变量</td>
<td width="65%" class="TD1"> 值</td>
</tr>
<%
var iCompte = 0 ;
var sVarType = "";
var oApplication = new Enumerator (Application.Contents);
var oApp;
for(;!oApplication.atEnd();oApplication.moveNext()){
oApp = oApplication.item();
sVarType = typeof(Application.Contents(oApp));
++iCount;
%>
<tr>
<td align="left" valign="middle" class="TD2"><b><%=oApp%></b><br><i désactivé>[<%if(sVarType=="unknown") {Response.Write("Array");}else{Response.Write(sVarType);}%>]</i></td>
<td valign="middle" class="TD2">
<%
essayer{
if(sVarType=="inconnu"){
var oTmp = nouveau VBArray(Application.Contents(oApp));
Réponse.Write(Server.HTMLEncode(oTmp.toArray()));
}else Response.Write(Server.HTMLEncode(Application.Contents(oApp)));
}attraper(e){
Response.Write("<i désactivé>[Inconnu]</i>");
}
%>
</td>
</tr>
<%
}
si(!iCount){
%>
<tr>
<td align="left" valign="middle" class="TD2" colspan="2">Application Application变量</td>
</tr>
<%
}
%>
</table></td>
</tr>
<tr>
<td height="5" class="TR1" colspan="2"></td>
</tr>
</table>
<br>
<table width="750" border="0" cellpadding="3" cellpacing="1" class="Table1">
<tr>
<td classe="TR1">
<table width="100%" border="0" Cellpacing="0" cellpadding="0">
<tr>
<td><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif"> <strong>服务器Session变量 [共 <%=Session.Contents.Count%> 个]
<script>showTools();</script></strong></font></td>
<td align="right">当前会话编号 : <%=Session.SessionID%> </td>
</tr>
</table></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="3" cellpacing="1" class="Table2">
<tr>
<td width="30%" class="TD1"> 变量</td>
<td width="70%" class="TD1"> 值</td>
</tr>
<%
var iCompte = 0 ;
var sVarType = "";
var oSession = new Enumerator (Session.Contents);
var oSes;
for(;!oSession.atEnd();oSession.moveNext()){
oSes = oSession.item();
sVarType = typeof(Session.Contents(oSes));
++iCount;
%>
<tr>
<td align="left" valign="middle" class="TD2"><b><%=oSes%></b><br><i désactivé>[<%if(sVarType=="unknown") {Response.Write("Array");}else{Response.Write(sVarType);}%>]</i></td>
<td valign="middle" class="TD2">
<%
essayer{
if(sVarType=="inconnu"){
var oTmp = nouveau VBArray(Session.Contents(oSes));
Réponse.Write(Server.HTMLEncode(oTmp.toArray()));
}else Response.Write(Server.HTMLEncode(Session.Contents(oSes)));
}catch(e){ Response.Write("<i désactivé>[Inconnu]</i>");
}
%>
</td>
</tr>
<%
}
si(!iCount){
%>
<tr>
<td align="left" valign="middle" class="TD2" colspan="2">没有Session变量</td>
</tr>
<%
}
%>
</table></td>
</tr>
<tr>
<td height="5" class="TR1" colspan="2"></td>
</tr>
</table>
<% tPageEndTime = new Date(); %>
<center> <%="<br><br>页面执行时间:约 <font color='#990000'><b>"+((tPageEndTime-tPageStartTime))+"</b></font> 毫秒"%></centre>
</body></html>