<script language="javascript" src="js/hst_wnd.js"></script>
<link rel="stylesheet" type="text/css" href="skins/hst_wnd.css" />
<link rel="stylesheet" type="text/css" href="http://sharejs.niutou.net/code/css/jiathis_share.css"/>
<div id="MagicFace" style="position:absolute;z-index : 99;visibility:hidden;background:#fff;"></div> 


<div style="text-align:left;margin-top:5px">
<div style="float:right;margin:0px;" id="showpage"></div>
<div style="float:left;">
   <a href="javascript:;" id="newspecial" onmouseover="document.getElementById('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})" onclick="showWindow('newthread', 'post.asp?action=new&amp;boardid={$pub.boardid}&amp;stype=0')" title="发新帖"><img src="images/post/new_topic.gif" alt="发新帖" /></a>
<a href="javascript:void(0);" class="action-newtopic" title="回复主题" id="new_topic"><img src="images/post/reply.gif" alt="发新帖" /></a></div>
</div>


<ul class="p_pop" id="newspecial_menu" style="display: none">
<li><a href="post.asp?action=new&amp;boardid={$pub.boardid}&amp;stype=0"><img src="images/post/new_post.png" align="absmiddle" /> 发表主题</a></li><li><a href="post.asp?action=vote&amp;boardid={$pub.boardid}&amp;stype=0"><img src="images/post/new_vote.png" align="absmiddle" /> 发起投票</a></li><li><a href="infolist.asp?t=smallpaper&boardid={$pub.boardid}"><img src="images/post/new_text.png" align="absmiddle" /> 发小字报</a></li><li><a href="post.asp?action=new&amp;boardid={$pub.boardid}&amp;stype=1"><img src="images/post/new_pay.png" align="absmiddle" /> 发布商品</a></li><li><a href="post.asp?action=activities&amp;boardid={$pub.boardid}&amp;stype=0"><img src="images/post/new_pic.png" align="absmiddle" /> 发布活动</a></li></ul>








{$activities.begin}
<div class="w_b100">
<table class="padd_acttab main_bor_all" cellspacing="0" cellpadding="0" width="100%">
	<tr>
	  <td align="left" class="board_bg h20" colspan="4" style="padding:3px 5px;">活动标题:{$atitle}</td>
	</tr>
	<tr>
	  <td class="Internal_b1" align="right"><b>活动时间</b></td>
	  <td class="Internal_b1">{$begintime} 至 {$endtime}</td>
	  <td class="Internal_b1"><b>报名截止时间</b></td>
	  <td class="Internal_b1">{$zjendtime}</td>
	</tr>
	<tr>
	  <td class="Internal_b1"><b>联系人</b></td>
	  <td class="Internal_b1">{$author}</td>
	  <td class="Internal_b1"><b>联系电话</b></td>
	  <td class="Internal_b1">{$tel}</td>
	</tr>
	<tr>
	  <td class="Internal_b1"><b>联系人邮箱</b></td>
	  <td class="Internal_b1">{$email}</td>
	  <td class="Internal_b1"><b>联系QQ或msn</b></td>
	  <td class="Internal_b1">{$qq}</td>
	</tr>
	<tr>
	  <td class="Internal_b1"><b>活动地址</b></td>
	  <td class="Internal_b1">{$address}</td>
	  <td class="Internal_b1"><b>人均消费</b></td>
	  <td class="Internal_b1">{$argm}</td>
	</tr>
	<tr>
	  <td class="Internal_b1"><b>所在城市</b></td>
	  <td class="Internal_b1">{$city}</td>
	  <td class="Internal_b1"><b>参与人数</b></td>
	  <td class="Internal_b1">{$personnum}</td>
	</tr>
	<tr><td colspan="4"><center>已有<span class="bmnum">{$bmnum}</span>人参加&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$activitiessubmit}</center></td></tr>
