<?exit?>
{template site_header}

<div id="navigation" class="simplepage">
	<h2>管理模式</h2>
</div>

<p>您的位置：
	<a href="{S_URL}/" target="_self">$_SCONFIG[sitename]</a>
	&gt;&gt; $lang[manage] &gt;&gt; <a href="batch.manage.php?uid=$theuid">$space[spacename]</a>
	<!--{if !empty($item[subject])}--> &gt;&gt; <a href="#uid/$item[uid]/action/viewspace/itemid/$item[itemid]#" target="_blank">$item[subject]</a><!--{/if}-->
</p>

<form id="opform" name="opform" action="{S_URL}/batch.manage.php?uid=$uid&itemid=$itemid" method="post">

<div class="contentR">
	<div class="sideR">

		<div class="block topblock">
			<h3 style="text-align:center;">作者空間</h3>
			<div class="catepic">
				<div><a href="batch.manage.php?uid=$theuid"><img src="$space[photo]" alt="$space[spacename]" border="0" /></a></div>
				<p style="text-align:center;font-weight:bold;"><a href="batch.manage.php?uid=$theuid">$space[username]</a><br><a href="batch.manage.php?uid=$theuid">$space[spacename]</a>
				<br><br>$space[status]
				</p>
			</div>

			<ul class="msgtitlelist">
				<li>總信息數: $space[spaceallnum]</li>
				<li>總瀏覽量: $space[viewnum]</li>
				<li><a href="{B_URL}/viewpro.php?uid=$uid">查看論壇資料</a></li>
				<li><a href="batch.manage.php?uid=$theuid">查看作者所發信息</a></li>
				<li>成立時間: #date("Y-m-d H:i:s", $space["dateline"])#</li>
				<li>最後更新: #date("Y-m-d H:i:s", $space["lastpost"])#</li>
			</ul>
		</div>
		
	</div>
	
	<div class="mainarea">

<!--{if !empty($item)}-->
		<div class="block topblock">
			<h3>
				$item[subject]
			</h3>
			<div style="padding:0.5em;line-height:1.5em;"><strong>IP</strong>: $iteminf[postip]  / <strong>發佈時間</strong>: #date("Y-m-d H:i:s", $item["dateline"])# / 查看($item[viewnum]) / 評論($item[replynum]) / 好評($item[goodrate]) / 差評($item[badrate])
			<br><strong>內容源碼</strong>:
			<textarea style="width:99%; height:20em; border:0; font: 12px/160% Courier New, Arial, Helvetica, sans-serif;">$iteminf[message]</textarea>
			</div>
		</div>
		<div class="block" style="padding:0.5em;">
			<button type="submit" name="actionsubmit" value="delete" onclick="this.form.action+='&actionsubmit=delete';return confirm('確定直接刪除嗎?');">直接刪除</button> 
			<button type="submit" name="actionsubmit" value="rush" onclick="this.form.action+='&actionsubmit=rush';">放入回收站</button> &nbsp;
			<select name="catid">$catstr</select> <button type="submit" name="actionsubmit" value="category" onclick="this.form.action+='&actionsubmit=category';">更改分類</button> 
			$gradestr <button type="submit" name="actionsubmit" value="grade" onclick="this.form.action+='&actionsubmit=grade';">審核等級</button>
		</div>
		
		<!--{if !empty($commentlist)}-->
		<div id="commentlist" class="block">
			<h3>前100條評論源內容</h3>
			<ul class="commentlist">
				<!--{loop $commentlist $value}-->
				<li>
					<h4>
						<input type="checkbox" name="comments[]" value="$value[cid]">
						<!--{if empty($value[authorid])}-->$value[author]<!--{else}--><a href="batch.manage.php?uid=$value[authorid]" class="author">$value[author]</a><!--{/if}-->
					 	<span class="smalltxt">(#date("Y-n-d H:i:s", $value["dateline"])#, 評分: <strong class="price">$value[rates]</strong>, IP: $value[ip] )</span>
					</h4>
					<div><textarea style="width:99%; height:5em; border:none; font: 12px/160% Courier New, Arial, Helvetica, sans-serif;">$value[message]</textarea></div>
				</li>
				<!--{/loop}-->
			</ul>
		</div>
		<div class="block" style="padding:0.5em;"><input type="checkbox" id="chkall" name="chkall" onclick="checkall(this.form, 'comments')" />全選 <button type="submit" name="actionsubmit" value="deletecomment" onclick="this.form.action+='&actionsubmit=deletecomment';">刪除評論</button></div>
		<!--{/if}-->
<!--{/if}-->

<!--{if !empty($itemlist)}-->
	<!-- Content內容 -->
		<div class="block topblock">
			<h3>信息列表</h3>
			<ul class="cleanlist">
				<!--{if $itemlist}-->
				<!--{loop $itemlist $value}-->
				<li>
					<input type="checkbox" name="items[]" value="$value[itemid]">[{$value[folder]}] <a href="{S_URL}/batch.manage.php?itemid=$value[itemid]">[<strong>{$lang[$value[type]]}</strong>]$value[subject]</a> <span class="smalltxt">($value[viewnum]/$value[replynum]) (#date("m-d h:m", $value["dateline"])#)</span>
				</li>
				<!--{/loop}-->
				<!--{if $nextstart}--><li><h4><a href="{S_URL}/batch.manage.php?uid=$uid&start=$nextstart">查看下一列表信息</a></h4></li><!--{/if}-->
				<!--{else}-->
				現在還沒有發佈信息
				<!--{/if}-->
			</ul>
			<div>$multipage</div>
		</div>
		
		<div class="block" style="padding:0.5em;">
			<input type="checkbox" id="chkall" name="chkall" onclick="checkall(this.form, 'items')" /> 全選 &nbsp;
			<button type="submit" name="actionsubmit" value="deletelist" onclick="this.form.action+='&actionsubmit=deletelist';return confirm('確定直接刪除嗎?');">直接刪除</button> &nbsp;
			<button type="submit" name="actionsubmit" value="rushlist" onclick="this.form.action+='&actionsubmit=rushlist';">放入回收站</button> &nbsp;
			$gradestr <button type="submit" name="actionsubmit" value="gradelist" onclick="this.form.action+='&actionsubmit=gradelist';">等級審核</button>
		</div>
<!--{/if}-->

	</div>
</div>

</form>

{template site_footer}