<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>admin - networds</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="/files/style.css" />
</head>
	<body>
		<div class="footer_bg">
		<center>
			<table id="Table_01" width="960" border="0" cellpadding="0" cellspacing="0" >
				<tr>
					<td id="background_top" width="960" align="center" valign="top" colspan="2">
						<?php $this->load->view('banner'); ?>
					</td>
				</tr>
				<tr>
					<td valign="top" align="left">
						<?php $this->load->view('menu'); ?>
					</td>
					
					<td>
						<div id="rightBox">
							<table border="0" class="rightBox_table" cellpadding="0" cellspacing="0">
								<tr>
									<td><img src="/files/contentBoxTop.jpg" alt="" width="690" height="16"/></td>
								</tr>
								<tr>
									<td valign="top" style="background-image: url(/files/contentBoxMiddle.jpg); width: 690px; height: 547px; background-position: center top; background-repeat: no-repeat;">
										<div id="rightBox_content" style="font-size:9px;">
											
											<span style="color:#bf1416;font-weight:bold;">Tabela odwiedzin</span>
											<br />
											<?php
												if(isset($paginacja))
												{
													echo $paginacja.'<br /><br />';
												}
											?>
											<table id="hor-minimalist-a">
											    <thead>
											    	<tr>
											        	<!--<th scope="col" >IP</th>-->
											            <th scope="col">System operacyjny i przeglądarka www</th>
											            <th scope="col">Rozdzielczość</th>
														<th scope="col">Tytuł strony</th>
														<th scope="col">Wyszukiwarka</th>
														<th scope="col">Szukane słowa</th>
														<th scope="col">Data</th>
											        </tr>
											    </thead>
											    <tbody>											
														
											
											
											<?php
												
												
												if($stats!=null)
												{
													foreach ($stats as $stat)
													{
														if($stat['search_host']=='')
														{
															$stat['search_host']= '---';
														}
														
														if($stat['search_term']=='')
														{
															$stat['search_term']= '---';
														}
														
														//echo "<tr><td>".$stat['ip']."</td><td>".$stat['user_agent']."</td><td>".$stat['resolution']."</td><td>".$stat['page_title']."</td><td>".$stat['search_host']."</td><td>".$stat['search_term']."</td><td>".$stat['data']."</td></tr>";	
														echo "<tr><td>".$stat['user_agent']."</td><td>".$stat['resolution']."</td><td>".$stat['page_title']."</td><td>".$stat['search_host']."</td><td>".$stat['search_term']."</td><td>".$stat['data']."</td></tr>";
													}
												}
											
											?>
											</tbody>
											</table>
											<br /><br />
											<?php
												if(isset($paginacja))
												{
													echo $paginacja.'<br /><br />';
												}
											?>
											<?php
												if($this->uri->segment('1')=='superadmin') 
													$link = 'superadmin';
												else		
													$link = 'admin';
											?>		
											<div class="smallButton2"><a class="gray_link" href="/<?=$link;?>/domain">WSTECZ</a></div>
										</div>
									</td>	
								</tr>
								<tr>
									<td><img src="/files/contentBoxBottom.jpg" alt="" width="690" height="17"/></td>
								</tr>
							</table>
							
						</div>								
							
					</td>
				</tr>
				<tr>
					<td  align="center" valign="top"  colspan="2">
						<?php $this->load->view('footer.php'); ?>
					</td>
				</tr>
			</table>
		</center>
		</div>
	</body>
</html>




