<!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>Aster CMS</title>
<link rel="stylesheet" href="<?php echo base_url(); ?>css/screen.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]-->

<!--  jquery core -->
<!-- <script src="<?php echo base_url(); ?>js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script> -->
<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery-1.4.2.min.js"></script>

<!--  checkbox styling 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">
/*
$(function(){
	$('input').checkBox();
	$('#toggle-all').click(function(){
 	$('#toggle-all').toggleClass('toggle-checked');
	$('#mainform input[type=checkbox]').checkBox('toggle');
	return false;
	});
});*/
</script>  

<![if !IE 7]>

<!--  styled select box script version 1 -->
<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]>

<!--  styled select box script version 2 --> 
<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>

<!--  styled select box script version 3 --> 
<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>

<!--  styled file upload 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 : 78,
          width : 310
      });
  });
</script>

<!-- Custom jquery scripts -->
<script src="<?php echo base_url(); ?>js/jquery/custom_jquery.js" type="text/javascript"></script>
 
<!-- Tooltips -->
<script src="<?php echo base_url(); ?>js/jquery/jquery.tooltip.js" type="text/javascript"></script>
<!--<script src="<?php echo base_url(); ?>js/jquery/jquery.dimensions.js" type="text/javascript"></script>
--><script type="text/javascript">
$(function() {
	$('a.info-tooltip ').tooltip({
		track: true,
		delay: 0,
		fixPNG: true, 
		showURL: false,
		showBody: " - ",
		top: -35,
		left: 5
	});
});
</script> 


<!--  date picker 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()
{

// initialise the "Select date" link
$('.date-pick')
	.datePicker(
		// associate the link with a date picker
		{
			createButton:false,
			startDate:'01/01/2005',
			endDate:'31/12/2020'
		}
	).bind(
		// when the link is clicked display the date picker
		'click',
		function()
		{
			updateSelects($(this).dpGetSelected()[0]);
			$(this).dpDisplay();
			return false;
		}
	).bind(
		// when a date is selected update the SELECTs
		'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');
}
// listen for when the selects are changed and update the picker
$('#d, #m, #y')
	.bind(
		'change',
		function()
		{
			var d = new Date(
						$('#y').val(),
						$('#m').val()-1,
						$('#d').val()
					);
			$('#date-pick').dpSetSelected(d.asString());
		}
	);

// default the position of the selects to today
var today = new Date();
updateSelects(today.getTime());

// and update the datePicker to reflect it...
$('#d').trigger('change');
});
</script>

<!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
<script src="<?php echo base_url(); ?>js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$(document).pngFix( );
});
</script>


	<?php /*<script language="javascript" type="text/javascript" src="<?php echo base_url(); ?>jscripts/tiny_mce/tiny_mce.js"></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>
	<?php /*<script type="text/javascript" src="<?php echo base_url(); ?>js/tree.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.2.custom.min.js"></script>
	
	<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery.blockUI.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/ui-lightness/jquery-ui-1.8.2.custom.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" />
	
	<script type="text/javascript">
	<?php /*?>
		tinyMCE.init({
			// General options
			mode : "textareas",
			language : "pl",
			entity_encoding : "raw",
			theme : "advanced",
			plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",

			// Theme options
			theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
			//theme_advanced_buttons2 : "",
			theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview",
			//theme_advanced_buttons4 : "",
			theme_advanced_buttons3 : "forecolor,backcolor,|,tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print",
			//theme_advanced_buttons4 : "",
			theme_advanced_buttons4 : "ltr,rtl,|,fullscreen,|,insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage|",
			
			
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar_location : "bottom",
			theme_advanced_resizing : true,
		
			// Office example CSS
			content_css : "css/office.css",
		
			// Drop lists for link/image/media/template dialogs
			template_external_list_url : "js/template_list.js",
			external_link_list_url : "js/link_list.js",
			external_image_list_url : "js/image_list.js",
			media_external_list_url : "js/media_list.js",
		
			// Replace values for the template plugin
			template_replace_values : {
				username : "Some User",
				staffid : "991234"
			}
		});
		*/?>
$(document).ready(function() {

	var base_url = '<?php echo base_url(); ?>';
	
	$(".close-yellow").click(function () {
		$.get(base_url + "admin/eraseMessage/yellow");
	});
	$(".close-red").click(function () {
		$.get(base_url + "admin/eraseMessage/red");
	});
	$(".close-blue").click(function () {
		$.get(base_url + "admin/eraseMessage/blue");
	});
	$(".close-green").click(function () {
		$.get(base_url + "admin/eraseMessage/green");
	});
});



	</script>



	
