<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_SystemSetWorkFlowType")<>1 then HX_GoBack "对不起,您的权限不够!",""
ColumnName="":Tablename="HX_WorkFlowType":Orderby=" ORDER BY WS_WTID DESC":action=request("action")
if action="del" then
  WS_WTID=request("WS_WTID")
  if WS_WTID="" or isnull(WS_WTID) or (WS_WTID<>"" and not isnumeric(WS_WTID)) then HX_GoBack "非法操作",""  
  conn.execute("delete from "&Tablename&" where WS_WTID="&WS_WTID)
  WS_S.HX_Redirect "WorkFlowType.asp?page="&request("page")
end if
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
WSOASCOMSTR="<head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>公文类型</title><link rel=stylesheet type=text/css href='../HXinclude/HX_Style.css'><script src='../HXinclude/HX_Function.js'></script></head><body topmargin='20' leftmargin='0' bottommargin='0'>"
WSOASCOMSTR=WSOASCOMSTR&"<table width='596'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#613c25'><tr><td colspan='2' bgcolor=FFFBE8><table width='100%'  border='0' cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>"
WSOASCOMSTR=WSOASCOMSTR&"公文类型</font>　　　　　　<a href='javascript:' onClick=""openwin(520,210,'WorkFlowAddtype.asp')""><font color='#FFFBE8'>添加公文类型</font></a></td></tr></table><table width='100%'  border='0' cellspacing='1' cellpadding='3' bgcolor=FFFBE8><form name='form1' method='post' action='?action=saveinfo'"
WSOASCOMSTR=WSOASCOMSTR&" onSubmit='return modulecheck();'><tr bgcolor='#BF9B73' class='td4'><td width='28%' align='center'>类别名称</td><td width='51%' align='center'>类别说明</td><td align='center' colspan='2'>操作</td></tr>"
if rs.recordcount<=0 then
 WSOASCOMSTR=WSOASCOMSTR&"<tr><td colspan=6 bgcolor=FFFBE8 height=25 align=center>暂无记录！</td></tr>"
else
 rs.PageSize =15 '每页记录条数
 iCount=rs.RecordCount '记录总数
 iPageSize=rs.PageSize
maxpage=rs.PageCount 
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif  page>maxpage then
page=maxpage
end if
rs.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if
ii=0
do while not rs.EOF 
WSOASCOMSTR=WSOASCOMSTR&"<tr align='center' bgcolor='#FFFBE8' onmouseover=javascript:this.bgColor='#F9F8F2' onmouseout=javascript:this.bgColor='#FFFBE8'><td width='28%'>"&rs("WS_WorkFlowTypeName")&"</td><td width='51%'><div align='left'>"&rs("WS_WorkFlowTypeBrief")&"</div></td><td width='11%'><input type='button' name='modify' value='修改' onClick=""openwin(520,210,'WorkFlowModify.asp?WS_WTID="&rs("WS_WTID")&"');""></td><td width='10%'><input type='button' name='deld' value='删除' onClick=""location.href='?action=del&WS_WTID="&rs("WS_WTID")&"&page="&Page&"';""></td></tr>"
ii=ii+1
if ii>=rs.PageSize then Exit Do
rs.movenext
loop
response.Write WSOASCOMSTR
call WS_S.PageControl(iCount,maxpage,page,"border=0 align=right","<p align=right>",6)
end if
call WS_S.HX_RSClose(rs) 
WSOASCOMSTR="</form></table></td></tr></table>"
response.Write WSOASCOMSTR%>