<%@ page language="C#" autoeventwireup="true" inherits="coupons_view, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/s/include/head.ascx" %>
<%@ Register TagName="tip_bar" TagPrefix="UC" Src="~/s/include/tip_bar.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<!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 runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title><asp:Literal ID="Literal1" runat="server"></asp:Literal>_<%=ZK.config("couponstitle")%><%=ZK.config("sitetitle") %></title>
    <meta name="keywords" content="<%=ZK.config("couponskeywords") %>" />
    <meta name="description" content="<%=ZK.config("couponsdescription") %>" />
    <UC:meta ID="meta1" runat="server" />
    <style type="text/css"> .self_view{padding:20px 10px 0 10px;color:#333;}.self_tip1{border:solid 1px #f4d39e;background-color:#fff9f1;padding:6px 6px 6px 12px;font-size:14px;color:#d05d11;width:783px;margin:0 auto;}.self_title{text-align:center;font-size:14px;padding-top:15px;}.self_copyurl{padding-top:10px;text-align:center;}.self_copyurl_btn{background:url(/skin/public/copyurl_bg.gif) no-repeat 0 0;width:376px;height:27px;border-width:0;font-size:14px;color:#fff;cursor:pointer;}.self_endtime{padding-top:10px;font-size:14px;color:#666;text-align:center;font-weight:bold;}.self_tip2{border:solid 1px #f4d39e;background-color:#fff9f1;padding:6px 6px 6px 12px;font-size:14px;color:#f30;width:783px;margin:0 auto;font-weight:bold;background:url(/s/skin/prompt_small.gif) no-repeat 270px 8px;text-align:center;margin-top:10px;}.self_fun1{margin-top:15px;}.self_fun1 td{font-size:14px;padding:0 5px;}.self_fun1 td{}.self_fun1 td .col1{background:url(/skin/public/print1.gif) no-repeat 0 0;padding-left:20px;}.self_fun1 td a{color:#3366cc;text-decoration:underline;}.self_fun1 td a:hover{color:#f60;}.self_print_tip{border:dotted 1px #69c9fc;background-color:#eef8fe;padding:6px 6px 6px 12px;font-size:14px;color:#333;width:783px;margin:0 auto;margin-top:15px;}.self_print_tip a{color:#f60;}.self_print_tip a:hover{color:#f00;}.self_pic{text-align:center;padding-top:15px;padding-bottom:9px;}.self_pic img{display:block;margin:0 auto;}.self_scissor{background:url(/skin/public/scissor.gif) no-repeat 0 0;height:15px;overflow:hidden;width:783px;margin:0 auto;}.self_content{font-size:14px;line-height:2;color:#333;padding:10px 70px 10px 70px;}.self_content a{color:#36c;}.self_content a:hover{color:#f60;}.self_tip3{border:dotted 1px #ffb9b9;background-color:#ffefef;padding:6px 6px 6px 12px;font-size:14px;color:#333;width:783px;margin:0 auto;}.self_more_faq{background:url(/skin/public/coupons_more_faq_bg.gif) no-repeat 0 0;width:220px;height:62px;margin:15px auto 0 auto;}.self_more_faq div{padding-left:19px;}.self_more_faq div a{font-size:14px;font-weight:bold;color:#fff;height:36px;line-height:36px;text-align:center;width:100%;display:block;}.self_more_faq div a:hover{color:#fff;}.self_fun1 .self_print_btn{background:url(/skin/public/scarlet_but.gif) no-repeat 0 0;width:100px;height:28px;border-width:0;font-size:14px;cursor:pointer;font-weight:bold;line-height:28px;text-align:center;}.self_fun1 .self_print_btn a{display:block;color:#fff;text-decoration:none;}.self_fun1 .self_print_btn a:hover{color:#fff;text-decoration:none;}</style>
    <script type="text/javascript">    
        function copyToClipboard(txt){if(txt=="")txt="<asp:Literal ID="Literal6" runat="server"></asp:Literal>";if(window.clipboardData){window.clipboardData.clearData();window.clipboardData.setData("Text", txt);alert("复制成功！");}else alert("浏览器拒绝该功能！");}
        function SendSMS(obj,id)
        {
            var value=document.getElementById(obj).value.replace(" ","").replace("　","");
            if(value==""){alert("请输入您的手机号！");return;}
            if(!/^[0-9]{11}$/.test(value)){alert("请输入正确的手机号！");return;}
            if(value.substring(0,1)!="1"){alert("请输入正确的手机号！");return;}
            window.location="/coupons/view.aspx?act=sms&tel="+value+"&id="+id;
        }
        function ShowSMS(obj)
        {
            document.getElementById(obj).style.display="";
            return false;
        }
    </script> 
    <style type="text/css">
        .smsbox
        {
        	position:absolute;
        	margin:30px 0 0 0;        	        	
        }
        .smsbox_con1
        {
        	border:solid 1px #ccc;
        	background:#fff;
        	padding:6px 20px 10px 10px;
        }
    </style>   
</head>
<body>
    <asp:Literal ID="sms_template" runat="server" Visible="false">您已成功接收由商家“{user}”发布的活动优惠券“{title}”，请在消费时出示此短信可享受优惠折扣！来自{site}</asp:Literal>
    <div class="wrap">
        <a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />
        <UC:tip_bar ID="tip_bar1" runat="server" />
        <div class="box">
            <div class="c1 mt5">
                <div class="b">
                    <div class="fl"></div>
                    <div class="con" style="width: 760px">查看优惠券</div>
                    <div class="fr" style="width: 130px"><a href="/coupons/">查看更多优惠券</a></div>
                    <div class="clear"></div>
                </div>
                <div class="v">
                    <div class="self_view">
                        <div class="self_tip1"><strong>温馨提示：</strong>如果电子优惠券长时间未显示，或者页面打开速度比较慢，请稍待，或者点击刷新页面重新载入页面。</div>
                        <div class="self_title"><asp:Literal ID="Literal2" runat="server"></asp:Literal></div>
                        <div class="self_copyurl"><input type="button" value="复制标题和链接，发送给您的QQ和MSN好友！" class="self_copyurl_btn" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" onclick="copyToClipboard('')" /></div>
                        <div class="self_endtime"><asp:Literal ID="Literal4" runat="server"></asp:Literal></div>
                        <asp:Panel ID="Panel1" runat="server" CssClass="self_tip2" Visible="false">注意：该优惠券已经过了有效期</asp:Panel>
                        <div class="self_fun1">
                            <table borde="0" cellpadding="0" cellspacing="0" class="wto">
                                <tr>
                                    <td><div class="col1"><a href="/coupons/print.htm?id=<%=strID %>&preview=true" target="_blank">打印预览</a></div></td>
                                    <td><a href="javascript:void(0)" onclick="addFavorite(location.protocol+'//'+location.host,document.title)">收藏本页</a></td>
                                    <td><div class="self_print_btn" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)"><a href="/coupons/print.htm?id=<%=strID %>" target="_blank">打印优惠券</a></div></td>                                  
                                    <td>                                    
                                        <div id="smsbox1" class="smsbox" style="display:none;">
                                            <div class="smsbox_con1">
                                                <strong>请输入您的手机号：</strong>
                                                <div style="padding-top:5px;"><input class="inp4" id="smstel1" maxlength="15" type="text" style="width:200px;" /></div>
                                                <div style="padding-top:8px;"><input type="button" class="but4" value="确定发送" onclick="SendSMS('smstel1','<%=WMencrypt.Base64Encode_Url(strID)%>');" /></div>
                                            </div>
                                        </div>                                    
                                        <div class="self_print_btn" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)"><a href="#" onclick="return ShowSMS('smsbox1');">发送到手机</a></div>
                                    </td>
                                    <td><a href="javascript:void(0)" onclick="window.location=location.href">刷新页面</a></td>
                                    <td><a href="javascript:void(0)" onclick="copyToClipboard('')">复制链接</a></td>
                                </tr>
                            </table>
                        </div>
                        <div class="self_print_tip"><strong>打印说明：</strong>点击“打印优惠券”按钮，只有优惠券会被打印，而页面上的文字不会被打印（查看<a href="/coupons/print.htm?id=<%=strID %>" target="_blank">打印预览</a>），请放心打印！</div>
                        <div class="self_pic"><asp:Literal ID="Literal3" runat="server"></asp:Literal></div>
                        <div class="self_scissor"></div>
                        <div class="self_fun1">
                            <table borde="0" cellpadding="0" cellspacing="0" class="wto">
                                <tr>
                                    <td><div class="col1"><a href="/coupons/print.htm?id=<%=strID %>&preview=true" target="_blank">打印预览</a></div></td>
                                    <td><a href="javascript:void(0)" onclick="addFavorite(location.protocol+'//'+location.host,document.title)">收藏本页</a></td>
                                    <td><div class="self_print_btn" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)"><a href="/coupons/print.htm?id=<%=strID %>" target="_blank">打印优惠券</a></div></td>
                                    <td>                                    
                                        <div id="smsbox2" class="smsbox" style="display:none;">
                                            <div class="smsbox_con1">
                                                <strong>请输入您的手机号：</strong>
                                                <div style="padding-top:5px;"><input class="inp4" id="smstel2" maxlength="15" type="text" style="width:200px;" /></div>
                                                <div style="padding-top:8px;"><input type="button" class="but4" value="确定发送" onclick="SendSMS('smstel2','<%=WMencrypt.Base64Encode_Url(strID)%>');" /></div>
                                            </div>
                                        </div>                                    
                                        <div class="self_print_btn" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)"><a href="#" onclick="return ShowSMS('smsbox2');">发送到手机</a></div>
                                    </td>
                                    <td><a href="javascript:void(0)" onclick="window.location=location.href">刷新页面</a></td>
                                    <td><a href="javascript:void(0)" onclick="copyToClipboard('')">复制链接</a></td>
                                </tr>
                            </table>
                        </div>
                        <div class="self_content"><asp:Literal ID="Literal5" runat="server"></asp:Literal></div>
                        <div class="self_tip3"><strong style="color: #f30">特别说明：</strong> 电子优惠券无论彩色黑白、打印复印、放大缩小，只要在有效期内均可在对应的门店、区域享受相应优惠。</div>
                        <div class="self_more_faq"><div><a href="/news/list1.htm?classid=<%=ZK.config("couponsfaqid") %>" target="_blank">电子优惠券常见问题解答</a></div></div>
                    </div>
                </div>
            </div>
        </div>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
