<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Panel administracyjny AsterCMS</title>
<link rel="stylesheet" href="<?php echo base_url(); ?>css/screen.css" type="text/css" media="screen" title="default" />
<link rel="stylesheet" href="<?php echo base_url(); ?>css/buttons.css" type="text/css" media="screen" title="default" />
<link rel="stylesheet" href="<?php echo base_url(); ?>css/modules/main.css" type="text/css" media="screen" title="default" />
<!--[if IE]>
<link rel="stylesheet" media="all" type="text/css" href="css/pro_dropline_ie.css" />
<![endif]-->
<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery-1.4.2.min.js"></script>
<script src="<?php echo base_url(); ?>js/jquery/ui.core.js" type="text/javascript"></script>
<script src="<?php echo base_url(); ?>js/jquery/ui.checkbox.js" type="text/javascript"></script> 
<script src="<?php echo base_url(); ?>js/jquery/jquery.bind.js" type="text/javascript"></script>
<script type="text/javascript">
</script>  

<![if !IE 7]>
<script src="<?php echo base_url(); ?>js/jquery/jquery.selectbox-0.5.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect').selectbox({ inputClass: "selectbox_styled" });
});
</script>
<![endif]>
<script src="<?php echo base_url(); ?>js/jquery/jquery.selectbox-0.5_style_2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect_form_1').selectbox({ inputClass: "styledselect_form_1" });
	$('.styledselect_form_2').selectbox({ inputClass: "styledselect_form_2" });
});
</script>
<script src="<?php echo base_url(); ?>js/jquery/jquery.selectbox-0.5_style_2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect_pages').selectbox({ inputClass: "styledselect_pages" });
});
</script>

<script src="<?php echo base_url(); ?>js/jquery/jquery.filestyle.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
  $(function() {
      $("input.file_1").filestyle({ 
          image: "<?php echo base_url(); ?>images/forms/upload_file.gif",
          imageheight : 29,
          imagewidth : 98,
          width : 310
      });
  });
</script>
<script src="<?php echo base_url(); ?>js/jquery/custom_jquery.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo base_url(); ?>css/datePicker.css" type="text/css" />
<script src="<?php echo base_url(); ?>js/jquery/date.js" type="text/javascript"></script>
<script src="<?php echo base_url(); ?>js/jquery/jquery.datePicker.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
        $(function()
{
$('#date-pick')
	.datePicker(
		{
			createButton:false,
			startDate:'01/01/2005',
			endDate:'31/12/2020'
		}
	).bind(
		'click',
		function()
		{
			updateSelects($(this).dpGetSelected()[0]);
			$(this).dpDisplay();
			return false;
		}
	).bind(
		'dateSelected',
		function(e, selectedDate, $td, state)
		{
			updateSelects(selectedDate);
		}
	).bind(
		'dpClosed',
		function(e, selected)
		{
			updateSelects(selected[0]);
		}
	);
	
var updateSelects = function (selectedDate)
{
	var selectedDate = new Date(selectedDate);
	$('#d option[value=' + selectedDate.getDate() + ']').attr('selected', 'selected');
	$('#m option[value=' + (selectedDate.getMonth()+1) + ']').attr('selected', 'selected');
	$('#y option[value=' + (selectedDate.getFullYear()) + ']').attr('selected', 'selected');
}
$('#d, #m, #y')
	.bind(
		'change',
		function()
		{
			var d = new Date(
						$('#y').val(),
						$('#m').val()-1,
						$('#d').val()
					);
			$('#date-pick').dpSetSelected(d.asString());
		}
	);
var today = new Date();
updateSelects(today.getTime());
$('#d').trigger('change');
});
</script>
	<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery.cookie.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery.treeview.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery.contextMenu.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery-ui-1.8.7.custom.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery.blockUI.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery.tipTip.minified.js"></script>
	<link href="<?php echo base_url(); ?>css/jquery.contextMenu.css" rel="stylesheet" type="text/css" />
    <link type="text/css" href="<?php echo base_url(); ?>css/smoothness/jquery-ui.additonal.css" rel="stylesheet"/>
	<link type="text/css" href="<?php echo base_url(); ?>css/smoothness/jquery-ui-1.8.7.custom.css" rel="stylesheet" />
    <link type="text/css" href="<?php echo base_url(); ?>css/tipTip.css" rel="stylesheet" />
	<link rel="stylesheet" href="<?php echo base_url(); ?>css/jquery.treeview.css" />
	<link rel="stylesheet" href="<?php echo base_url(); ?>css/style.css" />
    <link rel="stylesheet" href="<?php echo base_url(); ?>css/breadcrumb.css" />
	
<script type="text/javascript">
$(document).ready(function() {
	var base_url = '<?php echo base_url(); ?>';
});

