<?php  include("../template/usertop.php");?>
<body style="padding:0px;">
<?php  include("../template/menu.php");?>
<div class="head-wrap">
<div class="main_top_1">
<div class="mt" style="position:relative;">
<?php  include("../template/user_left.php");?> 
<div class="user_zx_right">
<div class="box">
<div class="tagMenu">
<ul class="menu">
<li><a href="/mobile/user/msg.php">站内短信</a></li>
<li class="current"><a href="/mobile/user/login_log.php">登录记录</a></li>
</ul>
<div class="hite"> <span id="account"></span> </div>
</div>
</div>
<div class="myinfo" style="padding: 20px; margin-bottom: 15px;background:#fff;">
<p style="margin:15px 0px;">尊敬的<?php echo configW('webname'); ?>会员，以下是您在<?php echo configW('webname'); ?>的登录记录，敬请审阅！</p>

	<div class="container-fluid">
        <div class="row-fluid">
            <table class="table table-striped table-bordered table-hover datatable">
                <thead>
                    <tr>
                        <th>id</th>
                        <th>登录时间</th>
                        <th>登录ip</th>
                        <th>状态</th>
                    </tr>
                </thead>
                <tbody>

					<?php
						$username = $_SESSION["glo_username"];
						$sql="select * from {$db_prefix}member_logs where admin = '{$username}'";
						$rs = $db->query($sql);
						if(mysql_num_rows($rs) <1 ){  ?>
							<tr>
								<td width="90%" colspan="5">暂无记录</td>
							</tr>
					<?php }else{ 
						while ($rs2=$db->fetch_array($rs)){  ?>
                    <tr class="odd gradeX">
                        <td><?php echo $rs2['id']; ?></td>
                        <td><?php echo toData($rs2['addtime']); ?></td>
                        <td><?php echo $rs2['ip']; ?></td>
                        <td class="center"><?php echo $rs2['status']?'成功':'失败'; ?></td>
                    </tr>
                    <?php  }}  ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
</div>
</div>
</div>
</div>
<?php  include("../template/foot.php");?> 
<?php  include("../template/page.php");?> 
</body></html>