<link rel="stylesheet" href="<?php echo base_url(); ?>css/modules/aktualnosciModule.css" type="text/css" media="screen" title="default" />
				<link rel="stylesheet" href="<?php echo base_url() ?>css/jquery.fileupload-ui.css">
				<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/asterisk_orange.png' /> <a href="<?php echo base_url(); ?>admin/news_glowny">Aktualności</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="#news">Aktualności</a></li>
							
						</ul>
						
						<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="news">
							<form style="display: none;" id="newNewsForm" method="post" action="<?php echo base_url(); ?>admin/addnewsglowny">
							<div>
								<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" /></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" /></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"></textarea>-->
											<?php echo $this->ckeditor->editor("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"></textarea>-->
											<?php echo $this->ckeditor->editor("text", '', '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" />Zapisz</a>
									  <a  class=" button buttonBlack" id="newNewsCancel" ><img src="<?php echo base_url(); ?>images/cancel.png" />Anuluj</a>
									  </td>
									</tr>
								</table>
							</div>
							</form>
							
							<button class=" button buttonGreen addIcon" id="newNewsShowForm"><img src="<?php echo base_url(); ?>images/buttons/add_icon.png">Nowa aktualność</button>
							<div id="addedNews">
							<script type="text/javascript" src="<?php echo base_url(); ?>js/submitDelete.js"></script>
							<br/>
							
							<?php if($news && $news->num_rows() > 0) { ?>
								<br/>
								<h2>Dodane aktualności</h2>
								<?php foreach($news->result() as $singlenews){ ?>
									<div class="singlenews contenerSingleNews ui-corner-all">
									
										<h3><?php echo $singlenews->news_title ?></h3>
										<div><?php echo $singlenews->news_text_short ?></div>
										<?php ?>
										<br/>
										<a  class=" button buttonLightGrey" href="<?php echo base_url(); ?>admin/news_glowny_edit/<?php echo $singlenews->ID_news; ?>"><img src="<?php echo base_url(); ?>images/pencil.png" />Edycja</a>
                            			<a  class="usunnews button buttonLightGrey" href="<?php echo base_url(); ?>admin/removenewsglowny/<?php echo $singlenews->ID_news; ?>"><img src="<?php echo base_url(); ?>images/bin.png" />Usuń</a>
                            			<br/><br/>
									</div>																
								<?php }?>
																
							<?php } ?>
							
							
							
							
							
							</div>
							
						</div>
						
						
					
					
					
				</div>
				

				
			