<!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"/>
   <script type="text/javascript" src="/files/js/js_checker.js"></script>
<script type="text/javascript">
    function toggleFieldset(el,id) {
        $("#fieldset_content_"+id).slideToggle("fast",toggleFieldsetClass(id));
        }
    function toggleFieldsetClass(id)
    {
        $("#filters_"+id).toggleClass("collapsed");
    }
</script>
	<link rel="stylesheet" type="text/css" href="/files/style.css" />
    <link rel="Shortcut icon" href="http://panel.networds.pl/files/favicon.ico" />
</head>
	<body>
         <div id="js_checker"> </div>
        <script type="text/javascript">
            check_js();
        </script>
		<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;">
										
											<?php $this->load->view('admin/switch_domain');?>
											
											<div class="content_title"><a href="/admin/domain">Moje domeny</a> > tabela odwiedzin</div>
											<?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="formHr">&nbsp;</div>
                                            <input type="button" onclick="document.location.href='/<?=$link;?>/domain';" class="formButton" value="wstecz" name="wstecz"/>
										</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>




