
				<!--<p style="margin-bottom: 10px;"><?php foreach($parents as $node){
					echo '<img src="'.base_url().'images/icon_arrow.png" align="baseline" style=" position:relative; top:4px;" /><a href="'.base_url().'admin/wyswietl/'.$node->id.'">'.$node->nodeData['name'].'</a>';
				 } 
				echo '<img src="'.base_url().'images/icon_arrow.png" align="baseline" style=" position:relative; top:4px;" /><a href="'.base_url().'admin/module/'.$this->uri->segment(3).'">'.$module->modules_name; ?></a> </p>
				
				
				<div id="navigationContener">
				<p ><img src="<?php echo base_url(); ?>images/navigation_head_icon.png" align="absmiddle" style="" /> <?php foreach($parents as $node){
					echo '<img src="'.base_url().'images/next_navigation.png" align="absmiddle" style="" /><a href="'.base_url().'admin/wyswietl/'.$node->id.'">'.$node->nodeData['name'].'</a>';
				 } 
				 echo '<img src="'.base_url().'images/next_navigation.png" align="absmiddle" style="" /><a href="'.base_url().'admin/module/'.$this->uri->segment(3).'">'.$module->modules_name.'</a>';
				?> </p>
                </div>-->
                
                <div class="breadcrumb ui-corner-tl ui-corner-tr">
                <div style="float:left; position:relative;"><img class="breadcrumbIcon" align="absmiddle"  src="<?php echo base_url();?>images/homePage.png" /><a href="<?php echo base_url(); ?>">Strona WWW</a><img src="<?php echo base_url(); ?>images/breadcrumbSeparator.png" align="absmiddle" style="" /></div>
                <?php
				$counter = count($parents);
				$count = 1;
				$lastNode = null;
				 foreach($parents as $node){
					 
					echo '<div class="contenerNodeBreadcrumb"><img src='.base_url().'images/newspaper.png align="absmiddle" class="breadcrumbIcon"><a href="'.base_url().'admin/wyswietl/'.$node->id.'">'.truncate($node->nodeData['name']).'</a>';
				//	if($counter==$count) echo '<img style="position:absolute; left:40%; top:32px;" src='.base_url().'images/pointer_breadcrumb.png /> ';
				
					echo '</div><img src="'.base_url().'images/breadcrumbSeparator.png"  align="absmiddle"  class="separatorBreadcrumb" />'; 
				 $count++;
				 $lastNode = $node; 
				 } 
				 echo '<div class="contenerNodeBreadcrumb"><img src="'.base_url().'images/brick_mini.png" align="absmiddle" class="breadcrumbIcon" /><a  href="'.base_url().'admin/module/'.$this->uri->segment(3).'">'.truncate($module->modules_name).'</a> <img class="pointerBreadcrumb" src='.base_url().'images/pointer_breadcrumb.png /></div>';
				?>
                <a href="<?php echo base_url()?>admin/wyswietl/<?php echo $lastNode->id ?>"><img src="<?=base_url(); ?>images/back_cms_main.png" border="0" style="float:right;"></a>
                </div>														
				<br/>
				
				<div>
				
					<form id="polecane_form" action="<?php echo base_url(); ?>admin/setrecommended" method="post">
					<h2>Wybierz polecane artykuły</h2>
					<p style="padding-bottom: 10px;"><label id="polecane1"><input <?php if($latest && $latest == -1) echo 'checked="checked"';?>id="polecane_type_1" type="radio" name="polecane_type" value="1" style="margin-right: 10px;"/><span>Wybór artykułów z listy</span></label></p>
					<p style="padding-bottom: 10px;"><label id="polecane2"><input <?php if($latest && $latest > 0 ) echo 'checked="checked"';?>id="polecane_type_2" type="radio" name="polecane_type" value="2" style="margin-right: 10px;"/><span>Wybór <input class="inp-form" type="text" name="pa_ile" value="<?php if($latest && $latest > 0) echo $latest; else echo 3; ?>" /> najnowszych (według daty dodania)</span></label></p>
					<div id="polecane_lista" <?php if($latest && $latest == -1) echo ' style="display: block;" '; else echo ' style="display: none;" '; ?> >
						<h2>Wybierz artykuły, które mają być wyświetlane jako polecane: </h2>
						<table id="product-table" class="mainTree">
							<tr>
								<th class='table-header-check'></th>
								<th class='table-header-repeat line-left minwidth-1'><span>Nazwa</span></th>
								<th class='table-header-options line-left minwidth-1'><span>Wybierz</span></th>
							</tr>
							<?php $licznik = 0; $id=0; if($artykuly) foreach ($artykuly as $art) { 
								if($art->pad == 0) $id = $art->id;
							?>
							<tr id="art_<?php echo $art->id; ?>" <?php if($art->pad > 0) echo 'class="art_'.$id.'" style="display: none;"'; ?> >
								<td align="center"><?php echo ++$licznik ?>.</td>
								<td <?php if($art->pad == 0) echo 'class="nazwa" title="Kliknij, aby wyświetlić wewnętrzne artykuły"'; ?>><span style="padding-left: <?php echo $art->pad; ?>px; padding-right: 5px;"><?php echo $art->nodeData['name']?></span></td>
								<td><input 
								<?php if($val_1) foreach($val_1 as $val) {
									if($val == $art->id) {
										echo 'checked="checked"';
										break;
									}
								} ?> 
								name="polecane_art[]" type="checkbox" value="<?php echo $art->id; ?>" /></td>
							</tr>
							<?php } ?>
						</table>
					</div>
					<div id="polecane_najnowsze" <?php if($latest && $latest > 0) echo ' style="display: block;" '; else echo ' style="display: none;" '; ?> >
						<h2>Wybierz kategorie, które mają być brane pod uwagę w wyszukiwaniu najnowszych artykułów: </h2>
						<table id="product-table" class='mainTree'>
							<tr>
								<th class='table-header-check'></th>
								<th class='table-header-repeat line-left minwidth-1'><span>Nazwa</span></th>
								<th class='table-header-options line-left minwidth-1'><span>Wybierz</span></th>
							</tr>
							<?php $licznik=0; if($kategorie) foreach ($kategorie as $folder) { ?>
							<tr>
								<td align="center"><?php echo ++$licznik; ?>.</td>
								<td><span style="padding-left: <?php echo $folder->pad; ?>px; padding-right: 5px;"><?php echo $folder->nodeData['name']?></span></td>
								<td><input 
								<?php if($val_2) foreach ($val_2 as $val){
									if($val == $folder->id){
										echo 'checked="checked"';
										break;
									}										 
								} ?>
								name="polecane_kat[]" type="checkbox" value="<?php echo $folder->id; ?>" /></td>
							</tr>
							<?php } ?>
							
						</table>					
					</div>
					<input type="hidden" name="module_id" value="<?php echo $this->uri->segment(3); ?>" />
					<!--<p><input type="submit" value="Zapisz" style="width: 200px;"/></p>-->
					<a  class="submit button buttonBlack "><img src="<?php echo base_url(); ?>images/buttons/disc.png" />Zapisz</a>
					</form>
				
					
				
				</div>
										
			
				
						
				