<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Detail.aspx.cs" Inherits="WstWeb.TemplateFile.Tel010.Product.Detail" %>

<%@ Register Src="../UserControl/LeftCommonClass.ascx" TagName="LeftCommonClass"
    TagPrefix="uc1" %>
<%@ Register Src="../UserControl/WeHead.ascx" TagName="WeHead" TagPrefix="uc2" %>
<%@ Register Src="../UserControl/WebFoot.ascx" TagName="WebFoot" TagPrefix="uc3" %>
<%@ Register Src="../UserControl/LeftLinkUs.ascx" TagName="LeftLinkUs" TagPrefix="uc4" %>
<%@ Register Src="../UserControl/Link.ascx" TagName="Link" TagPrefix="uc5" %>
<!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>
        <%=SeoTitle %></title>
    <meta name="keywords" content="<%=SeoKey %>">
    <meta name="description" content="<%=SeoDesc %>">
     <uc5:Link ID="Link1" runat="server" />
    <script type="text/javascript">
    function SaveData() {

        var person = $.trim($("#txtPerson").val());
        var content = $.trim($("#txtContent").val());
        var tel = $.trim($("#txtTel").val());
        var code = $.trim($("#txtCode").val());
        if (person == "") { alert("联系人不能为空"); return false; }
        if (tel == "") { alert("联系电话不能为空"); return false; }
        if (content == "") { alert("内容不能为空"); return false; }
        if (code == "") { alert("验证码不能为空"); return false; }
        $.ajax({
            type: "POST", //URL方式为POST
            url: "/UserControl/DoPostSaveData.aspx?action=saveproductordermsg",
            data: { Person: person, Content: content, Code: code,Tel:tel,ProductId:<%=_info.Id%> },
            success: function(v_data) {
                if (v_data == "ok") {
                    alert("保存成功");
                    document.getElementById("vimg").src = "/UserControl/VCode.aspx?Rnd=" + Math.random();
                    $("#txtPerson").val("");
                    $("#txtContent").val("");
                }
                else alert("提交成失败");
            }
        });

    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <uc2:WeHead ID="WeHead1" CurrentChannelId="4" runat="server" />
    <div class='clear'>
    </div>
    <div class="wrap">
        <!-- content -->
        <div class='content'>
            <div class="left">
                <div class="second ">
                    <div class="biat">
                        <%=GetChannelConfig(4).ChannelName%></div>
                    <div class="cl100">
                    </div>
                    <div class='cpfl'>
                        <!--读取分类-->
                        <uc1:LeftCommonClass ID="LeftCommonClass1" TableName="ProductClass" runat="server" />
                    </div>
                </div>
                <uc4:LeftLinkUs ID="LeftLinkUs1" runat="server" Visible="false" />
                <!--读取联系我们-->
                <!-- <div class="telall"><img src="/images/rex.gif" /></div>-->
            </div>
            <!-- 右边内容 -->
            <div id='boxhr' class='flort listboxr'>
                <p class='map lineh30'>
                    当前位置： <a href='/'>首页</a> 》<a href='/Product/'><%=GetChannelConfig(4).ChannelName%></a>
                    》<a href='javascript:void(0)'><%=CurrentPageName%></a></p>
                <div class='greenline clear1'>
                </div>
                <div class="detailleft">
                    <div class="preview">
                        <div class="spec-n1">
                            <img src="<%=_info.PicUrl %>" id="imgBigPc" width="260" height="260" /></div>
                    </div>
                    <div class="spec-n2">
                        <div id="preview1">
                            <div id="shower">
                                <ul>
                                    <asp:Literal ID="litPic" runat="server"></asp:Literal>
                                </ul>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                    </div>
                    <script type="text/javascript">
                        function ShowCurrentPic(v_pic, v_obj) {
                            $("#shower li").attr("class", "");
                            $(v_obj.parentNode).attr("class", "Current");
                            $("#imgBigPc").attr("src", v_pic);
                        }
                    </script>
                    <br />
                    <br />
                </div>
                <div class="summary">
                    <h5>
                        <%=_info.Title %></h5>
                    <div class="box">
                        <ul>
                            <li><b>市 场 价：</b> <span class="botline">￥<%=_info.Price %></span></li>
                            <li><b>是否上架：</b> <span class="botline">
                                <%=_info.TopLowCar==1?"已上架":"已下架" %></span></li>
                        </ul>
                    </div>
                </div>
                <div class="clear">
                </div>
                <div class="goods-recommed">
                    <div class="clear">
                    </div>
                    <div id="fenxiang">
                    </div>
                    <div class="clear">
                    </div>
                    <div class="newstex">
                        <%=_info.Content %>
                        <p>
                            &nbsp;</p>
                        <p>
                            &nbsp;</p>
                        <div class="clear10">
                        </div>
                        <asp:Literal ID="LitPreAndNext" runat="server"></asp:Literal>
                        <div class="clear">
                        </div>
                        <br />
                        <strong>相关产品</strong>
                        <div class="clear">
                        </div>
                        <br />
                        <div class="xgnews">
                            <ul>
                                <asp:Repeater ID="RepList" runat="server">
                                    <ItemTemplate>
                                        <li>
                                            <dt><a href="<%#GetUrl(Eval("Id").ToString(),"News")%>" title="<%# Eval("Title") %>"
                                                target="_blank">
                                                <%# CutStr(Eval("Title").ToString(),50) %></a></dt>
                                            <dd>
                                                <%# Convert.ToDateTime(Eval("IssueTime").ToString()).ToString("yyyy-MM-dd")%>
                                            </dd>
                                        </li>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        <li id="Li1" runat="server" visible="<%# bool.Parse((RepList.Items.Count == 0).ToString()) %>">
                                            <dt>暂无数据...</dt>
                                        </li>
                                    </FooterTemplate>
                                </asp:Repeater>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>
                <div class="goodscar">
                    <h6>
                        订购申请单</h6>
                    <table class="Persnalorder" width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td colspan="4" background="images/thbg_03.gif">
                                <span class="color1"><strong class="color4">*</strong></span><strong class="color4">
                                    号为必填项，请认真填写，谢谢合作！ </strong>
                            </td>
                        </tr>
                        <tr>
                            <td width="12%" height="40" bgcolor="#F8F7F6">
                                <span class="color1">* </span>联系人
                            </td>
                            <td width="32%">
                                <input id="txtPerson" type="text" />
                            </td>
                            <td width="15%" bgcolor="#F8F7F6">
                                <span class="color1">*</span> 联系电话
                            </td>
                            <td width="41%">
                                <input id="txtTel" type="text" />
                            </td>
                        </tr>
                        <tr>
                            <td bgcolor="#F8F7F6">
                                <span class="color1">*</span> 订购描述
                            </td>
                            <td colspan="3">
                                <textarea class="set1" id="txtContent"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td bgcolor="#F8F7F6" height="40">
                                <span class="color1">* </span>验证码
                            </td>
                            <td colspan="3">
                                <table class="zxform" width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td width="20%">
                                            <input class="yz" type="text" id="txtCode" />
                                        </td>
                                        <td width="80%" align="left">
                                            <img name="vimg" id="vimg" onclick="javascript:document.all('vimg').src='../UserControl/VCode.aspx?Rnd='+Math.random();" />
                                            <script type="text/javascript">                                                document.getElementById("vimg").src = "../UserControl/VCode.aspx?Rnd=" + Math.random();</script>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td bgcolor="#F8F7F6" height="40">
                                &nbsp;
                            </td>
                            <td colspan="3">
                                <input class="qrtj" name="Input3" value="" type="button" onclick="SaveData()" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class='clear'>
            </div>
        </div>
    </div>
    <uc3:WebFoot ID="WebFoot1" runat="server" />
    <script language="javascript">
        $("#fenxiang").html("<div class=\"jiathis_style\"><span class=\"jiathis_txt\">分享到：</span> <a class=\"jiathis_button_qzone\">QQ空间</a> <a class=\"jiathis_button_tsina\">新浪微博</a> <a class=\"jiathis_button_tqq\">腾讯微博</a><a class=\"jiathis_button_renren\">人人网</a> <a class=\"jiathis_button_kaixin001\">开心网</a><a class=\"jiathis_button_weixin\">微信</a> <a class=\"jiathis_button_cqq\">QQ好友</a> <a href=\"http://www.jiathis.com/share\" class=\"jiathis jiathis_txt jiathis_separator jtico jtico_jiathis\" target=\"_blank\">更多</a> <a class=\"jiathis_counter_style\"></a></div>"); </script>
    <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1374820229297580"
        charset="utf-8"></script>
    </form>
</body>
</html>
