<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        <center>Cost List</center>
        
      </h1>
	  	  	 
    </section>
    
    <section class="content">
	<div style="text-align:right;">
    <a href="<?php echo base_url() ?>costListing" class="btn btn-info" value="Back"/>Back</a>
	</div>
	<br>
    
        <div class="row">
            <!-- left column -->
            <div class="col-md-12">
              <!-- general form elements -->
                
                
                
                <div class="box box-primary">
                    <div class="box-header">
                        <center><h3 class="box-title">Add Cost Details</h3></center>
                    </div><!-- /.box-header -->
                    <!-- form start -->
                    
                    <form role="form" id="addUser" action="<?php echo base_url() ?>addNewcost" method="post" role="form">
                        <div class="box-body">
                            <div class="row">
                                <!--<div class="col-md-6">                                
                                    <div class="form-group">
                                        <label for="CostCentreID">Cost Center ID</label>
                                        <input type="text" class="form-control required" id="CostCentreID" name="CostCentreID" maxlength="128">
                                    </div>
                                    
                                </div>-->
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="CostName">Cost Name</label>
                                        <input type="text" class="form-control required" id="CostName"  name="CostName" maxlength="128">
                                    </div>
                                </div>
                            
                           
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="Description">Description</label>
                                        <input type="text" class="form-control required  " id="Description"  name="Description" maxlength="255">
                                    </div>
                                </div>
                                
                                    
                            </div>
                        </div><!-- /.box-body -->
    
                        <div class="box-footer" style="text-align:right">
                            <input type="submit" class="btn btn-info" value="Submit" />
                            <input type="reset" class="btn btn-info" value="Cancel" />
                        </div>
                    </form>
                </div>
            </div>
            <div class="col-md-4">
                <?php
                    $this->load->helper('form');
                    $error = $this->session->flashdata('error');
                    if($error)
                    {
                ?>
                <div class="alert alert-danger alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                    <?php echo $this->session->flashdata('error'); ?>                    
                </div>
                <?php } ?>
                <?php  
                    $success = $this->session->flashdata('success');
                    if($success)
                    {
                ?>
                <div class="alert alert-success alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                    <?php echo $this->session->flashdata('success'); ?>
                </div>
                <?php } ?>
                
                <div class="row">
                    <div class="col-md-12">
                        <?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
                    </div>
                </div>
            </div>
        </div>    
    </section>
    
</div>
<script src="<?php echo base_url(); ?>assets/js/addUser.js" type="text/javascript"></script>