急如何判断传到二级页面的是一级菜单还是二级菜单?_html/css_WEB-ITnose

php中文网
发布: 2016-06-24 12:11:10
原创
1459人浏览过



typeid=cint(request.querystring("E_typeid"))
bigclassid=cint(request.QueryString("e_bigclassid"))
smallclassid=cint(request.QueryString("e_smallclassid"))
pages=cint(request.QueryString("pages"))
if pages=0 or isnull(pages) then pages=1
if typeid=0 then typeid=99999
if bigclassid=0 then bigclassid=99999
if smallclassid=0 then smallclassid=99999
if typeid""  or typeid0 then str="E_typeid="&typeid
if bigclassid""  or bigclassid0 then str=str&"&e_bigclassid="&bigclassid
if smallclassid=0 then  str=str else str=str&"&smallclassid="&smallclassid

sql1="select E_bigclassname from EC_BigClass where  E_BigClassID="&bigclassid
sql2="select E_smallClassName from ec_smallclass where E_smallClassID="&smallclassid
' response.write typeid&smallclassid&bigclassid
set rs1=server.createobject("adodb.recordset")
rs1.open sql1,conn,1,3
bigclassname=rs1("E_bigclassname")
rs1.close
rs1.open sql2,conn,1,3
smallclassname=rs1("E_smallclassname")
rs1.close
if smallclassid0 then smallclassname=rs1("E_smallclassname")
rs1.close
'response.write bigclassname &smallclassname&sql1&sql2

%>


Index2











这样只能显示二级菜单中的内容,我想实现点一级菜单时显示的内容,点二级时显示
求高手指点!


回复讨论(解决方案)

一级菜单和2级菜单 传递不同的参数
以此来判断。

一级菜单和2级菜单 传递不同的参数
以此来判断。

是直接在

里面判断吗?怎么判断?

就写
if bigclassid  "" then
  一级菜单的代码
else
  2级菜单对应的代码
end if



是这样写吗?可是有错误啊



  
<script></script>
E_SmallClassID=&shu=17&title=100&time=1&click=1" 

charset="gb2312">
   

if bigclassid  "" then
  
   
else
 
  
if bigclassid  "" then
  response.write bigclassname
else
  response.write smallclassname
end if
%>
HTML速学教程(入门课程)
HTML速学教程(入门课程)

HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号