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

	<!-- BEGIN PAGE HEADER-->

	<div class="row-fluid">

		<div class="span12">

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

			<h3 class="page-title">

				<?php echo $this->lang->line('hf_announcement_list');?> 

			</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> 

					<i class="icon-angle-right"></i>

				</li>
				<li><?php echo $this->lang->line('hf_announcement');?> <i class="icon-angle-right"></i></li>

				<li>

					<?php echo $this->lang->line('hf_announcement_list');?>

				</li>
			</ul>

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

		</div>

	</div>

	<!-- END PAGE HEADER-->

	<!-- BEGIN PAGE CONTENT-->

	<div class="row-fluid">

		<div class="span12">

			<div class="portlet box blue">

				<div class="portlet-title">

					<div class="caption"><i class="icon-reorder"></i><?php echo $this->lang->line('hf_announcement_list');?></div>

				</div>

				<div class="portlet-body">
					<?php 
						$alert_box = '';
						$alert_msg = '';
						
						if($this->session->userdata('form_msg_type') == 100) {
							$alert_box = 'success';
							$alert_msg = $this->session->userdata('form_msg');
						}
						else if($this->session->userdata('form_msg_type') == 200) {
							$alert_box = 'error';
							$alert_msg = $this->session->userdata('form_msg');
						}
						
						if($this->session->userdata('form_msg_type') == 100 OR $this->session->userdata('form_msg_type') == 200) {
							$this->session->unset_userdata(array('form_msg_type' => '', 'form_msg' => ''));
						}

						if( ! empty($alert_msg)) {
					?>
					<div class="alert alert-<?php echo $alert_box;?>">
						<button class="close" data-dismiss="alert"></button>
						<?php echo $alert_msg;?>
					</div>
					<?php }?>
						
					<table class="table table-striped table-hover table-bordered" id="table-listing">
						<thead>
							<tr>
								<th><?php echo $this->lang->line('announcement_publish_datetime');?></th>
								<th><?php echo $this->lang->line('announcement_title');?></th>
								<th><?php echo $this->lang->line('announcement_status');?></th>
								<th>&nbsp;</th>
							</tr>
						</thead><!--/thead-->

						<tbody></tbody>
					</table>

				</div>

			</div>

		</div>

	</div>

	<!-- END PAGE CONTENT -->

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