<%@ Register Assembly="Xiaoxiao.WebUI" Namespace="Xiaoxiao.WebUI" TagPrefix="cc1" %>
<%@ Control Language="C#" %>
<%@ Import Namespace="Spaces" %>

  <div id="view_main">
	<div id="view_main_bg">
		

		<div id="view_head">
			<div id="view_head_right">
			
</div>
	
			<div id="view_head_left"><h4>  <asp:HyperLink CssClass="singleposttitle" runat="server" ID="TitleUrl" /></h4></div>
		</div>
		<div class="view_info">
			<div class="view_info_left">
				<asp:Literal runat="server" ID="Posted" /> &nbsp;&nbsp;  <asp:Literal ID="PostDescription" runat="server" />
			</div>
 		  <div class="view_info_right">
				<script language="JavaScript" type="text/javascript" >
					//控制字体大小
					function doZoom(size,sizeh)
					{
						var obj=document.all.zoom;
						obj.style.fontSize=size+"px";
						obj.style.lineheight=sizeh+"px";
					}
					//setColor
					function setColor(color_val) {
						document.getElementById('mybgcolor').style.backgroundColor = color_val;
					}
					//getColor
					function getColor() {
					mybgcolor.style.backgroundColor = "#FFFFFF";
					var bg_color = readCookie("bgColor_cookie");
						if (bg_color != null) {
							mybgcolor.style.backgroundColor = bg_color
						}
					}
				</script>
				<a href="javascript:setColor('FAFBE6')"><img height="10" alt="杏仁黄" src="<%=Globals.GetSkinPath() %>/images/color/1.gif" width="10" border="0"></a>
				<a href="javascript:setColor('FFF2E2')"><img height="10" alt="秋叶褐" src="<%=Globals.GetSkinPath() %>/images/color/2.gif" width="10" border="0"></a>
				<a href="javascript:setColor('FDE6E0')"><img height="10" alt="胭脂红" src="<%=Globals.GetSkinPath() %>/images/color/3.gif" width="10" border="0"></a>
				<a href="javascript:setColor('F3FFE1')"><img height="10" alt="芥末绿" src="<%=Globals.GetSkinPath() %>/images/color/4.gif" width="10" border="0"></a>
				<a href="javascript:setColor('DAFAFE')"><img height="10" alt="天蓝" src="<%=Globals.GetSkinPath() %>/images/color/5.gif" width="10" border="0"></a>
				<a href="javascript:setColor('E9EBFE')"><img height="10" alt="雪青" src="<%=Globals.GetSkinPath() %>/images/color/6.gif" width="10" border="0"></a>
				<a href="javascript:setColor('EAEAEF')"><img height="10" alt="灰" src="<%=Globals.GetSkinPath() %>/images/color/7.gif" width="10" border="0"></a>
				<a href="javascript:setColor('FFFFFF')"><img height="10" alt="银河白(默认色)" src="<%=Globals.GetSkinPath() %>/images/color/8.gif" width="10" border="0"></a>&nbsp;
				<a href="javascript:doZoom(16.8,22)"><img src="<%=Globals.GetSkinPath() %>/images/style/l.gif" alt="大" border="0" align="absbottom" /></a>
				<a href="javascript:doZoom(14.8,20)"><img src="<%=Globals.GetSkinPath() %>/images/style/m.gif" alt="中" border="0" align="absbottom" /></a>
				<a href="javascript:doZoom(12.8,19)"><img src="<%=Globals.GetSkinPath() %>/images/style/s.gif" alt="小" border="0" align="absbottom" /></a>
			</div>
			<div class="view_border"></div>
		</div>
		<div class="view_content" id="mybgcolor">
			<span id="zoom">

  <asp:Literal ID="Body" runat="server" />
			</span>
			
			<!-- 跳转重叠层开始 -->
			<div style="height: 16px; clear: both;"> <asp:PlaceHolder ID="phTags" runat="server"></asp:PlaceHolder></div>
			<div class=tab-pane id=tabPanel>
				<SCRIPT type=text/javascript>
				tp1 = new WebFXTabPane( document.getElementById( "tabPanel" ) );
				</SCRIPT>
				<div class=tab-page id=tabPage0>
					<h5 class=tab>RSS引用信息&nbsp;&nbsp;</h5>
					<SCRIPT type=text/javascript>tp1.addTabPage( document.getElementById( "tabPage0" ) );</SCRIPT>
					<div class=teb_content>
						<p>  <div id='divTrackback' class='bvSection' runat="server">   <asp:Literal ID="PingBack" runat="server" />
                                                             </div></p>
						<p><img src="<%=Globals.GetSkinPath() %>/images/utf8.png" border="0" align="absmiddle" style="cursor:hand;" alt="点击复制引用地址" onClick="CopyText(document.all.tbUTFURL)"> <span id="tbUTFURL"><asp:Literal ID="TrackbackURL" runat="server"></asp:Literal></span></p>
						<p style="display:none"><img src="<%=Globals.GetSkinPath() %>/images/gbk.png" border="0" align="absmiddle" style="cursor:hand;" alt="点击复制引用地址" onClick="CopyText(document.all.tbGBKURL)"> <span id="tbGBKURL"><asp:Literal ID="TrackBack" runat="server" /></span></p>

					</div>
				</div>
				
				<div class=tab-page id=tabPage2>
					<h5 class=tab>搜索相关内容</h5>
					<SCRIPT type=text/javascript>tp1.addTabPage( document.getElementById( "tabPage2" ) );</SCRIPT>
					<div class=teb_content>
						<!-- Search Google -->
						<form method="get" action="http://www.google.com/custom" target="google_window">
						<a href="http://www.google.com/" target="_blank"><img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="bottom" /></img></a>
						<input type="hidden" name="domains" value="bfor.cn">
						<input type="text" name="q" size="38" maxlength="255" value="<%=TitleUrl.Text %>" class="input_bg">
						<input type="hidden" name="sitesearch" value="">
						<input type="Image" name="sa" value="" src="<%=Globals.GetSkinPath() %>/images/search.gif" align="bottom" />
						<input type="hidden" name="client" value="pub-6265113887678900" />
						<input type="hidden" name="forid" value="1" /> 
						<input type="hidden" name="channel" value="1280019505" /> 
						<input type="hidden" name="ie" value="UTF-8" /> 
						<input type="hidden" name="oe" value="UTF-8" /> 
						<input type="hidden" name="cof" value="GALT:#0066CC;GL:1;DIV:#999999;VLC:336633;AH:left;BGC:F8F8F8;LBGC:006666;ALC:0066CC;LC:0066CC;T:000000;GFNT:666666;GIMP:666666;LH:66;LW:116;L:http://bfor.cn/image/logo.jpg;S:http://www.bfor.cn;FORID:1;" />
						<input type="hidden" name="hl" value="zh-CN" /> 
						</form>
						<!-- Search Google --><br />
					</div>
				</div>
			</div>
			<!-- 跳转重叠层结束 -->
	
	</div>
