<?php
    session_start();
if(isset($_SESSION['userId'])){

}else{
header("location: ../../login.php");
        }
                                    
?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Home page</title>
    <!-- Bootstrap CSS -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
     <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" ></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" ></script>
    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.7.7/xlsx.core.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/xls/0.7.4-a/xls.core.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

    <style>
          @import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900');
        :root{
            --theme-color:#5664d2;
        }
        .theme-color{
            color:var(--theme-color);
        }
        .btn-theme-type1{
            color:#fff!important;
            background-color:var(--theme-color)!important;
            border-radius:28px!important;
            font-size:12px!important;
            box-shadow:none!important;
        }
        .btn-theme-type1:hover{
            color:var(--theme-color)!important;
            background-color:#fff!important;
            border-color:var(--theme-color)!important;
        }

        body {
            font-family: 'Poppins', sans-serif;
            font-size: 13px;
            background: #f8f8f8;
        }
        .container, .container-md, .container-sm {
                max-width: 100%;
            }

        #exceltable {
            font-size: 13px;
        }

        select.form-control {
            height: 30px;
            font-size: 12px;
        }

        thead th {
            text-transform: capitalize;
        }

        .table td,
        .table th {
            vertical-align: middle;
        }

        .table tr.bg-warning {
            background-color: #ffc10740 !important;
        }

        section.content {
            box-shadow: 0px 15px 16.83px 0.17px rgba(0, 0, 0, 0.05);
            border-radius: 14px;

        }

        .uploadExcelFile::-webkit-file-upload-button {
            background: #2222225c;
        }

        .uploadExcelFile {
            font-weight: 700;
            font-size: 13px;
            border-radius: 10px;        }

        .uploadExcelFile::-webkit-file-upload-button {
            color: white;
            display: inline-block;
            background: #212529e0;
            border: none;
            padding: 12px 15px;
            font-weight: 600;
            border-radius: 3px;
            white-space: nowrap;
            cursor: pointer;
            font-size: 13px;
        }

        /*.btn:hover {
            color: #fff;
            background-color: #222222;
            border-color: #222222;
            box-shadow: 1px 1px 5px #020202;
        }

        .btn {

            width: 20%;
            display: inline-block;
            background: #009edb;
            color: #fff;
            border-bottom: none;
            width: auto;
            padding: 15px 39px;
            border-radius: 5px;
            -moz-border-radius: 5px;
            -webkit-border-radius: 5px;
            -o-border-radius: 5px;
            -ms-border-radius: 5px;
            margin-top: 25px;
            cursor: pointer;
            border: 0;
            box-shadow: 3px 2px 9px 2px #35333329;
        }*/
        .table tr th:nth-child(3){
            width:10%;
        }
        #submit:disabled{
         /*background: #009edb!important;*/
         /*   box-shadow:none;*/
            cursor: not-allowed;
        }
      /*  @media (min-width: 768px){
            .container, .container-md, .container-sm {
                max-width: 100%;
            }
              
        }*/
          @media (max-width: 768px){
           
              .uploadExcelFile::-webkit-file-upload-button,.uploadExcelFile,  #viewfile, #submit{
                   font-size: 10px;
              }
              #viewfile{
                  margin-left:0px!important;
              }
              .table td, .table th {
                vertical-align: middle;
                padding: 0;
                font-size: 10px;
                }
            .container, .container-md, .container-sm {
                width: fit-content;
                max-width: initial;
            }
            .customerNameTh{
            width: 18%;
            padding: 0 10px;
            }
               
          }
           @media (max-width: 410px){
                #viewfile{
                        margin-top: 15px !important;
                }
                
          }

    </style>

</head>

<body>

    <div class="container">
        <section class="content my-5 bg-white p-4">
            <input type="file" id="excelfile" class="uploadExcelFile" />
            <input type="button" id="viewfile" value="Export To Table" class="btn btn-theme-type1 mt-0 p-2 px-3 ml-5"/>
            <table class="table table-hover my-5 bg-white mx-auto" id="exceltable">
            </table>
            
<!--            <p><span class="text-danger font-weight-bolder">Note:</span> Fill All Required Fields and Submit</p>-->
            <button class="btn btn-theme-type1 mb-2 mx-2" id="submit" disabled>Add bulk sites<i class="fa fa-spinner fa-spin ml-2 d-none"></i></button>
            <a id="triggerAnchr" href="" class="d-none">trigger</a>
            <p class="ml-2 text-success" id="resultMessage"><b></b></p>
            <div class="font-weight-bold" style="font-size: 13px;">Click here to download Bulk site Details template<a href="../convert_Excel_to_HTML/ADD-SITE_TEMPLATE.xlsx" class="ml-2 font-weight-light theme-color">clik here</a></div>
        </section>
    </div>
</body>
<script type="text/javascript" src="globalVariable.js?version= 1.7"></script>
<script type="text/javascript" src="main.js?version= 3.0"></script>
<!--<script type="text/javascript" src="constants.js"></script>-->
<script type="text/javascript" src="../../js/constants.js?version= 1.9"></script>
<script type="text/javascript" src="DynamicTabledata.js?version= 3.0"></script>
<!--<script type="text/javascript" src="dropDownClass.js"></script>-->

</html>
