用ASP实现分级权限控制(4)
zgs(1)=Listbox2.getText(Listbox2.selectedIndex )
str=str & " and zgs =“"& zgs(1) & "“"
end if
xmz(0)=Checkbox3.getChecked()
if xmz(0) then
xmz(1)=trim(txtxmz.value )
str=str & " and xmz like “%" & xmz(1) & "%“"
end if
xm(0)=Checkbox4.getChecked()
if xm(0) then
xm(1)=trim(tztxm.value )
str=str & " and xm like “%" & xm(1) & "%“"
end if
szfx(0)=Checkbox5.getChecked()
if szfx(0) then
szfx(1)=Listbox3.getText(Listbox3.selectedIndex )
str =str & " and szfx =“" & szfx(1) & "“"
end if
szxs(0)=Checkbox6.getChecked()
if szxs(0) then
szxs(1)=Listbox4.getText(Listbox4.selectedIndex )
str =str & " and szxs =“" & szxs(1) & "“"
end if
jbr(0)=Checkbox8.getChecked()
if jbr(0) then
jbr(1)=trim(txtjbr.value )
str =str & " and jbr like “%" & jbr(1) & "%“"
end if
set cnn2=server.CreateObject("adodb.connection")
set rst2=server.CreateObject("adodb.recordset")
cnn2.CursorLocation=3
cnn2.ConnectionTimeout =30
cnn2.Open "dsn=jky"
Response.Write "<table border=“1“ cellPadding=0 cellSpacing=0 width=“650“ height=“33“ >"
Response.Write "<tr>"
Response.Write "<td width=“100%“ colspan=“6“ height=“44“ align=“middle“ bgcolor=lightblue>"
Response.Write "<p align=“center“><b><font color=“#000084“>记 帐 凭 证 列 表"
Response.Write "</font></b></p></td></tr> "
Response.Write "<tr>"
Response.Write "<td width=“15%“ bgcolor=lightsteelblue>"
Response.Write "部 门</td>"
Response.Write "<td width=“20%“bgcolor=lightsteelblue>"
Response.Write "子公司</td>"
Response.Write "<td width=“15%“ bgcolor=lightsteelblue>"
Response.Write "项目组</td>"
Response.Write "<td width=“15%“ bgcolor=lightsteelblue>"
Response.Write "项目名/合同号</td>"
Response.Write "<td width=“15%“ bgcolor=lightsteelblue>"
Response.Write "收入金额(万元)</td>"
Response.Write "<td width=“15%“ bgcolor=lightsteelblue>"
Response.Write "支出金额(万元)</td></tr>"
if session("Tright")="1" then
内容版权声明:除非注明,否则皆为本站原创文章。