response.Write("<ul style=""display:block;"" id='ul_"&pid&"'>"&vbcrlf)

response.Write("<li><img src='images/open2.gif' name='dotImg' id='img_li_"&rs("deptid")&"' style='cursor:pointer'")
response.Write(" onclick=""LoadDept('"&rs("deptid")&"','subDept_"&rs("deptid")&"');""> ")
if t=1 then
'部门名称前面的复选框
response.Write("<input type='checkbox' name='chk_Dept_"&pid&"' id='chk_Dept_"&rs("deptid")&"'")
response.Write("onclick=""DeptchkAll(this,'"&rs("deptid")&"')"" value='"&rs("deptid")&"'/> "&vbcrlf)

response.Write("<label id='lbl_"&rs("deptid")&"'")
response.Write(" onclick=""changeStyle('"&rs("deptid")&"')"">"&vbcrlf)
response.Write(rs("Deptname")&"</label>"&vbcrlf)
response.Write("<div id='subDept_"&rs("deptid")&"' style='display:none;'></div></li>")'预留下级部门位置
response.Write("<li><img src='images/close2.gif'> "&vbcrlf)

response.Write("<input type='checkbox' name='chk_Dept_"&pid&"'")
response.Write(" onclick=""sum()"" value='"&rs("deptid")&"'/>"&vbcrlf)

response.Write("<label id='lbl_"&rs("deptid")&"'")
response.Write(" onclick=""changeStyle('"&rs("deptid")&"')""")
response.Write(">"&rs("Deptname")&"</label></li>"&vbcrlf)

response.Write("</ul>"&vbcrlf)

if session("userid")="" then 
response.Write("<div style=color:red>  请重新登陆</div>")

response.Write("<div style=color:red>  没搜索到任何记录</div>")

解决方案 »

  1.   

    This function rs("Deptname") can't be changed from asp to php.
      

  2.   

    我猜这个是rs是数据库new出来的对象函数, 
      

  3.   


    还是那句话, 语言只是语法糖, web架构始终不变。 
    自己深造一门语言, 公司要用到其它语言就当打杂, 查着手册来写程序,做多了熟练。一楼的语法可以翻译, 但自定义的方法php里没有, 也不能运行。
      

  4.   

    那个表达方式是asp的数据集的表达方式。要改成php认可的才行。