
				<!--<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/'.$FAQ->ID_modules.'">'.$FAQ->modules_name.'</a>
				<img src="'.base_url().'images/icon_arrow.png" align="baseline" style=" position:relative; top:4px;" /><a href="'.base_url().'admin/faq/'.$FAQ->ID_faq.'">'.$FAQ->faq_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/'.$FAQ->ID_modules.'">'.$FAQ->modules_name.'</a>
				 <img src="'.base_url().'images/next_navigation.png" align="absmiddle" style="" /><a href="'.base_url().'admin/faq/'.$FAQ->ID_faq.'">'.$FAQ->faq_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/'.$FAQ->ID_modules.'">'.truncate($FAQ->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/faq/'.$FAQ->ID_faq.'">'.truncate($FAQ->faq_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>
					
					<br/>
					<br/>
					
					<form id="newFaqQAForm" method="post" action="<?php echo base_url(); ?>admin/addfaqqa">
						<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
						<tr>
							<th valign="top">Pytanie:</th>
							<td><table><tr id="input-q">
								<td><input style="width: 500px;" type="text" class="inp-form" name="q" /></td>
								<td class="error-td">
								
								</td>
							</tr></table></td>
						</tr>
						<tr>
							<th valign="top">Odpowiedź:</th>
							<td><table><tr id="input-a">
								<td><!--<textarea name="a" style="width: 300px; height: 180px;" class="inp-form ckeditorContener"></textarea>-->
								<?php echo $this->ckeditor->editor("a", '', 'style="width: 300px; height: 180px;" class="inp-form ckeditorContener"'); ?>
								</td>
								<td class="error-td">
								
								</td>
							</tr></table></td>
						</tr>
						<tr>
						  <th valign="top">&nbsp;</th>
						  <td align="left">  <a  style="margin-left:10px;" class=" button buttonBlack submit" ><img src="<?php echo base_url(); ?>images/add.png" />Dodaj</a></td>
						  </tr>
                        
						</table>
						<input type="hidden" name="faq_id" value="<?php echo $this->uri->segment(3); ?>" />
						
                    
					</form>
					
					
					<script type="text/javascript" src="<?php echo base_url(); ?>js/submitDelete.js"></script>
					
					<div>
					<br/>
						<?php if($faqs && $faqs->num_rows()>0) {
						echo '<ul id="sortableFaqsQA">';
							foreach($faqs->result() as $row) {
						?>
							
						<li class="ui-state-default faqElement ui-corner-all" style="position:relative;" id="faqqa_<?php echo $row->ID_faq_qa; ?>">
                   
                        
				
							
							<span><span class="moduleTitle" style="font-size:14px; font-weight:bold;"><?php echo $row->faq_qa_q; ?></span><br />
						  <span class="faq_answer_text"><?php echo $row->faq_qa_a; ?></span></span> 	
                                <span style="position:absolute; right:0px; top:0px; margin-right:10px; margin-top:15px;">
                                <a  class=" button buttonGrey" href="<?php echo base_url(); ?>admin/faqqa/<?php echo $row->ID_faq_qa; ?>"><img src="<?php echo base_url(); ?>images/pencil.png" />Edycja</a>
                                <a  class="usunfaqqa button buttonGrey" href="<?php echo base_url(); ?>admin/removefaqqa/<?php echo $row->ID_faq_qa; ?>/<?php echo $row->faq_qa_faq_id; ?>"><img src="<?php echo base_url(); ?>images/bin.png" />Usuń</a>				
                                </span>		
														
						</li>
							
						<?php } 
						echo '</ul>';
						}
						?>
						
					</div>
					
				</div>
						
					
				
						
				