<?exit?>
<!--{eval include template($tpldir.'/header.html.php', 1);}-->
<!--{eval $ads2 = getad('system',$modelsinfoarr[modelname], 2);}-->
<!--{if !empty($ads2['pageheadad'])}-->
<div class="adbanner">$ads2[pageheadad]</div>
<!--{/if}-->
<div id="content">
	<div id="navigation">
		<em>
		<!--{if $modelsinfoarr[allowpost]}-->
		<a href="$posturl" title="在線投稿" class="vote">在線投稿</a>
		<!--{/if}-->
		<!--{if !empty($cacheinfo[perms][$_SGLOBAL[supe_uid]])}-->
		<a href="javascript:;" onclick="javascript:OpenWindow('$siteurl/admincp.php?action=modelmanages&mid=$modelsinfoarr[mid]','check',770,500);" title="信息管理" class="admin">信息管理</a>
		<!--{/if}-->
		</em>
		您的位置：<a href="{S_URL}/">$_SCONFIG[sitename]</a>
		<!--{loop $guidearr $value}-->
		&gt;&gt; <a href="$value[url]">$value[name]</a>
		<!--{/loop}-->
	</div>
	<div id="main">
		<div class="article block topblock">
			<h1>$item[subject]</h1>
			<p class="articleinfo">發佈者：$item[username]&nbsp;&nbsp;瀏覽次數：$item[viewnum]&nbsp;&nbsp;發佈時間：#date('Y-n-d H:i', $item["dateline"])#
				&nbsp;&nbsp;評論數：$item[replynum]</p>
		</div>
		<!--{if !empty($ads2['pagecenterad'])}-->
		<div class="adbox">
			$ads2[pagecenterad]
		</div>
		<!--{/if}-->
		<!--{if !empty($modelsinfoarr['allowcomment'])}-->
			<!--{if !empty($iarr)}-->
			<div id="commentlist" class="block">
				<h3>全部評論</h3>
				<dl>
					<!--{loop $iarr $value}-->
					<dt>
						<em>
						<a href="#action/modelcomment/name/$modelsinfoarr[modelname]/itemid/$value[itemid]/cid/$value[cid]/op/delete/php/1#">刪除</a> 
						<!--{if !empty($value['message'])}-->
						<a href="javascript:;" onclick="getModelQuote('$modelsinfoarr[modelname]', '$value[cid]')">引用</a>
						<!--{/if}-->
						</em>
						<!--{if empty($value[authorid])}-->
						$value[author]
						<!--{else}-->
						<a href="#uid/$value[authorid]#" target="_blank" class="author">$value[author]</a>
						<!--{/if}-->
						&nbsp; 評論時間 #date("Y-n-d H:i:s", $value["dateline"])#
					</dt>
					<dd>
						<!--{if !empty($value['message'])}-->
						$value[message]
						<!--{/if}-->
					</dd>
					<!--{/loop}-->
				</dl>
			</div>
			<div class="pages">
				<div class="models-page">
					$multipage
				</div>
			</div>
			<!--{/if}-->

			<div id="comment" class="block cleanblock">
				<h3>我來說兩句</h3>
				<form id="postcomm" action="#action/modelcomment/itemid/$item[itemid]/name/$modelsinfoarr[modelname]/php/1#" method="post">
				<p><label for="messagecomm">內 容:</label><textarea id="messagecomm" name="messagecomm"></textarea></p>
				<!--{if empty($_SCONFIG['noseccode'])}-->
				<p><label for="seccode">驗 證:</label><input type="text" id="seccode" name="seccode" class="submitcode" value="" size="5" /> <img id="xspace-imgseccode" src="{S_URL}/batch.seccode.php" onclick="javascript:newseccode(this);" alt="seccode" title="看不清？點擊換一個" /></p>
				<!--{/if}-->
				<!--{if !empty($_SCONFIG['ucmode']) && !empty($_SGLOBAL['supe_uid'])}-->
				<p>加入事件
				<input type="checkbox" name="addfeed"  $addfeedcheck>					
				</p>
				<!--{/if}-->
				<p><button type="submit" id="submitcomm" name="submitcomm" value="submit" class="submitcomm">發表評論</button></p>
				<input type="hidden" id="itemid" name="itemid" value="$item[itemid]" />
				<input type="hidden" id="name" name="name" value="nxnaown" /></p>
				</form>
			</div>
		<!--{/if}-->
	</div>
	<div id="side">
		<!-- 用戶面板 -->
		<div id="model-login" class="block topblock">
			<script src="{S_URL}/batch.panel.php?rand={eval echo rand(1, 999999)}" type="text/javascript" language="javascript"></script>
		</div>
		<!--{if !empty($gatherarr)}-->
		<!--{loop $gatherarr $key $value}-->
		<!--{if !empty($value)}-->
		<div class="types block">
			<h3>$cacheinfo[columns][$key][fieldcomment]</h3>
			<ul>
				<!--{loop $value $tmpvalue}-->
				<li><a href="$siteurl/m.php?name=$modelsinfoarr[modelname]&mo_$key=<!--{eval echo rawurlencode($tmpvalue);}-->">$tmpvalue</a></li>
				<!--{/loop}-->
			</ul>
		</div>
		<!--{/if}-->
		<!--{/loop}-->
		<!--{/if}-->
	</div>
</div>

<!--{if !empty($ads2['pagefootad'])}-->
<div class="adbox">$ads2[pagefootad]</div>
<!--{/if}-->

<!--{if !empty($ads2['pagemovead']) || !empty($ads2['pageoutad'])}-->
<!--{if !empty($ads2['pagemovead'])}-->
<div id="coupleBannerAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
	<div style="position: absolute; left: 6px; top: 6px;">
		$ads2[pagemovead]
		<br />
		<img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');">
	</div>
	<div style="position: absolute; right: 6px; top: 6px;">
		$ads2[pagemovead]
		<br />
		<img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');">
	</div>
</div>
<!--{/if}-->
<!--{if !empty($ads2['pageoutad'])}-->
<div id="floatAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
	<div id="floatFloor" style="position: absolute; right: 6px; bottom:-700px">
		$ads2[pageoutad]
	</div>
</div>
<!--{/if}-->
<script type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
<script type="text/javascript">
<!--{if !empty($ads2['pageoutad'])}-->
var lengthobj = getWindowSize();
lsfloatdiv('floatAdv', 0, 0, 'floatFloor' , -lengthobj.winHeight).floatIt();
<!--{/if}-->
<!--{if !empty($ads2['pagemovead'])}-->
lsfloatdiv('coupleBannerAdv', 0, 0, '', 0).floatIt();
<!--{/if}-->
</script>
<!--{/if}-->

<!--{if !empty($ads2['pageoutindex'])}-->
$ads2[pageoutindex]
<!--{/if}-->

<!--{eval include template($tpldir.'/footer.html.php', 1);}-->