
				
				<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/application_edit.png' /> <a href="<?php echo base_url(); ?>admin/ustawienia_szablonow">Ustawienia szablonów</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">
							<?php /*?><li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#szablony-strony">Szablon strony</a></li><?php */?>
							<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#szablony-artykulu">Domyślny szablon dla artykułu</a></li>
						</ul>
						<?php /*?>
						<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="szablony-strony">
							<form id="pagetemplate_form" action="<?php echo base_url(); ?>admin/setpagetemplate" method="post">
								<br/>
								<?php if($templates && $templates->num_rows() > 0) foreach($templates->result() as $t ) { ?>
									
									<div class="templates_label_div szblon_img">
										<input  type="radio" name="template_type" value="<?=$t->ID_global_templates?>" <?php if($template == $t->ID_global_templates) echo ' checked '; ?>/>		
										<p><?=$t->global_templates_name?></p>
										<p class="info_opis"> "<?=$t->global_templates_desc?>" </p>
										<a href="<?=base_url().'pages/application/template/'.$t->global_templates_folder.'/'.$t->global_templates_photo?>"><img src="<?=base_url().'pages/application/template/'.$t->global_templates_folder.'/thumb_'.$t->global_templates_photo?>"/></a>
										<p><a onclick="window.open('<?=reduce_double_slashes(prep_url($adres).'?t='.$t->ID_global_templates)?>', '','width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no,left=500,top=500').blur(); return false;" class="podglad" href="<?=reduce_double_slashes(prep_url($adres).'?t='.$t->ID_global_templates)?>">Podgląd strony</a></p>
									</div>
									
								<?php } ?>
									
									<?php if(file_exists('./pages/'.$folder.'/template/base/base.php')) { ?>
									<div class="templates_label_div szblon_img">
										<input type="radio" name="template_type" value="0" <?php if($template == 0) echo ' checked '; ?> />
										<p>Szablon indywidualny</p>
										<?php if(file_exists('./pages/'.$folder.'/template/template.jpg')) { ?>
										<a href="<?=reduce_double_slashes(prep_url($adres.'/template/template.jpg'));?>"><img src="<?=reduce_double_slashes(prep_url($adres.'/template/template.jpg'));?>" /></a>
										<?php } ?>
									</div>
									<?php } ?>
									
								<div class="clear"></div>
								
								<br/><br/>
								
								<input type="hidden" name="user_id" value="<?php echo $this->session->userdata('uzytkownik_id'); ?>" />
								<a  class="submit button buttonBlack "><img src="<?php echo base_url(); ?>images/buttons/disc.png" />Zapisz</a>
								
							</form>
						</div>
						<?php */?>
						<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="szablony-artykulu">
							<form id="pagetemplate_form" action="<?php echo base_url(); ?>admin/setdefaultarticletemplate" method="post">
								
								<br/>
								<?php if($article_templates && $article_templates->num_rows() > 0) foreach($article_templates->result() as $at) { ?>
									<div class="templates_label_div szblon_img">
										<input type="radio" name="article_template" value="<?=$at->ID_article_templates?>" <?php if($default_article_template == $at->ID_article_templates) echo ' checked '; ?> />
										<p><?=$at->article_templates_name?></p>
										<p class="info_opis"> "<?=$at->article_templates_desc?>" </p>
										
										<a href="<?=base_url().'pages/klient/system/application/views/'.$at->article_templates_folder.''.$at->article_templates_photo?>"><img src="<?=base_url().'pages/klient/system/application/views/'.$at->article_templates_folder.'thumb_'.$at->article_templates_photo?>" /></a>
									</div>
								<?php } ?>
								
								<div class="clear"></div>
								<br/><br/>
								<input type="hidden" name="user_id" value="<?php echo $this->session->userdata('uzytkownik_id'); ?>" />
								<a  class="submit button buttonBlack "><img src="<?php echo base_url(); ?>images/buttons/disc.png" />Zapisz</a>
								
							</form>
						</div>
						
						
						
						