怎么解决这个代码的问题呀?
<%
edit_type=Request.Form("action_type") '编辑类型
cid=Request.Form("cid")
allocate_type=Request.Form("allocate_type")
allocate_department=Request.Form("allocate_department")
customer_service=Request.Form("customer_service")
bargain_time=trim(Request.Form("bargain_time"))
contract=trim(Request.Form("contract"))
workload=UpdateStr(trim(Request.Form("workload")))
have_database=Request.Form("have_database")
time_out=Request.Form("time_out")
if have_database="" then have_database="0"
if time_out="" then time_out="0"
have_input_data=Request.Form("have_input_data")
if have_input_data="" then have_input_data="0"
have_flashpage=Request.Form("have_flashpage")
if have_flashpage="" then have_flashpage="0"
time_handover=trim(Request.Form("time_handover"))
validate=trim(Request.Form("validate"))
sales=trim(Request.Form("sales"))
department=trim(Request.Form("department"))
contract_price=trim(Request.Form("contract_price"))
if contract_price="" then contract_price=0
fact_transfer=trim(Request.Form("fact_transfer"))
if fact_transfer="" then fact_transfer=0
item_price=trim(Request.Form("item_price"))
if item_price="" then item_price=0
item_transfer=trim(Request.Form("item_transfer"))
if item_transfer="" then item_transfer=0
remark_kf=UpdateStr(trim(Request.Form("remark_kf")))
remark=UpdateStr(trim(Request.Form("remark")))
%>
<%
if edit_type="add_new" then '当添加新信息时
%>
<!--#include file="../include/check_s29.asp" -->
<%
if allocate_department=3 then '负责人
sqlstr="INSERT INTO t_design(cid,allocate_department_id,allocate_type,employee,bargain_time,contract,workload,time_handover,validate,sales,department,remark_kf,remark) "
sqlstr=sqlstr & "VALUES(" & cid & "," & allocate_department & ",'" & allocate_type & "','" & customer_service & "','" & bargain_time & "','" & contract & "','" & workload
sqlstr=sqlstr & "','" & time_handover & "','" & validate & "','" & sales & "','" & department & "','" & remark_kf & "','" & remark & "')"
else
sqlstr="INSERT INTO t_design(cid,allocate_department_id,allocate_type,bargain_time,contract,workload,have_database,time_out,have_input_data,have_flashpage,time_handover,validate,sales,department,contract_price,fact_transfer,item_price,item_transfer,remark_kf,remark) "
sqlstr=sqlstr & "VALUES(" & cid & "," & allocate_department & ",'" & allocate_type & "','" & bargain_time & "','" & contract & "','" & workload
sqlstr=sqlstr & "','" & have_database & "','" & time_out & "','" & have_input_data & "','" & have_flashpage & "','" & time_handover & "','" & validate & "','" & sales & "','" & department & "'," & contract_price & "," & fact_transfer & "," & item_price & "," & item_transfer & ",'" & remark_kf & "','" & remark & "')"
end if
conn.Execute(sqlstr)
title_str="添 加 新 记 录"
msg_str="<b><font color=red>添加成功!</font></b><br><br>"
msg_str=msg_str & "<a href='enterprise_detail.asp?id=" & cid & "'>浏览信息</a>"
return_to_add
elseif edit_type="edit" then '当修改信息时
%>
<!--#include file="../include/check_s30.asp" -->
<%
id=Request.Form("id") '取得要修改的信息ID号
test_version=Request.Form("test_version")
true_version=Request.Form("true_version")
confirm=Request.Form("confirm")
confirm_time=Request.Form("confirm_time")
confirm_amount_kefu=Request.Form("confirm_amount_kefu")
if confirm_amount_kefu="" then confirm_amount_kefu=0
str1="UPDATE t_design SET "
str1=str1 & "cid=" & cid & ","
str1=str1 & "allocate_department_id=" & allocate_department & ","
str1=str1 & "allocate_type='" & allocate_type & "',"
str1=str1 & "bargain_time='" & bargain_time & "',"
str1=str1 & "contract='" & contract & "',"
str1=str1 & "workload='" & workload & "',"
str1=str1 & "have_database='" & have_database & "',"
str1=str1 & "time_out='" & time_out & "',"
str1=str1 & "have_input_data='" & have_input_data & "',"
str1=str1 & "have_flashpage='" & have_flashpage & "',"
str1=str1 & "time_handover='" & time_handover & "',"
str1=str1 & "validate='" & validate & "',"
str1=str1 & "sales='" & sales & "',"
str1=str1 & "department='" & department & "',"
str1=str1 & "contract_price=" & contract_price & ","
str1=str1 & "fact_transfer=" & fact_transfer & ","
str1=str1 & "item_price=" & item_price & ","
str1=str1 & "item_transfer=" & item_transfer & ","
str1=str1 & "test_version='" & test_version & "',"
str1=str1 & "true_version='" & true_version & "',"
if confirm="1" then
str1=str1 & "confirm=1,"
str1=str1 & "confirm_time='" & confirm_time & "',"
else
str1=str1 & "confirm=0,"
end if
if allocate_department=3 then '负责人
str1=str1 & "employee='" & customer_service & "',"
end if
str1=str1 & "remark_kf='" & remark_kf & "',"
str1=str1 & "remark='" & remark & "',"
str1=str1 & "confirm_amount_kefu=" & confirm_amount_kefu & ""
str1=str1 & " where id=" & id
conn.Execute(str1)
return_to_edit() '返回修改页面
else
title_str="非 法 操 作"
msg_str="<b><font color=red>你执行了非法操作!</font></b><A href='javascript:history.back(-1)'>请返回.</A>"
return_to_add
end if
%>
<%sub return_to_edit()%>
<form action="design_edit01.asp" method=post name="frm_design">
<input type="hidden" name="action_type" value="<%=edit_type%>">
<input type="hidden" name="me_page" value=<%=session("current_edit_page")+1%>>
<INPUT type="hidden" name="cid" value="<%=cid%>">
<INPUT type="hidden" name="ep_id" value="<%=id%>">
<INPUT type="hidden" name="success_mes" value="Successfully">
</form>
<script language="javascript">
document.frm_design.submit();
</script>
<%end sub%>
<%sub return_to_list()%>
<form action="list_news.asp" method=post name="frm_page">
<input type="hidden" name="me_page" value=<%=session("back_page")%>>
<input type="hidden" name="keyword" value=<%=session("back_keyword")%>>
<input type="hidden" name="news_type" value=<%=session("back_sort")%>>
<input type="hidden" name="range" value=<%=session("back_range")%>>
</form>
<script language="javascript">
document.frm_page.submit();
</script>
<%end sub%>
<%sub return_to_add()%>
<!--#include file="../include/header.asp" -->
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="10"></td>
</tr>
<tr align="middle" >
<td height="20">
<table width="630" border="1" cellspacing="0" cellpadding="0" class=smallfonts bordercolorlight="#000000" bordercolordark="#ffffff">
<tr align="left" bgcolor="#3366cc">
<td height="28" > <font face=webdings color="#ffffff">8</font><A href="main.asp"><font color="#ffffff">回主菜单</font></A>
<img src="/pixel.gif" width="200" height="1"><span style="FONT-SIZE: 14px"><b><font color="#ffffff"><%=title_str%></font></b></span></td>
</tr>
<tr align="center">
<td height="120"><%=msg_str%>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="10"></td>
</tr>
</table>
<!--#include file="../include/bottom.asp" -->
<%end sub%>
提示以下错误:
Microsoft VBScript 编译器错误 错误 '800a03f6'
缺少 'End'
/iisHelp/common/500-100.asp,行242
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]列名 'time_out' 无效。
/manage/design_ok01.asp,行112
怎么改?