<?php 
include('authentication.php');
include('includes/header.php');
include('includes/topbar.php');
include('includes/sidebar.php');
?>

<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h3>Floating News</h3>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="#">Home</a></li>
                        <li class="breadcrumb-item active">Floating News</li>
                    </ol>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>
    <section class="content">
        <?php include('message.php'); ?>
        <div class="container-fluid">



            <div class="card">
                <div class="card-header">
                    <h5>
                        Floating News
                    </h5>
                </div>
                <div class="card-body">
                    <form action="code.php" method="POST" id="catform" enctype="multipart/form-data">
                        <div class="form-group mb-3">
                            <?php 
                                $ref = "Floating News/";
                                $fetchdata = $database->getReference($ref)->getValue();
                            ?>
                            <input type="text" name="news"  placeholder="News"
                                class="form-control"  value="<?=$fetchdata?>" required>
                        </div>
                        <div class="form-group mb-3">
                            <button type="submit" name="update_news_btn"
                                class="btn btn-primary float-sm-right">Submit</button>
                        </div>

                </div>
                </form>
            </div>
        </div>


    </section>



</div>



<?php
include('includes/script.php');
include('includes/footer.php');
?>