<div id="mantenimiento" class="modal fade" data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog modal-xl" role="document">
        <div class="modal-content bd-0">
            <div class="modal-header pd-y-20 pd-x-25">
                <h6 id="lblTitulo" class="tx-14 mg-b-0 tx-uppercase tx-inverse tx-bold"></h6>
            </div>
            <div class="modal-body">
                <div class="content">
                    <div class="container-fluid">
                        <div class="row">
                            <div class="card col-sm-12">
                                <div class="card-body">                                    
                                        <div class="card tab-pane card-primary" id="form-clases">
                                            <div class="card-header">
                                                <h5>Clases</h5>
                                            </div>
                                             <?php
                                            if ($_SESSION["perfil"]=="DOCENTE") {

                                            echo'
                                            <form method="post" id="formClases">
                                                <input type="hidden" name="mallacurricular" id="mallacurricular"/>
                                                <div class="card-body">
                                                    <div class="form-layout form-layout-1">
                                                        <div class="row mg-b-25"> 
                                                            <div class="col-lg-6">
                                                                <div class="form-group">                                                                
                                                                    <label for="semana" class="form-label">Semana:</label>
                                                                    <select class="form-control select2" name="semana" id="semana" data-placeholder="Seleccione" required>
                                                                        <option label="Seleccione"></option>
                                                                        <option value="1">SEMANA 1</option>
                                                                        <option value="2">SEMANA 2</option>
                                                                        <option value="3">SEMANA 3</option>
                                                                        <option value="4">SEMANA 4</option>
                                                                        <option value="5">SEMANA 5</option>
                                                                        <option value="6">SEMANA 6</option>
                                                                        <option value="7">SEMANA 7</option>
                                                                        <option value="8">SEMANA 8</option>
                                                                    </select>
                                                                    <div class="invalid-feedback" id="invalid-semana">Seleccione la semana</div>
                                                                    <div class="valid-feedback" id="valid-semana">¡Campo validado!</div>
                                                                </div>
                                                            </div>
                                                            <div class="col-lg-6">
                                                                <div class="form-group">
                                                                    <label for="fecha" class="form-label">Fecha:</label>
                                                                    <input class="form-control" type="date" name="fecha" id="fecha" placeholder="01-01-1990" required>
                                                                    <div class="invalid-feedback" id="invalid-fecha">Ingrese la fecha</div>
                                                                    <div class="valid-feedback" id="valid-fecha">¡Campo validado!</div>
                                                                </div>
                                                            </div> 
                                                            <div class="col-lg-12">
                                                                <div class="form-group">
                                                                    <label for="link" class="form-label">Link Clase:</label>
                                                                    <input class="form-control" type="clase" name="link" id="link" placeholder="Link de la clase" required>
                                                                    <div class="invalid-feedback" id="invalid-clase">Ingrese el link de la clase grabada</div>
                                                                    <div class="valid-feedback" id="valid-clase">¡Campo validado!</div>
                                                                </div>
                                                            </div>';                                                             
                                                            if ($asignar == 1) {
                                                                echo"
                                                                    <div class='form-layout-footer'>
                                                                        <button class='btn btn-success' id='btnGuardarClases'>Guardar</button>
                                                                    </div>
                                                                    ";
                                                            }
                                                        echo'    
                                                        </div>                                                                                                                                                                    
                                                    </div>
                                                </div>
                                            </form>   
                                            ';
                                            }
                                            ?> 
                                            <div class="br-pagebody mg-t-5 pd-x-30">
                                                <section class="content">
                                                    <div class="container-fluid">
                                                        <div class="row row-sm mg-t-20">
                                                            <div class="col-12">
                                                                <div class="card">
                                                                    <div class="card-body responsive">                                                                                                                             
                                                                        <p></p>
                                                                        <table id="clasesgrabadas-data" class="table table-bordered display table-striped responsive nowrap tablas" cellspacing="0" width="100%">
                                                                            <thead>
                                                                                <tr>
                                                                                    <th>Código</th>
                                                                                    <th>Semana</th>
                                                                                    <th>Fecha</th>
                                                                                    <th>Link</th>
                                                                                    <?php
                                                                                    if ($_SESSION["perfil"]=="DOCENTE") {
                                                                                        echo'<th>Acciones</th>';
                                                                                    }
                                                                                    ?>                                                                                    
                                                                                </tr>
                                                                            </thead>
                                                                            <tbody>                                                    
                                                                            </tbody>
                                                                        </table>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </section>
                                            </div>
                                        </div>                                                                                                                            
                                    </div>
                                </div>                               
                            </div>
                            <button type="reset" class="btn btn-danger tx-11 tx-uppercase pd-y-12 pd-x-25 tx-mont tx-medium" aria-label="Close" aria-hidden="true" data-dismiss="modal"><i class="fa fa-close"></i>Salir</button>
                        </div>
                    </div>              
                </div>
            </div> 
        </div>
    </div>
</div>