<style>
    .form-outer{
        display:inline-block;
        width:100%;
    }
    
    .w-20{
        float:left;
        padding:10px;
        width:20%;
    }
    
    .w-25{
        float:left;
        padding:10px 10px 0px 10px;
        width:20%;
    }
</style>
<?php
$academic_session=$this->session->userdata("acedemic_session");
$y1=$this->session->userdata("y1");
$y2=$this->session->userdata("y2");
?>
<div class="container-fluid mt-3 mb-3 bg-white">
    <div class="row">
        <div class="col-sm-12 pt-3 pb-3">
            
            <ul class="breadcrumb">
                <li class="breadcrumb-item">
                    <a href="<?php echo base_url(); ?>Welcome">Home</a>
                </li>
                <li class="breadcrumb-item">
                    <a href="<?php echo base_url(); ?>ExamManagement">Examination</a>
                </li>
                <li class="breadcrumb-item">Add New Exam</li>
            </ul>
            
            <div class="form-outer">
                <form method="post" action="#">
                    <h1 class="main-heading text-center">Add New Exam</h1><hr>
                    <?php
                    if($success){
                    ?>
                    <div class="alert alert-success"><?php echo $success; ?></div>
                    <?php
                    }
                    ?>
                    
                    <?php
                    if($error){
                    ?>
                    <div class="alert alert-danger"><?php echo $error; ?></div>
                    <?php
                    }
                    ?>
                    <div class="form-group w-25">
                        <label>Academic Session</label>
                        <select class="form-control" name="academic_session">
                            <option value="<?php echo $academic_session; ?>"><?php echo $y1."-".$y2;?></option>
                        </select>
                    </div>
                    
                    <div class="form-group w-25">
                        <label>Exam Title</label>    
                        <input type="text" name="exam_title" placeholder="Exam Title" class="form-control">
                    </div>
                    
                    <div class="form-group w-25">
                        <label>Status</label>
                        <select class="form-control" name="status">
                            <option value="">--- Select Status ---</option>
                            <option value="active">Active</option>
                            <option value="inactive">Inactive</option>
                        </select>
                    </div>
                    
                    <div class="form-group w-25">
                        <label>&nbsp;</label><br>
                        <button class="btn btn-success" name="add_new_exam">Submit</button>
                    </div>
                    
                </form>
            </div>
            <!--<div class="table-responsive">-->
            <!--    <table class="table table-bordered table-striped">-->
            <!--        <thead>-->
            <!--            <tr>-->
            <!--                <th cla>Sl.No.</th>-->
            <!--            </tr>-->
            <!--        </thead>-->
            <!--    </table>-->
            <!--</div>-->
        </div>
    </div>
</div>