<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/Conn_User.asp"-->
<%if Request.Cookies("asp163")("UserName")="" or request("UserID")="" then 
  response.Redirect "User_Login.asp"
  else
  end if%>


<SCRIPT language=javascript1.2>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT>
<SCRIPT language=javascript>

function ConfirmDel()
{
   if(confirm("确定要删除吗？一旦删除将不能恢复！"))
     return true;
   else
     return false;
	 
}

</SCRIPT>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/Mpage_main.css" rel="stylesheet" type="text/css">
<link href="css/Mpage_video.css" rel="stylesheet" type="text/css">

</head>

<body>
<div id="video_title"><img src="../page_style/icon/bullet_03.gif"> 我的模版列表</DIV>

  <%
usernamed=Request.Cookies("asp163")("UserName")
set rs=server.createobject("adodb.recordset")
sql="select * from [bg] where username='"&usernamed&"' order by id desc"
rs.open sql,Conn_User,1,3%>
<%if rs.eof then%><br/> <br/><br/><%else%>
        <table  border="0" cellpadding="6" cellspacing="0">
        <tr  bgcolor="#FFFFFF">
          <%i=0%>
          <%do while not rs.eof%>
<table border="0" align="center" cellpadding="0" cellspacing="0">

<DIV id=neirong>
<DIV > <fieldset>  
<legend><a href=mbdel.asp?bgid=<%=rs("bgid")%>&userid=<%=Trim(Request("userid"))%> onClick="return ConfirmDel();"><img src="imgs/pic/btn_scrip_delete.gif" border="0"></a> &nbsp; <a href=mbsave.asp?bgid=<%=rs("bgid")%>&userid=<%=Trim(Request("userid"))%>><img src="IMGS/save_button.gif" border="0"></a> </legend> <a href="view.asp?bgid=<%=rs("bgid")%>" target="_blank"><img src="bg/<%=rs("bgid")%>.jpg"width=400 height=180 border="0"> </a> </A> 
</fieldset>
</LI><BR>
</DIV></DIV> 
                  <%i=i+1%>
          <%if i mod 5=0 then%>
        <%else%>
        <%end if%>
        <%rs.movenext
		loop
		rs.close
		set rs=nothing%>

	  <%end if%>        





  
</body>

</html>