</div>
</div>
<!-- 评论开始 -->
  <cc1:Form runat="server" id="topicForm" onsubmit="return check()">
<div class="view_main">
<div class="view_main_bg">
	<!-- comments -->
	<div class="view_head"><h4>Comments</h4></div>
	
 
	
	
	<div class="view_head" style="display:none">
		<div id="Div1"></div>
		<div id="view_head_left1">
		
上一个下一个</div>
	</div>
	<a name="5" id="5"></a>  
				<a name="commmark" id="commmark"></a>
				 <asp:Repeater ID="CommentList" runat="server">
                                                    <ItemTemplate>
			
			<div class="comment_main">
				
					<div class="comment_left">
					<asp:Literal ID="PostDate" runat="server" />
     <asp:Image ID="imgAvatar" runat="server" Height="120px" Width="120px"  Visible="false"  />
     	<!-- 评论人级别及其资料2005/07/05修正 -->
				 <%=Globals.Text["viewPost_Author"]%>:<font color=#A1A1A1><asp:HyperLink Target="_blank" runat="server" ID="NameLink" /></font>
				<!----------------->
					</div>
					<div class="comment_right">
						 <p>
						<asp:Literal ID="PostText" runat="server" /></p>
						<p style="margin-top: 6px">						<span class='notgray'>
                                                                 
                                                                    </span><span class='bold mstitlewrap'>
                                                                        <asp:HyperLink Target="_blank" runat="server" ID="HyperLink1" />
                                                                    </span><span class='notgray'>&nbsp;&nbsp;
                                                                       </span>&nbsp;&nbsp; </p>
					</div>
				
				<div class="comment_navigation"> <asp:LinkButton runat="server" ID="EditLink" CausesValidation="False"  /></div>
			</div>
			   </ItemTemplate>
                                             </asp:Repeater>
     
      <cc1:AspNetPager ID="CommentPager" runat="server" AlwaysShow="True" UrlPaging="True"
                                                                    CustomInfoSectionWidth="100%">
                                                                </cc1:AspNetPager>