</table>
</div>
<div id="activityjoin" style="display:none">
<form name="activity" id="activity" method="post" autocomplete="off" action="activities.asp?action=saveactivities&amp;tid={$page.topicid}" onsubmit="ajaxpost('activity', 'return_activityapplies', 'return_activityapplies', 'onerror');return false;">
<div class="c">
<div class="actfm">
<table summary="我要参加" cellpadding="0" cellspacing="0" class="actl">
<tr>
<th>支付方式</th>
<td>
<p class="mbn"><input class="pr" type="radio" value="0" name="payment" id="payment_0" checked="checked" /> <label for="payment_0">承担自己应付的花销</label></p>
<p><input class="pr" type="radio" value="1" name="payment" id="payment_1" /> <label for="payment_1">支付</label> <input name="payvalue" size="3" class="px pxs vm" onfocus="document.getElementById('payment_1').checked = true;" /> 元</p>
</td>
</tr>
<tr>
<th>留言</th>
<td><textarea name="message" maxlength="200" cols="28" class="pt"></textarea></td>
</tr>
</table>
</div>
</div>

<input type="hidden" name="activitysubmit" value="true">
<em class="xi1" id="return_activityapplies"></em>
<center><input type="submit" class="mysubmit" value="提交"/></center>

</form>





<script type="text/javascript">
function succeedhandle_activityapplies(locationhref, message) {
showDialog(message, 'notice', '', 'location.href="' + locationhref + '"');
}
</script>
<div style="clear:both;"></div>
</div>


<form name="activity_manager" id="activity_manager" method="post" autocomplete="off" action="activities.asp?action=manager&amp;tid={$page.topicid}"></form>


{$activities.end}


{$showvote.begin}
<!--投票信息开始-->
<script language="javascript">
<!--
var vote_i=0;
function ShowVoteList(num,total){
	++vote_i;
	var s='';
	s+='	<img src="{$pub.forum_picurl}bar/bar'+((vote_i % 10) + 1)+'.gif" width="'+Math.floor((num / total ) * 80)+'%" height="8" alt=""/>';
	s+=' <b>'+num+'</b> (';
	if(total>0){s+=(Math.floor((num / total )*1000)/10)+'%)';}
	document.writeln(s);
}	
//-->
</script>

<div class="w_b100">
<table class="padd_td main_bor_all" cellspacing="0" cellpadding="0" width="100%">
	<tr>
	  <td align="left" class="board_bg h20">{$page.topic}</td>
	</tr>
	<tr>
	  <td>
		<form action="topicother.asp?t=4&amp;boardid={$pub.boardid}&amp;voteid={$showvote.voteid}&amp;id={$page.topicid}" method="post">
		<table cellspacing="0" cellpadding="0" style="width:100%;table-layout: fixed;background:#fff url(images/bodybg.gif) repeat-x;" class="padd_td">
			<tr>
				<td width="50%">
				<b>选择项</b>
				</td><td></td>
			</tr>
			{$showvote.list}
			<tr>
				<td colspan="2">
				{$showvote.input}  [ 参与人数 <b>{$showvote.voters}</b> 人 截止时间：{$showvote.timeout} | <a href="javascript:openScript('viewinfo.asp?t=1&amp;boardid={$pub.boardid}&amp;id={$showvote.voteid}',650,600)">查看参与用户</a>]
				</td>
			</tr>
			<tr>
				<td colspan="2">
				您需要达到所设定的数值才能参与：文章 <b>{$showvote.uarticle}</b> 积分 <b>{$showvote.uep}</b> 魅力 <b>{$showvote.ucp}</b>  金钱 <b>{$showvote.uwealth}</b> 威望 <b>{$showvote.upower}</b>
				</td>
			</tr>
		</table>
		</form>
	  </td>
	</tr>
</table>
<!--投票信息结束-->
</div>
{$showvote.end}




<div class="w_b100 mar_t1">


<!--<div style="float:right;">您是本帖的第 <b>{$page.hits}</b> 个阅读者 </div>-->


<form method="post" autocomplete="off" name="moderate" id="moderate" action="admin_batch_html.asp?thepost=yes">
<input name="operation" type="hidden" value="" />
<input name="moderate[]" type="hidden" value="{$page.topicid}" />
<input name="boardid" type="hidden" value="{$pub.boardid}" />
<input type="hidden" name="bumptype" value="0" id="bumptype" />
<link rel="stylesheet" type="text/css" href="skins/boardmaster.css" />
<script src="js/boardmaster.js" type="text/javascript"></script>
</form>



