<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductList.ascx.cs" Inherits="WebMain_Product_ProductList" %>
<%@ Register Src="../product/prductgl.ascx" TagName="prductgl" TagPrefix="uc1" %>
<script language="javascript" src="../../../js/TOPproduct.js"></script>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>
<style type="text/css">
<!--
ul,li{
padding:0;
text-align:center;
}
body{
font:12px "宋体";
text-align:center;
}
ul{ list-style:none;}
/*选项卡1*/
#Tab1{
width:742px;
margin:0px;
padding:0px;
margin:0 auto;}
/*菜单class*/
.Menubox {
width:100%;
background:url(../../images/top_line_topdo2.jpg);
height:28px;
line-height:28px;
}
.Menubox ul{
margin:0px;
padding:0px;
}
.Menubox li{
float:left;
display:block;
cursor:pointer;
width:75px;
text-align:center;
color:#949694;
font-weight:bold;
}
.Menubox li.hover{
padding:0px;
background:#fff;
width:75px;
border-left:1px solid #d4d4d4;
border-top:1px solid #d4d4d4;
border-right:1px solid #d4d4d4;
background:url(../../images/topline01.jpg);
color:#739242;
font-weight:bold;
height:27px;
line-height:23px;
background-repeat: repeat-x;
}
.Contentbox{
clear:both;
margin-top:0px;
border:1px solid #d4d4d4;
border-top:none;
text-align:center;
padding:8px;
height:100%
}
.Cbian
{
	border-right: whitesmoke 2px solid;
	border-top: lightgrey 1px solid;
	border-left: lightgrey 1px solid;
	border-bottom: lightgrey 1px solid;
	padding-left: 8px;
	margin-bottom: 5px;
	padding-top: 3px;
}


.Cvip
{
	background-image: url(../../../images/wtox_14.gif);
	background-repeat: no-repeat;
	padding-left: 25px;
	padding-right: 5px;
	background-position: left center;
	font-weight: bold;
	color: dimgray;
}
.Cmag
{
	background-image: url(../../../images/20050129171707813.gif);
	background-repeat: no-repeat;
	padding-left: 25px;
	padding-right: 5px;
	background-position: left center;
	font-weight: bold;
	color: dimgray;
}
.Ctxt
{
	padding-left: 25px;
	color: gray;
}
.tab2
{

border-left:1px solid #d4d4d4;
border-top:1px solid #d4d4d4;
border-right:1px solid #d4d4d4;
border-bottom:1px solid #d4d4d4;
width:742px;
}
-->
</style>
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(name,cursel,n){
for(i=1;i<=n;i++){
var menu=document.getElementById(name+i);
var con=document.getElementById("con_"+name+"_"+i);
menu.className=i==cursel?"hover":"";
con.style.display=i==cursel?"block":"none";
}
}
//-->
</script>
<table border="0" cellpadding="0" cellspacing="0" class="topdh" width="742">
    <tr>
        <td style="height: 19px; width: 741px;">
            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/">首页</asp:HyperLink>
            &gt;
            <asp:HyperLink ID="title" runat="server">[title]</asp:HyperLink>
            &gt;
            <asp:HyperLink ID="title2" runat="server">[title2]</asp:HyperLink></td>
    </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
    <tr>
        <td>
          <table border="0" cellpadding="0" cellspacing="0" style="width: 75%; height: 88%">
            <tr>
              <td style="height: 250px;"><div align="center">
                  <asp:Image ID="pic" runat="server" />&nbsp;</div></td>
            </tr>
            <tr>
              <td align="center">&nbsp;&nbsp;
                  <a href="#"><img src="../../../images/morepic.gif"  border=0 id="IMG1" runat="server"/></a>
            </tr>
          </table>
        </td>
        <td>
            <table cellspacing="0" cellpadding="0" border="0" width="300">
  <tbody>
      <tr>
          <td colspan="4" height="25">
                  <asp:Table ID="tb2" runat="server">
                  </asp:Table>
          </td>
      </tr>
      <tr>
          <td colspan="4" height="25">
              <asp:Label id="Products" runat="server" Text="Label" Font-Bold="True" Font-Size="14px" ForeColor="#C000C0"></asp:Label></td>
      </tr>
    <tr style="font-weight: bold; font-size: 12pt; color: #000000">
      <td colspan="4" height="25">
          <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="产品编号："></asp:Label>
          <asp:Label id="ProductsNo" runat="server"></asp:Label></td>
    </tr>
    <tr>
      <td height="25" colspan="4">
          <asp:Label ID="Label2" runat="server" Font-Bold="True" Text="商品品牌："></asp:Label>
          <asp:Label id="Brand" runat="server" Text="Label"></asp:Label></td>
    </tr>
    <tr>
      <td height="25" colspan="4">
          <asp:Label ID="Label3" runat="server" Font-Bold="True" Text="计量单位："></asp:Label>
          <asp:Label id="Unit" runat="server" Text="Label"></asp:Label></td>
    </tr>
    <tr>
      <td height="25" colspan="4">
          <asp:Label ID="Label4" runat="server" Font-Bold="True" Text="商品重量："></asp:Label>
          <asp:Label id="Unitweight" runat="server" Text="Label"></asp:Label></td>
    </tr>
      <tr>
          <td height="25" colspan="4">
              <asp:Label ID="Label5" runat="server" Font-Bold="True" Text="商品简介："></asp:Label>
              <asp:Label id="Description" runat="server" Text="Label"></asp:Label></td>
      </tr>
      <tr>
          <td colspan="4" height="25">
              <asp:Label ID="Label8" runat="server" Font-Bold="True" Text="上架时间："></asp:Label>
              <asp:Label ID="Label9" runat="server" Text="Label"></asp:Label></td>
      </tr>
    <tr>
      <td height="25" colspan="4">
          <asp:Label ID="Label6" runat="server" Font-Bold="True" Text="市场价格："></asp:Label>
          <asp:Label id="Marketprice" runat="server" Text="Label" Font-Strikeout="True"></asp:Label></td>
    </tr>
    <tr>
      <td colspan="4" height="25">
          <asp:Label ID="huititle" runat="server" Font-Bold="True" Text="会员价格："></asp:Label>
          ￥<span><asp:Label id="CjVipPrice" runat="server" Text="Label"></asp:Label>
      </span></td>
    </tr>
      <tr>
          <td colspan="4" height="25">
              <asp:Label ID="Label10" runat="server" Font-Bold="True" Text="查看次数："></asp:Label>
              <asp:Label ID="Label11" runat="server" Text="Label"></asp:Label></td>
      </tr>
    <tr>
      <td colspan="4" style="height: 25px">
          <asp:Label id="LKJSPrice" runat="server" Text="Label" Font-Bold="True" Font-Size="16px" Height="25px" ForeColor="Red"></asp:Label></td>
    </tr>
      <tr>
          <td style="height: 30px" align="right" colspan="4">
              <asp:HyperLink ID="HyperLink2" runat="server" ImageUrl="~/images/buyfd02.gif" ToolTip="暂时缺货"
                  Visible="False" NavigateUrl="javascript:void(0)" Enabled="False">暂时缺货</asp:HyperLink><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/buyfd.gif" OnClick="ImageButton1_Click" CausesValidation="False"/>
              <ajaxToolkit:HoverMenuExtender ID="HoverMenuExtender1" runat="server" OffsetY="-150"
                  PopupControlID="Panel1" PopupPosition="Left" TargetControlID="HyperLink2">
              </ajaxToolkit:HoverMenuExtender>
              <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/favdf.gif" OnClick="ImageButton2_Click" CausesValidation="False" /></td>
      </tr>
      <tr>
          <td align="center" colspan="4"></tr>
  </tbody>
