<%@ Page Language="C#" Inherits="TopWinCMS.BLL.PageFactory.Pages.ProductShow" EnableSessionState="false"
    EnableViewState="false" %>

<%@ Import Namespace="TopWinCMS.BLL.PageFactory" %>
<!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>[PageTitle]</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="{StylePath}/Base.css" rel="stylesheet" type="text/css" media="all" />
    <script language="javascript" type="text/javascript" src="{SysPath}/JS/TopWinCMS.js"></script>

    <script language="javascript" type="text/javascript" src="{SysPath}/JS/Ajax/Ajax.js"></script>

    <script language="javascript" type="text/javascript" src="{SysPath}/JS/Ajax/MemberLoginBar.js"></script>

    <script language="javascript" type="text/javascript" src="{SysPath}/JS/Ajax/ShowProductHits.js"></script>

    <script language="javascript" type="text/javascript" src="{SysPath}/JS/Ajax/ShowProductContent.js"></script>

    <script language="javascript" type="text/javascript" src="{SysPath}/JS/Ajax/PostComment.js"></script>

    <script language="javascript" type="text/javascript" src="{SysPath}/JS/Ajax/Digo.js"></script>


    <script language="javascript" type="text/javascript">
 
      	var ModelID ="@ModelID@";
      	var ProductID = "@ProductID@";
       	var ContentID = "@ProductID@";     	

	</script>

</head>
<body>
    <!--#include file="../Header.aspx"-->

    <script language="javascript" type="text/javascript">
