<!--#include file="../utf-8.asp" -->
<!--#include file="../js/Function.asp" -->
<!--#include file="../CheckAdmin.asp" -->
<!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 NAME="copyright" CONTENT="Copyright 2010-2012 - yidacms.com" />
<META NAME="Author" CONTENT="世纪伟成  yidacms.com" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../js/admin.css" rel="stylesheet" type="text/css">
<title>FLASH管理！</title>
</head>

<body>
<%
'版权：世纪伟成(http://yidacms.com)
'本信息不会影响您网站的正常访问，无论免费用户或是收费用户请保留这里的信息.
'如果您删除了这里的版权信息,将追究法律责任.
		yidacms_id = cint(Request("id"))

		
		if request("t")="flashedit" Then 
			if len(trim(request.Form("shuaiweb_flashname")))<1 then
				response.write ("<script language=javascript> alert('FLASH标题必填且不能少于1个字符！');history.back(-1);</script>")
				response.end
			end if
		  
			if len(trim(request.Form("shuaiweb_pic")))<1 then
				response.write ("<script language=javascript> alert('图片地址不能为空，且不少于1个字符！');history.back(-1);</script>")
				response.end
			end if 
		  		  
		dim rs,sql
		set rs=server.createobject("adodb.recordset")
		sql="select * from shuaiweb_flash WHERE id= "&yidacms_id&""
		rs.open sql,dbok,1,3
			rs("shuaiweb_flashname")=trim(request.form("shuaiweb_flashname"))
			rs("shuaiweb_pic")=trim(request.form("shuaiweb_pic"))
			rs("shuaiweb_picurl")=trim(request.form("shuaiweb_picurl"))
		rs.update
		rs.close
		set rs=nothing
		response.write "<script language=javascript> alert('成功修改！');location.replace('admin_flash.asp');</script>"
		response.end
		End If
		
		set rs = server.createobject("adodb.recordset")
		sql="select * from shuaiweb_flash WHERE id= "&yidacms_id&""
		rs.open sql,dbok,1,1
%>
		  <table width="98%" height="100%" border="0" cellpadding="6" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse" bgcolor="#FFFFFF" align="center">
		  <form id="form1" name="form1" method="post" action="admin_flashedit.asp?t=flashedit&id=<%=rs("id")%>">
			<tr>
			  <td class="infont"></td>
			  <td>图片名称<br /><input name="shuaiweb_flashname" type="text" id="shuaiweb_flashname" value="<%=rs("shuaiweb_flashname")%>" class="win"/></td>
			</tr>
			<tr>
			  <td class="infont"></td>
			  <td><div class="uppic">图片地址<br /><input name="shuaiweb_pic" type="text" id="shuaiweb_productsminpic" value="<%=rs("shuaiweb_pic")%>" class="win" /> </div><div class="uppic2"><iframe width="305" height="34" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src="../../uploadclass/min/upfile.htm" allowtransparency="true" ></iframe></div></td>
			</tr>
			<tr>
			  <td class="infont"></td>
			  <td>链接地址<br /><input name="shuaiweb_picurl" type="text" id="shuaiweb_flashpic" value="<%=rs("shuaiweb_picurl")%>" class="win" /></td>
			</tr>
			<tr>
			  <td>&nbsp;</td>
			  <td>
				<input type="submit" name="Submit" value="提 交" class="inanniu"/>
			   <input type=button onclick="window.location.href('admin_flash.asp')"value="返 回" class="inanniu"></td>
			</tr>
			</form>
		  </table>
</body>
</html>