</table>
        </td>
    </tr>
    <tr>
        <td colspan="2" style="border-right: #990066 1px solid; padding-right: 3px; border-top: #990066 1px solid; padding-left: 3px; padding-bottom: 3px; margin: 3px; border-left: #990066 1px solid; padding-top: 3px; border-bottom: #990066 1px solid; height: 30px" align="center">
            &nbsp;&nbsp;
              推荐给朋友：<asp:TextBox ID="ffdd" runat="server" CssClass="input" Width="152px"></asp:TextBox>
            (邮箱)
              <asp:Button ID="Button2" runat="server" Text="立即发送" OnClick="Button2_Click" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ffdd"
                Display="Dynamic" ErrorMessage="请填写邮箱"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="ffdd"
                Display="Dynamic" ErrorMessage="格式错误!!" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
    </tr>
    <tr>
        <td align="center" colspan="2" style="height: 8px">
        </td>
    </tr>
</table>
<table width="742" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td colspan="3" valign="top" align="center">
        
        
        
        <div id="Tab1" align="center">
<div class="Menubox">
<ul>
<li id="one1" onclick="setTab('one',1,4)"  class="hover">详细信息</li>
<li id="one2" onclick="setTab('one',2,4)" >产品评论</li></ul>
</div>
<div class="Contentbox">
<div id="con_one_1" class="hover" align="left"> 
<asp:Label ID="concent" runat="server" Text="Label"></asp:Label>
</div>
<div id="con_one_2" style="display:none" align="left">
     <asp:DataList ID="pl" runat="server" Width="100%">
        <ItemTemplate>
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Cbian">
          <tr>
            <td><span class="Cvip"><%# DataBinder.Eval(Container.DataItem, "username")%>：</span>发表于<%# DataBinder.Eval(Container.DataItem, "FBdate")%></td>
          </tr>
           <tr>
            <td><span class="Ctxt"><%# DataBinder.Eval(Container.DataItem, "Content")%></span></td>
           </tr>
       <tr>
       <td> <span class="Cmag"><%# DataBinder.Eval(Container.DataItem, "shefen")%>：</span>发表于<%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "FBdate"))%></td>
      </tr>
        <tr>
     <td><span class="Ctxt"><%# DataBinder.Eval(Container.DataItem, "reContent")%></span></td>
       </tr>
        </table>
        </ItemTemplate>
    </asp:DataList> 
    <div id="tnt_pagination" align="left">
