ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/timbrature/NH-HR-test/ds/php/permissions
/
home
mhhtmff
timbrature
NH-HR-test
ds
php
permissions
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
delete_permission.php
6.36 MB
chmod
View
DL
Edit
Rename
Delete
get_calendar_permissions.php
1.64 MB
chmod
View
DL
Edit
Rename
Delete
manage_permission.php
6.37 MB
chmod
View
DL
Edit
Rename
Delete
new_permission.php
6.62 MB
chmod
View
DL
Edit
Rename
Delete
update_permission.php
8.23 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/timbrature/NH-HR-test/ds/php/permissions/get_calendar_permissions.php
<?php session_start(); if (!isset($_SESSION['loggedin'])) { exit("unauthorized"); } require_once "../database.php"; $user_id = $_GET["user_id"]; $eventArray = array(); $sqlQuery = "SELECT * FROM permissions WHERE user_id = $user_id"; $result = mysqli_query($con, $sqlQuery); while ($row = mysqli_fetch_assoc($result)) { $sql_justification = "SELECT * FROM justifications WHERE id = " . $row['justification_id'] . ""; $result_justification = mysqli_query($con, $sql_justification); $justification = mysqli_fetch_assoc($result_justification); if ($row["full_day"] == 1) { $full_day = true; $ending_date = date('Y-m-d', strtotime('+1 day', strtotime($row['end_date']))); $end = $ending_date . "T" . $row['end_time']; } else { $full_day = false; $end = $row['end_date'] . "T" . $row['end_time']; } $start = $row['start_date'] . "T" . $row['start_time']; if ($row["status_id"] == "1") { $color = '#ff9800'; } else if ($row["status_id"] == "2") { $color = '#4caf50'; } else if ($row["status_id"] == "3") { $color = '#f44336'; } if ($row["full_day"] == 1) { $title = $justification['name']; } else { $title = " - " . $justification['name']; } $array = array( 'id' => $row['id'], 'title' => $title, 'start' => $start, 'end' => $end, 'allDay' => $full_day, 'backgroundColor' => $color ); array_push($eventArray, $array); } mysqli_free_result($result); mysqli_close($con); echo json_encode($eventArray);
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply