{#include file="header.html"#}
<body>

<!-- top menu -->
{#include file="top.html"#}
<!-- top menu -->

<!-- wrap -->
<div class="wrap">
	<!-- nav -->
	<div class="navlink"><a href="admincp.php">{#$cp_lang.cp#}</a>{#$navlink#}</div>
	<!-- msg -->
	<!-- main -->
	<div class="container">
		<table cellpadding="0" cellspacing="0">
		<tr>
		<td style="width:180px">
		<!-- sidebar -->
		<div class="sidebar">
		<div class="leftmenuheader">{#$cp_lang.check#}</div>
		{#foreach from=$menu item=item key=key name=outmenu#}
		<div class="leftmenubody">
			<div class="leftmenutitle" onClick="show_menu('leftmenuitem_','{#$smarty.foreach.outmenu.iteration#}');"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="leftmenuitem_icon_{#$smarty.foreach.outmenu.iteration#}" />&nbsp;&nbsp;{#$item.mName#}</div>
			<div class="leftmenuitem" id="leftmenuitem_{#$smarty.foreach.outmenu.iteration#}">
				{#foreach from=$item.mItems item=s_item key=s_key#}
				<li><a href="admincp.php?action={#$s_item#}">{#$s_key#}</a></li>
				{#/foreach#}
			</div>
		</div>
		{#/foreach#}
		</div>
		<!-- sidebar end -->
		</td>
		<td>
		<!-- content -->
		<div class="content">
			<!-- include -->
			{#if $type eq "article"#}
			<!-- tip -->
			<!-- tip end -->
			<!-- item -->
			<div class="tablebody">
				<div class="tabletitle" onClick="show_menu('tablecontent_','1');"><span style="float:right;"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="tablecontent_icon_1" /></span>{#$cp_lang.article_check#}</div>
				<div class="tablecontent" id="tablecontent_1">
				<form action="{#$actionurl#}" method="post" name="form" id="{#$type#}">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td width="10%" class="tcell_header">{#$cp_lang.tid#}</td>
						<td width="25%" class="tcell_header">{#$cp_lang.title#}</td>
						<td width="35%" class="tcell_header">{#$cp_lang.author#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.postdate#}</td>
						<td width="*" class="tcell_header"><input type="button" value="{#$cp_lang.chose_all#}" class="submit" name="choseall" onclick="PBchoseAll(this.form)"></td>
					</tr>
					{#foreach from=$article item=item name=article#}
					<tr class="{#if $smarty.foreach.article.iteration % 2 == 0#}tcell_one{#else#}tcell_two{#/if#}">
						<td align="center">{#$item.tid#}</td>
						<td align="center"><a href="javascript:void(0);" onclick="pb_pop('admincp.php?action=preview&type=article&id={#$item.tid#}','400','500')" class="uit" title="{#$cp_lang.preview#}">{#$item.subject#}</a></td>
						<td align="center">{#$item.author#}</td>
						<td align="center">{#$item.postdate#}</td>
						<td align="center"><input type="checkbox" name="tid[]" value="{#$item.tid#}" /></td>
					</tr>
					{#/foreach#}
					<tr>
						<td class="tcell_mult">{#$cp_lang.records#}£º{#$total_records#}</td>
						<td class="tcell_mult" colspan="4" style="text-align:right;">
							{#$mult#}&nbsp;
						</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="5">
							<input name="checktype" type="radio" value="del" />{#$cp_lang.del#}&nbsp;
							<input name="checktype" type="radio" value="pass" checked="checked" />{#$cp_lang.pass#}&nbsp;
							<input class="hidden" name="submitted" type="hidden" value="submitted">
							<input type="submit" value="{#$cp_lang.submit#}" class="submit" name="submit">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- item -->
			{#elseif $type eq "comment"#}
			<!-- tip -->
			<!-- tip end -->
			<!-- item -->
			<div class="tablebody">
				<div class="tabletitle" onClick="show_menu('tablecontent_','1');"><span style="float:right;"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="tablecontent_icon_1" /></span>{#$cp_lang.comment_check#}</div>
				<div class="tablecontent" id="tablecontent_1">
				<form action="{#$actionurl#}" method="post" name="form" id="{#$type#}">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td width="10%" class="tcell_header">{#$cp_lang.rid#}</td>
						<td width="25%" class="tcell_header">{#$cp_lang.content#}</td>
						<td width="35%" class="tcell_header">{#$cp_lang.author#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.postdate#}</td>
						<td width="*" class="tcell_header"><input type="button" value="{#$cp_lang.chose_all#}" class="submit" name="choseall" onclick="PBchoseAll(this.form)"></td>
					</tr>
					{#foreach from=$comment item=item name=comment#}
					<tr class="{#if $smarty.foreach.comment.iteration % 2 == 0#}tcell_one{#else#}tcell_two{#/if#}">
						<td align="center">{#$item.rid#}</td>
						<td align="center"><a href="javascript:void(0);" onclick="pb_pop('admincp.php?action=preview&type=comment&id={#$item.rid#}','400','500')" class="uit" title="{#$cp_lang.preview#}">{#$item.content#}</a></td>
						<td align="center">{#$item.author#}</td>
						<td align="center">{#$item.postdate#}</td>
						<td align="center"><input type="checkbox" name="rid[]" value="{#$item.rid#}" /></td>
					</tr>
					{#/foreach#}
					<tr>
						<td class="tcell_mult">{#$cp_lang.records#}£º{#$total_records#}</td>
						<td class="tcell_mult" colspan="4" style="text-align:right;">
							{#$mult#}&nbsp;
						</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="5">
							<input name="checktype" type="radio" value="del" />{#$cp_lang.del#}&nbsp;
							<input name="checktype" type="radio" value="pass" checked="checked" />{#$cp_lang.pass#}&nbsp;
							<input class="hidden" name="submitted" type="hidden" value="submitted">
							<input type="submit" value="{#$cp_lang.submit#}" class="submit" name="submit">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			{#/if#}
			<!-- include -->
		</div>
		<!-- content -->
		</td>
		</tr>
		</table>
	</div>
</div>
<!-- wrap -->

{#include file="footer.html"#}