<!--#include file="admin_cook.asp"-->
<!--#include file="../conn.asp"-->
<!--#include file="inc/page_class.asp"-->
<!--#include file="inc/Function.asp"-->
<HTML>
<HEAD>
<TITLE>内容管理 - 管理页面</TITLE>
<LINK href="images/Style.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.5512" name=GENERATOR>
<style type="text/css">
<!--
#KeyWord {
	margin: 0px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 10px;
	padding-left: 0px;
}
.tableborder #KeyWord {
	padding: 0px;
	clear: both;
	float: none;
	height: 17px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 7px;
	margin-left: 0px;
	border: 1px solid #0099FF;
}
-->
</style>
</HEAD>
<script language="javascript">
function CheckAll(form)  
{
  for (var i=0;i<form.elements.length;i++)    
  {
    var e = form.elements[i];
    if (e.name != 'chkall')
	e.checked = form.chkall.checked; 
  }
}
function CheckOne()
{   
	var   flag=false;   
	var   ID=document.getElementsByName("ID");   
	for(i=0;i<ID.length;i++)
	{   
		if (ID(i).checked)
		{   
			flag=true;   
			break;   
		}   
	}   
	if (!flag)   
	{     
	  alert('请至少选择一条记录！');
	  return false;   
	}      
}   
</script>
<BODY bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0>
<BR style="OVERFLOW: hidden; LINE-HEIGHT: 3px">
<BR>
<%
action=request("act")
select case action
case "editcat":
call editcat()
case "modify":
call modify()
case "editdb":
call editdb()
case "modifydb":
call modifydb()
end select
sub editcat()
%>
<%
dim rs2
	set rs2=Server.CreateObject("ADODB.RecordSet")
    sql="select * from flash"
	Rs2.open Sql,Conn,1,1

%>
<TABLE width="100%" border=0 align=center cellPadding=3 cellSpacing=1 class=tableBorder>
<FORM name="form" action="?act=modify" method=post>
<TBODY>
<tr >
  <td align="middle" class="TableRow2"><div align="center"><span class="TableRow1">图片地址1：</span></div></td>
  <td align="middle" class="TableRow2"><div align="left"><span class="TableRow1">
    <input name="img" type="text" size="30" value="<%=rs2("url1")%>"/>
  </span></div></td>
  <td align="middle" class="TableRow2"><iframe frameborder="0"  align="left" width="300" height="28" scrolling="No" src="../upload.asp?action=img"></iframe>
    <div align="left"></div></td>
  <td align="middle" class="TableRow2"><div align="left">链接地址1：
    
    <input name="url11" type="text" size="50" value="<%=rs2("url11")%>"/>
  </div></td>
</tr>
<tr >
  <td align="middle" class="TableRow2"><div align="center"><span class="TableRow1">图片地址2：</span></div></td>
  <td align="middle" class="TableRow2"><div align="left"><span class="TableRow1">
    <input name="img2" type="text" size="30" value="<%=rs2("url2")%>"/>
  </span></div></td>
  <td align="middle" class="TableRow2"><iframe frameborder="0"  align="left" width="300" height="28" scrolling="No" src="../upload.asp?action=img2"></iframe></td>
  <td align="middle" class="TableRow2"><div align="left">链接地址1：
    <input name="url22" type="text" size="50" value="<%=rs2("url22")%>"/>
  </div></td>
</tr>
<tr >
  <td align="middle" class="TableRow2"><div align="center"><span class="TableRow1">图片地址3：</span></div></td>
  <td align="middle" class="TableRow2"><div align="left"><span class="TableRow1">
    <input name="img3" type="text" size="30" value="<%=rs2("url3")%>"/>
  </span></div></td>
  <td align="middle" class="TableRow2"><iframe frameborder="0"  align="left" width="300" height="28" scrolling="No" src="../upload.asp?action=img3"></iframe></td>
  <td align="middle" class="TableRow2"><div align="left">链接地址1：
    <input name="url33" type="text" size="50" value="<%=rs2("url33")%>"/>
  </div></td>
