<label for="int">CODIGO ALUMNO <?php 
echo form_error('CODIGO_ALUMNO');
?>
</label>
                        <input type="text" class="form-control" name="CODIGO_ALUMNO" id="CODIGO_ALUMNO" placeholder="INGRESAR CODIGO DE ALUMNO" value="<?php 
echo $CODIGO_ALUMNO;
?>
" />
                    </div>     
                    <div class="form-group">
                        <label for="int">SEMESTRE <?php 
echo form_error('SEMESTRE');
?>
</label>                       
                        <?php 
echo form_dropdown('SEMESTRE', get_year_semester(), $SEMESTRE, 'class="form-control"');
?>
                        
                    </div>            
                    
                    <button type="submit" class="btn btn-primary" name="ACTION" value="GUARDAR"><?php 
echo $button;
?>
</button>
                    <a href="<?php 
echo site_url('matriculas');
?>
" class="btn btn-default">Cancel</a>
                    
                </div>
                <?php 
                    </div>
                    <?php 
}
?>

                    <?php 
if ($CODIGO_CARRERA) {
    ?>
                    <div class="form-group">
                        <label for="SEMESTRE">SEMESTRE <?php 
    echo form_error('SEMESTRE');
    ?>
</label>

                        <?php 
    echo form_dropdown('SEMESTRE', get_year_semester(), $SEMESTRE, 'class="form-control" onchange="this.form.submit()"');
    ?>
                    </div>
                    
                     <table class="table table-bordered" style="margin-bottom: 10px">
                        <tr>
                            <th ></th>
                            <th>NOMBRE_ASIGNATURA</th>
                            <th>CATEGORIA</th>
                            <th>HORAS</th>
                            <th>CREDITOS</th>
                            
                        </tr><?php 
    foreach ($asignaturas as $asignatura) {
        ?>
                        <tr>