Skip to content
Snippets Groups Projects
Commit fdcea7c5 authored by fitrakun's avatar fitrakun
Browse files

disabled button setuju skp

parent ee29c2ff
No related merge requests found
Pipeline #2053 skipped
......@@ -216,8 +216,17 @@ if ($func == 1){
}
$_SESSION['all_kegiatan'] = $array;
$sqlcheckstatus = "SELECT status FROM skp WHERE id_skp=$id_skp";
$resultstatus =$conn->query($sqlcheckstatus);
if ($resultstatus->num_rows>0){
while($row = $resultstatus->fetch_assoc()) {
$status = $row;
}
}
$_SESSION['status'] = $status;
$_SESSION['all_kegiatan'] = $array;
header( 'Location: ../form_persetujuan_skp.php?nip='.$nip ) ;
exit();
......@@ -264,6 +273,7 @@ if ($func == 1){
}
header( 'Location: ../form_persetujuan_skp.php?nip='.$nip ) ;
exit();
}
......
......@@ -86,7 +86,7 @@
</div>
<?php $formlink = "controller/form_skp_controller.php?func=4&nip=".$_GET['nip'] ?>
<a href=" <?php echo $formlink; ?> ">
<button class="btn m-b-sm m-r-sm btn-info">Setuju</button>
<button class="btn m-b-sm m-r-sm btn-info" <?php $status = $_SESSION['status']; if ($status["status"]==1) { echo 'disabled="disabled"';}?>>Setuju</button>
</a>
</div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment