﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WZPingLun_MC.aspx.cs" Inherits="WZPingLun_S" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<style>
body 
{
    text-align:center;
    font-size: 14.7px;
    margin:0px;
    color:#666666;
}
.button
{
	border:1px;
	border-color:#000000;
	border-style:solid;
	background-color:#CCCCCC;
	width:80px;
	height:18px;
}
.text
{
	border:1px;
	border-color:#000000;
	border-style:solid;
	background-color:#F9F9F9;
	width:160px;
	height:18px;
}
.Mtext
{
	border:1px;
	border-color:#000000;
	border-style:solid;
	background-color:#F9F9F9;
}
#Layer1 {
	position:absolute;
	left:298px;
	top:148px;
	width:97px;
	height:51px;
	z-index:1;
}
a{
    font-size:14.7px;
    color:#000000;
    TEXT-DECORATION: none;
}
a:hover {
	COLOR:blue; TEXT-DECORATION: none;
}
#table2
{
    border:1px dashed #EBE9ED;
}
#table2 td
{
    border-top:1px;
    border-top-color:#EBE9ED;
    border-top-style:solid;
    background-color:#F9FDFF;
    height:21px;
    vertical-align:middle;
    color:#243D88;
	font-size:9pt;
}
#table2 td a
{
    font-size:9pt;
}

</style>
</head>
<script>
function goto(url,delay)
{
    setTimeout("self.location.href='"+url+"'",delay);
}
</script>
<script>
window.onload = function(){
	(function(d){
		var htmlName = 'WZPingLun_MC.aspx'.toLowerCase();
		var list;
		if( parent ){
			list = parent.document.getElementsByTagName('iframe');
			for(var i = 0, len = list.length; i < len; i++){
				if( list[i].src.toLowerCase().indexOf( htmlName ) > -1 ){
					list[i].height = Math.max(d.body.offsetHeight, d.body.scrollHeight);
				}
			}
		}			
	})(document);
}
</script> 
<script type="text/javascript">
 function   changeIframeHeight()     //自动改变   Iframe   的高度   
  {   
        if(top   !=   self)   
        {   
              window.parent.document.getElementById(self.name).height   =   document.body.scrollHeight;   
        }     
  }   
  </script>
