<?php

    session_start();

    include "../db.php";

    date_default_timezone_set('Asia/Kolkata');

    $currentTime = date('M j, Y g:i a');



    if ( !isset($_SESSION['uid']) && !isset($_SESSION['uref']) && !isset($_SESSION['utype']) && !isset($_SESSION['uname']) )

        header("Location: logout.php");

    if (!isset($_GET['ref']) && empty($_GET['ref'])) {

        header("Location: notes-upload.php");

    }

?>



<!DOCTYPE html>

<html lang="en">

<head>

 <?php include "includes/meta.php"; ?>        

    <?php include "includes/css.php"; ?>   

    

   <!-------Including Image Upload CSS File------>

        <link rel="stylesheet" type="text/css" href="multiPhotoUploadApp/style.css">



</head>

<body id="page-top" class="mt-55">

            <div style="margin-top: 130px;"></div>

                <?php include "includes/header2.php"; ?>

                <div class="container">

                    <div class="row justify-content-center">

                    <div class="col-md-8">

                        <div class="card shadow mt-3">

                        <h5 class="card-header text-dark  text-center font-weight-bold"> Student Notes Images</h5>

                            <div class="card-body">

                                <form method="POST" enctype="multipart/form-data">

                                    

                                    <div class="row mt-4">

                                        <div class="col-md-12">

                                            <label class="badge badge-warning">Image Upload</label>

                                            <div id="filediv"><input name="file[]" type="file" id="file"/></div><br/>

           

                                            <input type="button" id="add_more" class="upload" value="Add More Files"/>

                                        </div>

                                    </div>



                                    <div class=" row justify-content-center">

                                         <input type="submit" value="Upload File" name="img_submit" id="upload" 

                                         class="btn btn-success text-sm-center mt-4"/>

                                         &nbsp;&nbsp;&nbsp; 

                                         <a href="view-notes.php" class="btn btn-warning text-sm-center mt-4"> Cancel</a>



                                    </div>



                                </form>

                            </div>

                        </div>

                    </div>

                </div>

            </div>



     <div style="margin-top: 120px;"></div>

            <?php include "includes/ft.php"; ?>

            <?php include "includes/js.php"; ?>

            <!-------Including Image Upload Js File------>

            <script src="multiPhotoUploadApp/multiPhotoScript.js"></script>

            <script src="vendor/ckeditor.js"></script>







</body>

</html>



<?php include "multiPhotoUploadApp/upload.php"; ?>



?>

