<?php TPL::output('admin/global/header.tpl.htm'); ?>

<!--left-->
<?php TPL::output('admin/global/left.tpl.htm'); ?>
<!--left-->

<!-- main -->
<div id="main-content">
	<div class="clear"></div>
	<div class="content-box">
		<div class="content-box-header">
			<h3><?php echo $this->crumb['last']['name']; ?></h3>
			<span style=" float:left; margin-top:6px; margin-left:15px; line-height:30px; color:#57A000; font-weight:bold">Current Online (<?php echo get_setting('online_interval');?>minutes): <font color="#FF0000" style="font-size:18px;"><?php echo $this->total_count; ?></font>&nbsp Current time: <?php echo date("H:i:s");?></span>
			<!--span style=" float:right; margin-right:10px; line-height:50px; color:#57A000;">Current list updated every 1 minute</span-->
			<ul class="content-box-tabs">
			</ul>
			<div class="clear"></div>
		</div>
		<div class="content-box-content">
			<div class="tab-content default-tab" id="tab1">
				<?php if(!$this->list){ ?>
				<div class="notification attention png_bg"> <a href="javascript:;" class="close"><img src="<?php echo GET_STATIC_URL;?>/admin/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
					<div> Not currently online members </div>
				</div>
				<?php }else{ ?>
				<table class="list">
					<thead>
						<tr>
							<!--th><input class="check-all" type="checkbox" /></th-->
							<th>User ID</th>
							<th>Username</th>
							<th>Activity</th>
							<th style=" width:450px;">Event page</th>
							<th>IP</th>
						</tr>
					</thead>
					<tbody style="border-bottom: 1px solid #ddd;">
						<?php foreach ($this->list AS $key => $val) { ?>
						<tr>
							<td><?php echo $val['uid']; ?></td>
							<td><a href="people/<?php echo $val['userinfo']['url_token']; ?>" target="_blank"><?php echo $val['userinfo']['user_name']; ?></a></td>
							<td><?php echo date("Y-m-d H:i:s", $val['last_active']); ?></td>
							<td><div style="width:460px;height:18px;overflow:hidden"><a href="<?php echo $val['active_url']; ?>" target="_blank"><?php echo $val['active_url']; ?></a></div></td>
							<td><?php echo long2ip($val['ip']); ?></td>
						</tr>
						<?php } ?>
					</tbody>
					<?php if($this->pagination) { ?>
					<tfoot>
						<tr>
							<td colspan="10"><div class="pagination"> <?php echo $this->pagination; ?> </div>
								<div class="clear"></div></td>
						</tr>
					</tfoot>
					<?php } ?>
				</table>
				<?php } ?>
			</div>
		</div>
		<div class="clear"></div>
		<div id="notf_tip" style="display:none;" class="notification png_bg"> <a href="javascript:;" class="close"><img src="<?php echo GET_STATIC_URL;?>/admin/images/icons/cross_grey_small.png" alt="Close" /></a>
			<div id="notf_cont"></div>
		</div>
	</div>

<!-- footer -->
<?php TPL::output('admin/global/footer.tpl.htm'); ?>
<!-- footer -->

</div>
<!-- main -->

</div>

</body>
</html>