基于b/s的酒店管理系统asp源码

源代码在线查看: op_worker_power.asp

软件大小: 210 K
上传用户: A15117704533
关键词: asp 管理系统 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
								if check_power("权限管理")=0 then
				  response.redirect("/login/check_false.asp")
				else%>				set Recordset1 = Server.CreateObject("ADODB.Recordset")
				Recordset1.ActiveConnection = "dsn=hotel;"
				Recordset1.Source = "SELECT *  FROM db_worker where id="&request.form("id")
				'Recordset1.Source = "SELECT *  FROM db_worker"
				Recordset1.CursorType = 0
				Recordset1.CursorLocation = 2
				Recordset1.LockType = 3
				Recordset1.Open
				Recordset1_numRows = 0
				%>				set rsfields=Recordset1.fields
				for i=0 to rsfields.count-1
				 if left(rsfields(i).name,2)="p_" then
				   if request.form(rsfields(i).name)"" then
				     rsfields(i).value=1
				   else
				     rsfields(i).value=0
				   end if
				 end if
				next
				Recordset1.update
				Recordset1.close
				%>				response.redirect("worker_show.asp")
				%>
							

相关资源