">
<%
	If request.QueryString("action")="add" then
		ucode = Trim(request.form("ucode"))
		If ucode <> Trim(Session("Code")) then
			Call Msg("請輸入正確的驗(yàn)證碼!",1)
		End if	
		
		title = Replace_Text(request.form("title"))
		price = Replace_Text(request.form("price"))
		username = Replace_Text(request.form("username"))
		tel = Replace_Text(request.form("tel"))
		address = Replace_Text(request.form("address"))
		imgurl = Replace_Text(request.form("imgurl"))
		addtime = Now()
		pinpai = Replace_Text(request.form("pinpai"))
		chexin = Replace_Text(request.form("chexin"))
		paizhao = Replace_Text(request.form("paizhao"))
		paidang = Replace_Text(request.form("paidang"))
		shangpai = Replace_Text(request.form("shangpai"))
		licheng = Replace_Text(request.form("licheng"))
		yanse = Replace_Text(request.form("yanse"))
		if trim(title)="" then
			Call Msg("名稱不能為空!",1)
		end if
		if trim(price)="" then
			Call Msg("價(jià)格不能為空!",1)
		end if
		if trim(username)="" then
			Call Msg("聯(lián)系人不能為空!",1)
		end if
		if trim(tel)="" then
			Call Msg("電話不能為空!",1)
		end if	
				
	   	
		SQL = "Select * from Cared order by id"
		Call Rs_Open(Rs,SQL,Conn,3,2)
			Rs.Addnew
			Rs("title") = title
			Rs("price") = price
			Rs("username") = username
			Rs("tel") = tel
			Rs("address") = address
			Rs("imgurl") = imgurl
			Rs("addtime") = addtime
			Rs("pinpai") = pinpai
			Rs("chexin") = chexin
			Rs("paizhao") = paizhao
			Rs("paidang") = paidang
			Rs("shangpai") = shangpai
			Rs("licheng") = licheng
			Rs("yanse") = yanse
			Rs.update
		Call Rs_end(Rs)
		
		Call Msg ("提交成功,審核通過后顯示!$$/Cared/",4)
	Else
%>
<%end if%>