<HTML>
<HEAD>
<TITLE>  </TITLE>
<BODY BGCOLOR="#FFFFFF">
<form name=carform method="post" action="">
<div align=center>
<table border=1 cellpadding=3 cellspacing=0 width="90%" bgcolor=#EEEEEE bordercolordark="#FFFFFF" bordercolorlight="#999999"><tr><td>
<INPUT TYPE="button" name="cmdreturn" value="返  回" class="font9boldwhite" onclick="javascript:window.location.href='car_admin.htm'">
</td></tr></table>

<table border=1 cellpadding=3 cellspacing=0 width="90%" bgcolor=#EEEEEE bordercolordark="#FFFFFF" bordercolorlight="#999999">
<tr>
	<td bgcolor=#CCCCCC width=80>车辆名称</td>
	<td><input type="text" name="Name" class="input" size=20></td>
	<td bgcolor=#CCCCCC width=80>型号</td>
	<td><input type="text" name="Model" class="input" size=20></td>
</tr>
<tr>
	<td bgcolor=#CCCCCC>责任负责人</td>
	<td><input type="text" name="Owner" class="input" size=20></td>
	<td bgcolor=#CCCCCC>可使用人数</td>
	<td><input type="text" name="Contain" class="input" size=20></td>
</tr>
<tr>
	<td bgcolor=#CCCCCC>购买时间</td>
	<td><input type="text" name="Buytime" class="input" size=20></td>
	<td bgcolor=#CCCCCC>保修时间</td>
	<td><input type="text" name="Repairtime" class="input" size=20></td>
</tr>
<tr>
	<td bgcolor=#CCCCCC>介绍</td>
	<td colspan=3>
	<textarea name="body" cols=50 rows=5><%=body%></textarea>
	</td>
</tr>
<tr>
	<td bgcolor=#CCCCCC>维修记录</td>
	<td colspan=3>
	<textarea name="repair" cols=50 rows=5><%=repair%></textarea>
	</td>
</tr>
<tr>
	<td bgcolor=#CCCCCC>&nbsp;</td>
	<td colspan=3>
	<%if CarID<>"0" then%>
	<INPUT TYPE="submit" name="cmdUpdate" value="修  改" class="font9boldwhite">
	<%else%>
	<INPUT TYPE="submit" name="cmdUp" value="添  加" class="font9boldwhite">
	<%end if%>
	<INPUT TYPE="reset" name="cmdreset" value="重  置" class="font9boldwhite">
	</td>
</tr>

</table>
</div>
<INPUT TYPE="hidden" name="CarID" value="<%=CarID%>">
</form>
</BODY>
</HTML>

<!--#include file="../inc/conn_close.htm"-->
<%
Sub AddData()
	sql=" INSERT INTO tblCar(Name,model,owner,buytime,repairtime,body,contain,repair) VALUES('" & Name & _
		"','"& model & _
		"','"& owner & _
		"','"& buyTime & _
		"','"& repairTime & _
		"','"& body & _
		"','"& contain & _
		"','"& repair & _
		"');"
	oConn.execute (sql)
end sub
%>
