ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/app/NH-HR-test-old/ds/public/stamps
/
home
mhhtmff
app
NH-HR-test-old
ds
public
stamps
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
new_stamp_content.php
3.87 MB
chmod
View
DL
Edit
Rename
Delete
stamps_calendar_content.php
938 B
chmod
View
DL
Edit
Rename
Delete
stamps_list.php
2.44 MB
chmod
View
DL
Edit
Rename
Delete
stamps_to_approve_count.php
653 B
chmod
View
DL
Edit
Rename
Delete
stamps_to_approve_list.php
2.71 MB
chmod
View
DL
Edit
Rename
Delete
stamp_details_content.php
8.45 MB
chmod
View
DL
Edit
Rename
Delete
users_list.php
1.53 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/app/NH-HR-test-old/ds/public/stamps/stamp_details_content.php
<?php session_start(); if (!isset($_SESSION['loggedin'])) { exit("unauthorized"); } include "../../php/database.php"; $stamp_id = $_GET["stamp_id"]; $user_id = $_GET["user_id"]; $sql = "SELECT * FROM stamps WHERE id='" . $stamp_id . "'"; $result = mysqli_query($con, $sql); $stamp = mysqli_fetch_assoc($result); $sql = "SELECT * FROM users WHERE id='" . $stamp["user_id"] . "'"; $result = mysqli_query($con, $sql); $user = mysqli_fetch_assoc($result); ?> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Dettaglio timbratura</h5> <button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" id="close_stamp_details">×</span></button> </div> <div class="modal-body"> <form> <?php if ($_SESSION["role"] == "Admin") { if ($stamp["delete_request"] == true) { echo "<div style='text-align: center;'>"; if ($stamp["delete_request_rejected"] == true) { echo "<p style='color: red'>Richiesta eliminazione.<br>Motivazione: " . $stamp["delete_motivation"] . "<br>La richiesta è stata rifiutata</p>"; } else { echo "<p style='color: black'>Richiesta eliminazione<br>Motivazione: " . $stamp["delete_motivation"] . "</p>"; ?> <button class='btn btn-primary ml-2' type='button' onclick='approveStampDelete(<?php echo $user_id; ?>, <?php echo $stamp["id"]; ?>)'>Approva</button> <button class='btn btn-danger ml-2' type='button' onclick='rejectStampDelete(<?php echo $user_id; ?>, <?php echo $stamp["id"]; ?>)'>Rifiuta</button> <?php } echo "</div>"; echo "<hr>"; } } ?> <fieldset class="form-group"> <div class="row"> <label class="col-sm-3 col-form-label" for="inputEmail3">Tipo</label> <div class="col-sm-9"> <div class="form-check"> <?php if ($stamp["type"] == "Entrata") { echo "<input class='form-check-input' id='stamp_type_entry' type='radio' name='gridRadios' value='option1' checked='checked'>"; } else { echo "<input class='form-check-input' id='stamp_type_entry' type='radio' name='gridRadios' value='option1'>"; } ?> <label class="form-check-label ml-3" for="stamp_type_entry"> Entrata </label> </div> <div class="form-check"> <?php if ($stamp["type"] == "Uscita") { echo "<input class='form-check-input' id='stamp_type_exit' type='radio' name='gridRadios' value='option2' checked='checked'>"; } else { echo "<input class='form-check-input' id='stamp_type_exit' type='radio' name='gridRadios' value='option2'>"; } ?> <label class="form-check-label ml-3" for="stamp_type_exit"> Uscita </label> </div> </div> </div> </fieldset> <div class="form-group row"> <label class="col-sm-3 col-form-label" for="inputEmail3">Trasferta</label> <div class="col-sm-9"> <div class="form-check"> <?php if ($stamp["in_transfer"] == 1) { echo "<input class='form-check-input' id='stamp_transfert' type='checkbox' onclick='changeStampTransfertType()' checked>"; } else { echo "<input class='form-check-input' id='stamp_transfert' type='checkbox' onclick='changeStampTransfertType()'>"; } ?> <label class="form-check-label ml-3" for="gridCheck1"> Timbratura effettuata in trasferta </label> </div> </div> </div> <?php if ($stamp["in_transfer"] == 1) { echo "<div class='form-group row' id='stamp_transfer_location_container'>"; } else { echo "<div class='form-group row' id='stamp_transfer_location_container' style='display: none;'>"; } ?> <div class="col-sm-3">Luogo timbratura</div> <div class="col-sm-9"> <select class="form-control form-control-rounded" id="stamp_transfer_location"> <?php if ($stamp["transfer_location"] == "Italia") { echo "<option value='Italia' selected>Italia</option>"; echo "<option value='Estero'>Estero</option>"; } else if ($stamp["transfer_location"] == "Estero") { echo "<option value='Italia'>Italia</option>"; echo "<option value='Estero' selected>Estero</option>"; } ?> </select> </div> </div> <div class="form-group row"> <label class="col-sm-3 col-form-label" for="inputEmail3">Data</label> <div class="col-sm-9"> <input class="form-control" id="stamp_date" type="date" placeholder="Data" value="<?php echo $stamp["date"]; ?>"> </div> </div> <div class="form-group row"> <label class="col-sm-3 col-form-label" for="inputEmail3">Ora</label> <div class="col-sm-9"> <input class="form-control" id="stamp_time" type="time" placeholder="Ora" value="<?php echo $stamp["time"]; ?>"> </div> </div> <div class="form-group row"> <label class="col-sm-3 col-form-label" for="inputEmail3">Note</label> <div class="col-sm-9"> <textarea class="form-control" id="stamp_note" placeholder="Note"><?php echo $stamp["note"]; ?></textarea> </div> </div> <div class="form-group row"> <label class="col-sm-3 col-form-label" for="inputEmail3">Registrazione</label> <div class="col-sm-9"> <input class="form-control" id="stamp_date" type="datetime" value="<?php echo date("d/m/Y H:i", strtotime($stamp["stamp_datetime"])); ?>" disabled> </div> </div> <?php if ($_SESSION["role"] == "Utente") { if ($stamp["delete_request"] == true) { if ($stamp["delete_request_rejected"] == true) { echo "<br><p style='color: red; text-align: center'>Richiesta eliminazione inviata.<br>Motivazione: " . $stamp["delete_motivation"] . "<br>La richiesta è stata rifiutata</p>"; } else { echo "<br><div style='text-align: center'><i class='fa-regular fa-clock' style='color: green; font-size: 30px'></i><p style='color: green'>Richiesta eliminazione inviata.<br>Motivazione: " . $stamp["delete_motivation"] . "<br>Attendi l'approvazione</p></div>"; } } } ?> </form> </div> <div class="modal-footer"> <button class="btn btn-secondary" type="button" data-dismiss="modal">Chiudi</button> <button class='btn btn-primary ml-2' type='button' onclick='updateStamp(<?php echo $user_id; ?>, <?php echo $stamp["id"]; ?>)'>Modifica</button> <?php if ($_SESSION["role"] == "Admin") { if ($stamp["delete_request"] == true) { if ($stamp["delete_request_rejected"] == true) { ?> <button class='btn btn-danger ml-2' type='button' onclick='deleteStamp(<?php echo $user_id; ?>, <?php echo $stamp["id"]; ?>, "Admin")'>Elimina</button> <?php } } else { ?> <button class='btn btn-danger ml-2' type='button' onclick='deleteStamp(<?php echo $user_id; ?>, <?php echo $stamp["id"]; ?>, "Admin")'>Elimina</button> <?php } } else { if ($stamp["delete_request"] == false) { ?><button class='btn btn-danger ml-2' type='button' onclick='deleteStamp(<?php echo $user_id; ?>, <?php echo $stamp["id"]; ?>, "Utente")'>Elimina</button><?php } } ?> </div>
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply