<?php $this->load->view('header');?>

	<div class="alert">

		<p><?php echo $this->lang->line('server_time');?>: <?php echo date('Y-m-d H:i:s');?></p>

		<p><?php echo $this->lang->line('local_time');?>: <?php echo date('Y-m-d H:i:s');?></p>

	</div>
	
	<div class="row-fluid">
		<div class="span12">

			<!-- BEGIN PAGE TITLE & BREADCRUMB-->

			<h3 class="page-title"><?php echo $this->lang->line('hf_home');?> </h3>

			<ul class="breadcrumb">

				<li><i class="icon-home"></i><a href="<?php echo base_url();?>home/"><?php echo $this->lang->line('hf_home');?></a></li>
			</ul>
			<!-- END PAGE TITLE & BREADCRUMB-->
		</div>
	</div>
	
	<div class="row-fluid">

		<div class="span12 blog-page">

			<div class="row-fluid">

				<div class="span article-block">

					<?php 
						if($announcements->num_rows() > 0) {
							foreach($announcements->result() as $row) {
					?>
						<div class="row-fluid">
							<div class="span12 blog-article text-center">
								<h2><?php echo $row->title;?></h2>
								<p><?php echo date('Y-m-d H:i:s A', (($row->updated_date != '') ? $row->updated_date : $row->created_date)); ?></p>
								<p><?php echo $row->content;?></p>
							</div>
						</div>	
						<hr>
					<?php 
							} 
						}
						else {								
					?>
						<div class="row-fluid">
							<div class="span8 blog-article">
								<p><?php echo $this->lang->line('home_no_announcement');?></p>
							</div>
						</div>	
						<hr>								
					<?php }?>	
				
				</div>

			</div>

		</div>

	</div>
	
<?php $this->load->view('footer');?>