Show_Tab(3);
    </script>

    <div class="wherePath">
        <img src='{StylePath}/Images/arrow.gif'>
        您现在的位置： {Path} → @ProductName@［正文］</div>
    <div style="height: 4px">
        &nbsp;</div>
    <div class="mainDiv" align="center">
        <div class="Left">
        <!--#include file="../LoginPanel.inc"-->
            <div class="divPanel_title">
                <div class="left">
                    &nbsp;</div>
                <div class="middle">
                    热 门 产 品</div>
                <div class="right">
                    &nbsp;</div>
            </div>
            <div class="divPanel_Content"
                onmouseout="this.className='divPanel_Content'">
                <div class="divPanel">
                    <ul>
                        <TW:HotProduct rows="10" length="32">
            <ItemTemplet>
              <li><a href="@StaticURL@" title="@ProductName@">@ShortTitle@</a></li>
            </ItemTemplet>
            <EmptyTemplet>没有产品</EmptyTemplet>
          </TW:HotProduct>
                    </ul>
                </div>
            </div>
            <div class="divPanel_title">
                <div class="left">
                    &nbsp;</div>
                <div class="middle">
                    相 关 产 品</div>
                <div class="right">
                    &nbsp;</div>
            </div>
            <div class="divPanel_Content" onmouseout="this.className='divPanel_Content'">
                <div class="divPanel">
                    <ul>
                        <TW:XGContent rows="10" length="32" key="@Key@" modelid="@ModelID@">
            <ItemTemplet>
              <li><a href="@StaticURL@" title="@ProductName@">@ShortTitle@</a></li>
            </ItemTemplet>
            <EmptyTemplet>没有产品</EmptyTemplet>
          </TW:XGContent>
                    </ul>
                </div>
            </div>
          <div class="divPanel_title">
          <div class="left">&nbsp;</div>
          <div class="middle">Tags(标签)</div>
          <div class="right">&nbsp;</div>
      </div>
      <div class="divPanel_Content">
          <div class="divPanel">
              <ul>
                <TW:ContentTags>
         <ItemTemplet>
        <li><a href="{SysPath}/Tags/TagsList.aspx?ModelID=@ModelID@&ID=@ID@">@TagName@ (@ViewCounts@)</a></li>
          </ItemTemplet>
        </TW:ContentTags>
              </ul>
          </div>
      </div>
            
        </div>
        <div class="Right">
            <div class="ProductInfo">
            
       <table  style="table-layout:fixed;word-break:break-all; word-wrap: break-word" cellspacing="0" cellpadding="3" width="100%" align="center" border="0">
      <tbody>
        <tr>
          <td width="53" height="32" align="center" background="/Images/demo_53.gif"><b><img src="/Images/demo_51.gif" width="30" height="32" /></b></td>
          <td width="650" align="center" background="/Images/demo_53.gif"><b>@ProductName@</b></td>
        </tr>
        <tr>
          <td colspan="2" valign="top"><table class="TABLEBG" cellspacing="1" cellpadding="1" width="100%" border="0">
              <tbody>
                <tr>
                  <td width="19%" bgcolor="#ffffff" rowspan="6"><table cellspacing="0" cellpadding="0" border="0">
                      <tbody>
                        <tr>
                          <td><table 
                  style="BORDER-RIGHT: #eeeeee 3px solid; BORDER-TOP: #eeeeee 3px solid; BORDER-LEFT: #eeeeee 3px solid; BORDER-BOTTOM: #eeeeee 3px solid" 
                  height="104" cellspacing="0" cellpadding="0" width="140">
                              <tbody>
                                <tr>
                                  <td 
                      style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid"><!--#缩略图-->
                                    <img height="180" src="@PicUrl@" width="240" border="0" onerror="this.src='/Images/NoPic.jpg'" alt="" />
                                    <div style="float:left; margin-top:4px; margin-left:10px;"> <A href="@BigPicUrl@" target="_blank">放大图片</A></div>　　　　<div style="float:right; margin-top:4px; margin-right:10px"> <A href="#">收藏此信息</A></div>
            </td>
                                </tr>
                              </tbody>
                            </table></td>
                        </tr>
                      </tbody>
                    </table></td>
                  <td height="24" bgcolor="#ffffff">　<b>　名　称：</b><b>@ProductName@</b></td>
                </tr>
                <tr>
                  <td height="24" bgcolor="#f8f8f8">　<b>产品商标：</b>@Brand@</td>
                </tr>
                <tr>
                  <td height="24" bgcolor="#ffffff">　<b>产品规格：</b>@Standard@ </td>
                </tr>
                <tr>
                  <td height="24" bgcolor="#f8f8f8">　<b>产品价格：</b>@ProductPrice@</td>
                </tr>
                <tr>
                  <td height="24" bgcolor="#ffffff">　<strong>产品包装：</strong>@Packaging@</td>
                </tr>
                <tr>
                  <td height="24" bgcolor="#f8f8f8">　<strong>发布时间：</strong>@UpdateTime@</td>
                </tr>
                
              
              </tbody>
            </table>
            <br />
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="11%" align="center" background="/Images/demo_53.gif"><img src="/Images/demo_57.gif" width="50" height="32" /></td>
                <td width="89%" background="/Images/demo_53.gif">&nbsp;<strong>简介：</strong></td>
              </tr>
              <tr>
                <td colspan="2"><span style="FONT-SIZE: 12px; TEXT-INDENT: 2em; LINE-HEIGHT: 170%; FONT-FAMILY: 宋体">&nbsp;<br />
                  @Content@<script language="javascript" type="text/javascript">
                               //Ajax显示产品，只有是含权限的产品才真正起作用

                               ShowContent();
                </script>
                </span></td>
              </tr>
            </table>
            <br />
            <br />
            <br />
          <br /></td>
        </tr>
        <tr>
          <td colspan="2"></td>
        </tr>
      </tbody>
    </table>
        
            
            <!--wwwwwwwww
                <div class="ProductTitle">
                    @ProductName@</div>
                <div style="height: 20px; background-image: url({SysPath}/Images/bg_dot.gif)">
                </div>
                <div style="text-align: right;">
                    ［点击数：<font color="#0066FF"><span
                        id="hist">数据正在加载...</span></font>

                    <script language="javascript" type="text/javascript">
      //Ajax显示点击数
