<script type="text/javascript">
$(document).ready(function() {
	$('select').select2();
}); 
</script>
<div id="content">                        
<div class="wrap">
<div class="head">
	<div class="info">
		<h1><?php echo element('compName', $this->session->userdata('logged_in')) ?> [ 
			<?php echo element('compNo', $this->session->userdata('logged_in')) ?> ]</h1>
			<ul class="breadcrumb">
            	<li><a href='<?php echo base_url()."Home" ?>'><?php echo $this->lang->line('dashboard') ?></a> <span class="divider">-</span></li>
                <li><a href='<?php echo base_url()."GeneralLedger/Home" ?>'> <?php echo $this->lang->line('module') ?></a> <span class="divider">-</span></li>
                <li class="active"><?php echo $this->lang->line('title') ?></li>
            </ul>
	</div>
	<div class="search">
		<form action="<?php echo base_url() ?>admin/search" method="post">
			<input name="search_text" type="text" placeholder="search..."/>                                
            <button type="submit"><span class="i-magnifier"></span></button>
		</form>
	</div>                        
</div><!-- head --> 
<div class="content">
<div class="wrap">                    
	<div class="row-fluid">
		<div class="span12">
			<?php 
				$hidden = array('order_time' => date('Y-m-d H-i-s'));
				$attrib = array('id'=>'validate'); 
				echo form_open('', $attrib, $hidden);?>
        	<div class="block">
            	<div class="head">
                	<h2><?php echo $this->lang->line('title') ?></h2>
                        <div class="side fr">
                </div>
				<div class="content np"> <!-- Content 1 -->   
                	<div class="controls-row"><!-- Row 4-->
						<div class="span12">
                    	<div class="span3"><?php echo form_label($this->lang->line('year'),'add_year');?></div>
						<?php
							$preselyear = date('Y');
							$options = '';
							foreach($yrs as $row){
								$options[$row] = '<span> '.$row.' </span>';
							}
							$js='class="input-medium id="add_year"';

							echo form_dropdown('add_year', $options, $preselyear, $js);
						?>       
                        </div>
                 	</div><!-- End Row 4-->
            		<div class="footer">
            			<div class="side fr">
                			<div class="btn-group">
                        <?php 
							$data = array(
									'name'=>'mysubmit', 
									'class'=>'btn btn-primary'); 
							echo form_submit($data,$this->lang->line('submit'));
							?>
                    		</div>
                		</div>
            		</div>                                    
				</div>                                
			</div>                                
		</form>
		</div>
	</div>                                
</div><!-- wrap -->
</div><!-- content -->                                
</div><!-- wrap -->
</div><!-- content -->