<table width="100%" border="0" cellspacing="0" cellpadding="0" class="padd_td">
  <tr>
    <td colspan="2" class="mybgbor pdl_5 co_fff"  style="padding:0px 5px;"><span class="f_r pdr_5">{$page.topicadminlist}{$page.modelink}<span class="pipe">|</span><a href="TopicOther.asp?t=5&amp;BoardID={$pub.boardid}&amp;id={$page.topicid}" target="_blank">打印</a><span class="pipe">|</span>{$bbslist.url}<a href="javascript:void(0);" onclick="copyToClipBoard();">复制链接</a>{$logined.begin}<span class="pipe">|</span><a href="javascript:void(0);" title="将本帖加入论坛收藏夹" onClick="hstbbspost('favlist');">收藏</a><span class="pipe">|</span><a href="javascript:void(0);" title="修复帖子的回复数、更新时间。" onClick="hstbbspost('fixtopic');">修复</a>
{$logined.end}<div id="threadstamp">{$page.stamp}</div></span>标题:{$page.topic}</td>
  </tr>
{$bbslist.begin}
  <tr>
    <td rowspan="2" class="dispbg{$bbslist.jonum} dispbor1 dispmaibor1" valign="top">{$userinfo.begin}
	   <div class="dispusername">{$user.username}</div>
	   <center>	   
	   {$user.userface}
	   <div>
	   <span><img src="images/freund.gif" alt="" align="absmiddle" /> <a href="friendlist.asp?action=addF&amp;myFriend={$user.username}" target="_blank" title="把{$user.username}加入好友">加好友</a>&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/mail.gif" align="absmiddle" /> <a href="javascript:;" onclick="HstWnd.open('给{$user.username}发送短信','messanger.asp?action=new&amp;touser={$user.username}',800,600,1,{bgc:'black',opa:0.5});" title="给{$user.username}发送一个短消息">发短信</a></span></div>
	   <div class="usertitle">{$user.titlepic}</div></center>
	   {$user.medal}
	   {$user.usertitle}
	   <div class="userinfo_main"> 等级：{$user.userclass}</div>	   
	   <div class="userinfo_main"> 经验：{$user.userep} 点</div>
	   <div class="userinfo_main"> 金钱：{$user.usercp} </div>
	   <div class="userinfo_main"> 金币：{$user.usermoney} 个</div>
	   <div class="userinfo_main"> 威望：{$user.userpower} 点</div>
	   <div class="userinfo_main"> 帖子：<b class="green">{$user.userpost}</b> 篇</div>
	   <div class="userinfo_main"> 精华：{$user.userisbest} 篇</div>
	   <div class="userinfo_main"> 注册：<em>{$user.joindate}</em></div>
	   {$user.ontime}
	   {$userinfo.end}</td>
    <td class="dispbg{$bbslist.jonum} dispbor5 dispmaibor2" valign="top">
	    <div class="authoridcss1">
		<span style="float:right;">{$bbslist.floor}楼</span>

		<img class="authicn vm" src="images/comm/online_member.gif" /> 发表于{$bbslist.dateandtime}<span class="pipe">|</span>{$bbslist.authorid}
{$user.link_qq}{$user.link_homepage}{$user.link_info}{$user.link_search}{$user.link_email}{$user.link_msn}{$user.link_ali}{$user.rating}
        </div>
	    <div style="width:100%;clear:both;word-wrap:break-word;word-break:break-all;line-height:200%;{$bbslist.bodystyle};">{$ad.ads_left_jian}{$bbslist.body}</div></td>
  </tr>
  <tr>
    <td class="dispbg{$bbslist.jonum} dispbor2 dispmaibor2" valign="bottom">{$bbslist.rating}{$bbslist.bodymood}{$bbslist.share}<div class="usersign">{$user.usersign}</div></td>
  </tr>
  <tr>
    <td class="dispbor3 dispmaibor3"><img src="images/disp/ip.gif" align="absmiddle" /> {$bbslist.ip}</td>
    <TD  class="dispbor4 dispmaibor3"><span class="imp">{$ad.bbslist_bottom}</span><span style="padding-right:5px;float:right;">{$canreply.begin}{$bbslist.adminlist}<span class="pipe">|</span><a href="#editform" onclick="reply({$bbslist.floor},'{$user.username}','{$bbslist.dateandtime}',hsttextarea);">引用</a><span class="pipe">|</span><a href="post.asp?action=re&amp;BoardID={$pub.boardid}&amp;replyID={$bbslist.announceid}&amp;ID={$page.topicid}&amp;star={$pub.currentpage}" title="回复这个帖子">回复</a> {$canreply.end}{$canedit.begin}<span class="pipe">|</span><a href="post.asp?action=edit&amp;BoardID={$pub.boardid}&amp;replyID={$bbslist.announceid}&amp;ID={$page.topicid}&amp;star={$page.currentpage}" title="编辑这个帖子">编辑</a> {$canedit.end}{$logined.begin}{$logined.end}</span></TD>
  </tr>
{$bbslist.end}
</table>
<span id="ajaxMsg_1" style="display:none;" class="ajaxMsg"></span>
</TABLE>
<div style="margin-top:5px;text-align:left;"><span style="float:right;" id="showpage2"></span><span><select name="BoardJumpList" id="BoardJumpList"></select></span>
<script type="text/javascript" language="javascript">BoardJumpListSelect('{$pub.boardid}',"BoardJumpList","论坛跳转到....","",0);</script></div>
<script type="text/javascript" language="javascript">
var mypagestr="{$urlrewrite.open}{$bbslist.showpage1}{$urlrewrite.close}";
document.getElementById("showpage").innerHTML=mypagestr;
document.getElementById("showpage2").innerHTML=mypagestr;
</script>
<!--单帖管理部份-->
<form method="post" autocomplete="off" name="bbslist" id="bbslist" action="admin_postings.asp?nopost=yes">
<input name="operation" type="hidden" value="" />
<input name="moderate[]" type="hidden" value="{$page.topicid}" />
<input name="boardid" type="hidden" value="{$pub.boardid}" />
<input name="announceid" type="hidden" value="0" id="announceid" />
</form>


