setpopedom.asp

来自「很好的OA办公系统」· ASP 代码 · 共 20 行

ASP
20
字号
<%
function getpopedom(popedomtype,username)
	dim errinfo
	errinfo=""
	set conn=opendb("oabusy","conn","accessdsn")
	set rs=server.createobject("adodb.recordset")
	sql="select * from userinf where username='" &username&"'"
	rs.open sql,conn,1
	if rs.eof and rs.bof then
		errinfo="对不起,没有这个用户!"
	elseif rs(popedomtype)="no" then
		errinfo="对不起,您不能执行这个功能!"
	end if
	set rs=nothing
	conn.close
	set conn=nothing
	getpopedom=errinfo
end function
%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?