关于静态页面中的判断选择问题
由于ASP页面中,是有判断选择的功能,生成静态后全无了,怎么办?如:
程序代码:
<% If Qsite.arrMember(6 , MemberType) <> "1" Or (Qsite.arrMember(6 , MemberType) = "1" And Qsite.arrMember(7 , MemberType) = "1" And (Session("PerId") = "" Or Session("UserType") <> "Person")) Then ShowContactFlag = False If Session("UserType") = "Master" Then ShowContactFlag = True End If If Session("UserType") = "Company" And CStr(Session("ComId")) = CStr(ComId) Then ShowContactFlag = True End If If Session("UserType") = "Person" Then ShowContactFlag = True End If Else ShowContactFlag = True End If If ShowContactFlag = False Then %> <TABLE class=gsjjfont12 cellSpacing=0 cellPadding=0 width="96%" align=center border=0> <TBODY> <TR> <TD colSpan=4 height=5></TD> </TR> <TR> <TD align=right width="17%">【联系地址】:</TD> <TD width="35%">**********</TD> <TD width="17%"><DIV align=right>【邮政编码】:</DIV></TD> <TD width="31%">**********</TD> </TR> <TR> <TD align=right>【联系电话】:</TD> <TD>**********</TD> <TD><DIV align=right>【 E-mail 】:</DIV></TD> <TD>**********</TD> </TR> </TBODY> </TABLE> <TABLE class=fontblack cellSpacing=0 cellPadding=0 width="96%" align=center border=0> <TBODY> <TR> <TD height=48><STRONG class=red>【网站提醒】:</STRONG><STRONG>您尚<STRONG>未 <A class=jiehuang href="../Login.asp" target=_blank>登录</A></STRONG> 或 <STRONG class=jiehuang><A class=jiehuang href="../Person_Reg.asp" target=_blank>注册</A></STRONG></STRONG> <BR> 请立即<A class=huanghong href="../Person_Reg.asp" target=_blank> 免费注册</A> 或 <A class=huanghong href="../Login.asp" target=_blank>登录</A> 与其联系 (教员的联系方式只对学员注册会员开放)</TD> </TR> </TBODY> </TABLE> <% Else %> <TABLE class=gsjjfont12 cellSpacing=0 cellPadding=0 width="96%" align=center border=0> <TBODY> <TR> <TD colSpan=4 height=5><div align="center"> <input name="Btn_012" type="image" src="../images/sq4.jpg" onClick="javascript:AddComPool('<%=ComId%>' , this);" style="cursor:hand;" /> </div></TD> </TR> <TR> <TD align=right width="17%">【联系地址】:</TD> <TD width="35%"><%=CompanyAddr%></TD> <TD width="16%"><DIV align=right>【邮政编码】:</DIV></TD> <TD width="32%"><%=Postcode%></TD> </TR> <TR> <TD align=right>【联系电话】:</TD> <TD><%=Tel%></TD> <TD><DIV align=right>【 E-mail 】:</DIV></TD> <TD><%=Email%></TD> </TR> <TR> <TD align=right>【手机号码】:</TD> <TD><%=Mobile%> </TD> <TD align=right>【QQ】:</TD> <TD><% If QQ <> "" Then Response.Write("<a target=blank href=tencent://message/?uin="& QQ &"&Site="& Qsite.SiteName &"&Menu=yes><img border=""0"" SRC=http://wpa."& QQ &":5 alt="""& CompanyName &"""></a>") End If %> </TD> </TR> </TBODY> </TABLE> <% End If %>
这在ASP中是个二选一的,普通访问显示第一种样式,登陆拥有权限后则输出第二种样式,如果在静态页面中也需要这样的功能,求助怎么实现?谢谢!!