<div style="clear:both;height:0px;overflow:hidden;font-size:0;"></div>


{$canreply.begin}

<script language="javascript" src="hst_edit/main.js"></script>
<script language="javascript">
<!--
var frmAD=null;
function CheckIsUpload(frm,e){
	frmAD=gid('ad')?((gid('ad')).contentWindow||window.frames['ad']):null;
	if (frmAD&&frmAD.HstFileInput&&frmAD.HstFileInput.realcount>0){
		gid('submit').disabled=true;
		try{if(e.preventDefault){e.preventDefault();}else{e.returnValue=false;}}catch(er){}
		frmAD.HstFileInput.send();
		WaitForSubmit(frm);
	}else{
		FastReplySubmit(frm,e);
	}
}
function WaitForSubmit(frm){
	if (0==frmAD.HstFileInput.realcount){
		gid('submit').disabled=false;
		setTimeout(function(){gid('submit').click();},0);
	}else{
		setTimeout(function(){
			WaitForSubmit(frm);
		},1000);
	}
}
function FastReplySubmit(frm,e){
	gid('body').value=hsttextarea.save();
	gid('submit').disabled=true;
	var FastRE=new HstSavePost(frm,e,'fastre');
	FastRE.chk_topic(gid('topic'));
	FastRE.chk_content(gid('body'));
	if(!FastRE.send()){
		gid('submit').disabled=false;
	}
}
function SwitchDiv(disp,id){
	gid(id).style.display=disp?'':'none';
}
//-->
</script>
<a name="editform"></a>
<form id="Hstform" name="Hstform" action="savepost.asp?action=sre&amp;method=fastreply&amp;BoardID={$pub.boardid}" onsubmit="CheckIsUpload(this,event);" method="post">
<input type="hidden" id="followup" name="followup" value="{$page.announceid}" />
<input type="hidden" id="RootID" name="RootID" value="{$page.topicid}" />
<input type="hidden" id="star" name="star" value="{$page.currentpage}" />
<input type="hidden" id="TotalUseTable" name="TotalUseTable" value="{$page.bbstable}" />
<input type="hidden" id="UserName" name="UserName" value="{$pub.username}" />
<input type="hidden" value="" name="upfilerename" />
<input type="hidden" name="poststyle" value="ajax" />
<input type="hidden" name="reurl" value="[reurl]" />
<div class="mybgbor pdl_5 co_fff">快速回复：{$page.topic}</div>
<div class="main_bor_all">
    <div class="search" id="title_input" style="display:none;clear:both;padding:3px 5px;"><div class="searchin"><strong class="ml10">回复标题：</strong><input name="topic" id="topic" size="60"  value="" class="myinput"  /><span id="topic_chk"></span></div></div>

    
