Mini Kabibi Habibi

Current Path : C:/xampp/htdocs/cid/fts/SCHOOL/
Upload File :
Current File : C:/xampp/htdocs/cid/fts/SCHOOL/adddocs.php

<?php 

@include '../database.php';


session_start();

//Checking User Logged or Not
if(!isset($_SESSION['username_school'])){ 

 header('location:../index.php');
}



include('header.php');
include('script.php');
include('conn.php');
include('index1.php');
?>
<link rel="icon" href="../images/logo.ico">
<link rel="stylesheet" type="text/css" href="css/style2.css">
<body style="background-color: #FFFFFF">
<div class="dashboard-top" style="background-color: #FFFFFF">
   <div class="content" style="background-color: #FFFFFF">
            
            <div class="wrapper" style="background-color: #FFFFFF;width: 100%">
                  
       <div class="card-block table-border-style">

                    <div class="table-responsive">

                         <table class="table table-list-search">
                                   
                                    </thead>
                                 
                                   
<?php 
include('../database.php');

$sql = "SELECT * from accounts where username = '$_SESSION[login_user]'";
$data = mysqli_query($conn,$sql);
    while ($rows= mysqli_fetch_array($data)) {
            # code...
           
      ?>
       
                                        <tr>
                                            
                                             
                                                 <td class=" hidden" ><?php echo $rows['username'];?></td>
                                            
                                                <td >     
                                    <a class="btn btn-success btn-sm" href="add_document.php?username=<?php echo $rows['username']?>">
                                      <span class = "glyphicon glyphicon-file" aria-hidden = "true">Add Documents</span>
                                    </a>                                 
                                  </td>
                                         </tr>           
                                     <?php  } ?>
                                                
                                     
                                   
                                </table>
                            </div>
                        </div>
</div>
 <div class="pie-report" style="float: right;">
        <script src="js/jquery.min.js"></script>
        <?php include('script.php'); ?> 

        <!-- Educational Qualification -->
        <!-- Talisay -->
        <?php
          include('connect.php');
          $date = date("Y", strtotime("+ 8 HOURS"));
          $qosds = $con->prepare("SELECT COUNT('PLANTILLA') FROM `documents_recieved` WHERE `stats` = 'OSDS'") or die(mysqli_error());
          $qosds->execute();
          $osds = $qosds->fetchAll();
          foreach($osds as $key => $row) { 
           $total = $row["COUNT('PLANTILLA')"];

            }?>


        <!-- Alijis -->
          <?php
          include('connect.php');
          $date = date("Y", strtotime("+ 8 HOURS"));
          $qtalisay = $con->prepare("SELECT COUNT('PLANTILLA') FROM `documents_recieved` WHERE `stats` = 'SGOD'") or die(mysqli_error());
          $qtalisay->execute();
          $talisay = $qtalisay->fetchAll();
          foreach($talisay as $key => $row) { 
           $total = $row["COUNT('PLANTILLA')"];

            }?>



        <!-- Binalbagan -->
          <?php
          include('connect.php');
          $date = date("Y", strtotime("+ 8 HOURS"));
          $qtalisay = $con->prepare("SELECT COUNT('PLANTILLA') FROM `documents_recieved` WHERE `stats` = 'CID'") or die(mysqli_error());
          $qtalisay->execute();
          $talisay = $qtalisay->fetchAll();
          foreach($talisay as $key => $row) { 
           $total = $row["COUNT('PLANTILLA')"];

            }?>



        <!-- Fortune Towne -->
           <?php
          include('connect.php');
          $date = date("Y", strtotime("+ 8 HOURS"));
          $qtalisay = $con->prepare("SELECT COUNT('PLANTILLA') FROM `documents_recieved` WHERE `stats` = 'Elementary'") or die(mysqli_error());
          $qtalisay->execute();
          $talisay = $qtalisay->fetchAll();
          foreach($talisay as $key => $row) { 
           $total = $row["COUNT('PLANTILLA')"];

            }?>

         <?php
          include('connect.php');
          $date = date("Y", strtotime("+ 8 HOURS"));
          $qtalisay = $con->prepare("SELECT COUNT('PLANTILLA') FROM `documents_recieved` WHERE `stats` = 'Junior High School'") or die(mysqli_error());
          $qtalisay->execute();
          $talisay = $qtalisay->fetchAll();
          foreach($talisay as $key => $row) { 
           $total = $row["COUNT('PLANTILLA')"];

            }?>

 <?php
          include('connect.php');
          $date = date("Y", strtotime("+ 8 HOURS"));
          $qtalisay = $con->prepare("SELECT COUNT('PLANTILLA') FROM `documents_recieved` WHERE `stats` = 'Senior High Shcool'") or die(mysqli_error());
          $qtalisay->execute();
          $talisay = $qtalisay->fetchAll();
          foreach($talisay as $key => $row) { 
           $total = $row["COUNT('PLANTILLA')"];

            }?>
   
    <div id = "content" style="margin-bottom: 15px !important;">
        <br />
        <br />
        <br />
        <div class = "">
        <div id="chartContainer" style="height: 400px; width: 75%; float: right; margin-right: 10px; margin-top: 43px;"></div> 
        </div>
        
        <div id="bar2chartContainer" style="height: 300px; width: 75%; float: right; margin-top: 20px; margin-right: 10px;">
        </div>
    </div>
        </body>
</html>