<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_PublicAffairsCarModify")<>1 then HX_GoBack "对不起,您的权限不够!",""
action=request("action")
if action="saveinfo" then
HX_Conn Dir:ColumnName="":Tablename="HX_CarMain"
CarName=request("CarName")
CarDescribe=request("CarDescribe")
Orderby=" where WS_CarName='"&CarName&"'"
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
  if rs.recordcount>0 then
    HX_GoBack "此已入库！","" 
  else
  rs.addnew:rs("WS_CarName")=CarName:rs("WS_CarDescribe")=CarDescribe:rs("WS_CarDate")=now:  rs.update
  response.write "<script>if(!confirm('是否继续添加？')) location.href='carlist.asp';else location.href='caradd.asp';</script>":response.end
  end if
end if
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><form name='form1' method='post' action='?action=saveinfo' onSubmit='return Carcheck(this);'><tr bgcolor='#FFFBE8'><td width='23%'>车牌号码</td><td width='77%'><input type='text' name='CarName' maxlength='50'></td></tr><tr bgcolor='#FFFBE8'><td width='23%' valign='top'>简要描述</td><td width='77%'><textarea rows='8' name='CarDescribe' cols='50' class='bgline'></textarea></td></tr><tr bgcolor='#FFFBE8'><td>&nbsp;</td><td><input type='submit' name='Submit' value=' 添 加 '> <input type='reset' name='Submit' value=' 重 输 '></td></tr></form></table></td></tr></table>"%>