<body>
    <form id="form1" runat="server">
    <div id="Layer1" style="left: 472px; top: 188px">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager></div>
        <div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
            

                <table align="center" bgcolor="#FFFFFF" border="0" cellspacing="3" height="370" style="width: 394px" name="now">
                
                    <tr>
                        <td style="width: 774px;" valign="top" align="center">
                            &nbsp;<table bgcolor="#ffffff" style="border-right: #B0CDEB 1px solid; border-top: #B0CDEB 1px solid;
                                border-left: #B0CDEB 1px solid; border-bottom: #B0CDEB 1px solid; width: 606px;" align="center" id="TABLE1" runat="server">
                                <tr>
                                    <td  valign="top" style="height: 105px; width: 674px;">
                                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderStyle="Dashed"
                                            BorderWidth="0px" DataKeyNames="id" OnRowCommand="GridView1_RowCommand" Width="482px" ShowFooter="True">
                                            <Columns>
                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        以下读者评论只代表网友个人观点，不代表本站观点
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <table border="0" cellpadding="3" cellspacing="0" style="width: 556px">
                                                            <tr>
                                                                <td align="left" bgcolor="#f9fdff" height="21" style="font-size: 14px; width: 323px;
                                                                    color: #243d88; table-layout:fixed;word-break:break-all;word-wrap:break-word">
                                                                    <span style="font-size:13px; color:#666666">&lt;第<%# Eval("cnum") %>楼&gt;</span> 昵称：<%# Eval("username") %></td>
                                                                <td align="left" bgcolor="#f9fdff" style="font-size: 13px; width: 298px; color: #243d88">
                                                                    发表时间：<%# Eval("date") %></td>
                                                                <td align="right" bgcolor="#f9fdff" colspan="4" style="font-size: 13px; color: #243d88"
                                                                    width="209">
                                                                    IP:<%#  Eval("ip").ToString().Remove(Eval("ip").ToString().LastIndexOf('.') + 1) + "*"%></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" bgcolor="#f9fdff" colspan="6" style="font-size: 14px; color: black;
                                                                    table-layout:fixed;word-break:break-all;word-wrap:break-word; height: 24px; width:538px" valign="top">
                                                                    <%# Eval("content") %>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" bgcolor="#f9fdff" style="font-size: 14px; width: 323px; color: black;
                                                                    table-layout:fixed;word-break:break-all;word-wrap:break-word; height: 4px" valign="top">&nbsp;
                                                                    </td>
                                                                <td align="right" bgcolor="#f9fdff" style="font-size: 12px; width: 298px; color: black;
                                                                    table-layout:fixed;word-break:break-all;word-wrap:break-word; height: 4px" valign="top">
                                                                    &nbsp;<asp:Label ID="tip" runat="server" Text="Label" Visible="false"></asp:Label></td>
                                                                <td align="left" bgcolor="#f9fdff" style="font-size: 14px; color: black; table-layout:fixed;word-break:break-all;word-wrap:break-word;
                                                                    height: 4px" valign="top">&nbsp;
                                                                    </td>
                                                                <td align="left" bgcolor="#f9fdff" style="font-size: 14px; color: black; table-layout:fixed;word-break:break-all;word-wrap:break-word;
                                                                    height: 4px" valign="top">&nbsp;
                                                                    </td>
                                                                <td align="right" bgcolor="#f9fdff" style="font-size: 12px; width: 71px; color: #a0a0a0;
                                                                    table-layout:fixed;word-break:break-all;word-wrap:break-word; height: 4px" valign="top">
                                                                    支持：<%# Eval("zhichi") %></td>
                                                                <td align="right" bgcolor="#f9fdff" style="font-size: 12px; width: 70px; color: #a0a0a0;
                                                                    table-layout:fixed;word-break:break-all;word-wrap:break-word; height: 4px" valign="top">
                                                                    反对：<%# Eval("fandui") %></td>
                                                            </tr>
                                                        </table>
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        
                                                    </FooterTemplate>
                                                </asp:TemplateField>
                                                <asp:ButtonField ButtonType="Image" CommandName="zhichi" ImageUrl="~/Image/zhichi.gif"
                                                    Text="支持此观点">
                                                    <ItemStyle BackColor="#F9FDFF" VerticalAlign="Top" />
                                                </asp:ButtonField>
                                                <asp:ButtonField ButtonType="Image" CommandName="fandui" ImageUrl="~/Image/fandui.gif"
                                                    Text="反对此观点">
                                                    <ItemStyle BackColor="#F9FDFF" VerticalAlign="Top" />
                                                </asp:ButtonField>
                                            </Columns>
                                            <RowStyle BorderStyle="Dashed" />
                                            <SelectedRowStyle BorderStyle="Dashed" />
                                            <PagerStyle BackColor="#CFE0F0" BorderColor="#804040" BorderStyle="Dashed" ForeColor="Navy"
                                                HorizontalAlign="Center" />
                                            <HeaderStyle BorderColor="Red" Font-Bold="True" Font-Size="14px" ForeColor="Black"
                                                HorizontalAlign="Left" />
                                            <FooterStyle HorizontalAlign="Right" />
                                        </asp:GridView>
                                        &nbsp;</td>
                                </tr>
                                <tr><td align="right" style="height: 1px; width: 674px;"><a href="PingLun.aspx?id=<%=Request.QueryString["id"]%>" target="_blank">&gt;&gt;查看完整评论</a></td></tr>
                                <tr><td align="center" style="height: 7px; width: 674px;"><webdiyer:aspnetpager id="AspNetPager1" runat="server" onpagechanged="AspNetPager1_PageChanged"
                                            pageindexboxtype="TextBox" showfirstlast="False" showpageindexbox="Never"></webdiyer:aspnetpager>  </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                    <tr>
                        <td align="center" valign="top" width="100%" style="height: 150px">
                        <table  align="center" bgcolor="#ffffff" cellspacing="0" style="border-right: #B0CDEB 1px solid;
                                border-top: #B0CDEB 1px solid; border-left: #B0CDEB 1px solid; border-bottom: #B0CDEB 1px solid; height: 258px; width: 518px;">
  <tr>
    <td valign="top" style="height: 137px" align="center"><table height="126" style="width: 606px">
      <tr>
        <td style="height: 38px;" colspan="3" align="center">&nbsp;<strong>您觉得文章内容如何：
            已经有<font color="red"><%=yumen+nanguo+shangque+qidai+bucuo+guanzhu %></font>位读者对文章发表个人观点</strong>&nbsp;</td>
      </tr>
      <tr>
        
        <td style="height: 99px" align="center"><table border="0" width="445px">
          <tbody>
            <tr>
              <td valign="bottom" align="center"><% =yumen%>
                  <br />
                <img height="<%=50*yumen/(yumen+nanguo+shangque+qidai+bucuo+guanzhu+1)%>" src="Image/zhuzi.gif" width="20" /></td>
              <td valign="bottom" align="center"><% =nanguo%>
                  <br />
                <img height="<% =50*nanguo/(yumen+nanguo+shangque+qidai+bucuo+guanzhu+1)  %>" src="Image/zhuzi.gif" width="20" /></td>
              <td valign="bottom" align="center"><% =shangque%>
                  <br />
                <img height="<% =50*shangque/(yumen+nanguo+shangque+qidai+bucuo+guanzhu+1)  %>" src="Image/zhuzi.gif" width="20" /></td>
              <td valign="bottom" align="center"><% =qidai%>
                  <br />
                <img height="<% =50*qidai/(yumen+nanguo+shangque+qidai+bucuo+guanzhu+1)  %>" src="Image/zhuzi.gif" width="20" /></td>
              <td valign="bottom" align="center"><% =bucuo%>
                  <br />
                <img height="<% =50*bucuo/(yumen+nanguo+shangque+qidai+bucuo+guanzhu+1)  %>" src="Image/zhuzi.gif" width="20" /></td>
              <td valign="bottom" align="center"><% =guanzhu%>
                  <br />
                <img height="<% =50*guanzhu/(yumen+nanguo+shangque+qidai+bucuo+guanzhu+1)  %>" src="Image/zhuzi.gif" width="20" /></td>
            </tr>
            <tr>
              <td align="center"><img src="Image/yumen.gif" /></td>
              <td align="center"><img src="Image/nanguo.gif" /></td>
              <td align="center"><img src="Image/shangque.gif" /></td>
              <td align="center"><img src="Image/qidai.gif" /></td>
              <td align="center"><img src="Image/bucuo.gif" /></td>
              <td align="center"><img src="Image/guanzhu.gif" align="middle" /></td>
            </tr>
            <tr>
              <td height="44" colspan="6" align="center"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:RadioButtonList id="RadioButtonList1" runat="server" Font-Size="14.7px" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged" AutoPostBack="True" Width="508px" RepeatDirection="Horizontal">
                    <asp:ListItem Value="5">郁闷</asp:ListItem>
                    <asp:ListItem Value="6">难过</asp:ListItem>
                    <asp:ListItem Value="7">商榷</asp:ListItem>
                    <asp:ListItem Value="8">期待</asp:ListItem>
                    <asp:ListItem Value="9">不错</asp:ListItem>
                    <asp:ListItem Value="10">关注</asp:ListItem>
                  </asp:RadioButtonList>
                  <asp:Label id="TouPiaoMS" runat="server" Font-Size="Smaller"></asp:Label></td>
            </tr>
          </tbody>
        </table>
        </td>
        
      </tr>
	  <tr><td align="center" >
	  <iframe marginwidth="0" marginheight="0" height="150" width="582" scrolling="no" align="center" border="0" frameborder="0" src="/ajax/readerHot_mc.html"></iframe>
	  </td></tr>
    </table><table style="border-top:1px; border-top-style:dashed;border-top-color:#B0CDEB; width: 594px;">
      <tr>
        <td style="width: 113px; height: 2px">&nbsp;</td>
        <td style="height: 2px; width: 290px;">&nbsp;</td>
        <td width="222" style="height: 2px">&nbsp;</td>
      </tr>
      <tr>
        <td style="width: 113px; height: 16px;" align="right">&nbsp;昵称：</td>
        <td align="left" style="width: 290px; height: 16px;">
            <asp:TextBox ID="TextBox1" runat="server" CssClass="text">读者</asp:TextBox><asp:Label
                ID="Label2" runat="server" Visible="False"></asp:Label>&nbsp;</td>
        <td rowspan="2"><asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <table bgcolor="#f9fdff" style="border:1px; border-color:White; border-style:double" align="left" border="2" bordercolor="#cfe0f0" height="30" width="210">
                    <tr>
                        <td height="30" align="left" style="width: 100px; height: 26px" rowspan="2"><img src="image/loading.gif" />
                            <font color="seagreen" size="2"><span style="color: #666666">请稍后...</span></font></td>
                    </tr>
                </table>
            </ProgressTemplate>
        </asp:UpdateProgress>
            &nbsp;</td>
      </tr>
      <tr>
        <td style="width: 113px; height: 95px" align="right" valign="bottom">&nbsp;评论：</td>
        <td style="height: 95px; width: 290px;" align="left">
            <asp:TextBox ID="TextBox2" runat="server" CssClass="Mtext" Height="101px" TextMode="MultiLine"
                Width="296px"></asp:TextBox>&nbsp;</td>
        </tr>
      <tr>
        <td style="width: 113px; height: 15px;">&nbsp;</td>
        <td style="width: 290px; height: 15px;"><asp:Button ID="Button1" runat="server" Text="发表评论" CssClass="button" OnClick="Button1_Click" OnClientClick="goto('#now',3500)"/>
            &nbsp;&nbsp;
            <asp:Button ID="Button2" runat="server" Text="重新填写"  CssClass="button" OnClick="Button2_Click"/>&nbsp;</td>
        <td style="height: 15px">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
 <td align="center" style="border-top:1px; border-top-color:#B0CDEB; border-top-style:solid">
                                        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False"    Width="412px">
                                            <Columns>
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <table border="0" cellpadding="3" cellspacing="0" style="width: 584px">
                                                            <tr>
                                                                
                                                                <td bgcolor="#f9fdff" style="color:#243D88;font-size:14.7px; width: 870px; height: 22px;word-break:break-all" align="left">
                                                                    <li><a href="info/<%# Eval("path")%>/<%# Eval("id")%>-1.htm" target="_blank"><%# Eval("title") %></a>(<%# Eval("totalcount") %>)</li></td>
                                                                <td bgcolor="#f9fdff" style="color:#243D88;font-size:14.7px; width: 395px; height: 22px;" align="right">
                                                                <%# Eval("date").ToString().Remove(Eval("date").ToString().LastIndexOf(' ') )%>
                                                                </td>
                                                                
                                                            </tr>
                                                            
                                                        </table>
                                                    </ItemTemplate>
                                                    <HeaderTemplate>
                                                        热门评论文章：

                                                    </HeaderTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <HeaderStyle BorderColor="Red" ForeColor="Black" HorizontalAlign="Left"  Font-Size="14px" Font-Bold="True"/>
                                            
                                            <SelectedRowStyle BorderStyle="Dashed" />
                                            <PagerStyle BackColor="#ECECEC" BorderColor="#804040" BorderStyle="Dashed" ForeColor="Navy"
                                                HorizontalAlign="Center" />
                                        </asp:GridView>
                                       </td>
                            
                        </td>
                    </tr>
                </table>
  </tr>
</table>
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
            </ContentTemplate>
            
        </asp:UpdatePanel>
        </div>
        
        </form>
    
</body>
</html>