</tr>
<tr >
  <td align="middle" class="TableRow2"><div align="center"><span class="TableRow1">图片地址4：</span></div></td>
  <td align="middle" class="TableRow2"><div align="left"><span class="TableRow1">
    <input name="img4" type="text" size="30" value="<%=rs2("url4")%>"/>
  </span></div></td>
  <td align="middle" class="TableRow2"><iframe frameborder="0"  align="left" width="300" height="28" scrolling="No" src="../upload.asp?action=img4"></iframe></td>
  <td align="middle" class="TableRow2"><div align="left">链接地址1：
    <input name="url44" type="text" size="50" value="<%=rs2("url44")%>"/>
  </div></td>
</tr>
<tr >
  <td width="8%" align="middle" class="TableRow2"><div align="center"><span class="TableRow1">图片地址5：</span></div></td>
  <td align="middle" class="TableRow2"><div align="left"><span class="TableRow1">
    <input name="img5" type="text" size="30" value="<%=rs2("url5")%>"/>
  </span></div></td>
  <td align="middle" class="TableRow2"><iframe frameborder="0"  align="left" width="300" height="28" scrolling="No" src="../upload.asp?action=img5"></iframe></td>
  <td align="middle" class="TableRow2"><div align="left">链接地址1：
    <input name="url55" type="text" size="50" value="<%=rs2("url55")%>"/>
  </div></td>
</tr>
<TR>
<TD align=middle class=TableRow2></TD>
<TD width="19%" align=middle class=TableRow2>&nbsp;</TD>
<TD width="30%" align=middle class=TableRow2>
  
    <div align="right">
      <input class=button type=submit value=" 修 改 " name=Submit>
      <input class=button type=reset value=" 重 填 " name=Submit232 />
    </div></TD><TD width="43%" align=middle class=TableRow2><div align="left"></div></TD>
</TR>
</FORM>
</TABLE>
<%
end sub
sub modify()
Dim rs3,sql3
sql3="select * from flash"
set rs3=server.CreateObject("ADODB.RecordSet")
rs3.Open sql3,conn,1,3
rs3("url1")=Request.Form("img")
rs3("url2")=Request.Form("img2")
rs3("url3")=Request.Form("img3")
rs3("url4")=Request.Form("img4")
rs3("url5")=Request.Form("img5")
rs3("url11")=Request.Form("url11")
rs3("url22")=Request.Form("url22")
rs3("url33")=Request.Form("url33")
rs3("url44")=Request.Form("url44")
rs3("url55")=Request.Form("url55")
rs3.Update
Succeed("<li>修改成功</li>")
response.End
rs3.Close
set rs3=nothing
end sub
sub editdb()
dim rs4,sql4
	set rs4=Server.CreateObject("ADODB.RecordSet")
    sql4="select * from flash"
	Rs4.open Sql4,Conn,1,1

%>
<TABLE width="100%" border=0 align=center cellPadding=3 cellSpacing=1 class=tableBorder>
<FORM name="form" action="?act=modifydb" method=post>
<TBODY>
<tr >
  <td align="middle" class="TableRow2"><div align="center"><span class="TableRow1">图片地址1：</span></div></td>
  <td align="middle" class="TableRow2"><div align="left"><span class="TableRow1">
    <input name="img" type="text" size="30" value="<%=rs4("utl1")%>"/>
  </span></div></td>
  <td align="middle" class="TableRow2"><iframe frameborder="0"  align="left" width="300" height="28" scrolling="No" src="../upload.asp?action=img"></iframe></td>
  <td align="middle" class="TableRow2"><div align="left">链接地址1：
    <input name="utl11" type="text" size="50" value="<%=rs4("utl11")%>"/>
  </div></td>