<asp:Table ID="Table1" runat="server">
</asp:Table>
</div>
<br>
<table  border="0" align="center" cellpadding="0" cellspacing="0" style="width: 606px">
    <tr>
      <td style="width: 431px" align="right">会 员 名：</td>
      <td style="width: 568px">
          <asp:TextBox ID="username" runat="server"></asp:TextBox>&nbsp;<asp:CheckBox ID="isuser"
              runat="server" Text="匿名" />
          &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
          <asp:ImageButton ID="ImageButton3" runat="server" CausesValidation="False" ImageUrl="~/images/procectpl.gif"
              OnClick="ImageButton3_Click" /><a href="javascript:void(0)" onclick="xmlhttp()"></a></td>
    </tr>
    <tr>
        <td style="width: 431px" align="right" >
            评级：</td>
        <td style="width: 568px;">
            <asp:RadioButton ID="pf1" runat="server" Checked="True" GroupName="pf" />
            <img src="../../../images/1.gif" id="IMG2" runat="server" />&nbsp;<asp:RadioButton
                ID="pf2" runat="server" GroupName="pf" />
            <img src="../../../images/2.gif" id="IMG3" runat="server" />&nbsp;<asp:RadioButton
                ID="pf3" runat="server" GroupName="pf" />
            <img src="../../../images/3.gif" />&nbsp;<asp:RadioButton ID="pf4" runat="server"
                GroupName="pf" />
            <img src="../../../images/4.gif" />&nbsp;<asp:RadioButton ID="pf5" runat="server"
                GroupName="pf" />
            <img src="../../../images/5.gif"/></td>
    </tr>
    <tr>
      <td valign="top" style="width: 431px" align="right">
          留言内容：<br />
      </td>
      <td valign="top" style="width: 568px">
          <asp:TextBox ID="countnet" runat="server" Height="102px" TextMode="MultiLine" Width="356px"></asp:TextBox><div id="progressbar1" class="progress">
    (限字220)</div>
<script>textCounter(document.getElementById("countnet"),"progressbar1",220)</script>
         </td>
    </tr>

</table>
</div>
</div>
</div>
        

        </td>
    </tr>
      
      <tr>
        <td colspan="3" valign="top" >

        </td>
        </tr>
      <tr>
        <td colspan="3" rowspan="3" style="height: 16px">
            <br />
            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%" class="tab2">
                <tr>
                    <td colspan="2">
                        &nbsp;
                        <asp:Label ID="Label7" runat="server" Font-Bold="True" Text="相关产品" ForeColor="#739242"></asp:Label></td>
                </tr>
                <tr>
                    <td colspan="2" style="height: 155px">
                        <table align="center" border="0" cellpadding="0" cellspacing="0" width="95%">
                            <tr>
                                <td>
                        <uc1:prductgl id="Prductgl1" runat="server">
                        </uc1:prductgl>
                        
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
         </td>
        </tr>
      <tr>
      </tr>
      <tr>
        </tr>
    </table>
<asp:Panel ID="Panel1" runat="server" BackColor="#F8F8F8" BorderColor="#404040" BorderWidth="1px"
    Height="50px" Width="325px" DefaultButton="Button1">
    <table border="0" cellpadding="3" cellspacing="0" style="width: 100%">
        <tr>
            <td align="left" bgcolor="#ffffff" bordercolordark="#ffccff" colspan="2" style="border-bottom: darkgray 1px solid">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/images/EditNews.png" />
                到货通知单：请认真填写，商品到货时，我们会和您取得联系；</td>
        </tr>
        <tr>
            <td align="right" style="width: 99px">
                商品名称：</td>
            <td style="width: 111px">
                <asp:TextBox ID="pn" runat="server" CssClass="input"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" style="width: 99px">
                姓名：</td>
            <td style="width: 111px">
                <asp:TextBox ID="pm" runat="server" CssClass="input"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" style="width: 99px; height: 16px">
                电话：</td>
            <td style="width: 111px; height: 16px">
                <asp:TextBox ID="ptel" runat="server" CssClass="input"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" style="width: 99px">
                留言：</td>
            <td style="width: 111px">
                <asp:TextBox ID="pco" runat="server" Height="74px" TextMode="MultiLine" Width="226px" CssClass="input"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 99px">
            </td>
            <td style="width: 111px">
                <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" CausesValidation="False" /></td>
        </tr>
    </table>
</asp:Panel>
