<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"--><%if WS_S.MemberPriv("WS_SystemSetModule")<>1 then HX_GoBack "对不起,您的权限不够!",""
ColumnName="":Tablename="HX_Module":Orderby=" ORDER BY WS_Mid DESC":action=request("action")
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
select case action
case "saveinfo"
WS_CompanyName=WS_s.HX_Replace(request.form("WS_CompanyName")):WS_LinkTel=WS_s.HX_Replace(request.form("WS_LinkTel")):WS_LinkFax=WS_s.HX_Replace(request.form("WS_LinkFax")):WS_WebUrl=WS_s.HX_Replace(request.form("WS_WebUrl")):WS_Post=WS_s.HX_Replace(request.form("WS_Post")):WS_Address=WS_s.HX_Replace(request.form("WS_Address")):WS_CompanyIntr=WS_s.HX_Replace(request.form("WS_CompanyIntr"))
if rs.recordcount>0 then   msg="单位修改成功!"  else  rs.addnew:msg="单位添加成功!"
rs("WS_CompanyName")=WS_CompanyName:rs("WS_LinkTel")=WS_LinkTel:rs("WS_LinkFax")=WS_LinkFax:rs("WS_WebUrl")=WS_WebUrl:rs("WS_Post")=WS_Post:rs("WS_Address")=WS_Address:rs("WS_CompanyIntr")=WS_CompanyIntr:rs.update
call WS_S.SaveAdminLog(LOGINUSERNAME,LogAppointment,msg):HX_GoBack msg,"module.asp"
case else
if rs.recordcount>0 then  WS_CompanyName=rs("WS_CompanyName"):WS_LinkTel=rs("WS_LinkTel"):WS_LinkFax=rs("WS_LinkFax"):WS_WebUrl=rs("WS_WebUrl"):WS_Post=rs("WS_Post"):WS_Address=rs("WS_Address"):WS_CompanyIntr=rs("WS_CompanyIntr")
end select
response.Write "<html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>单位管理</title><link rel=stylesheet type=text/css href='../HXinclude/HX_Style.css'></head><body topmargin='20' leftmargin='0' bottommargin='20'><script language='javascript'>function modulecheck(){var frm=document.form1;if(frm.WS_CompanyName.value=='') {  alert('公司名称不能为空!');  frm.focus();  return false;  }return true;}</script><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><form name='form1' method='post' action='?action=saveinfo' onSubmit='return modulecheck();'><tr bgcolor='#FFFBE8'><td width='27%' align='right'>公司名称：</td><td width='73%'><input type='text' name='WS_CompanyName' size='35' value='"&WS_CompanyName&"'></td></tr><tr bgcolor='#FFFBE8'><td align='right'>公司电话：</td><td><input type='text' name='WS_LinkTel' size='35' value='"&WS_LinkTel&"'></td></tr><tr bgcolor='#FFFBE8'><td align='right'>公司传真：</td><td><input type='text' name='WS_LinkFax' size='35' value='"&WS_LinkFax&"'></td></tr><tr bgcolor='#FFFBE8'><td align='right'>网站地址：</td><td><input type='text' name='WS_WebUrl' size='35' value='"&WS_WebUrl&"'></td></tr><tr bgcolor='#FFFBE8'><td align='right'>邮政编码：</td><td><input type='text' name='WS_Post' size='35' value='"&WS_Post&"'></td></tr><tr bgcolor='#FFFBE8'><td align='right'>公司地址：</td><td><input type='text' name='WS_Address' size='35' value='"&WS_Address&"'></td></tr><tr bgcolor='#FFFBE8'><td align='right' valign=top>公司简介：</td><td><textarea name='WS_CompanyIntr' cols='65' rows='15' class='bgline'>"&WS_CompanyIntr&"</textarea></td></tr><tr bgcolor='#FFFBE8'><td align='right'>&nbsp;</td><td><input type='submit' name='Submit' value=' 提 交 '> <input type='reset' name='Submit2' value=' 重 置 '></td></tr></form></table></td></tr></table>"%>