-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapprove.php
54 lines (49 loc) · 2 KB
/
approve.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
include_once('controller/autoload.php');
include_once('controller/adminonlysessioncontrol.php');
include_once('controller/documents_edit_redirect_control.php');
?>
<?php
if(! isset($_SESSION["file_prone"])){
header("location:documents.php");
}
?>
<?php include_once("adheader.php"); ?>
<body >
<?php include_once('adminnav.php'); ?>
<div class="w3-main" id="main">
<br><br>
<div class="container" id="hide">
<div class="container">
<!--The folowing div takes care of the Document Writing and Saving-->
<div class="row">
<h2 class="page-header text-center" style="margin: 30px 20px"><span class="fa fa-edit"></span>Confirm Owner</h2>
<?php if(isset($_SESSION['message'])): ?>
<div class="container well text-center w3-card-12">
<h1 class="text"><?php echo $_SESSION['message']; ?></h1>
</div>
<?php else: ?>
<?php unset($_SESSION['message']); ?>
<?php endif; ?>
<div class="col-md-12">
<div class=" container well w3-card-24 col-md-6 col-md-offset-3">
<?php include_once('controller/documents_edit_delete_control.php'); ?>
<?php if($confa == "YES"): ?>
<form action="<?php $_PHP_SELF; ?>" method="POST" id="postform" enctype="multipart/form-data">
<label style="color:blue;" class="col-md-12" >Supply the password you used to lock this file.?</label>
<div class="form-control col-md-3">
<label>Password</label>
<input type="password" placeholder="******" title="The password you used to lock the file" name="confid" id="confid"/>
</div>
<div class="form-group" style="padding-bottom: 4em">
<button type="submit" name="approve" class="btn btn-primary btn-style-four pull-right lead">Approve</button>
</div>
</form>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include_once('footer.php'); ?>