<style type="text/css">
	div#drzewo {
		display: inline;
		float: left;
		min-width: 150px;
			
		background-color: #fff;
		padding: 5px;
			
		margin-top: 10px;
		text-align: left;
	}
	#drzewo li {
		padding-left: 17px;
	}
	#drzewo li span {
		padding-left: 20px;
		padding-top: 0;
	}
	#addDialog input[type=submit], #editDialog input[type=submit], #deleteDialog input[type=submit], #addModule input[type=submit] {
			display: none;
	}
	
	div.modules {
		width: 500px;
		height: 30px;
		margin-top: 10px;
		margin-bottom: 10px;
		padding: 5px;
		background-color: #eeddcc;
	}
		
		
	#sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
	#sortable li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; height: 1.5em; 
		width: 500px;
		cursor: pointer;
	}
	html>body #sortable li { height: 1.5em; line-height: 1.2em; }
	.ui-state-highlight { height: 1.5em; line-height: 1.2em; }
	
		
		
	div#modules a, div.modules a span.nazwa {
		font-size: 22px;
		
		text-decoration: none;
	}
			
	div#modules span.typ {
		margin-left: 20px;
		font-size: 12px;
	}
	
	div#admin {
		min-width: 800px;
	}
	
	
	#sortablePhotos { list-style-type: none; margin: 0; padding: 0; }
	#sortablePhotos li { margin: 3px 3px 3px 0; padding: 3px; float: left; font-size: 4em; text-align: center; padding-top: 15px;}

	.photoHeader {
		font-size: 9px;
	}
	
	#pluginy { list-style-type: none; margin: 0; padding: 0; width: 60%; }
	#pluginy li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; height: 1.5em; 
		width: 800px;
		cursor: pointer; background: #ededed;
	}
	html>body #pluginy li { height: 1.5em; line-height: 1.2em; }
	.ui-state-highlight { height: 1.5em; line-height: 1.2em; }
<?php /*	
#mainTree {width: 800px; height: 500px; background: #E7E7DD;}		
#mainTree li { padding: 0px 0 0px 16px; list-style-type: none; }

#mainTree span.folder, .mainTree span.file { padding: 0px 0 0px 16px; display: block; }
#mainTree span.folder a, .mainTree span.file a {text-decoration:none; }
#mainTree span.file a:hover, #mainTree span.folder a:hover  { text-decoration:underline; color:#0099CC; }

#mainTree span.folder { background: url() 0 0 no-repeat; }
#mainTree li.expandable span.folder { background: url() 0 0 no-repeat; }
#mainTree span.file { background: url() 0 0 no-repeat; }
#mainTree span { font-size: 20px;margin-top: 10px; margin-bottom: 15px; }
#mainTree span.file a, .mainTree span.folder a  { color:#333333;}
*/ ?>
	#mainTree{padding: 10px;min-width: 700px; background: #E7E7DD;}
	#tableTree{text-align: left;}
	#tableTree th{color: #5B97B3; height: 26px;}
	#tableTree tr{height: 30px; border-bottom: 2px ridge #E7E7DD;}
	
	#tableTree .tableTreeTitle{ min-width: 650px; display: block; font-size: 14px; }
	
	.mainTree .table-header-options span, .mainTree .table-header-repeat span, .mainTree .table-header-check span	{
	
	color: #fff;
	font-family: Tahoma;
	font-size: 13px;
	font-weight: bold;
	line-height: 14px;
	margin: 0 0 0 10px;
	padding: 0 10px 0 0;
	}
	
	.mainTree .table-header-options	{
	background-position: top right;
	min-width: 101px;
	width: 101px;
	}
	
	.mainTree .tableTreeTitle{ min-width: 650px; display: block; font-size: 14px; }
	.mainTree .operacje {padding-right: 26px;}
	
	
	#product-table {
		min-width: 1170px;
	}
	
	#table-content {min-width: 1100px;}
</style>
	
	
</head>
<body> 
<!-- Start: page-top-outer -->
		
		

		
			
            
        
<div id="page-top-outer">    

<!-- Start: page-top -->
<div id="page-top">

	<!-- start logo -->
	<div id="logo">
	<a href=""><img src="<?php echo base_url(); ?>images/shared/logo.png"  alt="" /></a>
    <br><br>
	</div>
	<!-- end logo -->
	
	<!--  start top-search -->
	<div id="top-search">
		<table border="0" cellpadding="0" cellspacing="0">
		<tr>
            <td>
            	<a href=""></a>
            	<span style="color: #ffffff;">Jesteś zalogowany jako: <?php echo $this->session->userdata('uzytkownik'); ?></span>
            </td>
		</tr>
		</table>
	</div>
 	<!--  end top-search -->
 	<div class="clear"></div>

