<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php
$page_title = L('info_manage');
include $this->admin_tpl('header');
?>
<div class="subnav">
	<h2 class="title-1 line-x f14 fb blue lh28"><?php echo L('info_manage')?></h2>
	<div class="content-menu ib-a blue line-x">
    <div class="rt">
			<form action="index.php" method="get" name="form_member_search">
				<?php echo L('posttime')?>：
				<?php echo form::date('start_time', $start_time)?>
				<?php echo form::date('end_time', $end_time)?>
				<select name="type">
					<option value='1' <?php if(isset($_GET['type']) && $_GET['type']==1){?>selected<?php }?>><?php echo L('lid')?></option>
					<option value='2' <?php if(isset($_GET['type']) && $_GET['type']==2){?>selected<?php }?>><?php echo L('postip')?></option>
				</select>
				<input name="keyword" type="text" value="<?php if(isset($_GET['keyword'])) {echo $_GET['keyword'];}?>" class="input-text" />
				<input type="submit" name="search" class="button" value="<?php echo L('search')?>" />
				<input type="hidden" name="m" value="admin" />
				<input type="hidden" name="c" value="love" />
				<input type="hidden" name="a" value="manage" />
			</form>
	</div>
		<a href="?m=admin&c=love&a=manage" class="on">
		<em><?php echo L('info_manage')?></em></a>
	</div>
</div>
<div class="pad-lr-10">
<form action="?m=admin&c=love&a=delete" method="post" name="form_member_manage">
<div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
	            <th align="left" width="40"><input type="checkbox" value="" id="check_box" onclick="selectall('lid[]');"></th>
				<th align="left" width="60"><?php echo L('lid')?></th>
	            <th align="left"><?php echo L('content')?></th>
				<th align="left"><?php echo L('postip')?></th>
	            <th align="left"><?php echo L('posttime')?></th>
            </tr>
        </thead>
    <tbody>
<?php
foreach($memberlist as $k=>$v) {
?>
	<tr>
		<td align="left" width="40"><input type="checkbox" value="<?php echo $v['lid']?>" name="lid[]"></td>
		<td align="left" width="60"><?php echo $v['lid']?></td>
		<td align="left"><?php echo $v['content']?></td>
		<td align="left" width="80"><?php echo $v['postip']?></td>
		<td align="left" width="120"><?php echo format::date($v['postdate'], 1);?></td>
	</tr>
<?php
}
?>   </tbody>
    </table>
    <div class="btn">
	<label for="check_box"><?php echo L('select_all')?>/<?php echo L('cancel')?></label>
	<input type="submit" class="button" value="<?php echo L('delete')?>" onclick="return confirm('<?php echo L('sure_delete')?>')"/>
	</div>
    <div id="pages">
    <?php echo $pages?>
    </div>
</form>
</div>
</body>
</html>
