<!-- #include file="../conn.asp" -->
<!-- #include file="admin.asp" -->
<!-- #include file="Upload.inc" -->
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>WAP2.0写文章</title>
</head>
<body>
<%
dim id
id=request.querystring("id")
 test=request.form("test")
 title=request.form("title")
 
 if test="" or title = "" then
  Response.write "各项都不能为空！请按手机返回键"
  Response.write ""
  Response.end
end if

 
 pic=request.form("pic")
        set rs=server.createobject("adodb.recordset")
	sql="select * from sms"
	rs.open sql,conn,1,3
        rs.addnew
        rs("classid")=id
        rs("test")=test
        rs("title")=title
        rs("YD_date")=now()
        rs.update
	rs.close
	set rs=nothing
response.write "记录添加成功!"
upup(pic)
function upup(str)
if str=1 then
set rs2=server.CreateObject("adodb.recordset")
		sql2="select top 1 * from sms order by id desc"
		rs2.open sql2,conn,1,1            
                idd=rs2("id")
		Rs2.close
		Set Rs2=nothing
response.write("因为你选择了上传图片,请上传<br/>")
response.write("<form action='uploadd.asp?saytk="&saytk&"&amp;sid="&sid&"&amp;cid="&idd&"&amp;id="&id&"' enctype='multipart/form-data' method='post'>图片文件:<input name='file' type='file' title='选择图片' size='10'><br/><input type='submit' name='submit' value='提交图片' emptyok='true'/>")
end if
end function
%><br/>----------<br/>
<a href="adminsmscl.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;id=<%=id%>">[返回文章]</a><br/>
<a href="wzclass.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>">[文章分类]</a><br/>
<a href="../index.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>">[后台管理]</a>
</body>
</html>