
				
				<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/wersje_jezykowe">Wersje językowe</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">
                        
                        
                
                        
							
							<li class="ui-state-default ui-corner-top"><a href="#wersje_jezykowe">Dodawanie wersji językowych</a></li>
						</ul>
						
						
						
						
						
						<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="wersje_jezykowe">
                        <div class="information-blue ui-corner-all">
                                            <table cellspacing="0" cellpadding="0" border="0">
                                            <tr>
                                            <td class="icon"><img src="<?php echo base_url(); ?>images/information.png" /></td>
                                            <td class="text">W tej zakładce możesz dodać nową wersję jezykową dla twojej strony, oraz deaktywować  już dodane. </td>
                                            <td align="right" valign="top"><img class="closeInformation" src="<?php echo base_url(); ?>images/cross_grey_small.png" /></td>
                                            </tr>
                                            </table>
			     
					</div>
                        <br />

							<form action="<?php echo base_url(); ?>admin/addlang" method="post">
							
								<br/>
                                <label><strong>Dodaj nowy język</strong>
								<select name="lang" style="height:25px; vertical-align:middle; padding-top:4px;" >
								<?php if($langs && $langs->num_rows() > 0) foreach($langs->result() as $lang) { ?>
									<option style="height:22px;" value="<?=$lang->ID_langs?>"><?=$lang->langs_name?></option>
								<?php } ?>									
								</select>
                                </label>
							
								
								<input type="hidden" name="user_id" value="<?php echo $this->session->userdata('uzytkownik_id'); ?>" /> <a  class="submit button buttonGreen "><img src="<?php echo base_url(); ?>images/buttons/add_icon.png" />Dodaj</a>
								<br />

								
							</form>
							
							<br/><br/>
							<h4>Aktualnie dodane wersje językowe:</h4>
							<ul id="sortableLangs">
							
							<?php
								$counter=1; 
								if($langs_user && $langs_user->num_rows() > 0) foreach($langs_user->result() as $lu) { ?>
								<div class="defaultDataRow" <?php if($lu->langs_user_deactivated == 1) echo 'style="background-color: #999999;"'; ?> id="lang_<?php echo $lu->ID_langs_user?>">
								<span class="counterFile tooltip" title="Kliknij i przeciągnij"><?php echo $counter++; ?> </span>
								<?=$lu->langs_name ?>
								<span style="float:right;">
									<?php if($lu->langs_user_deactivated == 1) { ?><form method="post" action="<?=base_url()?>admin/activatelang"><input type="hidden" name="ID_langs_user" value="<?=$lu->ID_langs_user?>"/><input type="submit" value="Włącz" /></form>
									<?php } else { ?><form method="post" action="<?=base_url()?>admin/deactivatelang"><input type="hidden" name="ID_langs_user" value="<?=$lu->ID_langs_user?>"/><input type="submit" value="Wyłącz" /></form><?php } ?>
								</span>
								</div>
							<?php } ?>
							
							</ul>
							
						</div>
				</div>
				
				
				<div id="asdasd" style="display: none;">
			
			
				</div>
				
				
				
			
			
						
						
				
				