<head>
  <meta http-equiv="x-ua-compatible" content="ie=7" /><meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  <link type="text/css" rel="Stylesheet" href='/tpl/a11/style/css/index-green2.css'
  />
  <link type="text/css" rel="Stylesheet" href='/tpl/a11/style/css/qzoom.css'
  />
  <title>
    {anxinMall:field.prodname} - {anxinMall:global.cfg_sitename}
  </title>
  <meta name=keywords content="{anxinMall:field.prodname} - {anxinMall:global.cfg_sitename}">
  <meta name="description" content="{anxinMall:field.prodname} - {anxinMall:global.cfg_sitename}">
</head>
<body>
  <!--#include file="../../../tpl/a11/top.tpl"-->
  <div id="content">
    <div id="hd">
      <span id="UserDefinedColumn1">
        <!--#include file="../../../tpl/a11/menu.tpl"-->
        <script type="text/javascript">
          $(function() {
            var stab = '';
            $("#stab_" + stab).addClass("cur");
          });
        </script>
      </span>
    </div>
    <div class="warp clearfix">
      <div class="main">
        <span id="ProductDetail">
          <script type="text/javascript">
            var imgmultbf = ""; //多图备份
            $(document).ready(function() {
              $(".b_colse").click(function() {
                $("#loginbox").hide();
              });
              $(".restrict ul li").not(".litit").each(function(i) {
                $(this).click(function() {
                  $(this).siblings().not(".litit").children("img").remove();
                  $(this).siblings().not(".litit").removeAttr("class");
                  $(this).attr("class", "liselect");
                  $(this).append($("<img class=\"sico\" src=\"Themes/Skin_Default/Images/ii1.gif\" />"));
                  $("#divnoSelect").hide();
                  $("#divSelect").show();
                  var spenames = "";
                  var isselect = 0; //规格选择的个数
                  var prodspec = ""; //选择的规格值（所有已勾选的规格值）
                  var nowprodspec = ""; //当前选择的规格值
                  var prodguid = $("#ProductDetail_ctl00_HiddenFieldGuid").val(); //商品guid
                  var memloginid = $("#ProductDetail_ctl00_hidMemloginId").val(); //会员loginid
                  if (imgmultbf == "") {
                    imgmultbf = $("#tb_gallery").html(); //多图备份
                  }
                  //开始处理多图
                  nowprodspec = $(this).attr("spc");
                  var specvx = $(this).attr("spcv");
                  params = {
                    "prodguid": prodguid,
                    "yz": "shopnum1ntbl",
                    "loginid": memloginid,
                    "spec": specvx,
                    "type": "img"
                  };
                  $.getJSON("/Main/Api/shopproductspec.ashx", params,
                  function(json) {
                    if (json[0].imgsrc != null) {
                      //绑定选择规格后的大图
                      $("#ProductImgurl").attr("src", "" + json[0].imgsrc + "");
                      $("#ProductImgurl").attr("jqimg", "" + json[0].imgsrc.replace("s_", "") + "");
                      //绑定属性的缩略图
                      $(".list-h li").remove();
                      $.each(json,
                      function(i) {
                        if (json[i].imgsrc != "") {
                          $(".list-h").append($("<li class=\"tb_diply\"></li>").append($("<div class=\"tb-pic tb-stn\"></div>").append($("<a></a>").append($("<img />").attr("src", json[i].imgsrc)))))
                        }
                      });
                      //给缩略图加宽度
                      //var width_l=parseInt(json.length)*60;
                    } else {
                      $("#tb_gallery").html(imgmultbf);
                    }
                    $("#tb_gallery img").bind("mouseover",
                    function() {
                      var src = $(this).attr("lang");
                      $("#spec-n1 img").eq(0).attr({
                        src: src.replace("\/n5\/", "\/n1\/"),
                        jqimg: src.replace("\/n5\/", "\/n0\/")
                      });
                      $(this).parent().parent().parent().addClass("tb_selected");
                    }).bind("mouseout",
                    function() {
                      $(this).parent().parent().parent().removeClass("tb_selected");
                    });
                  });
                  //处理多图结束
                });
              })
            });
          </script>
          <input type="hidden" id="hidgotoId" />
          <div class="detail">
            <div class="DetailImage">
              <h1 class="title">
                <span>
                  <span id="ProductDetail_ctl00_LabelName">
                    {anxinMall:field.prodname}
                  </span>
                </span>
              </h1>
              <div class="content">
                <!--预览图片-->
                <div class="ProductImg fl">
                  <div id="preview">
                    <div id="spec-n1" class="jqzoom">
                      <img id="ProductImgurl" src='{anxinMall:field.thumb}' onerror="javascript:this.src=''"
                      style="width:300px;height:300px;" jqimg='{anxinMall:field.thumb}' />
                    </div>
                    <div class="clear">
                    </div>
                    <div id="spec-n5" class="tb_thumb">
                      <div id="tb_gallery" class="tb_gallery">
                        <ul class="list-h">
                          {anxinMall:mythumb $sql=select top 5 id,infoid,filename,userid from [anxinMall_uploadfile] where infoid={anxinMall:field.prodid} order by id desc $cache=0}
                          <li class="tb_diply">
                            <div class="tb-pic tb-stn">
                              <a>
                                <img src="[mythumb:filename]" id="ProductDetail_ctl00_RepeaterDateImage_ctl0[mythumb:i]_Img1"
                                height="56" width="56" onerror="javascript:this.src=''" lang="[mythumb:filename]"
                                />
                              </a>
                            </div>
                          </li>
                          {/anxinMall:mythumb}
                        </ul>
                      </div>
                    </div>
                  </div>
                </div>
            <!--购买详情-->

		<!--#include file="../../../tpl/a11/othershuxing.tpl"-->


            </div>
                <div class="clear">
                </div>
              </div>
            </div>
          </div>
          <!--搭配套餐-->
          <!--搭配套餐-->
          </span>
	</div>
      <!--left is start-->
      <div class="sidebar leftn_hot">
        <!--#include file="../../../tpl/a11/leftshopinfo.tpl"-->
        <span id="ShopCollect">
          <p class="ks_img">
            <input type="image" name="ShopCollect" id="ShopCollect" onclick="window.location='/user/click.asp?action=shoucangshop&shopid={anxinMall:field.id}'"
            src="/tpl/a11/style/images/sucg.jpg" border="0" />
          </p>
        </span>
      </div>




	<div class="main2">
          <!-- tab 切换 -->
          <div class="tab_qh">
            <ul>
              <!-- 注意这里是点了以后的样式,恢复后的就是默认的请看样式看tab_qh ul li -->
              <li id="current1" class="selected">
                <a onclick="changeTab(4,1);">
                  商品详细
                </a>
              </li>
              <li id="current2" style="display:none;">
                <a onclick="changeTab(4,2);">
                  商品评论
                </a>
              </li>
              <li id="current3" style="display:none;">
                <a onclick="changeTab(4,3);">
                  订单记录
                </a>
              </li>
              <li id="current2" style="display:none;">
                <a onclick="changeTab(4,4);">
                  在线留言
                </a>
              </li>
              <li style="width:130px;padding-top:5px;">
                <a class="bshareDiv" style="display:inline-block" href="http://www.bshare.cn/share">
                  分享按钮
                </a>
                <script type="text/javascript" charset="gbk" src="/tpl/a11/style/js/buttonLite.js">
                </script>
              </li>
            </ul>
          </div>
          <div class="content tab_con" id="content1" style="display:block;">
            <!--商品详细-->
            <div class="aBox11 clearfix">
              <div class="content">
                <span id="ProductProp_V82">
                  <script type="text/javascript" language="javascript">
                    $(function() {
                      try {
                        if ($(".ProductProp").text().trim().length < 5) {
                          $("#ProductProp_V82 .aBox11").hide();
                        }
                      } catch(e) {}
                    });
                  </script>
                  <!--
		  <div class="aBox11 clearfix" style="border-top:1px solid #D3D3D3;">
                    <div class="content">
                      <div class="ProductProp clearfix">
                      </div>
                    </div>
                  </div>

                  <div id="ProductProp_V82_ctl00_divInstrunction"></div>
		  -->
                  <div id="ProductProp_V82_ctl00_divDetials">
                    <div id="attributes" class="attributes" style="color:#404040;font-family:tahoma, arial, 宋体;font-size:12px;font-style:normal;font-weight:normal;text-align:start;background-color:#FFFFFF;">
                      <div class="attributes-list" id="J_AttrList" style="border:1px solid #E6E6E6;background-color:#F6F6F6;">
                      </div>
                    </div>
                    <div id="description" class="J_DetailSection tshop-psm tshop-psm-bdetaildes"
                    style="padding:0px;color:#404040;font-family:tahoma, arial, 宋体;font-size:12px;font-style:normal;font-weight:normal;text-align:start;background-color:#FFFFFF;">
                      <div class="content ke-post" id="J_ItemDesc" style="font-style:normal;font-weight:normal;font-size:14px;font-family:tahoma, arial, 宋体, sans-serif;padding:10px 0px 0px;">
                        <p>
                          {anxinMall:field.mycontent}
                        </p>
                      </div>
                    </div>
                  </div>
                </span>
                <div id="tx2" style="display:none;">
                  <table width="650" align="center" style="margin-top:30px;">
                    <tr>
                      <th align="center" width="70" height="42">
                        <b>
                          顾客评级
                        </b>
                        </td>
                        <th align="center" width="60">
                          <b>
                            用户号
                          </b>
                          </td>
                          <th align="center" width="180">
                            <b>
                              评论标题
                            </b>
                            </td>
                            <th align="center" width="260">
                              <b>
                                评论内容
                              </b>
                              </td>
                              <th align="center" width="80">
                                <b>
                                  评论时间
                                </b>
                                </td>
                    </tr>
                    {anxinMall:pinglun $sql=select top 10 * from [anxinMall_pinglun] where prodid={anxinMall:field.prodid} order by pinglunid desc $cache=0}
                    <tr>
                      <td style="height:32px;border-bottom:1px #ccc dashed;">
                        {if:[pinglun:pingji]=1}
                        <img src='/tpl/a01/style/images/gds_dp2.png' />
                        &nbsp;差评{end if} {if:[pinglun:pingji]=2}
                        <img src='/tpl/a01/style/images/gds_dp1.png' />
                        &nbsp;中评{end if} {if:[pinglun:pingji]=3}
                        <img src='/tpl/a01/style/images/gds_dp1.png' />
                        &nbsp;中评{end if} {if:[pinglun:pingji]=4}
                        <img src='/tpl/a01/style/images/gds_dp1.png' />
                        &nbsp;中评{end if} {if:[pinglun:pingji]=5}
                        <img src='/tpl/a01/style/images/gds_dp.png' />
                        &nbsp;好评{end if}
                      </td>
                      <td style="height:32px;border-bottom:1px #ccc dashed;">
                        [pinglun:pinglunname]
                      </td>
                      <td style="height:32px;border-bottom:1px #ccc dashed;">
                        [pinglun:pingluntitle]
                      </td>
                      <td style="height:32px;border-bottom:1px #ccc dashed;">
                        [pinglun:pingluncontent]
                      </td>
                      <td style="height:32px;border-bottom:1px #ccc dashed;">
                        [pinglun:pinglundate]
                      </td>
                    </tr>
                    {/anxinMall:pinglun}
                  </table>
                </div>
                <!--商品评论-->
                <div id="tx3">
                </div>
                <div id="tx4" style="display:none;">
                  <span id="ProductConsultListAdd">
                    <div id="MessageBarod" class="amatera">
                      <h2>
                        <span>
                          在线留言
                        </span>
                      </h2>
                      <div class="dwarfe">
                        <table width="100%" border="0" cellpadding="10">
                          <tr style="display: none;">
                            <td align="right">
                            </td>
                            <td>
                            </td>
                          </tr>
                          <form action="/tpl/gbookSave.asp?id={anxinMall:field.userid}" method="post"
                          name="form1" id="form1" onsubmit="return emailt()">
                            <input type="hidden" name="shjiaid" value="{anxinMall:field.id}" />
                            <tr>
                              <td align="right">
                                <label class="spenel">
                                  留言标题：
                                </label>
                              </td>
                              <td align="left">
                                <input name="fksubject" type="text" maxlength="50" id="fksubject" size="30"
                                class="inpt_cont" />
                                <span id="MessageBoardAdd_ctl00_Label1">
                                  <font color="Red">
                                    *
                                  </font>
                                </span>
                              </td>
                            </tr>
                            <tr>
                              <td width="23%" height="25" align="right" bgcolor="#FFFFFF">
                                姓名：
                              </td>
                              <td width="77%" height="-6" align="left" bgcolor="#FFFFFF">
                                <font>
                                  <input type="text" name="fkusername" size="30" maxlength="36" value=""
                                  class="inpt_cont" />
                                </font>
                                *
                              </td>
                            </tr>
                            <tr>
                              <td width="23%" height="25" align="right" bgcolor="#FFFFFF">
                                电话：
                              </td>
                              <td width="77%" height="-6" align="left" bgcolor="#FFFFFF">
                                <font>
                                  <input type="text" name="fktel" size="30" maxlength="36" value="" class="inpt_cont"
                                  />
                                </font>
                                *
                              </td>
                            </tr>
                            <tr>
                              <td width="23%" height="25" align="right" bgcolor="#FFFFFF">
                                QQ：
                              </td>
                              <td width="77%" height="-6" align="left" bgcolor="#FFFFFF">
                                <font>
                                  <input type="text" name="fkemail" size="30" maxlength="36" value="" class="inpt_cont"
                                  />
                                </font>
                                *
                              </td>
                            </tr>
                            <tr>
                              <td align="right" valign="top">
                                <label class="spenel">
                                  留言内容：
                                </label>
                              </td>
                              <td align="left">
                                <textarea name="fkcontent" rows="10" cols="45" id="fkcontent">
                                </textarea>
                              </td>
                            </tr>
                            <tr id="MessageBoardAdd_ctl00_VerifyCode">
                              <td align="right">
                                验证码：
                              </td>
                              <td align="left">
                                <input name="checkcode" id="checkcode" class="inpt_cont" type="input"
                                />
                                <img src="../include/anxinMall.checkcode.asp" onclick="this.src='../include/anxinMall.checkcode.asp?rnd='+Math.random();"
                                alt="点击刷新验证码" class="checkcode" />
                                <a style="cursor: pointer">
                                  看不清楚?点一下验证码
                                </a>
                              </td>
                            </tr>
                            <tr>
                              <td width="23%" height="25" align="right" bgcolor="#FFFFFF">
                              </td>
                              <td width="77%" height="-6" align="left" bgcolor="#FFFFFF">
                                <input type="submit" name="Save" value="提交留言" onclick=" return  checkSumbit();"
                                id="Save" class="bnt1" />
                                <font>
                                </font>
                                *
                              </td>
                            </tr>
                          </form>
                        </table>
                      </div>
                    </div>
                  </span>
                </div>
              </div>
            </div>
          </div>
          <div class="content tab_con" id="content2">
            <!--商品评论-->
          </div>
          <div class="content tab_con" id="content3">
            <!--订单记录-->
          </div>
          <div class="content  tab_con" id="content4">
            <!-- 在线留言 -->
          </div>
      </div>
    </div>
  </div>
  <!--foot start-->
  <!--#include file="../../../tpl/a11/footer.tpl"-->
  <script type="text/javascript" language="javascript" src="/tpl/a11/style/js/zoom.js">
  </script>
  <script type="text/javascript" language="javascript" src="/tpl/a11/style/js/ShopDetail.js">
  </script>
</body>

</html>