
				<link rel="stylesheet" href="<?php echo base_url() ?>css/jquery.fileupload-ui.css">
				<script type="text/javascript">
					$(document).ready(function(){
						$('#tabs').tabs();
					});
				</script>
				
				<br/>
                <div class="breadcrumb ui-corner-tl ui-corner-tr" style="">
                <div  class="contenerNodeBreadcrumb"><img class="breadcrumbIcon" align="absmiddle"  src='<?php echo base_url();?>images/homePage.png' /> <a href="<?php echo base_url(); ?>">Administracja</a>
                </div>
                <img src="<?php echo base_url(); ?>images/breadcrumbSeparator.png" align="absmiddle" class="separatorBreadcrumb"  />
                <div class="contenerNodeBreadcrumb"><img class="breadcrumbIcon" align="absmiddle"  src='<?php echo base_url();?>images/asterisk_orange.png' /> <a href="<?php echo base_url(); ?>admin/logo_strony">Logo strony</a>
                <img class="pointerBreadcrumb" src='<?php echo base_url();?>images/pointer_breadcrumb.png' /> 
                </div>
                
                
     
                </div>
                
				<div class="ui-tabs ui-widget ui-widget-content ui-corner-all" id="tabs" >
						<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
	
							<li class="ui-state-default ui-corner-top"><a href="#logo_strony">Logo strony</a></li>
						</ul>
						
						
						
						<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="logo_strony">
							<!--<form action="<?php echo base_url(); ?>admin/setlogo" method="post">
								
													
							<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
							
								
								
							
							</table>
							<br/>
							<a  style="margin-left:10px;" class=" button buttonBlack submit" ><img src="<?php echo base_url(); ?>images/add.png" />Zapisz</a>
							
							
							</form>
						-->
						
							<form class="upload" action="<?php echo base_url(); ?>admin/setlogo/1" method="POST" enctype="multipart/form-data">
								<input type="file" name="plik">
								<button>Upload</button>
								<div class=""><img src="<?php echo base_url(); ?>images/image_add.png" align="absmiddle" /> Ustaw logo</div>
							</form>
							<table class="upload_files"></table>
							<table class="download_files"></table>
							
							<div id="logos">
								<div class="logo">
									<?php if($logo) { ?>
										<img src="<?=reduce_double_slashes(prep_url($adres).'/images/'.$logo)?>"/>
									<?php } ?>
								</div>
							</div>
							
							
						</div>
				</div>
				

				
				
				<script src="<?php echo base_url()?>js/jquery.fileupload.js"></script>
				<script src="<?php echo base_url()?>js/jquery.fileupload-ui.js"></script>
				<script>
				$(function () {
					<?php /*var uploadCounter = 0,
			        onCompleteAll = function () {
						var base_url = "<?php echo base_url(); ?>";
				        var modId = "<?php echo $this->uri->segment(3); ?>";
				        //window.location.reload();
			            $("#sortablePhotos").html('Proszę czekać...').load(base_url+"admin/module/"+modId+" li.photosLi");
			            //$("#sortableFiles").sortable("refresh");			            
			        };
			        var uploadSequence = [];
			        uploadSequence.start = function (index) {
			            var next = this[index];
			            if (next) {
			                next();
			                this[index] = null;
			            }
			        };	*/?>        
								
				    $('.upload').fileUploadUI({
				        uploadTable: $('.upload_files'),
				        downloadTable: $('.download_files'),
				        buildUploadRow: function (files, index) {
				            var file = files[index];
				            return $(
				                '<tr>' +
				                '<td>' + file.name + '<\/td>' +
				                '<td class="file_upload_progress"><div><\/div><\/td>' +
				                '<td class="file_upload_cancel">' +
				                '<div class="ui-state-default ui-corner-all ui-state-hover" title="Anuluj">' +
				                '<span class="ui-icon ui-icon-cancel">Anuluj<\/span>' +
				                '<\/div>' +
				                '<\/td>' +
				                '<\/tr>'
				            );
				        					    				            
				        },
				        buildDownloadRow: function (file) {
					        //var base_url = "<?php echo base_url(); ?>";
					        //var modId = "<?php echo $this->uri->segment(3); ?>";
					        
					        //load(base_url+"admin/module/"+modId+" div#dodane_pliki_content");
				        	return $(   '<tr><td>' + file.name + '<\/td><td>&nbsp;-&nbsp;</td><td>'+file.message+'</td><\/tr>'   );
				            //<td>'+file.type+'<\/td><td>'+file.size+'<\/td>
				        },
				        onComplete: function (event, files, index, xhr, handler) {
				        	var base_url = "<?php echo base_url(); ?>";
					        $("#logos").html("Proszę czekać...").load(base_url+"admin/logo_strony div#logos div.logo");
					        
							<?php /*
					        uploadSequence.start(index + 1);

					        uploadCounter = uploadCounter + 1;
				            if (uploadCounter === files.length) {
				                uploadCounter = 0;
				                //$("div#dodane_pliki").html('asd');
				                
				                onCompleteAll();
				            }
				            */?>
				            //alert(123);
				        }//,
				        //onAbort: function (event, files, index, xhr, handler) {
							<?php /*
				            handler.removeNode(handler.uploadRow);
				            uploadCounter = uploadCounter + 1;
				            if (uploadCounter === files.length) {
				                uploadCounter = 0;
				                onCompleteAll();
				            }
				            
				            uploadSequence[index] = null;
				            uploadSequence.start(index + 1);
							*/ ?>	            
				        //},
				        //beforeSend: function (event, files, index, xhr, handler, callBack) {
				        	<?php /*
				            //handler.uploadRow.find('.file_upload_start').click(function () {
				                handler.formData = {
				                    description: handler.uploadRow.find('.file_upload_desc input').val(),
				                    header: $("#galeria_form input[name=header]").val(),
				                    description: $("#galeria_form input[name=description]").val(),
				                    x: $("#galeria_form input[name=x]").val(),
				                    y: $("#galeria_form input[name=y]").val(),
				                    foto_x: $("#galeria_form input[name=foto_x]").val(),
				                    foto_y: $("#galeria_form input[name=foto_y]").val(),
				                    module_id: $("#galeria_form input[name=module_id]").val()
				                };
				                //callBack();
				            //});
			                uploadSequence.push(callBack);
				            if (index === 0) {
				                uploadSequence.splice(0, uploadSequence.length - 1);
				            }
				            if (index + 1 === files.length) {
				                uploadSequence.start(0);
				            }  
				            //callback();  
				            */ ?>
				        //}
				    				        
								        
								        
				    });
				});
				</script>
			
			
						
						
				
				