ShowProductHits();
                    </script>-->

     
                 
                <div class="Digo" id="vote_content">
                    <div class="ampReview" onclick="Post_Digo(@ModelID@,@ProductID@,'Good');">
                        <span id="goodnum" style="font: 24px; color: #c00">0</span>
                        <br />
                        票<br />
                        顶一下 
                    </div>
                    <div class="ampReview" style="margin-left: 0px" onclick="Post_Digo(@ModelID@,@ProductID@,'Bad');">
                        <span id="badnum" style="font: 24px; color: #090">0</span>
                        <br />
                        票<br />
                         踩一下 
                    </div>
                </div>
                <script language="javascript" type="text/javascript">GetDigo();</script>
   
                <div style="height: 20px; background-image: url({SysPath}/Images/bg_dot.gif)">
                </div>
                <div>
                    <div style="float: left">
                        上一个：@UP@<br />
                        下一个：@Down@</div>
                    <div style="float: right; text-align: right">
                        <img src="{SysPath}/Images/Editer.gif" width="20" height="20" align="absmiddle" />
                        @Editor@ <a href="javascript:window.print()">
                            <img height="20" src="{SysPath}/Images/print.gif" width="20" style="vertical-align: middle"
                                alt="" />
                            打印本页</a> <a href="javascript:window.close()">
                                <img height="20" src="{SysPath}/Images/pageclose.gif" width="20" style="vertical-align: middle"
                                    alt="" />
                                关闭窗口</a></div>
                </div>
            </div>
            <br />
            <table width="100%" border="0">
                <tr>
                    <td width="358" height="30" background="{SysPath}/Images/Evaluating.gif">
                        &nbsp;&nbsp;&nbsp;<b><font color="#ffffff">&nbsp; </font>产 品 评 论</b>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table cellspacing="1" cellpadding="2" bgcolor="#cccccc" border="0" width="100%">
                            <tr>
                                <td width="12%" align="center" bgcolor="#efefef">
                                    <input name="button" type="button" onclick="CommentUI();" value="发表评论" class="btn" />
                                </td>
                                <td width="13%" align="center" nowrap="nowrap" bgcolor="#efefef">
                                    评论人
                                </td>
                                <td width="55%" align="center" nowrap="nowrap" bgcolor="#efefef">
                                    <a href="{SysPath}/Comment/CommentList.aspx?ModelID=@ModelID@&ContentID=@ProductID@">
                                        查看评论</a>
                                </td>
                                <td align="center" bgcolor="#efefef" width="20%">
                                    发表时间
                                </td>
                            </tr>
                            <tr id="spanComment" bgcolor="white" style="display: none">
                                <td colspan="4">
                                    <input name="ContentID" id="ContentID" type="hidden" value="@ProductID@" />
                                    <input name="ModelID" id="ModelID" type="hidden" value="@ModelID@" />
                                    &nbsp;&nbsp;&nbsp;*笔 名：
                                    <input title="笔名不能为空！" maxlength="20" name="Name" id="Name" />
                                    评分：<select id="Score" name="Score">
                                        <option value="100">100</option>
                                        <option value="80">80</option>
                                        <option value="60" selected>60</option>
                                        <option value="40">40</option>
                                        <option value="20">20</option>
                                        <option value="0">0</option>
                                    </select>
                                    分
                                    <br />
                                    *评论内容：（最多100字。当前字数：<span id="spanCommentContentLength">0</span>）<br />
                                    <textarea onkeyup="if(event.ctrlKey &amp;&amp; (10 == event.keyCode || 13 == event.keyCode) &amp;&amp; form.onsubmit()) form.submit(); else onchange();"
                                        onpropertychange="onchange()" name="Content" id="Content" rows="5" cols="90"
                                        onchange="document.getElementById('spanCommentContentLength').innerHTML=value.length;"></textarea>
                                    <br />
                                    <br />
                                    <div align="right">
                                        <input name="submit" class="btn" type="button" value="提交！" onclick="PostComment();" />
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <table id="CommentItem" cellspacing="1" cellpadding="2" bgcolor="#cccccc" border="0"
                            style="width: 100%;">
                            <TW:commentshow rows="10" length="32" modelid="@ModelID@">
            
              <ItemTemplet>
                <tr  bgcolor="#ffffff">
                  <td width="12%" align="right">@Score@分</td>
                  <td width="13%">@Name@</td>
                  <td width="300">@Content@</td>
                  <td align="center" width="20%">@WriteTime@</td>
                </tr>
              </ItemTemplet>
              <EmptyTemplet><tr  bgcolor="#ffffff">
                  <td colspan="4">没有评论</td>
                
                </tr></EmptyTemplet>
            
          </TW:commentshow>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div style="height: 4px">
        &nbsp;</div>
    <!--#include file="../Footer.aspx"-->

</body>
</html>
