
				<!--<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 style="display: none;" id="newFaqForm" method="post" action="<?php echo base_url(); ?>admin/addfaq">
						<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
						<tr>
							<th valign="top">Nazwa kategorii:</th>
							<td><table><tr id="input-name">
								<td><input type="text" class="inp-form" name="name" /></td>
                                <td> 		<input type="hidden" name="module_id" value="<?php echo $this->uri->segment(3); ?>" />
						
                        	<a  class=" button buttonBlack submit" ><img src="<?php echo base_url(); ?>images/add.png" />Dodaj</a>
                            
                        <a  class=" button buttonBlack" id="newFaqCancel" ><img src="<?php echo base_url(); ?>images/cancel.png" />Anuluj</a>
                        
                        </td>
								<td class="error-td">
								
								</td>
							</tr></table></td>
						</tr>
						</table>
						
				
					</form>
					
                    <button class=" button buttonGreen addIcon" id="newFaqCategory"><img src="<?php echo base_url(); ?>images/buttons/add_icon.png">Nowa kategoria</button>
					<br/>
					<br/>
					
					<script type="text/javascript" src="<?php echo base_url(); ?>js/submitDelete.js"></script>
					
					<script type="text/javascript">
					$(document).ready(function(){
						$("#zmienNazweFaq").dialog({
							autoOpen: false,
							width: 600,
							close: function(event, ui) {
								$(".ui-overlay").attr("style", "display: none;");
							},
							buttons:{
								"Anuluj": function(){
									$(this).dialog("close");
									$(".ui-overlay").attr("style", "display: none;");
								},
								"Zapisz": function(){
									$(this).find("form input[type=submit]").click();
								}
							} 
						});

						
						$("a.zmienNazweFaq").live("click", function(){
							$("#zmienNazweFaq form input[name=name]").attr("value", $(this).parents("li").find(".moduleTitle").text());
							$("#zmienNazweFaq form input[name=faq_id]").attr("value", $(this).attr("id"));


							$("ui-overlay").attr("style", "display: block;");
							$("#zmienNazweFaq").dialog("open");
							return false;
						});




						
					});
					</script>
					
					<div id="zmienNazweFaq" title="Zmień nazwę FAQ">
						<h2><strong>Zmień nazwę FAQ</strong></h2>
						<form action="<?= base_url()?>admin/editfaqname" method="post">
							<table border="0" cellpadding="0" cellspacing="0" id="id-form">
								<tr>
									<th valign="top">Nazwa:</th>
									<td><table><tr id="input-name">
										<td><input type="text" class="inp-form" name="name" value=""/></td>
										<td class="error-td">
										
										</td>
									</tr></table></td>
									
								</tr>
							</table>
							<input type="hidden" name="module_id" value="<?=$this->uri->segment(3)?>"/>
							<input type="hidden" name="faq_id" value="" />
							<input style="display: none;" type="submit" value="Edytuj" />
						</form>
					</div>
					
					
					<div id="faqCategories">
						<?php if($categories && $categories->num_rows()>0) {
						echo '<ul id="sortableFaqs">';
							foreach($categories->result() as $row) {
						?>
							
						<li class="ui-state-default moduleRowContener ui-corner-all " id="faq_<?php echo $row->ID_faq; ?>" style="position:relative;"><a><span class="moduleTitle"><?php echo $row->faq_name; ?></span></a>
                        <span style="position:absolute; right:0px; margin-right:10px;">
							<a  class=" button buttonGrey" href="<?php echo base_url(); ?>admin/faq/<?php echo $row->ID_faq; ?>"><img src="<?php echo base_url(); ?>images/pencil.png" />Edycja</a>
							<a id="<?=$row->ID_faq?>" class="button buttonGrey zmienNazweFaq"><img src="<?php echo base_url(); ?>images/tools.png" />Zmień nazwę</a>
							
		                    <a  class="usunfaq button buttonGrey" href="<?php echo base_url(); ?>admin/removefaq/<?php echo $row->ID_faq; ?>/<?php echo $row->faq_module_id; ?>"><img src="<?php echo base_url(); ?>images/bin.png" />Usuń</a>
	                    </span>
						<!-- <form style="display: inline; float: right;" action="<?php echo base_url(); ?>admin/modul_ustawienia/<?php echo $row->ID_modules; ?>" method="get">
							<input type="submit" value="Ustawienia" />
						</form> -->
						
							
														
						</li>
							
						<?php } 
						echo '</ul>';
						}
						?>
						
					</div>
					
				</div>
						
			
					
				
						
				