
				<!--<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/'.$module->ID_modules.'">'.truncate($module->modules_name).'</a> </div>';
				 echo '<img src="'.base_url().'images/breadcrumbSeparator.png"  align="absmiddle"  class="separatorBreadcrumb" />';
				 echo '<div class="contenerNodeBreadcrumb"><img src="'.base_url().'images/brick_mini.png" align="absmiddle" class="breadcrumbIcon" /><a  href="'.base_url().'admin/news/'.$this->uri->segment(3).'">'.truncate($singlenews->news_title).'</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 id="newNews">
				
					<form id="editNewsForm" method="post" action="<?php echo base_url(); ?>admin/editnews"> <!-- ??? -->
					<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
						<tr>
							<th valign="top">Tytuł:</th>
							<td><table><tr id="input-title">
								<td><input type="text" class="inp-form" name="title" value="<?php echo $singlenews->news_title ?>" /></td>
								<td class="error-td">
							
								</td>
							</tr></table></td>
						</tr>
						<tr>
							<th valign="top">Data ważności:</th>
							<td><table><tr id="input-expiration_date">
								<td><input id="date-pick" type="text" class="inp-form" name="expiration_date" value="<?php 
								$exp_date = explode('-', $singlenews->news_expiration_date);
								echo $exp_date[2].'/'.$exp_date[1].'/'.$exp_date[0];
								?>"/></td>
								<td class="error-td">
							
								</td>
							</tr></table></td>
						</tr>
						<tr>
							<th valign="top">Treść skrócona:</th>
							<td><table><tr id="input-text_short">
								<td><!--<textarea name="text_short" class="inp-form ckeditorContener"><?php echo $singlenews->news_text_short ?></textarea>-->
								<?php echo $this->ckeditor->editor("text_short", $singlenews->news_text_short, 'class="inp-form ckeditorContener"'); ?>
								</td>
								<td class="error-td">
							
								</td>
							</tr></table></td>
						</tr>
						<tr>
							<th valign="top">Treść pełna:</th>
							<td><table><tr id="input-text">
								<td><!--<textarea name="text" class="inp-form ckeditorContener"><?php echo $singlenews->news_text ?></textarea>-->
								<?php echo $this->ckeditor->editor("text", $singlenews->news_text, 'class="inp-form ckeditorContener"'); ?>
								</td>
								<td class="error-td">
							
								</td>
							</tr></table></td>
						</tr>
						<tr>
						  <th valign="top">&nbsp;</th>
						  <input type="hidden" name="module_id" value="<?php echo $module->ID_modules; ?>"/>
						  <input type="hidden" name="news_id" value="<?php echo $this->uri->segment(3)?>" />
						  <td align="left">  <a  style="margin-left:10px;" class=" button buttonBlack submit" ><img src="<?php echo base_url(); ?>images/add.png" />Zapisz</a>
						  
						  </td>
						</tr>
					</table>	
							
							
					
					<!--<input type="submit" value="Dodaj" style="width: 200px;" /><button id="addNewsCancel" style="width: 200px;">Anuluj</button>-->
					</form>
					
					
				</div>
				<!--<button id="addNews" style="width: 200px;">Nowy wpis</button>-->
				
				
				
						
			
				
						
				