<!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>
<?=$head?>

</head>

<body>



<!-- header -->

<div id="container">

<div id="header" class="clearfix">

    <!-- logo -->

    <div id="logo"><a href="index.html" title=""><img src="images/logo.png" alt="" class="png" /></a></div>

    <!-- /logo -->



    <!-- header right<br><br> -->

    <div style="height:70px;"> </div>

    <!-- /header right -->

</div>

</div>

<!-- /header -->



<!-- containers -->

<div id="container1">

<div id="container2">

<div id="container3">

    

<!-- Sidebar -->

<div class="sidebar">



    <!-- navigation  -->

    <div class="navigation">
    

	<ul id="menu">
	<?php foreach($menu1 as $m) { ?>
	    <li <?php if($m['name_url']==$active){ ?>class="current_page_item"<?php } ?>><a href="<?php if($m['link']==1) echo $m['link_val']; else echo $m['name_url']; ?>" title="<?php echo $m['name'] ?>"><?php echo $m['name'] ?></a></li> 
	<?php } ?>
	   

	</ul>

    </div>

    <!-- / navigation  -->



   <?=$content?>



<!-- content -->

 

<div class="clear"></div>

</div>

</div>                                          

</div>



<!-- /containers -->



<!-- footer -->

<div id="footer">

    <div class="footer_con"> 

	<!-- copyright text -->

	<div class="part1">

	    Copyright &copy; 2010 Kredyt Studencki

	</div>



	<!-- links -->

	<div class="part2">	    

	    <ul>

		<li class="first">Projekt i realizacja: <a  href="http://dimax.pl" title=""><strong>www.dimax.pl</strong></a></li>

	    </ul>

	</div>

   </div>

</div>

<!-- /footer -->

<div id="facebookBox">
		<p>
            <iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FParlament-Student%C3%B3w-Rzeczypospolitej-Polskiej%2F117802718310102&amp;width=216&amp;colorscheme=light&amp;show_faces=true&amp;stream=false&amp;header=true&amp;height=356" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:216px; height:356px;" allowTransparency="true"></iframe>
		</p>
	</div>

</body>

</html>