</tr>
<tr >
  <td align="middle" class="TableRow2"><div align="center"><span class="TableRow1">图片地址2：</span></div></td>
  <td align="middle" class="TableRow2"><div align="left"><span class="TableRow1">
    <input name="img2" type="text" size="30" value="<%=rs4("utl2")%>"/>
  </span></div></td>
  <td align="middle" class="TableRow2"><iframe frameborder="0"  align="left" width="300" height="28" scrolling="No" src="../upload.asp?action=img2"></iframe></td>
  <td align="middle" class="TableRow2"><div align="left">链接地址1：
    <input name="utl22" type="text" size="50" value="<%=rs4("utl22")%>"/>
  </div></td>
</tr>
<tr >
  <td align="middle" class="TableRow2"><div align="center"><span class="TableRow1">图片地址2：</span></div></td>
  <td align="middle" class="TableRow2"><div align="left"><span class="TableRow1">
    <input name="img3" type="text" size="30" value="<%=rs4("utl3")%>"/>
  </span></div></td>
  <td align="middle" class="TableRow2"><iframe frameborder="0"  align="left" width="300" height="28" scrolling="No" src="../upload.asp?action=img3"></iframe></td>
  <td align="middle" class="TableRow2"><div align="left">链接地址1：
    <input name="utl33" type="text" size="50" value="<%=rs4("utl33")%>"/>
  </div></td>
</tr>
<tr >
  <td align="middle" class="TableRow2"><div align="center"><span class="TableRow1">图片地址2：</span></div></td>
  <td align="middle" class="TableRow2"><div align="left"><span class="TableRow1">
    <input name="img4" type="text" size="30" value="<%=rs4("utl4")%>"/>
  </span></div></td>
  <td align="middle" class="TableRow2"><iframe frameborder="0"  align="left" width="300" height="28" scrolling="No" src="../upload.asp?action=img4"></iframe></td>
  <td align="middle" class="TableRow2"><div align="left">链接地址1：
    <input name="utl44" type="text" size="50" value="<%=rs4("utl44")%>"/>
  </div></td>
</tr>
<tr >
  <td width="8%" align="middle" class="TableRow2"><div align="center"><span class="TableRow1">图片地址2：</span></div></td>
  <td align="middle" class="TableRow2"><div align="left"><span class="TableRow1">
    <input name="img5" type="text" size="30" value="<%=rs4("utl5")%>"/>
  </span></div></td>
  <td align="middle" class="TableRow2"><iframe frameborder="0"  align="left" width="300" height="28" scrolling="No" src="../upload.asp?action=img5"></iframe></td>
  <td align="middle" class="TableRow2"><div align="left">链接地址1：
    <input name="utl55" type="text" size="50" value="<%=rs4("utl55")%>"/>
  </div></td>
</tr>
<TR>
<TD align=middle class=TableRow2></TD>
<TD width="19%" align=middle class=TableRow2>&nbsp;</TD>
<TD width="30%" align=middle class=TableRow2>
  
    <div align="center">
      <input class=button type=submit value=" 修 改 " name=Submit>
      <input class=button type=reset value=" 重 填 " name=Submit23 />
    </div></TD><TD width="43%" align=middle class=TableRow2><div align="left"></div></TD>
</TR>
</FORM>
</TABLE>
<%
end sub
sub modifydb()
Dim rs5,sql5
sql5="select * from flash"
set rs5=server.CreateObject("ADODB.RecordSet")
rs5.Open sql5,conn,1,3
rs5("utl1")=Request.Form("img")
rs5("utl2")=Request.Form("img2")
rs5("utl3")=Request.Form("img3")
rs5("utl4")=Request.Form("img4")
rs5("utl5")=Request.Form("img5")
rs5("utl11")=Request.Form("utl11")
rs5("utl22")=Request.Form("utl22")
rs5("utl33")=Request.Form("utl33")
rs5("utl44")=Request.Form("utl44")
rs5("utl55")=Request.Form("utl55")
rs5.Update
Succeed("<li>修改成功</li>")
response.End
rs5.Close
set rs5=nothing
end sub
%>
</BODY>
</HTML>
<%
set conn=nothing
%>