<!--#include file="connn.asp"-->
<!--#include file="config.asp"-->

<html>
<head>
<%
photoid=request("id")
if photoid="" then 
FoundErr=True
	ErrMsg=ErrMsg & "<br><li>无此打折卡</li><br>"
	call WriteErrMsg()
else 
end if
dim rs,sql
set rs=server.createobject("adodb.recordset")
sql = "select * from FOX_xiao where id="&photoid&""
rs.open sql,conn,1,3
rs("llcs")=rs("llcs")+1
rs.update%>
<style type="text/css">
BODY {
	scrollbar-face-color:#DDDDDD;
	scrollbar-highlight-color: #cccccc;
	scrollbar-shadow-color: #CCCCCC;
	scrollbar-3dlight-color: #F5F5F5;
	scrollbar-darkshadow-color: #F5F5F5;
	scrollbar-track-color: #F0F0F0;
	scrollbar-arrow-color: #FFFFFF;
	margin-left: 10px;
	margin-top: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
	background-color: #FFFFFF;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=rs("name")%>--打折卡打印--<%=title%>--<%=web%></title>
</head>

<body leftmargin="0" topmargin="0" marginheight="0">
<%if photoid<>"" then%>
<br>
<table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#E1E1E1">
  <tr>
    <td bgcolor="#FFFFFF">
      <table width="137" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="28" align="left" bgcolor="#FFFFFF"><table width="100%" height="10"  border="0" cellpadding="10" cellspacing="0" bgcolor="#bcbcbc">
              <tr>
                <td bgcolor="#FFFFFF" align=center>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td bgcolor="#800000" height="25"><p>
						<font style='FONT-SIZE: 12px' color='#FFFF00'><%=rs("name")%>的商家优惠折扣券</font></p></td>
                    </tr>
                  </table>
                  <%if rs.eof then
response.write "没有找到指定图片!"
end if%><%

	response.write "<img name='images1'  src='" & rs("foxq") & "' border='0'  id='aa' id='aa' alt='关闭' onClick='window.close()' style='cursor:hand'>"

%><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td bgcolor="#800000" align="right" height="25"><p>
						<font style='FONT-SIZE: 12px' color='#FFFF00'>[<%=rs("name")%>]与[<%=title%>]邀请您光临----热线电话:<%=rs("telll")%></font></p></td>
                    </tr>
                    <tr>
                      <td bgcolor="#800000" align="right" height="25">
<OBJECT id="WebBrowser" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" 
VIEWASTEXT> 
</OBJECT> 
<input onclick="document.all.WebBrowser.ExecWB(6,6)" type="button" value="直接打印"> 
<input onclick="document.all.WebBrowser.ExecWB(7,1)" type="button" value="打印预览">                      </td>
                    </tr>
                  </table></td>
              </tr>
          </table></td>
        </tr>
      </table>
      </td>
  </tr>
</table><br><%end if%>
</body>
</html>
<%
rs.close
set rs=nothing
%></body></html>