<?php /*?><!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr" >
 <head>
 <?= $head ?>
  <?=$Google_Analytics?>

  
 </head>
 
<body class=" main">
<form action="/" method="get"><input type="text" name="szukaj" value="<?=$szukaj?>"/><input type="submit" value="szukaj" /></form>
    <div id="all">   
        <div id="header">
       		<div id="head">
            <div class="menu_sub">
                    	
                    </div>
        		<div class="logoheader">
                	<h1 id="logo">
                   		<a href=""><img src="images/logo.png" alt="" /></a>
                    </h1>        
                </div>                  
                <div class="main_menu">
                	<ul class="menu">
                	<?php $count = 0; ?>
					<?php foreach($menu1 as $m){
						$count++;
					?>
                        <li <?php if($m['name_url']==$active){ ?>class="current active"<?php } ?>><a <?php if($count == 1) { ?>class="first"<?php } ?> href="<?php if($m['link']==1) echo $m['link_val']; else echo $m['name_url']; ?>"><?php echo $m['name'] ?></a></li>
                    <?php } ?>
					</ul>

				</div>
			</div>
            <div id="content">
               	<div class="main_box">
               	<?php if($checkBaner) { ?>
                    <div id="container">
                        <ul>
                        <?php if($baner && $baner->num_rows() > 0) foreach ($baner->result() as $baner):  ?>
                            <li><img src="<?='foto/baner/'.$baner->baner_name?>"  alt="" /></li>
                        <?php endforeach; ?>
                        </ul>
                    </div>
                    <div class="baner_shadow"></div>
                <?php } ?> 
                
                
                <?php if($znalezione != null) { 
                	$count = 0;
                	if($znalezione['nodes'] && $znalezione['nodes']->num_rows() > 0){
                		$count++;
                		foreach ($znalezione['nodes']->result() as $n){
                			echo '<p><a href="'.$n->nodes_name_url.'">'.$n->nodes_name.' '.character_limiter(strip_tags($n->nodes_text), 50).'</a></p>';
                		}
                	}
                	if($znalezione['text'] && $znalezione['nodes']->num_rows() > 0){
                		$count++;
                		foreach ($znalezione['text']->result() as $t){
                			echo '<p><a href="'.$t->nodes_name_url.'">'.$t->nodes_name.' '.character_limiter(strip_tags($t->text_content), 50).'</a></p>';
                		}
                	}
                	if($znalezione['news'] && $znalezione['news']->num_rows() > 0){
                		$count++;
                		foreach ($znalezione['news']->result() as $n){
                			echo '<p><a href="'.$n->nodes_name_url.'">'.$n->nodes_name.' '.character_limiter(strip_tags($n->news_text), 50).'</a></p>';
                		}
                	}
                	if($znalezione['news_glowny'] && $znalezione['news_glowny']->num_rows() > 0){
                		$count++;
                		foreach ($znalezione['news_glowny']->result() as $ng){
                			echo '<p><a href="'.$name_url.'/aktualnosci_glowne/'.$ng->ID_news_glowny.'/'.$ng->news_glowny_title_url.'">'.$ng->news_glowny_title.' '.character_limiter(strip_tags($ng->news_glowny_text_short), 50).'</a></p>';
                		}
                	}
                	if($count == 0){
                		?>
                		<p>Nie znaleziono wyników.</p>
                		<?php 
                	}
                ?>
                	
                <?php } ?>
                
                
				<?php if($checkSlider) { ?>
	          		<script type="text/javascript" src="js/jquery.simple_slider.js"></script>
	
					<script type="text/javascript">
						
						$(document).ready(function(){
							/*$(".photos").jCarouselLite({
						        btnNext: ".arrow_left",
						        btnPrev: ".arrow_right"
						    });* /
					
							jQuery('#photos').simple_slider({
						        'leftID': 'arrow_left', //ID of the left image navigation
						        'rightID': 'arrow_right', //ID of the right image navigation
						        'display': 3 //how many images to display at once
							});
						    
						});
					
					</script>
					
					
	          		<div class="slider_gallery">	
						<div class="arrow_left" id="arrow_left"></div>
					
						<div class="photos" id="photos" style="float: left;">
						
	          			<?php if($slider && $slider->num_rows() > 0) foreach ($slider->result() as $slider):  ?>
		                            	                    
		                    <div class="slider_box">
		                        <div class="slider_bg_top"></div>
		                    	<div class="slider_bg_center">
		                    		<a href="<?='foto/slider/'.$slider->slider_name; ?>" rel="shadowbox"><img width="190px" height="135px" src="foto/slider/<?= $slider->slider_name; ?>" border="0"></a>
		                    	</div>
		                    	<div class="slider_bg_bottom"></div>
		                        <a href="<?='foto/slider/'.$slider->slider_name; ?>" class="slider_link" rel="shadowbox"> <?=$slider->slider_header?> &raquo;</a>
		                    </div>
						<?php endforeach; ?>
						
						</div>
					
						<div class="arrow_right" id="arrow_right"></div>
						<div class="clr"></div>
					</div>
				<?php } ?>  
					
					<?=$content ?>
					
                </div>
            </div>
            <div id="footer-outer">
         <div id="footer-sub">
         
          <div id="footer">
          
          
          	
			
			
		<form action="http://<?= $adres ?>/_newsletter_dodaj/_newsletter" method="post">
         	<input type="hidden" name="page" value="<?=$name_url;?>" />
         	<input type="text" name="email" />
         	<input type="submit" value="Zapisz do newslettera"/>
         </form>
            <p class="copy">
                mark foto&video &copy; 2011  &nbsp;| &nbsp; realizacja: <a href="http://dimax.pl" target="_blank">dimax design </a>&nbsp;&nbsp;
            </p>
			<div class="foot_social">
                <ul class="menu">
				<?php $count = 0; ?>
				<?php foreach($menu1 as $m){
					$count++;
				?>
					<li <?php if($m['name_url']==$active){ ?>class="current active"<?php } ?>><a <?php if($count == 1) { ?>class="first"<?php } ?> href="<?php if($m['link']==1) echo $m['link_val']; else echo $m['name_url']; ?>"><?php echo $m['name'] ?></a></li>
					<!--<li id="item-464" class="current active"><a class="first" href="#">start</a></li>
                    <li id="item-444" class="parent"><a href="#">o mnie</a></li>
                    <li id="item-465"><a href="#">portfolio</a></li>
                    <li id="item-466"><a href="#">oferta</a></li>
                    <li id="item-467"><a class="last" href="#">kontakt</a></li>-->
                <?php } ?>
                </ul>

			</div>
		</div>
		</div>
	</div>
		</div>       
    </div>
	
</body>
</html>
<?*/?>