<div id="upload_input" style="display:block;clear:both;padding:2px;z-index:2;width:98%;">
    <iframe id="addfile" name="ad" align="left" frameborder="0" width="98%" height="78" scrolling="no" src="{$page.iffilename}?boardid={$pub.boardid}"></iframe>
</div>

    <div style="clear:both;border-top:1px solid #c6d2e3;padding:1px 3px;">
	<textarea id="body" name="body" style="display:none;width:99%;height:240px;margin:0;padding:0;border:none;margin:0px auto;"></textarea></div>
<div style="margin:0;"><SCRIPT LANGUAGE="JavaScript">
		var hsttextarea=null;
		var Hst_Mode=parseInt('{$pub.editmode}');
		var edit_mode_,toolbar_;
		if(3==Hst_Mode){Hst_Mode=1;}
		switch(Hst_Mode){
			case 1:edit_mode_='design';toolbar_=['<label style="float:left;padding-top:3px;"><input style="border:none" type="checkbox" onclick="SwitchDiv(this.checked,\'title_input\');try{gid(\'topic\').focus();}catch(e){}" />标题</label> <label style="float:left;padding-top:3px;"><input style="border:none" type="checkbox" onclick="gid(\'addfile\').src=\'{$page.iffilename}?boardid={$pub.boardid}\';SwitchDiv(this.checked,\'upload_input\')" checked="checked" />上传</label>'];break;
			case 2:edit_mode_='design';toolbar_=[{$tenpay.begin}'tenpay',{$tenpay.end}'<label style="float:left;padding-top:3px;"><input style="border:none" type="checkbox" onclick="SwitchDiv(this.checked,\'title_input\');try{gid(\'topic\').focus();}catch(e){}" />标题</label> <label style="float:left;padding-top:3px;"><input style="border:none" type="checkbox" onclick="gid(\'ad\').src=\'{$page.iffilename}?boardid={$pub.boardid}\';SwitchDiv(this.checked,\'upload_input\')" /*checked="checked"*/ />上传</label>'];break;
			default:edit_mode_='text';
		}
		var hsteditconfig={
			textarea_id:'body',
			edit_height:'212px',
			edit_mode:edit_mode_,
			toolbar:toolbar_,
			use_ubb:2==Hst_Mode,
			is_show_status:Hst_Mode>0
		};
		function hstloadarea(){
			if ('function'==typeof HstEdit){
				hsttextarea=new HstEdit(hsteditconfig);
			}else{setTimeout('hstloadarea()',0)}
		}
		hstloadarea();
		</SCRIPT>
<link id="css" href="hst_edit/skins/default/main.css" type="text/css" rel="stylesheet">
<script language="javascript" src="hst_edit/toolbar.js"></script>
		</div>


</div>
<div class="main_bor_rbl dispsubmitpadd">

<b>签名</b><input type="radio" value="0" name="signflag" />不显示<input type="radio" checked="checked" value="1" name="signflag" />显示
<input type="submit" value="发表回复" name="Submit" class="mysubmit" style="margin:3px 0px 0px 5px;"/>
<input type="button" value="预览" name="Button"  class="mysubmit" onclick="Gopreview()" style="margin:3px 0px 0px 5px;" />
<input  class="mysubmit" type="reset" name="Clear" value="清空内容！" onclick="ClearReset()"  style="margin:3px 0px 0px 5px;"/>
内容限制：<input class="myinput" disabled="disabled" maxLength="6" size="8" value="1024000" name="total"  style="margin:3px 0px 0px 5px;"/> 字节.
</div>
</form>
{$canreply.end}

</div>