$(document).ready(function() {
	$("select[name=videotype] option[value=file]").click(function(){
		$("tr.zewnetrzny").hide();
		$("tr.zdysku").show();
		$("form#uploadform input[type=submit]").click(function(){
		});
	});
	$("select[name=videotype] option[value=outsidelink]").click(function(){
		$("tr.zdysku").hide();
		$("tr.zewnetrzny").show();
	});
	$("select[name=videotype] option[value=]").click(function(){
		$("tr.zdysku").hide();
		$("tr.zewnetrzny").hide();
	});
});
</script>
<script type="text/javascript" language="javascript">
		$(document).ready(function(){
			$("form#polecane_form label#polecane1").click(function(){
				$("div#polecane_najnowsze").hide();
				$("div#polecane_lista").show();
			});
			$("form#polecane_form label#polecane2").click(function(){
				$("div#polecane_lista").hide();
				$("div#polecane_najnowsze").show();
			});
			$(".tooltip").tipTip({maxWidth: "auto", edgeOffset: 3, defaultPosition: 'right',delay: 150 });
			$("form#polecane_form").submit(function(){
				if(! $("form#polecane_form input[name=polecane_type]").is(":checked")){
					return false;
				}
			});
			$("div#polecane_lista table td.nazwa").click(function(){
				var art_id = $(this).parent().attr("id");
				$("tr."+art_id).toggle();
			});
			
			$("button#newFaqCategory").click(function(){
				$(this).hide();
				$("form#newFaqForm").slideDown();;
			});
			
			$("#newFaqCancel").click(function(){
				$("form#newFaqForm").slideUp();
				$("button#newFaqCategory").show();
				return false;
			});
			
		});
		
</script>
<script type="text/javascript" src="<?php echo base_url(); ?>js/submitForm.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>js/behavioursConf.js" > </script>
<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery/ui.accordion.js" > </script>
<script type="text/javascript" src="<?php echo base_url(); ?>js/tree.js"></script>
<script src="<?php echo base_url();?>ci_173/asset/ckeditor/ckeditor.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo base_url();?>ci_173/asset/ckfinder/ckfinder.js"></script>
<script type="text/javascript">
	var help_status = <?= (int)get_cookie('help') ?>;
	$(".closeInformation").live("click", function(){
		$(this).parents(".information-blue").slideUp("slow");
	});
</script>
<script type="text/javascript" src="<?php echo base_url(); ?>js/help.js"></script>
<script src="<?php echo base_url(); ?>js/jquery.Jcrop.js"></script>
<link rel="stylesheet" href="<?php echo base_url(); ?>css/jquery.Jcrop.css" type="text/css" />
<link type="text/css" rel="stylesheet" href="<?php echo base_url() ?>css/qtip/jquery.qtip.css" />
<script type="text/javascript" src="<?php echo base_url() ?>js/qtip/jquery.qtip.js"></script>

</head>
<body> 		     
<div id="page-top-outer"> 
<div id="page-top">
	<div id="logo">
	<a href=""><img src="<?php echo base_url(); ?>images/shared/logo.png"  alt="" /></a>
	</div>
	<div id="top-search">
		<table border="0" cellpadding="0" cellspacing="0">
		<tr>
            <td>
            	<?php if($multi) { ?>
                	<span>
            		<form method="post" action="<?=base_url()?>admin/setlang">
            			<select name="lang_nr">
            				<option value="" <?php if(get_cookie('lang') == "") echo 'selected="selected"'; ?>>Język polski</option>
            				<?php if($langs && $langs->num_rows() > 0) foreach($langs->result() as $lang) { ?>
            				<option value="<?=$lang->ID_langs?>" <?php if(get_cookie('lang') == $lang->ID_langs) echo 'selected="selected"';?>><?=$lang->langs_name?></option>
            				<?php } ?>
            			</select>
            			<input type="hidden" name="last_page" value="<?=$this->uri->uri_string()?>" />
            			<input type="submit" value="Ustaw" />
            		</form>
                    </span>
            	<?php } ?>
            	<span>Panel administratora: <strong><?php echo $this->session->userdata('firma'); ?></strong>  &nbsp;|&nbsp; Użytkownik: <strong><?php echo $this->session->userdata('uzytkownik'); ?></strong></span>
            </td>
		</tr>
		</table>
	</div>
</div>
</div>

