{#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.log#}</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 "admin"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.admin_log_tip_1#}</li>
					<li>系统将默认保留3天内的日志</li>
				</div>
			</div>
			<!-- tip end -->
			<!-- admin log start -->
			<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.admin_log#}</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.username#}</td>
						<td width="40%" class="tcell_header">{#$cp_lang.action#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.date#}</td>
						<td width="10%" class="tcell_header">{#$cp_lang.ip#}</td>
						<td width="*" class="tcell_header">{#$cp_lang.description#}</td>
					</tr>
					{#foreach from=$log item=item name=log#}
					<tr class="{#if $smarty.foreach.log.iteration % 2 == 0#}tcell_one{#else#}tcell_two{#/if#}">
						<td align="center">{#$item.username#}</td>
						<td class="ww">{#$item.action#}</td>
						<td align="center">{#$item.logdate#}</td>
						<td align="center">{#$item.logip#}</td>
						<td align="center">{#$item.description#}</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 type="submit" value="{#$cp_lang.dellog#}" class="submit" name="submit">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- admin log end -->
			{#elseif $type eq "login"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.admin_log_tip_1#}</li>
					<li>系统将默认保留3天内的日志</li>
				</div>
			</div>
			<!-- tip end -->
			<!-- login start -->
			<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.login_log#}</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.username#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.date#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.ip#}</td>
						<td width="*" class="tcell_header">{#$cp_lang.description#}</td>
					</tr>
					{#foreach from=$log item=item name=log#}
					<tr class="{#if $smarty.foreach.log.iteration % 2 == 0#}tcell_one{#else#}tcell_two{#/if#}">
						<td align="center">{#$item.username#}</td>
						<td align="center">{#$item.logdate#}</td>
						<td align="center">{#$item.logip#}</td>
						<td class="ww">{#$item.description#}</td>
					</tr>
					{#/foreach#}
					<tr>
						<td class="tcell_mult">{#$cp_lang.records#}：{#$total_records#}</td>
						<td class="tcell_mult" colspan="3" style="text-align:right;">
							{#$mult#}&nbsp;
						</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="4">
							<input type="submit" value="{#$cp_lang.dellog#}" class="submit" name="submit">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- login end -->
			{#elseif $type eq "common"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.admin_log_tip_1#}</li>
				</div>
			</div>
			<!-- tip end -->
			<!-- common log start -->
			<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.common_log#}</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.username#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.date#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.ip#}</td>
						<td width="*" class="tcell_header">{#$cp_lang.description#}</td>
					</tr>
					{#foreach from=$log item=item name=log#}
					<tr class="{#if $smarty.foreach.log.iteration % 2 == 0#}tcell_one{#else#}tcell_two{#/if#}">
						<td align="center">{#$item.username#}</td>
						<td align="center">{#$item.logdate#}</td>
						<td align="center">{#$item.logip#}</td>
						<td class="ww">{#$item.description#}</td>
					</tr>
					{#/foreach#}
					<tr>
						<td class="tcell_mult">{#$cp_lang.records#}：{#$total_records#}</td>
						<td class="tcell_mult" colspan="3" style="text-align:right;">
							{#$mult#}&nbsp;
						</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="4">
							<input type="submit" value="{#$cp_lang.dellog#}" class="submit" name="submit">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- common log end -->
			{#/if#}
			<!-- include -->
		</div>
		<!-- content -->
		</td>
		</tr>
		</table>
	</div>
</div>
<!-- wrap -->

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