
        <!-- Left Sidebar End -->
        <!-- ============================================================== -->
        <!-- Start right Content here -->
        <!-- ============================================================== -->
        <div class="content-page">
            <!-- Start content -->
            <div class="content">
                <div class="container-fluid">
                    <div class="page-title-box">
                        <div class="row align-items-center">
                            <div class="col-sm-6">
                                <h4 class="page-title">A propos ADN</h4>
                            </div>
                        </div>
                    </div>
                    <!-- end row -->
                    <div class="row">
                        <div class="col-12">
                            <div class="card">
                                <div class="card-body">
                                    <form class="" method="POST" action="apropos/accueil/ajouter" enctype="multipart/form-data">
                                        <input type="hidden" name="id" value="2">
                                        <div class="form-group" style="text-align: center;">
                                            <label>Joindre un fichier</label><br>
                                            <img id="imgpreviewad" src="https://www.savanafinance.com/media/<?=Contenu::q()->where('id=2')->execute()[0]->couverture?>" style="width: 250px;height: 250px;"><br><br>
                                            <a href="javascript:;" class="btnaddimage">Changer le fichier</a>
                                            <input type="file" name="document" class="form-control" style="visibility: hidden;" id="inputimgad">
                                        </div>  
                                        <div class="form-group">
                                            <label>Votre page</label>
                                            <textarea name="description" class="summernote"><?=Contenu::q()->where('id=2')->execute()[0]->contenu?></textarea>
                                        </div>                                      
                                        <div class="form-group m-b-0">
                                            <div>
                                                <button type="submit" class="btn btn-primary waves-effect waves-light">Enregistrer</button> 
                                                <button type="reset" class="btn btn-secondary waves-effect m-l-5">Annuler</button></div>
                                        </div>
                                    </form>
                                    
                                </div>
                            </div>
                        </div>
                        <!-- end col -->
                    </div>
                    <!-- end row -->
                </div>
                <!-- container-fluid -->
            </div>
            <!-- content -->
            <footer class="footer">
                © 2021 GIST France <span class="d-none d-sm-inline-block">- Designed <i class="mdi mdi-heart text-danger"></i> by worldevs</span>.
            </footer>
        </div>
        <!-- ============================================================== -->
        <!-- End Right content here -->
        <!-- ============================================================== -->
    </div>
    <!-- END wrapper -->
    <!-- jQuery  -->
    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/js/bootstrap.bundle.min.js"></script>
    <script src="assets/js/metisMenu.min.js"></script>
    <script src="assets/js/jquery.slimscroll.js"></script>
    <script src="assets/js/waves.min.js"></script>
    <!--tinymce js-->
    <script src="plugins/tinymce/tinymce.min.js"></script>
    <!--Summernote js-->
    <script src="plugins/summernote/summernote-bs4.min.js"></script>
    <script src="assets/pages/form-editors.int.js"></script>
    <!-- App js -->
    <script src="assets/js/app.js"></script>
    
    <script>
    $('.btnaddimage').click(function(){
        $('#inputimgad').trigger('click');
    });
    function readURL(input, ids) {
        if (input.files && input.files[0]) {
            var reader = new FileReader();  
            reader.onload = function (e) {
                $('#'+ids).attr('src', e.target.result);
                var src = $('#'+ids).attr('src');}
                    reader.readAsDataURL(input.files[0]);
        }
    }

    $('#inputimgad').change(function(){
        readURL(this,'imgpreviewad');
    });
    </script>

</body>
</html>