<!--#include file="inc/conn.asp"--> 
<!--#include file=usercookies.asp-->
<!--#include file="inc/jle_sub.asp"-->
<%
'    @@@@@@ www.jl-e.com @@@@@@@@@@@@@@@@@
'   @                                        @
'  @                                          @
'  @      吉林信息网，服务百姓生活      @
'  @                                          @
'   @                                        @
'    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
username=request.cookies("jle")("username")
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select * from [jle_shop] where username='"&username&"'" 
rs.open sql,conn,1,1
if rs.eof then
response.write "<br>"
response.write "<li>参数错误！没有该用户信息"
response.end
end if
mb=trim(rs("mb"))
rs.close
set rs=nothing

username=request.cookies("jle")("username")
if request("jle")="chk" then
set rs=server.createobject("adodb.recordset")
sql="select * from [jle_shop] where username='"&username&"'" 
rs.open sql,conn,1,3
rs("mb")=trim(request("mb"))
rs.update
rs.close
set rs=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('模板设置成功！');history.back();</script>"
response .end
else
%>
<!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>
<title><%=title%>-模板管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="Keywords"  content="<%=metakey%>" />
<meta name="Description" content="<%=metades%>" />
<link rel="icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript">
function DrawImage(ImgD){
   var image=new Image();
   image.src=ImgD.src;
   if(image.width>0 && image.height>0){
    flag=true;
    if(image.width/image.height>= 250/250){
     if(image.width>250){  
     ImgD.width=250;
     ImgD.height=(image.height*250)/image.width;
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }

     }
    else{
     if(image.height>250){  
     ImgD.height=250;
     ImgD.width=(image.width*250)/image.height;     
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }

     }
    }
   /*else{
    ImgD.src="";
    ImgD.alt=""
    }*/
   }
</script>

</head>
<body>
<%call top()%><div id="Fmain">


<div id="Uleft">
  <div id=FFTit class=F12bold>会员管理中心</div><div id=FFContent><div Class='FFdiv'>
  <!--#include file=shop_userleft.asp-->
  </div></div></div>
 <div id="Uright"> 
  <div id=FFTit class=F12bold>模板管理</div><div id=FFContent><div Class='FFdiv'>

<form name="form1" method="POST" action="?jle=chk">
<table width="100%" cellspacing="0">
<tr>
<td width="25%" align="center">
<a target="_blank" href="shop/images/1.gif"><img border="0" src="shop/images/1.gif" width="43" height="51" onload="javascript:DrawImage(this);"></a></td>
<td width="25%" align="center"><a target="_blank" href="shop/images/2.gif"><img border="0" src="shop/images/2.gif" width="43" height="51" onload="javascript:DrawImage(this);" /></a></td>
<td width="25%" align="center">
  <a target="_blank" href="shop/images/3.gif"><img border="0" src="shop/images/3.gif" width="43" height="51" onload="javascript:DrawImage(this);"></a>
</td>
</tr>
<tr>
<td align="center">
<b>点击图片可放大
</b>
</td>
<td align="center">
<b>点击图片可放大</b></td>
<td align="center">
  <b>点击图片可放大</b></td>
</tr>
<tr>
<td align="center">
<input type="radio" value="1" <%if mb=1 then%>checked<%end if%> name="mb">选用此模板
</td>
<td align="center">
<input type="radio" value="2" <%if mb=2 then%>checked<%end if%> name="mb">选用此模板
</td>
<td align="center">
  <input type="radio" value="3" <%if mb=3 then%>checked<%end if%> name="mb">选用此模板
</td>
</tr>
<tr>
<td width="25%" align="center"><a target="_blank" href="shop/images/4.gif"><img border="0" src="shop/images/4.gif" width="43" height="51" onload="javascript:DrawImage(this);" /></a></td>
<td width="25%" align="center"><a target="_blank" href="shop/images/5.gif"><img border="0" src="shop/images/5.gif" width="43" height="51" onload="javascript:DrawImage(this);" /></a></td>
<td width="25%" align="center"><a target="_blank" href="shop/images/6.gif"><img border="0" src="shop/images/6.gif" width="43" height="51" onload="javascript:DrawImage(this);" /></a></td>
</tr>
<tr>
<td align="center">
<b>点击图片可放大
</b>
</td>
<td align="center"><b>点击图片可放大
</b></td>
<td align="center"><b>点击图片可放大
</b></td>
</tr>
<tr>
<td align="center">
<input type="radio" value="4" <%if mb=4 then%>checked<%end if%> name="mb">选用此模板
</td>
<td align="center"><input type="radio" value="5" <%if mb=5 then%>checked<%end if%> name="mb">选用此模板</td>
<td align="center"><input type="radio" value="6" <%if mb=6 then%>checked<%end if%> name="mb">选用此模板</td>
</tr>

<tr>
  <td width="25%" align="center"><a target="_blank" href="shop/images/7.gif"><img border="0" src="shop/images/7.gif" width="43" height="51" onload="javascript:DrawImage(this);" /></a></td>
<td width="25%" align="center"><a target="_blank" href="shop/images/8.gif"><img border="0" src="shop/images/8.gif" width="43" height="51" onload="javascript:DrawImage(this);" /></a></td>
<td width="25%" align="center"><a target="_blank" href="shop/images/9.gif"><img border="0" src="shop/images/9.gif" width="43" height="51" onload="javascript:DrawImage(this);" /></a></td>
</tr>
<tr>
<td align="center">
<b>点击图片可放大
</b>
</td>
<td align="center"><b>点击图片可放大
</b></td>
<td align="center"><b>点击图片可放大
</b></td>
</tr>
<tr>
<td align="center">
<input type="radio" value="7" <%if mb=7 then%>checked<%end if%> name="mb">选用此模板
</td>
<td align="center"><input type="radio" value="8" <%if mb=8 then%>checked<%end if%> name="mb">选用此模板</td>
<td align="center"><input type="radio" value="9" <%if mb=9 then%>checked<%end if%> name="mb">选用此模板</td></tr>
<tr>
<td colspan="3" align="center">
　<br>
<input type="submit" value="提交模板" name="B1" style="height: 28">
<br>
</td>
</tr>
</table>
</form>
</div></div></div>
 <br style="clear:both;" />
</div>


<%
end if
call bottom()
%>



</body>
</html>