<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%ColumnName="":Tablename="HX_Department":Orderby=" order by WS_OrderBy asc"
  set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
   response.Write "<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'><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'>企业通迅录</font></td></tr></table><table width='100%'  border='0' cellspacing='1' cellpadding='3' bgcolor=FFFBE8><tr bgcolor='#BF9B73' class='td4'><td width='35%' align='center'> 部门名 </td><td width='65%' align='center'> 部门人员</td></tr>"
	if rs.recordcount<=0 then
     response.Write "<tr><td colspan=8 bgcolor=FFFBE8 height=25 align=center>暂无记录！</td></tr>"
    else
	do while not rs.EOF	 
       response.write "<tr bgcolor='#FFFBE8' onmouseover=javascript:this.bgColor='#F9F8F2' onmouseout=javascript:this.bgColor='#FFFBE8'><td height='28'>&nbsp;&nbsp;"&rs("WS_DepartmentName")
	   if rs("WS_DepartmentTel")<>"" or rs("WS_DepartmentFAX")<>"" then
		response.Write "<br><font color='613c25'>【"
		if rs("WS_DepartmentTel")<>"" then response.Write "TEL:"&rs("WS_DepartmentTel")
		if rs("WS_DepartmentFAX")<>"" then response.Write "&nbsp;FAX:"&rs("WS_DepartmentFAX")
		response.Write "】</font>"
	   end if
    response.write "</td><td>"
	set URS=WS_S.HX_SetRSD("","HX_CompanyUser"," where WS_department="&rs("WS_Did")&" and WS_leave=False order by WS_Uid asc")
	if URS.recordcount>0 then
	  do until URS.eof
	   response.write "<a href='javascript:' onclick=openwin(420,240,'companyviewpda.asp?WS_Uid="&urs("WS_Uid")&"'); ><font color=613c25>"&URS("WS_Name")&"</font></a>&nbsp;&nbsp;"
	  URS.movenext
	  loop
	end if
	response.write "</td></tr>"
	rs.movenext
	loop
end if
WS_S.HX_RSClose Urs:WS_S.HX_RSClose rs
response.write "</table></td></tr></table>"%>