</div>
<!-- End: page-top -->

</div>
<!-- End: page-top-outer -->
	
<div class="clear">&nbsp;</div>
 
<!--  start nav-outer-repeat................................................................................................. START -->
<div class="nav-outer-repeat"> 
<!--  start nav-outer -->
<div class="nav-outer"> 

		
		<!-- start nav-right -->
		<div id="nav-right">
		<a href="<?php echo base_url(); ?>admin/wyloguj" id="logout"><img
		style="vertical-align:middle;" src="<?php echo base_url();
		?>images/shared/nav/logout2.png" width="24" height="24" alt="" />
		wyloguj</a>
		<div class="clear">&nbsp;</div>
		
		<!-- start account-content -->
		
		<!-- end account-content -->
		
		</div>
		<!-- end nav-right -->


		<!--  start nav -->
		<div class="nav">
		<div class="table">
		
	<!--	<ul class="select <?php if($mainmenu == "Strona główna") echo 'current'; ?>"><li><a href="<?php echo base_url().'administrator'; ?>"><b>Strona główna</b></a>
		<div class="select_sub">
			<ul class="sub">
				<li><a href="#nogo"></a></li>
				<li><a href="#nogo"></a></li>
				<li><a href="#nogo"></a></li>
			</ul>
		</div>
		</li>
		</ul>-->
		
		
		                    

		
		<!--<div class="nav-divider">&nbsp;</div>-->
		
			<ul class="select <?php if($mainmenu == "Administracja") echo 'current'; ?>"><li><a href="<?php echo base_url(); ?>administrator"><b>Administracja użytkownikami</b><!--[if IE 7]><!--></a><!--<![endif]-->
			<!--[if lte IE 6]><table><tr><td><![endif]-->
			<div class="select_sub show">
				<ul class="sub">
                    <li <?php if($submenu == "Użytkownicy") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>administrator">Użytkownicy</a></li> <!-- Lista użytkowników:  ( nazwisko imie | login      [uprawnienia (status: tylko możliwość edycji lub edycja z możliwością dodawania artykułów)] [edycja] [usuń]) 
                                                                              Dodaj nowego użytkownika : (Login , Nazwisko, Imię, E-mail, Hasło, Powtórz hasło, Uprawnienia) -->
                 
                    <li <?php if($submenu == "Statystyki") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>administrator/statystyki">Statystyki</a></li>
                    <li <?php if($submenu == "Aktywność użytkowników") echo 'class="sub_show"'; ?>><a href="<?php echo base_url(); ?>administrator/aktywnosc_uzytkownikow">Aktywność użytkowników</a></li>
                </ul>
		</div>
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>
		
		<ul class="select <?php if($mainmenu == "Ustawienia CMS") echo 'current'; ?>"><li><a href="<?php echo base_url().'administrator/ustawienia_plugin'; ?>"><b>Ustawienia CMS</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
		<div class="select_sub show">
			<ul class="sub">
				<li <?php if($submenu == "Ustawienia plugin") echo 'class="sub_show"'; ?>><a href="<?php echo base_url().'administrator/ustawienia_plugin'; ?>">Ustawienia plugin</a></li>
				<li <?php if($submenu == "Ustawienia szablonów") echo 'class="sub_show"'; ?>><a href="<?php echo base_url().'administrator/ustawienia_szablonow'; ?>">Ustawienia szablonów</a></li>
			 	<li <?php if($submenu == "Ustawienia") echo 'class="sub_show"'; ?>><a href="<?php echo base_url().'administrator/ustawienia'; ?>">Ustawienia początkowe</a></li>
			 	<li <?php if($submenu == "Zmiana hasła") echo 'class="sub_show"'; ?>><a href="<?php echo base_url().'administrator/zmiana_hasla'; ?>">Zmiana hasła</a></li>
			</ul>
		</div>
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>
		
		
		<?php /*
		<div class="nav-divider">&nbsp;</div>
		
		<ul style="display: none;" <!--  !!!!!!!!!!!!!!!!!!!!  -->      class="select"><li><a href="#nogo"><b>News</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
		<div class="select_sub">
			<ul class="sub">
				<li><a href="#nogo">News details 1</a></li>
				<li><a href="#nogo">News details 2</a></li>
				<li><a href="#nogo">News details 3</a></li>
			</ul>
		</div>
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>
		*/ ?>
		<div class="clear"></div>
		</div>
		<div class="clear"></div>
		</div>
		<!--  start nav -->

</div>
<div class="clear"></div>
<!--  start nav-outer -->
</div>
<!--  start nav-outer-repeat................................................... END -->

  <div class="clear"></div>
 
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