<div class="nav-outer-repeat"> 
<div class="nav-outer"> 
		<div id="nav-right">
		<a id="pomoc" href="#" class="active_help" help="Aby uzyskać informacje o danym elemencie najedź na niego myszką.<br><a class='pobierz_doc' href='http://realizacje.dimax.pl/brylex/Tablice.rar'><img src='<?php echo base_url(); ?>images/fileExtensions/file_extension_pdf.png'/> Pobierz dokumentację</a>"><img src="<?php echo base_url(); ?>images/shared/nav/help.png" border="0"> <strong>Pomoc</strong></a>&nbsp;&nbsp;&nbsp;
		<a href="<?php echo base_url(); ?>admin/wyloguj" id="logout" class="active_help" help="Przycisk umożliwiający wylogowanie się z Panelu administratora."><img src="<?php echo base_url(); ?>images/shared/nav/logout_cms.png"/> <strong>Wyloguj</strong></a>
		<div class="clear">&nbsp;</div>
		</div>
		<div class="nav">
		<div class="table">               
		<ul class="select <?php if($mainmenu == "Zarządzaj stroną") echo 'current'; ?>"><li><a href="<?php echo base_url(); ?>"><b>Zarządzaj stroną</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<div class="select_sub show" >
			<ul class="sub">
				<li <?php if($submenu == "Zarządzaj stroną") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>">Zarządzaj stroną</a></li>
				<li <?php if($submenu == "Ustawienia szablonów") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>admin/ustawienia_szablonow">Ustawienia szablonów</a></li>
				
			</ul>
			
		</div>

		</li>
		</ul>
		
		<?php if($this->session->userdata('bg') || $this->session->userdata('sg') || $this->session->userdata('ag') 
			|| $this->session->userdata('dk') || $this->session->userdata('l') || $this->session->userdata('nl')) { ?>
		<div class="nav-divider">&nbsp;</div>
		<ul class="select <?php if($mainmenu == "Zarządzanie kontenerami") echo 'current'; ?>"><li><a><b>Zarządzanie kontenerami</b></a>
			<div class="select_sub show">
				<ul class="sub">
                    <?php if($this->session->userdata('bg')) { ?><li <?php if($submenu == "Baner") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>admin/baner">Baner</a></li><?php } ?>
					<?php if($this->session->userdata('sg')) { ?><li <?php if($submenu == "Slider") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>admin/slider">Slider</a></li> <?php } ?>
					<?php if($this->session->userdata('ag')) { ?><li <?php if($submenu == "Aktualności") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>admin/news_glowny">Aktualności</a></li><?php } ?>
					<?php if($this->session->userdata('dk')) { ?><li <?php if($submenu == "Dane kontaktowe") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>admin/dane_kontaktowe">Dane kontaktowe</a></li><?php } ?>
					<?php if($this->session->userdata('l')) { ?><li <?php if($submenu == "Logo strony") echo 'class="sub_show"';?>><a href="<?php echo base_url(); ?>admin/logo_strony">Logo strony</a></li><?php } ?>
					<?php if($this->session->userdata('nl')) { ?><li <?php if($submenu == "Newsletter") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>admin/newsletter">Newsletter</a></li><?php } ?>
				
                </ul>
			</div>
		</li>
		</ul>
		<?php } ?>
        
        <div class="nav-divider">&nbsp;</div>
		<ul class="select <?php if($mainmenu == "Administracja") echo 'current'; ?>"><li><a href="<?php echo base_url(); ?>admin/konfiguracja_strony"><b>Administracja</b></a>
			<div class="select_sub show">
				<ul class="sub">
                    <li <?php if($submenu == "Konfiguracja strony") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>admin/konfiguracja_strony">Konfiguracja strony</a></li>
                    <?php if($multi) { ?><li <?php if($submenu == "Wersje językowe") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>admin/wersje_jezykowe">Wersje językowe</a></li>
                    <?php } ?>
                    <li <?php if($submenu == "Ustawienia") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>admin/ustawienia">Ustawienia początkowe</a></li>
                    <li <?php if($submenu == "Zmiana hasła") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>admin/zmiana_hasla">Zmiana hasła</a></li>
                </ul>
			</div>
		</li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>
		<ul class="select <?php if($mainmenu == "Statystyki") echo 'current'; ?>"><li><a href="<?php echo base_url(); ?>admin/statystyki"><b>Statystyki</b></a>
        <div class="select_sub show">
				<ul class="sub">
				<li <?php if($submenu == "Statystyki") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>admin/statystyki">&nbsp;</a></li>
                </ul>
			</div>
		</ul>
		<?php if($user_link) { ?>
		<div class="nav-divider">&nbsp;</div>
		<ul class="select <?php if($mainmenu == "User") echo 'current'; ?>"><li><a href="<?php echo prep_url($user_link->user_link_adres); ?>"><b><?php echo $user_link->user_link_nazwa; ?></b></a>
			<?php echo $user_submenu; ?>
		</li>
		</ul>
		<?php } ?>
		</div>
		</div>
</div>
</div>
<div id="content-outer" >