<!-- Post comment -->
  <div id="divCommentform" class="commentform" runat="server">

	<div class="comm_post_head"><h4>Post Comment</h4></div>
	<div class="comm_post_main">
	<div class="comm_post_main_bg">
		<div id="comm_post_left">
		
		 
			<script language="JavaScript" type="text/javascript">
			
			function AddText(NewCode) {
			 var comment=$('<%=tbComment.ClientID %>');
        if(document.all){
        	insertAtCaret(comment, NewCode);
         
        } else{
        	comment.value += NewCode;
       
        }
        comment.focus();
}
 
function storeCaret (textEl){
        if(textEl.createTextRange){
                textEl.caretPos = document.selection.createRange().duplicate();
        }
}

function insertAtCaret (textEl, text){
        if (textEl.createTextRange && textEl.caretPos){
                var caretPos = textEl.caretPos;
                caretPos.text += caretPos.text.charAt(caretPos.text.length - 2) == ' ' ? text + ' ' : text;
        } else if(textEl) {
                textEl.value += text;
        } else {
        	textEl.value = text;
        }
}
			</script>
			
			<div id="comm_post_left"  >
			   <div class='bvError' style="display: none" id="errMsg" runat="server">
                                                            </div>
				<p> <% =Globals.Text["viewPost_Name"]%>
				
					<asp:TextBox ID="tbName" runat="server" Size="40" Width="500px" MaxLength="24"></asp:TextBox>
					
                                                              <div style="padding: 2px" id="divPassword" runat="server">  密码:(游客无须) <br />
                                                                <asp:TextBox ID="tbPassword" runat="server" TextMode="Password" Width="500px" MaxLength="24"></asp:TextBox>
                                                           </div> <%=Globals.Text["viewPost_DailyURL"]%><br />
                                                           <asp:TextBox ID="tbUrl" runat="server" Size="1024" Width="500px"></asp:TextBox>
                                                           
                                                           <%=Globals.Text["viewPost_Title"]%>
                                                                <br /> <asp:TextBox ID="tbTitle" runat="server" Size="40" Width="500px" MaxLength="200"></asp:TextBox>
                                                             &nbsp;&nbsp;

				
 <div style="padding: 1px" class='COMMENTENTRY'>
                                                                <%=Globals.Text["viewPost_Comments"]%>
                                                                <br />
                                                                <asp:TextBox ID="tbComment" runat="server" Columns="50" Width="500px" CssClass="rtecomment" TextMode="MultiLine"
                                                                    Rows="12"></asp:TextBox>
                                                            </div></p>
				<div align="left">
					 <div runat="server" id="divVC">
                                                                验证码:<br />
                                                                <asp:TextBox ID="tbVC" runat="server" MaxLength="10"></asp:TextBox>
                                                                <img id="chk_img" onclick="checkwd_reload()" style="cursor: hand" align="absbottom" />
                                                                <span onclick="checkwd_reload()" style="cursor: hand">&nbsp;换一个</span>
					<div style="margin:3px">
                                                                <asp:Button ID="btnSubmit" CssClass="postbtn" runat="server" Text="发布评论" OnClientClick="return chkTopicComment();">
                                                                </asp:Button>
                                                                &nbsp;&nbsp;<input class="postbtn" name="Reset" type="reset" id="Reset" value="重置" />
                                                                </div></div>

                                                            <script>
        function ctlent(){
if(event.ctrlKey && window.event.keyCode==13)
{
$('<%=btnSubmit.ClientID %>').click();
}
}
function check(){
if ($('<%=btnSubmit.ClientID %>').checked)
{alert("回复正在提交到服务器，请耐心等待，无需重复提交");
return false}
else{
$('<%=btnSubmit.ClientID %>').checked = true;
return true;
}}
                                        function checkwd_reload(){
		
       		var ob = document.getElementById("chk_img");
		  if(ob)
		ob.src = '<%=string.Format("{0}/Include/RndImg.aspx?ImgHeight=25&imgWidth=150&FontSize=18&", Globals.ApplicationPath)%>' + new Date();
                }
                checkwd_reload();
                window.document.onkeydown=ctlent;
                                                            </script>
                                                             <script>
                                       
                                        function setMsg(s)
                                        {
                                        var msg=$('<%=errMsg.ClientID %>'); 
                                        msg.innerHTML='';
                                        msg.style.display='';
                                       msg.style.padding='4px';
                                        msg.innerHTML='提示消息:<br />';
                                        msg.innerHTML+=s;
                                        }
                                        function chkTopicComment()
                                        {
                                        
                                       
                                     
                                         var name=$('<%=tbName.ClientID %>');
                                         var title=$('<%=tbTitle.ClientID %>');
                                          var comment=$('<%=tbComment.ClientID %>');
                                          if(name.value.trim()=='')
                                          {
                                          ///_error_msg_show('您忘记输入评论内容了！');
                                         // alert('您忘记输入评论内容了！');
                                         setMsg('您忘记输入昵称了！');
                                          return false;
                                          }
                                          if(title.value.trim()=='')
                                          {
                                          // _error_msg_show('您忘记输入评论标题了！');
                                           //alert('您忘记输入评论标题了！');
                                           setMsg('您忘记输入评论标题了！');
                                          return false;
                                          }
                                           if(comment.value.trim()=='')
                                          {
                                          // _error_msg_show('您忘记输入评论内容了！');
                                            //alert('您忘记输入评论内容了！');
                                            setMsg('您忘记输入评论内容了！');
                                          return false;
                                          }
                                          return true;
                                        }
                                                            </script>
					 
					
				 
				</div>
				 
				
				 
				
				 
			</div>
			
		</div>
		<div id="comm_post_right" >
			<div class="newtopic">
				<div class="newtopic_main">
					<strong><span style="cursor:hand;padding-left:10px;" onclick="showIntro('add_smilies');">添加表情</span></strong><br /><hr />
					</div>
					<div style="display: none1;"  >
					<img style="cursor:hand;" onclick="AddText('[smile]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_smile.gif" /> 
					<img style="cursor:hand;" onclick="AddText('[confused]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_confused.gif" /> 
					<img style="cursor:hand;" onclick="AddText('[cool]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_cool.gif" /> 
					<img style="cursor:hand;" onclick="AddText('[cry]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_cry.gif" /> <br />
					<img style="cursor:hand;" onclick="AddText('[sad]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_sad.gif" /> 
					<img style="cursor:hand;" onclick="AddText('[angry]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_angry.gif" /> 
					<img style="cursor:hand;" onclick="AddText('[shame]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_shame.gif" />
					 <img style="cursor:hand;" onclick="AddText('[sweat]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_sweat.gif" /><br />
					  <img style="cursor:hand;" onclick="AddText('[lol]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_lol.gif" /> 
					  <img style="cursor:hand;" onclick="AddText('[question]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_question.gif" />
					  <img style="cursor:hand;" onclick="AddText('[razz]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_razz.gif" /> 
					  <img style="cursor:hand;" onclick="AddText('[tong]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_tong.gif" /> <br />
					  <img style="cursor:hand;" onclick="AddText('[lovely]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_lovely.gif" /> 
					  <img style="cursor:hand;" onclick="AddText('[music]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_music.gif" /> 
					  <img style="cursor:hand;" onclick="AddText('[ft]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_ft.gif" /> 
					  <img style="cursor:hand;" onclick="AddText('[heart]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_heart.gif" /> <br />
					  <img style="cursor:hand;" onclick="AddText('[fd]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_fd.gif" /> 
					  <img style="cursor:hand;" onclick="AddText('[sleep]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_sleep.gif" /> 
					  <img style="cursor:hand;" onclick="AddText('[eek]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_eek.gif" /> 
					  <img style="cursor:hand;" onclick="AddText('[belial]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_belial.gif" /> <br />
					  <img style="cursor:hand;" onclick="AddText('[bomb]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_bomb.gif" /> 
					  <img style="cursor:hand;" onclick="AddText('[xizao]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_xizao.gif" /> 
					  <img style="cursor:hand;" onclick="AddText('[abuse]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_abuse.gif" /> 
					  <img style="cursor:hand;" onclick="AddText('[cattle]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_cattle.gif" /><br />
					   <img style="cursor:hand;" onclick="AddText('[mummy]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_mummy.gif" /> 
					   <img style="cursor:hand;" onclick="AddText('[ghost]');" src="<%=Globals.ApplicationPath %>/images/smilies/icon_ghost.gif" />
				</div>
			</div>
		</div>
  </div>
  </div>

</div>
</div> 
</div></cc1:Form>