<!--#include file="../SQLconn.asp"-->
<% 

'检查权限
       tname=request.cookies("tname") 
       Set MyOAASPObj= Server.CreateObject("YFSchoolOApro.YFSchoolDll")
           if MyOAASPObj.QuanXian(tname,"印刷审批")=0 then 
		    response.redirect  "../NoPower.asp"
           end if 
		   set MyOAASPObj=nothing

'检查权限结束

   
   strid=request("id")
   curpage=Request.QueryString("curpage") 
   set Rsqingjia=server.createobject("adodb.recordset")
      
	  
	  
	   Rsqingjiasql="select * from yinshua where  id='"&strId& "'"
       Rsqingjia.open Rsqingjiasql,conn,1,3
       if Rsqingjia("beikezuzhang")<>"" then
          Rsqingjia("jiaodaochu")="不同意印刷"
		  Rsqingjia("wenyinshi")="请不要印刷此文档！   "&request.cookies("tname")
          Rsqingjia("jiaodaochudatetime")=now()
	   end if 
	 
	 
	   
	  
	  
	
       Rsqingjia.update
       Rsqingjia.close
	    response.redirect   "main.asp?curpage="&curpage
%>

