File Manager V1.5
FILE_CONTENT: cluster_box.php
<?php
ini_set('upload_max_filesize', '10000M');
ini_set('post_max_size', '10000M');
ini_set('max_input_time', 300);
ini_set('max_execution_time', 300);
session_start();
if(!isset($_SESSION['surname'])){
header('Location: index.php');
}
require_once('db_conn.php');
$_SESSION['cluster'];
$_SESSION['id'];
$_SESSION['id2'];
?>
<!DOCTYPE html>
<html>
<head>
<title>Check</title>
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Infirmary Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- //for-mobile-apps -->
<link rel="shortcut icon" type="images/x-icon" href="images/q.png" />
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" href="css/jquery-ui.css" />
<link href="css/popuo-box.css" rel="stylesheet" type="text/css" media="all"/>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/style2.css" rel="stylesheet" type="text/css" media="all" />
<!-- js -->
<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="js/numscroller-1.0.js"></script>
<!-- //js -->
<!-- JavaScript Includes -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="js/jquery.knob.js"></script>
<!-- jQuery File Upload Dependencies -->
<script src="js/jquery.ui.widget.js"></script>
<script src="js/jquery.iframe-transport.js"></script>
<script src="js/jquery.fileupload.js"></script>
<!-- Our main JS file -->
<script src="js/script.js"></script>
<script type="text/javascript" src="js/bootstrap-3.1.1.min.js"></script>
<!-- fonts -->
<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Viga' rel='stylesheet' type='text/css'>
<!-- start-smoth-scrolling -->
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".scroll").click(function(event){
event.preventDefault();
$('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
});
});
</script>
<!-- start-smoth-scrolling -->
<!--start-date-piker-->
<script src="js/jquery-ui.js"></script>
<script>
$(function() {
$( "#datepicker,#datepicker1" ).datepicker();
});
</script>
<!--/End-date-piker-->
<script src="js/responsiveslides.min.js"></script>
<!--animate-->
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--//end-animate-->
</head>
<body>
<!-- header -->
<div class="header wow zoomIn">
<div class="container">
<div class="header_left" data-wow-duration="2s" data-wow-delay="0.5s">
<ul>
<li style=" color:#FDA30E; font-size:18px; "><span style=" font-size:18px; " class="glyphicon glyphicon-user" aria-hidden="true"></span><?php echo $_SESSION['surname'];?> <?php echo $_SESSION['firstname'];?></li>
</ul>
</div>
<div class="header_right">
<div class="login">
<ul style="padding-bottom:10px;">
<li><a href="https://selfservice.wvcentral.org/forms/wvcsslogin.fcc?TYPE=33554433&REALMOID=06-724193f1-f159-48f6-95f4-528f84174776&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=wvcentralsp13www&TARGET=-SM-HTTPS%3a%2f%2fwww%2ewvcentral%2eorg%2f_layouts%2f15%2fAuthenticate%2easpx%3fSource%3d-%2F" target="_blank" >
<span class="glyphicon glyphicon-book" aria-hidden="true"></span>WVCENTRAL</a></li>
<li><a href="https://wvuganda.org/" target="_blank" ><span class="glyphicon glyphicon-envelope" aria-hidden="true"></span>LOTUS</a></li>
<li><a href="#" data-toggle="modal" data-target="#myModal4"><span class="glyphicon glyphicon-file" aria-hidden="true"></span>How it works</a></li>
<li><a href="logout.php" ><span class="glyphicon glyphicon-logout" aria-hidden="true"></span>Logout</a></li>
</ul>
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
</div>
<!-- //header -->
<div class="header-bottom ">
<div class="container">
<nav class="navbar navbar-default">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="logo grid">
<div class="grid__item color-3">
<h1><a class="link link--nukun" href="index.html"><i></i><span><img src="images/q.png" alt="2" width="120" /></span>- Check</a></h1>
</div>
</div>
</div>
<div class="collapse navbar-collapse nav-wil" id="bs-example-navbar-collapse-1">
<nav class="menu menu--horatio">
<ul class="nav navbar-nav menu__list">
<li class="menu__item"><a href="view.php" class="menu__link">View Projects</a></li>
<li class="menu__item"><a href="#" data-toggle="modal" data-target="#myModal55" class="menu__link">Deligate </a></li>
<li class="menu__item "><a href="#" data-toggle="modal" data-target="#myModal5" class="menu__link">New Project</a></li>
<li class="menu__item menu__item--current"><a href="#" class="menu__link">Cluster Box</a></li>
<li class="menu__item "><a href="home.php" class="menu__link">Home</a></li>
</ul>
</nav>
</div>
</nav>
</div>
</div>
<div class="map_contact">
<div class="container">
<div class="contact-grids">
<div class="col-md-6 contact-left-map " style="width: 30%;">
<div class="agile-its" >
<div class="login-bottom">
<h6
style="
border-radius: 3px;
color: #000;
background: #E6E4E4;
padding: 20px 0;
text-align: center;
font-size: 20px;">
Post to cluster box</h6>
<div class="sign-up">
<br>
<h4 style="color:#FDA30E;">Title/Subject </h4>
<form method="post" id="myForm" action="cbox.php" enctype="multipart/form-data">
<input type="text" name="title" style="color:#000; margin: 4px 0 10px 8px;" value=" Enter Title/Subject" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Enter Title/Subject';}" required="">
</div>
<input type="hidden" name="id" value="<?php echo $_SESSION['id']; ?>" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'id2';}" required="">
<input type="hidden" name="cluster" value="<?php echo $_SESSION['cluster']; ?>" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'id2';}" required="">
<h4 style="color:#FDA30E;" >Attachments </h4>
<input type="file" style="color:#000; margin: 4px 0 10px 8px;" name="uploads[]" multiple />
<div class="sign-up">
<h4 style="color:#FDA30E; " > Comments/Message</h4>
<textarea
style="
width:95%;
padding: 30px;
height:120px;
font-weight: normal;
background: none;
border-radius:4px;
border: 2px solid #E6E4E4;
color: #000;
outline: none;
font-size: 14px;
margin: 4px 0 10px 8px;
"
name="description" id="description" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Message...';}" required="">Paste Message Here...</textarea>
</div>
<div align="center" class="sign-in">
<input type="submit" style="width:38%; background: #00994C;" name='submit' value="Submit" >
<input type="button" style="width:38%; background: #FDA30E; padding:10px; color:#fff;" onclick="myFunction()" value="Cancel">
</div>
</form>
</div>
</div>
</div>
<script>
function myFunction() {
document.getElementById("myForm").reset();
}
</script>
<div class="col-md-6 contact-grid " style="width: 70%;">
<div class="agile-its" >
<h6
style="
border-radius: 3px;
color: #000;
background: #E6E4E4;
padding: 20px 0;
text-align: center;
font-size: 20px;">View Info in Cluster Box</h6>
<div class="w3layouts">
<table style="width:100%; ">
<thead style=" border:2px solid #9caec2; background:#00994C; ">
<tr style="width:100%; color:#F58703; font-size:14px; ">
<th style="padding:15Px; ">SUBJECT</th>
<th style=" border:2px solid #9caec2; padding:15px; " >MESSAGE</th>
<th style=" border:2px solid #9caec2; padding:15px;" > DOCUMENT</th>
<th style=" border:2px solid #9caec2; padding:15px;" >POSTED BY</th>
</tr>
<?php
$sql2 = mysqli_query($conn,"SELECT * FROM cluster_box WHERE cluster='".$_SESSION['cluster']."' ");
if(mysqli_num_rows($sql2) > 0)
{
$sql = "SELECT * FROM cluster_box where cluster='".$_SESSION['cluster']."' order by id desc";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
?>
<tbody>
<tr>
<td style=" border:1px solid #9caec2; padding:20px; "> <?php echo $row['filename'];?> </td>
<td style=" padding:20px; border:1px solid #9caec2; "> <?php echo nl2br ($row['description']);?> </td>
<td style=" padding:20px; border:1px solid #9caec2; ">
<a
href="cbox/<?php echo $row['uploads'];?>" target="_blank"> View <br>
<img src="cbox/<?php echo $row['uploads'];?> " width="100%" height="20%"/>
</a>
</td>
<td style=" padding:20px; border:1px solid #9caec2; "> <?php echo $row['user'];?> </td>
<?php
}
} else {
echo '<span style="color:red;text-align:center;">No Info Found</span>';
}
}
else
{
echo '<span style="color:red;text-align:center;">You have no Information on Cluster box</span>';
}
$conn->close();
?>
</tr>
</thead>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- //contact -->
<!-- content -->
<br><br>
<p align="center" class="copy-right">© 2020 QuickCheck. All rights reserved | Design by Sponsorship Pader-Agago Cluster<a href="#"></a></p>
<!-- login -->
<div class="modal fade" id="myModal4" tabindex="-1" role="dialog" >
<div class="modal-dialog" role="document">
<div class="modal-content modal-info">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body modal-spa">
<div class="login-grids">
<div class="login-right">
<h3>
How it Works
<hr>
Quick-Check is a platform that allows you to Store & Access
Information/Data irrespective of the Document Type, it also help in tracking the quantity
of Data uploaded in the system on a daily basis,
like Photos, Video & Documents
<hr>
- User logs in using their WV work mails & passwords <br>
- The system brings you a platform where to create OR update your project Info
</h3>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- //login -->
<!-- login -->
<div class="modal fade" id="myModal5" tabindex="-1" role="dialog" >
<div class="modal-dialog" role="document">
<div class="modal-content modal-info">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body modal-spa">
<div class="login-grids">
<div class="login-bottom">
<h3>Create a New Project</h3>
<form action="upload2.php" method="post" enctype="multipart/form-data">
<div class="sign-up">
<h4>Project Name</h4>
<input type="text" name="projectname" value="Project Name" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Enter Project Name';}" required="">
</div>
<div class="sign-up">
<h4>Location</h4>
<input type="text" name="location" value="Enter Location" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Enter Location';}" required="">
</div>
<div class="sign-up">
<h4>Descriptions </h4>
<textarea
style="
width:95%;
padding: 30px;
font-weight: normal;
background: none;
border: 2px solid #E6E4E4;
color: #fff;
outline: none;
font-size: 14px;
margin: 6px 0 17px 12px;
"
name="description" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Message...';}" required="">Descriptions...</textarea>
</div>
<input type="hidden" name="id" value="<?php echo $_SESSION['id']; ?>" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'id2';}" required="">
<div class="sign-up">
<input type="file" name="uploads[]" multiple />
</div>
<input type="submit" name='submit'
style="background:#FDA30E;
border: none;
padding: 10px 0;
color: #fff;
width:95%;
margin-left:3%;
font-size:14px;
cursor:pointer;" value="CREATE PROJECT" >
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- deligate -->
<div class="modal fade" id="myModal55" tabindex="-1" role="dialog" >
<div class="modal-dialog" role="document">
<div class="modal-content modal-info">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body modal-spa">
<div class="login-grids">
<div class="login-bottom">
<h3>Deligate a Person to View Your Projects</h3>
<form action="deligate.php" method="post" enctype="multipart/form-data">
<div class="sign-up">
<h4>SurNames</h4>
<input type="text" name="surname" value="Surnames" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Enter Surnames';}" required="">
</div>
<div class="sign-up">
<h4>First Names</h4>
<input type="text" name="firstname" value="Enter Firstname" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Enter Firstname';}" required="">
</div>
<div class="sign-up">
<h4>Cluster Names</h4>
<select name="cluster" value="Enter Cluster name" style="color:#fff; padding:10px;"onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Enter Cluster name';}" required="">
<option style="color:#000;">Select Your Cluster</option>
<option style="color:#000;" value="Mbale/Butaleja">Mbale/Butaleja</option>
<option style="color:#000;" value="Gulu">Gulu</option>
<option style="color:#000;" value="Oyam">Oyam</option>
<option style="color:#000;" value="Hoima">Hoima</option>
<option style="color:#000;" value="Kibale">Kibale</option>
<option style="color:#000;" value="Karamoja">Karamoja</option>
<option style="color:#000;" value="Kiboga">Kiboga</option>
<option style="color:#000;" value="Kamwenge">Kamwenge</option>
<option style="color:#000;" value="Tororo">Tororo</option>
<option style="color:#000;" value="Busia">Busia</option>
<option style="color:#000;" value="Soroti">Soroti</option>
<option style="color:#000;" value="Buikwe">Buikwe</option>
</select>
</div>
<div class="sign-up">
<h4>WV Email </h4>
<input type="text" name="email" value="Type here" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Enter Email';}" required="">
</div>
<div class="sign-up">
<h4>Password (wvcentral)</h4>
<input type="password" name="password" value="Password" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Password';}" required="">
</div>
<input type="hidden" name="id2" value="<?php echo $_SESSION['id'];?>" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Enter Email';}" required="">
<div class="sign-up">
<input type="submit" value="DELIGATE NOW" >
</div>
</form>
</div>
<p style="color:#FDA30E;">By Deligating you will have agreed to allow the person get access to all your projects</p>
</div>
</div>
</div>
</div>
</div>
<!-- //deligate -->
</body>
</html>
[ KEMBALI ]