<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_AnnexProgramlawrulesearch")<>1 then HX_GoBack "对不起,您的权限不够!",""
WS_Laid=request("WS_Laid"):WS_LawRuleTitle=request("WS_LawRuleTitle"):WS_StartDate=request("WS_StartDate"):WS_StartCaseDate=request("WS_StartCaseDate"):WS_LawRuleContent=request("WS_LawRuleContent"):ColumnName="":Tablename="HX_lawruleSearch"
if WS_Laid<>"" and isnumeric(WS_Laid) then
  if request("action")="editsave" then  Orderby=" where WS_Laid<>"&WS_Laid&" and WS_LawRuleTitle='"&WS_LawRuleTitle&"'"  else    Orderby=" where WS_Laid="&WS_Laid
else
 response.Write("<script language=javascript>alert('非法操作!');window.close();</script>"):response.end
end if
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
if request("action")="editsave" then
  if rs.recordcount>0 then  HX_GoBack "此法规已存在",""
  Call WS_S.HX_RSClose(rs)
  if not isdate(WS_StartDate) or not isdate(WS_StartCaseDate) then HX_GoBack "日期格式错误！",""
  set rs=WS_S.HX_SetRSD(ColumnName,Tablename," where WS_Laid="&WS_Laid)
  rs("WS_LawRuleTitle")=WS_LawRuleTitle:rs("WS_StartDate")=WS_StartDate:rs("WS_StartCaseDate")=WS_StartCaseDate:rs("WS_LawRuleContent")=WS_LawRuleContent:rs.update
  response.write "<script>alert('修改成功');window.opener.location.reload();window.close();</script>":response.end
else
  if rs.recordcount>0 then  WS_LawRuleTitle=rs("WS_LawRuleTitle"):WS_StartDate=rs("WS_StartDate"):WS_StartCaseDate=rs("WS_StartCaseDate"):WS_LawRuleContent=rs("WS_LawRuleContent")
end if
WS_S.HX_RSClose rs 
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'><script language='javascript'>  function check(){  var frms=document.form2;  if(frms.WS_LawRuleTitle.value=='')    {	alert('法规名称不能为空！');	frms.WS_LawRuleTitle.focus();	return false;	} if(frms.WS_StartDate.value=='')    {	alert('颁布日期不能为空！');	frms.WS_StartDate.focus();	return false;	}  if(frms.WS_StartCaseDate.value=='')    {	alert('实施日期不能为空！');	frms.WS_StartCaseDate.focus();	return false;	}	return true;  }</script><table width='380'  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' cellpadding='0' cellspacing='1' bgcolor=613c25><tr bgcolor='FFFBE8'><td><table width='100%'  border='0' cellspacing='1' cellpadding='2' bgcolor=BF9B73><form name='form2' method='post' action='?action=editsave' onSubmit='return check();'><tr bgcolor='#FFFBE8'><td width='30%' bgcolor='#FFFBE8'><div align='right'>法规名称：</div></td><td width='70%'><input type='text' name='WS_LawRuleTitle' size=25  value='"&WS_LawRuleTitle&"'></td></tr><tr bgcolor='#FFFBE8'><td bgcolor='#FFFBE8'><div align='right'>颁布日期：</div></td><td><input type='text' name='WS_StartDate' size=25 value='"&WS_StartDate&"'></td></tr><tr bgcolor='#FFFBE8'><td bgcolor='#FFFBE8'><div align='right'>实施日期：</div></td><td><input type='text' name='WS_StartCaseDate' size=25 value='"&WS_StartCaseDate&"'></td></tr><tr bgcolor='#FFFBE8'><td bgcolor='#FFFBE8' valign=top><div align='right'> 具体内容： </div></td><td><textarea name='WS_LawRuleContent'  cols='40' rows='15'>"&WS_LawRuleContent&"</textarea></td></tr><tr bgcolor='#FFFBE8'><td colspan='2'><div align='right'><input type='submit' name='Submit' value=' 修 改 '>&nbsp;&nbsp;<input name='' type='reset' value=' 重 输 '>&nbsp;&nbsp;<input name='' type='button' value=' 关 闭 ' onclick='window.close();'>&nbsp;       </div></td><input type='hidden' name='WS_Laid' size=25 value='"&WS_Laid&"'></tr></form></table></td></tr></table></td></tr></table></td></tr></table>"%>