Your IP : 18.225.56.181


Current Path : /home/lentoinv/churchmr.com/user/
Upload File :
Current File : //home/lentoinv/churchmr.com/user/graph3.php

<?php     session_start(); ob_start();
    error_reporting(0); 
  @ini_set('display_error', 0);    include("../cludes/connect.inc.php");
  
  $page = 87;
    
    

        
              

$wk = date('W');
$year = date('y');
if(date('D')=="Sun"){$cw=$wk+1; } else{$cw=$wk;}  

if($_POST['item2']){  $_SESSION['dsn'] = $_POST['item2'];
  }   $section = $_SESSION['dsn'];  


if($_POST['reg']){  $_SESSION['reg'] = $_POST['reg'];
unset($_SESSION['dsn']);
  }   $gidd = $_SESSION['reg'];  

 $quer=$db->query("select * FROM zone WHERE sn='$gidd' " )or die(mysqli_error());
$ro=mysqli_fetch_array($quer);     
        $group = $ro['zone'];

?>


<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Attendance Report</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.5 -->
    <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
    <!-- daterange picker -->
    <link rel="stylesheet" href="../plugins/daterangepicker/daterangepicker-bs3.css">
    <!-- iCheck for checkboxes and radio inputs -->
    <link rel="stylesheet" href="../plugins/iCheck/all.css">
    <!-- Bootstrap Color Picker -->
    <link rel="stylesheet" href="../plugins/colorpicker/bootstrap-colorpicker.min.css">
    <!-- Bootstrap time Picker -->
    <link rel="stylesheet" href="../plugins/timepicker/bootstrap-timepicker.min.css">
    <!-- Select2 -->
    <link rel="stylesheet" href="../plugins/select2/select2.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="../dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="../dist/css/skins/_all-skins.min.css">
 
  </head>
  <body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
<?php  require('header.php');  ?>

      <!-- Left side column. contains the logo and sidebar -->
<?php  require('sidebar.php');  ?>
      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Attendance Report
            <small>WEEK <?php echo $cw.', '.date('M Y'); ?></small>
          </h1>
          <ol class="breadcrumb">
           <li><i class="fa fa-dashboard"></i> <?php echo date('D, d-M-Y'); ?></li>
            <li><?php echo strtoupper($zone); ?></li>
            <li class=""><?php echo strtoupper($district); ?></li>
          </ol>
        </section>

        <!-- Main content -->
        <section class="content"> 
              <div class="row">
  <div class="panel-body"> 
                <div class="col-lg-4">
                  SELECT GROUP: <b><?php echo strtoupper($group); ?></b>
                  <form method="post">
                  <select name="reg" class="form-control" onchange="submit()">
                   <option></option> <?php 
$query=$db->query("select * FROM zone ORDER BY zone ASC " )or die(mysqli_error());
              while($row=mysqli_fetch_array($query)){ 
                    ?>
                    <option value="<?php echo $row['sn']; ?>" <?php if($gidd==$row['sn']){ echo 'selected'; } ?>> <?php echo $row['zone']; ?></option>
                    <?php  } ?>
                  </select>

                </form>

                </div>
                   <div class="col-lg-8"> 
                         <form id="myform2" method="post">  
                       DISTRICTS: <?php 
              $query=$db->query("select * FROM district WHERE gid = '$gidd' ORDER BY district ASC " )or die(mysqli_error());
              while($row=mysqli_fetch_array($query)){  ?> &nbsp;&nbsp;&nbsp;&nbsp; <label><input name="item2" onchange="change2()" type="radio" value="<?php echo $row['sn'];  ?>" <?php if($row['sn']==$section){echo 'checked'; } ?> > <?php echo $row['district']; ?></label> <?php } ?>
                          
                        </form>
                       </div> 
                         <script>
function change2(){
    document.getElementById("myform2").submit();
}
    
          </script>   
</div>
          </div> 
          <div class="row">    
      <div class="col-lg-6">
            <div class="panel panel-primary">
              <div class="panel-heading">
                <h3 class="panel-title">Monthly Church Growth Analysis  {Blue-SWS, Green-MBS, Red-TRETS}</h3>
              </div>
              <div class="panel-body"> 
           
  <?php  require('test.php');  ?>
        
        <a href="test.php">Full Size</a>
              </div> 
            </div> 
          </div> 
                
                
                
                
                
                      <div class="col-lg-6">
            <div class="panel panel-success">
              <div class="panel-heading">
                <h3 class="panel-title"> Weekly Church Growth Chart for Sunday Worship Service</h3>
              </div>
              <div class="panel-body"> 
           
  <?php  require('test2.php');  ?>
        
              </div> 
            </div> 
          </div> 
                
           
    
          </div><!-- /.row -->





          </div><!-- /.row -->

        </section> <!-- /.content -->
      </div><!-- /.content-wrapper -->

     <?php  require('footer.php');  ?>

      <!-- Control Sidebar -->
    <?php // require('settingbar.php');  ?>
      <!-- Add the sidebar's background. This div must be placed
           immediately after the control sidebar -->
      <div class="control-sidebar-bg"></div>
    </div><!-- ./wrapper -->

    <!-- jQuery 2.1.4 -->
    <script src="../dist/js/app.min.js"></script>

  </body>
</html>

?>