<%template _header%>
<!--header end-->

<!--TheCurrent start-->
<div id="foruminfo">
	<div class="userinfo">
		<h2><a href="{config.forumurl}" class="home">{config.forumtitle}</a> <span><a href="usercp.aspx">用户中心</a></span><strong>管理日志</strong></h2>	</div>
	<div class="forumstats">
		<div id="search">
				<%template _quicksearch%>
		</div>
	</div>
</div>
<!--TheCurrent end-->

<!--主体-->
<script type="text/javascript">
	function checkCheckBox(form,objtag)
	{
		for(var i = 0; i < form.elements.length; i++) 
		{
			var e = form.elements[i];
			if(e.name == "postid") 
			{
				e.checked = objtag.checked;
			}
		}
		objtag.checked = !objtag.checked;
	}
</script>
<div class="controlpannel">
   <%template _menu%>
	<div class="pannelcontent">
		<div class="pcontent">
			<div class="panneldetail">
				<%template _spacemenu%>	
				<div class="pannelbody">
					<div class="pannellist">
					<%if page_err==0%>
						<%if ispost%>
							<%template _msgbox%>
						<%else%>
						<div class="pannelmessage">
									<div class="pannelright" style="width: 70%; padding-top: 6px; padding-right: 5px;">
										<a href="usercpspacepostblog.aspx" class="submitbutton"><strong>发表日志</strong></a>
									</div>
						</div>
				  		<form id="form1" name="form1" method="post" action="">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
				  		<tr>
							<th width="50%">日志标题</th>
							<th width="20%">分类</th>
							<th width="17%">发布日期</th>
							<th width="8%">评论次数</th>
							<th width="5%">&nbsp;</th>
					  </tr>
						<%loop currentblog bloglist%>
						<tbody>
						<tr class="messagetable" onmouseover="this.className='messagetableon'" onmouseout="this.className='messagetable'">
					        <td width="50%" style="text-align:left;">
								<input name="postid" type="checkbox" id="blog{currentblog[postid]}" value="{currentblog[postid]}" style="margin-top:8px;"/>
								<a href="{spaceurl}space/viewspacepost.aspx?postid={currentblog[postid]}" title="{currentblog[title]}" target="_blank">{currentblog[shorttitle]}</a>
								<a href="usercpspaceeditblog.aspx?postid={currentblog[postid]}">[编辑]</a>
					        </td>
							<td width="20%">{currentblog[category]}&nbsp;</td>
							<td width="17%" class="fontfamily">{currentblog[postdatetime]}</td>
							<td width="8%"  class="fontfamily">{currentblog[commentcount]}</td>
							<td width="5%"><a href="#" onclick="document.getElementById('blog{currentblog[postid]}').checked=true;document.forms[1].submit();">删除</a></td>
							</tr>
						</tbody>
						<%/loop%>
						</table>
						</form>
						</div>
						<div class="pannelmessage">
									<div class="pannelleft" style="width: 160px;">
										<a href="javascript:;"  onclick="checkCheckBox(document.forms[1],this)" checked="true" class="selectall">全选</a>&nbsp;&nbsp;&nbsp;
										<a href="#" onclick="document.forms[1].submit()" class="selectall">删除</a> 
									</div>
									<div class="pannelright" style="width: 70%; padding-top: 6px; padding-right: 5px;">
										<a href="usercpspacepostblog.aspx" class="submitbutton"><strong>发表文章</strong></a>
									</div>
						</div>
						<div class="forumpages">
  							<div class="forumpagesnumbers">
							<table border="0" cellpadding="0" cellspacing="0" ID="Table2">
								<tr>
									<td class="forumallpages"><strong>{pageid}</strong>/&nbsp;&nbsp;{pagecount}&nbsp;&nbsp;页</td>
									<td style="width:10px;">&nbsp;</td>
									<td class="forumallpages">{pagenumbers}</td>
									<td class="forumallpages3">跳转<input name="gopage" type="text" id="gopage" onKeyDown="if(event.keyCode==13) {
							window.location='usercpspacemanageblog.aspx?page=' + this.value;}"  size="4" maxlength="9"  class="colorblue2"/>页</td>
								</tr>
							</table>
							</div>
						</div>
						<%/if%>
					<%else%>
					<%template _usercperrmsgbox%>
					<%/if%>
			  </div>
			</div>
		</div>
	</div>
</div>
<!--主体-->
</div>
<%template _copyright%>
<%template _footer%>
