      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Add Corporation
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">User Management</a></li>
            <li class="active">Add Corporation</li>
          </ol>
        </section>

        <!-- Main content -->
        <section class="content">
          <div class="row">         
           
           	<div class="col-md-12">
              <div class="box box-success">
                <div class="box-header with-border">
                  <h3 class="box-title heading">Corporation details</h3>
                </div><!-- /.box-header -->
                	<div class="box-body">
                    	<div  class="col-md-5">
                            
                            <form class="form-horizontal" role="form" action="<?php echo site_url(); ?>user_management/insert_corporation" method="post" enctype="multipart/form-data" >
                            <div class="form-group">                            
                              <label class="col-sm-4 control-label reg_label">Corporation Name</label>
                              <div class="col-sm-8">
                              <?php echo form_error('corporation_name'); ?> <br/>                        	
                              <input type="text" class="form-control" name="corporation_name" placeholder="Corporation Name"
                               data-toggle="tooltip" data-placement="bottom" value="<?php echo set_value('corporation_name'); ?>" title="Corporation Name">
                              </div>					
							</div>
                            <div class="form-group">                            
                              <label class="col-sm-4 control-label reg_label">Short Name</label>
                              <div class="col-sm-8">
                              <?php echo form_error('short_name'); ?> <br/>                        	
                              <input type="text" class="form-control" name="short_name" placeholder="Short Name"
                               data-toggle="tooltip" data-placement="bottom" value="<?php echo set_value('short_name'); ?>" title="Short Name">
                              </div>                              					
							</div>
                            <div class="form-group">                            
                              <label class="col-sm-4 control-label reg_label">Address(P.O BOX)</label>
                              <div class="col-sm-8">
                              <?php echo form_error('address'); ?> <br/>                        	
                              <input type="text" class="form-control" name="address" placeholder="Address"
                               data-toggle="tooltip" data-placement="bottom" value="<?php echo set_value('address'); ?>" title="Address">
                              </div>                              					
							</div>
                            <div class="form-group">                            
                              <label class="col-sm-4 control-label reg_label">Phone NO.</label>
                              <div class="col-sm-8">
                              <?php echo form_error('phone_no'); ?> <br/>                      	
                              <input type="text" class="form-control" name="phone_no" placeholder="Phone NO."
                               data-toggle="tooltip" data-placement="bottom" value="<?php echo set_value('phone_no'); ?>" title="Phone NO.">
                              </div>                              					
							</div>
                             <div class="form-group">                            
                              <label class="col-sm-4 control-label reg_label">Corporation's Logo</label>
                              <div class="col-sm-8">
                              <?php echo form_error('corp_logo'); ?> <br/>                      	
                              <input type="file" name="userfile">
                              </div>                              					
							</div>
                            
                            <div class="clearfix"></div>
					<div class="form-group">						
						
                        <div class="col-md-12">
							<button type="submit" class="btn btn-success btn-label-left btn-block">
								Submit
							</button>
						</div>
						
					</div>
                            
                            </form>
                 </div>      
                            
               <div  class="col-md-7">
                        
                <div class="box-content no-padding">
				<table id="add_corporation" class="table table-bordered table-striped">
					<thead>
						<tr>
							<th>Corporation Name</th>
							<th>Short Name</th>
							<th>Address(P.O BOX)</th>
							<th>Phone No.</th>
						</tr>
					</thead>
					<tbody>
                    <?php
					$x=0;
					if($corporations == NULL){?>
					
					<tr>
							<td colspan="4"> Currently there are no corporations in the system </td>
					
					<?php } else{
					foreach($corporations as $row){$x++;
					?>
					<!-- Start: list_row -->
						<tr>
							<td><?php echo $row->corporation_name;?></td>
							<td><?php echo $row->short_name;?></td>
							<td><?php echo $row->address;?></td>
							<td><?php echo $row->phone_no;?></td>
						</tr>
                      <?php  }} ?>
					
					<!-- End: list_row -->
					</tbody>
					
				</table>
                </div>                            
                </div>
             
                </div><!-- /.box-body -->      
             </div><!-- /.box --> 
               
           	</div><!-- /.close wrapper div for col-md-12 -->
            
          </div>   <!-- /.row -->
        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->