mirror of https://github.com/itflow-org/itflow
Consolidate alot of modals to modals/ENTITY removed ajax_ and _modal prefixes from file names and use new ajax-modal syntax
This commit is contained in:
parent
15ba385398
commit
170d6dd7e5
|
|
@ -234,7 +234,7 @@ ob_start();
|
|||
while ($row = mysqli_fetch_array($sql_contacts)) {
|
||||
$contact_id = intval($row['contact_id']);
|
||||
$contact_name = nullable_htmlentities($row['contact_name']);
|
||||
echo "<li><a href='#' data-toggle='ajax-modal' data-modal-size='lg' data-ajax-url='ajax/ajax_contact_details.php' data-ajax-id='$contact_id'>$contact_name</a></li>";
|
||||
echo "<li><a href='#' class='ajax-modal' data-modal-size='lg' data-modal-url='modals/contact/contact_details.php?id=$contact_id'>$contact_name</a></li>";
|
||||
}
|
||||
echo "</ul>";
|
||||
}
|
||||
|
|
@ -298,7 +298,7 @@ ob_start();
|
|||
while ($row = mysqli_fetch_array($sql_docs)) {
|
||||
$document_id = intval($row['document_id']);
|
||||
$document_name = nullable_htmlentities($row['document_name']);
|
||||
echo "<li><a href='#' data-toggle='ajax-modal' data-modal-size='lg' data-ajax-url='ajax/ajax_document_view.php' data-ajax-id='$document_id'>$document_name</a></li>";
|
||||
echo "<li><a class='ajax-modal' href='#' data-modal-size='lg' data-modal-url='modals/document/document_view.php?id=$document_id'>$document_name</a></li>";
|
||||
}
|
||||
echo "</ul>";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -798,7 +798,7 @@ if (isset($_GET['asset_id'])) {
|
|||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fa fa-fw fa-folder mr-2"></i>Documents</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary" data-toggle="ajax-modal" data-ajax-url="ajax/ajax_asset_link_document.php" data-ajax-id="<?= $asset_id; ?>">
|
||||
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/asset/asset_link_document.php?id=<?= $asset_id ?>">
|
||||
<i class="fas fa-link mr-2"></i>Link Document
|
||||
</button>
|
||||
</div>
|
||||
|
|
@ -832,19 +832,16 @@ if (isset($_GET['asset_id'])) {
|
|||
|
||||
<tr>
|
||||
<td>
|
||||
<div><a href="client_document_details.php?client_id=<?= $client_id; ?>&document_id=<?= $document_id; ?>"><?= $document_name; ?></a></div>
|
||||
<div><a href="document_details.php?client_id=<?= $client_id; ?>&document_id=<?= $document_id; ?>"><?= $document_name; ?></a></div>
|
||||
<div class="text-secondary"><?= $document_description; ?></div>
|
||||
</td>
|
||||
<td><?= $document_created_by; ?></td>
|
||||
<td><?= $document_created_at; ?></td>
|
||||
<td><?= $document_updated_at; ?></td>
|
||||
<td class="text-center">
|
||||
<a href="#" class="btn btn-dark btn-sm"
|
||||
data-toggle="ajax-modal"
|
||||
<a href="#" class="btn btn-dark btn-sm ajax-modal"
|
||||
data-modal-size="lg"
|
||||
data-ajax-url="ajax/ajax_document_view.php"
|
||||
data-ajax-id="<?= $document_id; ?>"
|
||||
>
|
||||
data-modal-url="modals/document/document_view.php?id=<?= $document_id ?>">
|
||||
<i class="fas fa-fw fa-eye"></i>
|
||||
</a>
|
||||
<a href="post.php?unlink_asset_from_document&asset_id=<?= $asset_id; ?>&document_id=<?= $document_id; ?>" class="btn btn-secondary btn-sm" title="Unlink"><i class="fas fa-fw fa-unlink"></i></a>
|
||||
|
|
@ -882,7 +879,7 @@ if (isset($_GET['asset_id'])) {
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary" data-toggle="ajax-modal" data-ajax-url="ajax/ajax_asset_link_file.php" data-ajax-id="<?= $asset_id; ?>">
|
||||
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/asset/asset_link_file.php?id=<?= $asset_id ?>">
|
||||
<i class="fas fa-link mr-2"></i>Link File
|
||||
</button>
|
||||
</div>
|
||||
|
|
@ -1237,10 +1234,10 @@ require_once "modals/asset/asset_interface_add.php";
|
|||
require_once "modals/asset/asset_interface_multiple_add.php";
|
||||
require_once "modals/asset/asset_interface_import.php";
|
||||
require_once "modals/asset/asset_interface_export.php";
|
||||
require_once "modals/ticket_add_modal.php";
|
||||
require_once "modals/ticket/ticket_add.php";
|
||||
require_once "modals/recurring_ticket_add_modal.php";
|
||||
require_once "modals/credential_add_modal.php";
|
||||
require_once "modals/client_document_add_modal.php";
|
||||
require_once "modals/client_file_upload_modal.php";
|
||||
require_once "modals/document/document_add.php";
|
||||
require_once "modals/file/file_upload.php";
|
||||
|
||||
require_once "../includes/footer.php";
|
||||
|
|
|
|||
|
|
@ -548,7 +548,7 @@ if (mysqli_num_rows($os_sql) > 0) {
|
|||
}
|
||||
$contact_name = nullable_htmlentities($row['contact_name']);
|
||||
if ($contact_name) {
|
||||
$contact_name_display = "<a class='ajax-modal' href='#' data-modal-url='ajax/ajax_contact_details.php?id=" . $asset_contact_id . "' data-modal-size='lg'>$contact_name $contact_archive_display</a>";
|
||||
$contact_name_display = "<a class='ajax-modal' href='#' data-modal-url='modals/contact/contact_details.php?id=$asset_contact_id' data-modal-size='lg'>$contact_name $contact_archive_display</a>";
|
||||
} else {
|
||||
$contact_name_display = "-";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -237,10 +237,9 @@ $sql_asset_retired = mysqli_query(
|
|||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#" data-toggle="ajax-modal"
|
||||
<a href="#" class="ajax-modal"
|
||||
data-modal-size="lg"
|
||||
data-ajax-url="ajax/ajax_contact_details.php"
|
||||
data-ajax-id="<?php echo $contact_id; ?>">
|
||||
data-modal-url="modals/contact/contact_details.php?id=<?= $contact_id ?>">
|
||||
<div class="media">
|
||||
<?php if ($contact_photo) { ?>
|
||||
<span class="fa-stack fa-2x mr-2 text-center">
|
||||
|
|
|
|||
|
|
@ -966,19 +966,16 @@ if (isset($_GET['contact_id'])) {
|
|||
|
||||
<tr>
|
||||
<td>
|
||||
<div><a href="client_document_details.php?client_id=<?php echo $client_id; ?>&document_id=<?php echo $document_id; ?>"><?php echo $document_name; ?></a></div>
|
||||
<div><a href="document_details.php?client_id=<?php echo $client_id; ?>&document_id=<?php echo $document_id; ?>"><?php echo $document_name; ?></a></div>
|
||||
<div class="text-secondary"><?php echo $document_description; ?></div>
|
||||
</td>
|
||||
<td><?php echo $document_created_by; ?></td>
|
||||
<td><?php echo $document_created_at; ?></td>
|
||||
<td><?php echo $document_updated_at; ?></td>
|
||||
<td class="text-center">
|
||||
<a href="#" class="btn btn-dark btn-sm"
|
||||
data-toggle="ajax-modal"
|
||||
<a href="#" class="btn btn-dark btn-sm ajax-modal"
|
||||
data-modal-size="lg"
|
||||
data-ajax-url="ajax/ajax_document_view.php"
|
||||
data-ajax-id="<?php echo $document_id; ?>"
|
||||
>
|
||||
data-modal-url="modals/document/document_view.php?id=<?= $document_id ?>">
|
||||
<i class="fas fa-fw fa-eye"></i>
|
||||
</a>
|
||||
<a href="post.php?unlink_contact_from_document&contact_id=<?php echo $contact_id; ?>&document_id=<?php echo $document_id; ?>" class="btn btn-secondary btn-sm" title="Unlink"><i class="fas fa-fw fa-unlink"></i></a>
|
||||
|
|
@ -1205,11 +1202,11 @@ if (isset($_GET['contact_id'])) {
|
|||
|
||||
<?php
|
||||
|
||||
require_once "modals/ticket_add_modal.php";
|
||||
require_once "modals/ticket/ticket_add.php";
|
||||
require_once "modals/recurring_ticket_add_modal.php";
|
||||
require_once "modals/asset/asset_add.php";
|
||||
require_once "modals/credential_add_modal.php";
|
||||
require_once "modals/client_document_add_modal.php";
|
||||
require_once "modals/client_file_upload_modal.php";
|
||||
require_once "modals/document/document_add.php";
|
||||
require_once "modals/file/file_upload.php";
|
||||
|
||||
require_once "../includes/footer.php";
|
||||
|
|
|
|||
|
|
@ -502,10 +502,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
<a class="dropdown-item" href="contact_details.php?<?= $client_url ?>contact_id=<?= $contact_id ?>">
|
||||
<i class="fas fa-fw fa-eye mr-2"></i>Details
|
||||
</a>
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-url="ajax/ajax_contact_note_create.php?id=<?= $contact_id ?>">
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/contact/contact_note_create.php?id=<?= $contact_id ?>">
|
||||
<i class="fas fa-fw fa-sticky-note mr-2"></i>Make Note
|
||||
</a>
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-url="ajax/ajax_contact_edit.php?id=<?= $contact_id ?>">
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/contact/contact_edit.php?id=<?= $contact_id ?>">
|
||||
<i class="fas fa-fw fa-edit mr-2"></i>Edit
|
||||
</a>
|
||||
<?php if ($session_user_role == 3 && $contact_primary == 0) { ?>
|
||||
|
|
@ -545,12 +545,12 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php if ($client_url) { require_once "modals/contact_bulk_assign_location_modal.php"; } ?>
|
||||
<?php require_once "modals/contact_bulk_edit_phone_modal.php"; ?>
|
||||
<?php require_once "modals/contact_bulk_edit_department_modal.php"; ?>
|
||||
<?php require_once "modals/contact_bulk_edit_role_modal.php"; ?>
|
||||
<?php require_once "modals/contact_bulk_assign_tags_modal.php"; ?>
|
||||
<?php require_once "modals/contact_bulk_email_modal.php"; ?>
|
||||
<?php if ($client_url) { require_once "modals/contact/contact_bulk_assign_location.php"; } ?>
|
||||
<?php require_once "modals/contact/contact_bulk_edit_phone.php"; ?>
|
||||
<?php require_once "modals/contact/contact_bulk_edit_department.php"; ?>
|
||||
<?php require_once "modals/contact/contact_bulk_edit_role.php"; ?>
|
||||
<?php require_once "modals/contact/contact_bulk_assign_tags.php"; ?>
|
||||
<?php require_once "modals/contact/contact_bulk_email.php"; ?>
|
||||
</form>
|
||||
<?php require_once "../includes/filter_footer.php";
|
||||
?>
|
||||
|
|
@ -598,10 +598,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require_once "modals/contact_add_modal.php";
|
||||
require_once "modals/contact_export_modal.php";
|
||||
require_once "modals/contact/contact_add.php";
|
||||
require_once "modals/contact/contact_export.php";
|
||||
if ($client_url) {
|
||||
require_once "modals/contact_invite_modal.php";
|
||||
require_once "modals/contact_import_modal.php";
|
||||
require_once "modals/contact/contact_invite.php";
|
||||
require_once "modals/contact/contact_import.php";
|
||||
}
|
||||
require_once "../includes/footer.php";
|
||||
|
|
|
|||
|
|
@ -356,21 +356,18 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
$credential_tags_display = implode('', $credential_tag_name_display_array);
|
||||
|
||||
if ($credential_contact_id) {
|
||||
$credential_contact_display = "<a href='#' class='mr-2 mb-1 badge badge-pill badge-dark p-2' title='$contact_name'
|
||||
data-toggle='ajax-modal'
|
||||
$credential_contact_display = "<a href='#' class='mr-2 mb-1 badge badge-pill badge-dark p-2 ajax-modal' title='$contact_name'
|
||||
data-modal-size='lg'
|
||||
data-ajax-url='ajax/ajax_contact_details.php'
|
||||
data-ajax-id='$credential_contact_id'>
|
||||
data-modal-url='modals/contact/contact_details.php?id=$credential_contact_id'>
|
||||
<i class='fas fa-fw fa-user'></i></a>";
|
||||
} else {
|
||||
$credential_contact_display = '';
|
||||
}
|
||||
|
||||
if ($credential_asset_id) {
|
||||
$credential_asset_display = "<a href='#' class='mr-2 mb-1 badge badge-pill badge-secondary p-2' title='$asset_name' data-toggle='ajax-modal'
|
||||
$credential_asset_display = "<a href='#' class='mr-2 mb-1 badge badge-pill badge-secondary p-2 ajax-modal' title='$asset_name' data-toggle=''
|
||||
data-modal-size='lg'
|
||||
data-ajax-url='ajax/ajax_asset_details.php'
|
||||
data-ajax-id='$credential_asset_id'>
|
||||
data-modal-url='modals/asset/asset_details.php?id=$credential_asset_id'>
|
||||
<i class='fas fa-fw fa-desktop'></i></a>";
|
||||
} else {
|
||||
$credential_asset_display = '';
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ $page_title = $row['document_name'];
|
|||
<a href="client_overview.php?client_id=<?php echo $client_id; ?>"><?php echo $client_name; ?></a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
<a href="client_documents.php?client_id=<?php echo $client_id; ?>">Documents</a>
|
||||
<a href="documents.php?client_id=<?php echo $client_id; ?>">Documents</a>
|
||||
</li>
|
||||
<?php
|
||||
// Build the full folder path
|
||||
|
|
@ -77,7 +77,7 @@ $page_title = $row['document_name'];
|
|||
$bread_crumb_folder_name = $folder['folder_name']; // Sanitized before put in array
|
||||
?>
|
||||
<li class="breadcrumb-item">
|
||||
<a href="client_documents.php?client_id=<?php echo $client_id; ?>&folder_id=<?php echo $bread_crumb_folder_id; ?>">
|
||||
<a href="documents.php?client_id=<?php echo $client_id; ?>&folder_id=<?php echo $bread_crumb_folder_id; ?>">
|
||||
<i class="fas fa-fw fa-folder-open mr-2"></i><?php echo $bread_crumb_folder_name; ?>
|
||||
</a>
|
||||
</li>
|
||||
|
|
@ -163,12 +163,9 @@ $page_title = $row['document_name'];
|
|||
<div class="col-md-3 d-print-none">
|
||||
<div class="row">
|
||||
<div class="col-12 mb-3">
|
||||
<button type="button" class="btn btn-primary mr-2"
|
||||
data-toggle="ajax-modal"
|
||||
<button type="button" class="btn btn-primary ajax-modal mr-2"
|
||||
data-modal-size="lg"
|
||||
data-ajax-url="ajax/ajax_document_edit.php"
|
||||
data-ajax-id="<?php echo $document_id; ?>"
|
||||
>
|
||||
data-modal-url="modals/document/document_edit.php?id=<?= $document_id ?>">
|
||||
<i class="fas fa-fw fa-edit"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-secondary mr-2" data-toggle="modal" data-target="#shareModal"
|
||||
|
|
@ -205,7 +202,7 @@ $page_title = $row['document_name'];
|
|||
|
||||
?>
|
||||
<div class="ml-2">
|
||||
<a href="client_files.php?client_id=<?php echo $client_id; ?>&folder_id=<?php echo $folder_id; ?>&q=<?php echo $file_name; ?>" target="_blank"><?php echo $file_name; ?></a>
|
||||
<a href="files.php?client_id=<?php echo $client_id; ?>&folder_id=<?php echo $folder_id; ?>&q=<?php echo $file_name; ?>" target="_blank"><?php echo $file_name; ?></a>
|
||||
<a class="confirm-link" href="post.php?unlink_file_from_document&file_id=<?php echo $file_id; ?>&document_id=<?php echo $document_id; ?>">
|
||||
<i class="fas fa-fw fa-trash-alt text-secondary float-right"></i>
|
||||
</a>
|
||||
|
|
@ -236,11 +233,9 @@ $page_title = $row['document_name'];
|
|||
|
||||
?>
|
||||
<div class="ml-2">
|
||||
<a href="#"
|
||||
data-toggle="ajax-modal"
|
||||
<a class="ajax-modal" href="#"
|
||||
data-modal-size="lg"
|
||||
data-ajax-url="ajax/ajax_contact_details.php"
|
||||
data-ajax-id="<?php echo $contact_id; ?>">
|
||||
data-modal-url="modals/contact/contact_details.php?id=<?= $contact_id ?>">
|
||||
<?php echo $contact_name; ?></a>
|
||||
<a class="confirm-link float-right" href="post.php?unlink_contact_from_document&contact_id=<?php echo $contact_id; ?>&document_id=<?php echo $document_id; ?>">
|
||||
<i class="fas fa-fw fa-trash-alt text-secondary"></i>
|
||||
|
|
@ -388,11 +383,11 @@ $page_title = $row['document_name'];
|
|||
?>
|
||||
<div class="mt-1 <?php if($document_id === $document_version_id){ echo "text-bold"; } ?>">
|
||||
<i class="fas fa-fw fa-history text-secondary mr-2"></i>
|
||||
<a href="#"
|
||||
data-toggle="ajax-modal"
|
||||
<a class="ajax-modal" href="#"
|
||||
data-modal-size="lg"
|
||||
data-ajax-url="ajax/ajax_document_version_view.php"
|
||||
data-ajax-id="<?php echo $document_version_id; ?>"><?php echo "$document_version_created_date | $document_version_author"; ?></a>
|
||||
data-modal-url="modals/document/document_version_view.php?id=<?= $document_version_id ?>">
|
||||
<?php echo "$document_version_created_date | $document_version_author"; ?>
|
||||
</a>
|
||||
<a class="confirm-link float-right" href="post.php?delete_document_version=<?php echo $document_version_id; ?>">
|
||||
<i class="fas fa-fw fa-trash-alt text-secondary"></i>
|
||||
</a>
|
||||
|
|
@ -410,11 +405,11 @@ $page_title = $row['document_name'];
|
|||
|
||||
<?php
|
||||
|
||||
require_once "modals/client_document_link_file_modal.php";
|
||||
require_once "modals/client_document_link_contact_modal.php";
|
||||
require_once "modals/client_document_link_asset_modal.php";
|
||||
require_once "modals/client_document_link_software_modal.php";
|
||||
require_once "modals/client_document_link_vendor_modal.php";
|
||||
require_once "modals/document_edit_visibility_modal.php";
|
||||
require_once "modals/document/document_link_file.php";
|
||||
require_once "modals/document/document_link_contact.php";
|
||||
require_once "modals/document/document_link_asset.php";
|
||||
require_once "modals/document/document_link_software.php";
|
||||
require_once "modals/document/document_link_vendor.php";
|
||||
require_once "modals/document/document_edit_visibility.php";
|
||||
require_once "modals/share_modal.php";
|
||||
require_once "../includes/footer.php";
|
||||
|
|
@ -35,7 +35,7 @@ if (!empty($_GET['folder_id'])) {
|
|||
// Set Folder Location Var used when creating folders
|
||||
$folder_location = 0;
|
||||
|
||||
if ($get_folder_id == 0 && $_GET["q"]) {
|
||||
if ($get_folder_id == 0 && isset($_GET["q"])) {
|
||||
$sql = mysqli_query(
|
||||
$mysqli,
|
||||
"SELECT SQL_CALC_FOUND_ROWS * FROM documents
|
||||
|
|
@ -243,11 +243,8 @@ while ($folder_id > 0) {
|
|||
<i class="fas fa-ellipsis-v"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="#"
|
||||
data-toggle="ajax-modal"
|
||||
data-ajax-url="ajax/ajax_folder_rename.php"
|
||||
data-ajax-id="<?php echo $folder_id; ?>"
|
||||
>
|
||||
<a class="dropdown-item ajax-modal" href="#"
|
||||
data-modal-url="modals/folder/folder_rename.php?id=<?= $folder_id ?>">
|
||||
<i class="fas fa-fw fa-edit mr-2"></i>Rename
|
||||
</a>
|
||||
<?php
|
||||
|
|
@ -279,7 +276,7 @@ while ($folder_id > 0) {
|
|||
display_folders(0, $client_id);
|
||||
?>
|
||||
</ul>
|
||||
<?php require_once "modals/folder_create_modal.php"; ?>
|
||||
<?php require_once "modals/folder/folder_add.php"; ?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-9">
|
||||
|
|
@ -370,18 +367,20 @@ while ($folder_id > 0) {
|
|||
LIMIT 1"
|
||||
);
|
||||
$row = mysqli_fetch_array($sql_shared);
|
||||
$item_id = intval($row['item_id']);
|
||||
$item_active = nullable_htmlentities($row['item_active']);
|
||||
$item_key = nullable_htmlentities($row['item_key']);
|
||||
$item_type = nullable_htmlentities($row['item_type']);
|
||||
$item_related_id = intval($row['item_related_id']);
|
||||
$item_note = nullable_htmlentities($row['item_note']);
|
||||
$item_recipient = nullable_htmlentities($row['item_recipient']);
|
||||
$item_views = nullable_htmlentities($row['item_views']);
|
||||
$item_view_limit = nullable_htmlentities($row['item_view_limit']);
|
||||
$item_created_at = nullable_htmlentities($row['item_created_at']);
|
||||
$item_expire_at = nullable_htmlentities($row['item_expire_at']);
|
||||
$item_expire_at_human = timeAgo($row['item_expire_at']);
|
||||
if($row) {
|
||||
$item_id = intval($row['item_id']);
|
||||
$item_active = nullable_htmlentities($row['item_active']);
|
||||
$item_key = nullable_htmlentities($row['item_key']);
|
||||
$item_type = nullable_htmlentities($row['item_type']);
|
||||
$item_related_id = intval($row['item_related_id']);
|
||||
$item_note = nullable_htmlentities($row['item_note']);
|
||||
$item_recipient = nullable_htmlentities($row['item_recipient']);
|
||||
$item_views = nullable_htmlentities($row['item_views']);
|
||||
$item_view_limit = nullable_htmlentities($row['item_view_limit']);
|
||||
$item_created_at = nullable_htmlentities($row['item_created_at']);
|
||||
$item_expire_at = nullable_htmlentities($row['item_expire_at']);
|
||||
$item_expire_at_human = timeAgo($row['item_expire_at']);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
|
@ -392,7 +391,7 @@ while ($folder_id > 0) {
|
|||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<a href="client_document_details.php?client_id=<?php echo $client_id; ?>&document_id=<?php echo $document_id; ?>"><i class="fas fa-fw fa-file-alt"></i> <?php echo $document_name; ?></a>
|
||||
<a href="document_details.php?client_id=<?php echo $client_id; ?>&document_id=<?php echo $document_id; ?>"><i class="fas fa-fw fa-file-alt"></i> <?php echo $document_name; ?></a>
|
||||
<div class="text-secondary mt-1"><?php echo $document_description; ?>
|
||||
</td>
|
||||
<td>
|
||||
|
|
@ -417,21 +416,15 @@ while ($folder_id > 0) {
|
|||
<i class="fas fa-ellipsis-h"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="#"
|
||||
data-toggle="ajax-modal"
|
||||
<a class="dropdown-item ajax-modal" href="#"
|
||||
data-modal-size="lg"
|
||||
data-ajax-url="ajax/ajax_document_view.php"
|
||||
data-ajax-id="<?php echo $document_id; ?>"
|
||||
>
|
||||
data-modal-url="modals/document/document_view.php?id=<?= $document_id ?>">
|
||||
<i class="fas fa-fw fa-eye mr-2"></i>Quick View
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="#"
|
||||
data-toggle="ajax-modal"
|
||||
<a class="dropdown-item ajax-modal" href="#"
|
||||
data-modal-size="lg"
|
||||
data-ajax-url="ajax/ajax_document_edit.php"
|
||||
data-ajax-id="<?php echo $document_id; ?>"
|
||||
>
|
||||
data-modal-url="modals/document/document_edit.php?id=<?= $document_id ?>">
|
||||
<i class="fas fa-fw fa-pencil-alt mr-2"></i>Edit
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
|
|
@ -439,19 +432,13 @@ while ($folder_id > 0) {
|
|||
<i class="fas fa-fw fa-share mr-2"></i>Share
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="#"
|
||||
data-toggle="ajax-modal"
|
||||
data-ajax-url="ajax/ajax_document_rename.php"
|
||||
data-ajax-id="<?php echo $document_id; ?>"
|
||||
>
|
||||
<a class="dropdown-item ajax-modal" href="#"
|
||||
data-modal-url="modals/document/document_rename.php?id=<?= $document_id ?>">
|
||||
<i class="fas fa-fw fa-pencil-alt mr-2"></i>Rename
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="#"
|
||||
data-toggle="ajax-modal"
|
||||
data-ajax-url="ajax/ajax_document_move.php"
|
||||
data-ajax-id="<?php echo $document_id; ?>"
|
||||
>
|
||||
<a class="dropdown-item ajax-modal" href="#"
|
||||
data-modal-url="modals/document/document_move.php?id=<?= $document_id ?>">
|
||||
<i class="fas fa-fw fa-exchange-alt mr-2"></i>Move
|
||||
</a>
|
||||
<?php if ($session_user_role == 3) { ?>
|
||||
|
|
@ -479,7 +466,7 @@ while ($folder_id > 0) {
|
|||
</table>
|
||||
<br>
|
||||
</div>
|
||||
<?php require_once "modals/client_document_bulk_move_modal.php"; ?>
|
||||
<?php require_once "modals/document/document_bulk_move.php"; ?>
|
||||
</form>
|
||||
<?php require_once "../includes/filter_footer.php";
|
||||
?>
|
||||
|
|
@ -492,6 +479,6 @@ while ($folder_id > 0) {
|
|||
|
||||
<?php
|
||||
require_once "modals/share_modal.php";
|
||||
require_once "modals/client_document_add_modal.php";
|
||||
require_once "modals/client_document_add_from_template_modal.php";
|
||||
require_once "modals/document/document_add.php";
|
||||
require_once "modals/document/document_add_from_template.php";
|
||||
require_once "../includes/footer.php";
|
||||
|
|
@ -195,11 +195,8 @@ while ($folder_id > 0) {
|
|||
<i class="fas fa-ellipsis-v"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="#"
|
||||
data-toggle="ajax-modal"
|
||||
data-ajax-url="ajax/ajax_folder_rename.php"
|
||||
data-ajax-id="<?php echo $folder_id; ?>"
|
||||
>
|
||||
<a class="dropdown-item ajax-modal" href="#"
|
||||
data-modal-url="modals/folder/folder_rename.php?id=<?= $folder_id ?>">
|
||||
<i class="fas fa-fw fa-edit mr-2"></i>Rename
|
||||
</a>
|
||||
<?php
|
||||
|
|
@ -231,7 +228,7 @@ while ($folder_id > 0) {
|
|||
display_folders(0, $client_id);
|
||||
?>
|
||||
</ul>
|
||||
<?php require_once "modals/folder_create_modal.php"; ?>
|
||||
<?php require_once "modals/folder/folder_add.php"; ?>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
@ -351,18 +348,12 @@ while ($folder_id > 0) {
|
|||
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#shareModal" onclick="populateShareModal(<?php echo "$client_id, 'File', $file_id"; ?>)">
|
||||
<i class="fas fa-fw fa-share mr-2"></i>Share
|
||||
</a>
|
||||
<a class="dropdown-item" href="#"
|
||||
data-toggle="ajax-modal"
|
||||
data-ajax-url="ajax/ajax_file_rename.php"
|
||||
data-ajax-id="<?php echo $file_id; ?>"
|
||||
>
|
||||
<a class="dropdown-item ajax-modal" href="#"
|
||||
data-modal-url="modals/file/file_rename.php?id=<?= $file_id ?>">
|
||||
<i class="fas fa-fw fa-edit mr-2"></i>Rename
|
||||
</a>
|
||||
<a class="dropdown-item" href="#"
|
||||
data-toggle="ajax-modal"
|
||||
data-ajax-url="ajax/ajax_file_move.php"
|
||||
data-ajax-id="<?php echo $file_id; ?>"
|
||||
>
|
||||
<a class="dropdown-item ajax-modal" href="#"
|
||||
data-modal-url="modals/file/file_move.php?id=<?= $file_id ?>">
|
||||
<i class="fas fa-fw fa-exchange-alt mr-2"></i>Move
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#linkAssetToFileModal<?php echo $file_id; ?>">
|
||||
|
|
@ -385,7 +376,7 @@ while ($folder_id > 0) {
|
|||
</div>
|
||||
|
||||
<?php
|
||||
require "modals/client_file_view_modal.php";
|
||||
require "modals/file/file_view.php";
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
@ -556,18 +547,12 @@ while ($folder_id > 0) {
|
|||
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#shareModal" onclick="populateShareModal(<?php echo "$client_id, 'File', $file_id"; ?>)">
|
||||
<i class="fas fa-fw fa-share mr-2"></i>Share
|
||||
</a>
|
||||
<a class="dropdown-item" href="#"
|
||||
data-toggle="ajax-modal"
|
||||
data-ajax-url="ajax/ajax_file_rename.php"
|
||||
data-ajax-id="<?php echo $file_id; ?>"
|
||||
>
|
||||
<a class="dropdown-item ajax-modal" href="#"
|
||||
data-modal-url="modals/file/file_rename.php?id=<?= $file_id ?>">
|
||||
<i class="fas fa-fw fa-edit mr-2"></i>Rename
|
||||
</a>
|
||||
<a class="dropdown-item" href="#"
|
||||
data-toggle="ajax-modal"
|
||||
data-ajax-url="ajax/ajax_file_move.php"
|
||||
data-ajax-id="<?php echo $file_id; ?>"
|
||||
>
|
||||
<a class="dropdown-item ajax-modal" href="#"
|
||||
data-modal-url="modals/file/file_move.php?id=<?= $file_id ?>">
|
||||
<i class="fas fa-fw fa-exchange-alt mr-2"></i>Move
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#linkAssetToFileModal<?php echo $file_id; ?>">
|
||||
|
|
@ -588,7 +573,7 @@ while ($folder_id > 0) {
|
|||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
require "modals/client_file_link_asset_modal.php";
|
||||
require "modals/file/file_link_asset.php";
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
@ -596,7 +581,7 @@ while ($folder_id > 0) {
|
|||
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once "modals/client_file_bulk_move_modal.php"; ?>
|
||||
<?php require_once "modals/file/file_bulk_move.php"; ?>
|
||||
</form>
|
||||
|
||||
<?php } ?>
|
||||
|
|
@ -635,7 +620,7 @@ function prevFile() {
|
|||
<script src="../js/bulk_actions.js"></script>
|
||||
|
||||
<?php
|
||||
require_once "modals/client_file_upload_modal.php";
|
||||
require_once "modals/file/file_upload.php";
|
||||
require_once "modals/share_modal.php";
|
||||
require_once "modals/client_file_delete_modal.php";
|
||||
require_once "modals/file/file_delete.php";
|
||||
require_once "../includes/footer.php";
|
||||
|
|
@ -408,9 +408,9 @@ if (isset($_GET['query'])) {
|
|||
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="client_document_details.php?client_id=<?php echo $client_id ?>&document_id=<?php echo $document_id; ?>"><?php echo $document_name; ?></a></td>
|
||||
<td><a href="document_details.php?client_id=<?php echo $client_id ?>&document_id=<?php echo $document_id; ?>"><?php echo $document_name; ?></a></td>
|
||||
<td>
|
||||
<a href="client_documents.php?client_id=<?php echo $client_id; ?>"><?php echo $client_name; ?></a>
|
||||
<a href="documents.php?client_id=<?php echo $client_id; ?>"><?php echo $client_name; ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
|
@ -460,7 +460,7 @@ if (isset($_GET['query'])) {
|
|||
<td><a href="uploads/clients/<?php echo $client_id; ?>/<?php echo $file_reference_name; ?>" download="<?php echo $file_name; ?>"><?php echo "$folder_name/$file_name"; ?></a></td>
|
||||
<td><?php echo $file_description; ?></td>
|
||||
<td>
|
||||
<a href="client_files.php?client_id=<?php echo $client_id; ?>&folder_id=<?php echo $folder_id; ?>"><?php echo $client_name; ?></a>
|
||||
<a href="files.php?client_id=<?php echo $client_id; ?>&folder_id=<?php echo $folder_id; ?>"><?php echo $client_name; ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@
|
|||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="client_racks.php?client_id=<?php echo $client_id; ?>" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "client_racks.php") { echo "active"; } ?>">
|
||||
<a href="racks.php?client_id=<?php echo $client_id; ?>" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "racks.php") { echo "active"; } ?>">
|
||||
<i class="nav-icon fas fa-server"></i>
|
||||
<p>
|
||||
Racks
|
||||
|
|
@ -236,7 +236,7 @@
|
|||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="client_documents.php?client_id=<?php echo $client_id; ?>" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "client_documents.php" || basename($_SERVER["PHP_SELF"]) == "client_document_details.php") { echo "active"; } ?>">
|
||||
<a href="documents.php?client_id=<?php echo $client_id; ?>" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "documents.php" || basename($_SERVER["PHP_SELF"]) == "document_details.php") { echo "active"; } ?>">
|
||||
<i class="nav-icon fas fa-folder"></i>
|
||||
<p>
|
||||
Documents
|
||||
|
|
@ -252,7 +252,7 @@
|
|||
|
||||
<!-- Allow files even without module_support for things like contracts, etc. ) -->
|
||||
<li class="nav-item">
|
||||
<a href="client_files.php?client_id=<?php echo $client_id; ?>" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "client_files.php") { echo "active"; } ?>">
|
||||
<a href="files.php?client_id=<?php echo $client_id; ?>" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "files.php") { echo "active"; } ?>">
|
||||
<i class="nav-icon fas fa-paperclip"></i>
|
||||
<p>
|
||||
Files
|
||||
|
|
|
|||
|
|
@ -759,12 +759,9 @@ ob_start();
|
|||
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#"
|
||||
data-toggle="ajax-modal"
|
||||
<a class="ajax-modal" href="#"
|
||||
data-modal-size="lg"
|
||||
data-ajax-url="ajax/ajax_document_view.php"
|
||||
data-ajax-id="<?php echo $document_id; ?>"
|
||||
>
|
||||
data-modal-url="modals/document/document_view.php?id=<?= $document_id ?>">
|
||||
<?php echo $document_name; ?>
|
||||
</a>
|
||||
<div class="text-secondary"><?php echo $document_description; ?></div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$contact_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -716,11 +716,9 @@ ob_start();
|
|||
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#"
|
||||
data-toggle="ajax-modal"
|
||||
<a class="ajax-modal" href="#"
|
||||
data-modal-size="lg"
|
||||
data-ajax-url="ajax/ajax_document_view.php"
|
||||
data-ajax-id="<?php echo $document_id; ?>">
|
||||
data-modal-url="modals/document/document_view.php?id=<?= $document_id ?>">
|
||||
<?php echo $document_name; ?>
|
||||
</a>
|
||||
<div class="text-secondary"><?php echo $document_description; ?></div>
|
||||
|
|
@ -855,4 +853,4 @@ ob_start();
|
|||
</div>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$contact_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -385,7 +385,7 @@ $(document).ready(function() {
|
|||
|
||||
<?php
|
||||
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
||||
?>
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$contact_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -63,5 +63,5 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
?>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$contact_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -63,5 +63,5 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
?>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$contact_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -66,5 +66,5 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
?>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$contact_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -69,4 +69,4 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$contact_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -65,4 +65,4 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$contact_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -67,5 +67,5 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
?>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$contact_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -51,4 +51,4 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$document_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -70,4 +70,4 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$document_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -106,4 +106,4 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$document_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -43,4 +43,4 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
// Initialize the HTML Purifier to prevent XSS
|
||||
require_once "../plugins/htmlpurifier/HTMLPurifier.standalone.php";
|
||||
require_once "../../../plugins/htmlpurifier/HTMLPurifier.standalone.php";
|
||||
|
||||
$purifier_config = HTMLPurifier_Config::createDefault();
|
||||
$purifier_config->set('Cache.DefinitionImpl', null); // Disable cache by setting a non-existent directory or an invalid one
|
||||
|
|
@ -36,4 +36,4 @@ ob_start();
|
|||
<script src="../js/pretty_content.js"></script>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
// Initialize the HTML Purifier to prevent XSS
|
||||
require_once "../plugins/htmlpurifier/HTMLPurifier.standalone.php";
|
||||
require_once "../../../plugins/htmlpurifier/HTMLPurifier.standalone.php";
|
||||
|
||||
$purifier_config = HTMLPurifier_Config::createDefault();
|
||||
$purifier_config->set('Cache.DefinitionImpl', null); // Disable cache by setting a non-existent directory or an invalid one
|
||||
|
|
@ -36,5 +36,4 @@ ob_start();
|
|||
<script src="../js/pretty_content.js"></script>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$file_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -129,4 +129,4 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$file_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -76,4 +76,4 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$folder_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -41,4 +41,5 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$rack_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -87,4 +87,4 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$rack_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -177,4 +177,4 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$ticket_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -76,4 +76,4 @@ ob_start();
|
|||
|
||||
<?php
|
||||
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$ticket_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -56,4 +56,4 @@ ob_start();
|
|||
|
||||
<?php
|
||||
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$ticket_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -98,4 +98,4 @@ ob_start();
|
|||
|
||||
<?php
|
||||
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$ticket_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -395,4 +395,4 @@ ob_start();
|
|||
</form>
|
||||
|
||||
<?php
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$ticket_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -59,4 +59,4 @@ ob_start();
|
|||
|
||||
<?php
|
||||
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$ticket_reply_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -67,4 +67,4 @@ ob_start();
|
|||
|
||||
<?php
|
||||
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$ticket_reply_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -44,4 +44,4 @@ ob_start();
|
|||
|
||||
<?php
|
||||
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/modal_header.php';
|
||||
require_once '../../../includes/modal_header_new.php';
|
||||
|
||||
$task_id = intval($_GET['id']);
|
||||
|
||||
|
|
@ -61,4 +61,4 @@ ob_start();
|
|||
|
||||
<?php
|
||||
|
||||
require_once '../../includes/modal_footer.php';
|
||||
require_once '../../../includes/modal_footer_new.php';
|
||||
|
|
@ -66,7 +66,7 @@ if (isset($_POST['add_document_from_template'])) {
|
|||
|
||||
flash_alert("Document <strong>$document_name</strong> created from template");
|
||||
|
||||
redirect("client_document_details.php?client_id=$client_id&document_id=$document_id");
|
||||
redirect("document_details.php?client_id=$client_id&document_id=$document_id");
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ if (isset($_POST['edit_document'])) {
|
|||
|
||||
flash_alert("Document <strong>$name</strong> edited, previous version kept");
|
||||
|
||||
redirect("client_document_details.php?client_id=$client_id&document_id=$document_id");
|
||||
redirect("document_details.php?client_id=$client_id&document_id=$document_id");
|
||||
}
|
||||
|
||||
if (isset($_POST['move_document'])) {
|
||||
|
|
|
|||
|
|
@ -215,11 +215,8 @@ if (isset($_GET['project_id'])) {
|
|||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<?php if (empty($project_completed_at)) { ?>
|
||||
<a class="dropdown-item" href="#"
|
||||
data-toggle = "ajax-modal"
|
||||
data-ajax-url = "ajax/ajax_project_edit.php"
|
||||
data-ajax-id = "<?php echo $project_id; ?>"
|
||||
>
|
||||
<a class="dropdown-item ajax-modal" href="#"
|
||||
data-modal-url = "ajax/ajax_project_edit.php?id=<?= $project_id ?>">
|
||||
<i class="fas fa-fw fa-edit mr-2"></i>Edit
|
||||
</a>
|
||||
<?php } ?>
|
||||
|
|
@ -489,12 +486,12 @@ if (isset($_GET['project_id'])) {
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once "modals/ticket_bulk_assign_modal.php"; ?>
|
||||
<?php require_once "modals/ticket_bulk_edit_category_modal.php"; ?>
|
||||
<?php require_once "modals/ticket_bulk_edit_priority_modal.php"; ?>
|
||||
<?php require_once "modals/ticket_bulk_reply_modal.php"; ?>
|
||||
<?php require_once "modals/ticket_bulk_merge_modal.php"; ?>
|
||||
<?php require_once "modals/ticket_bulk_resolve_modal.php"; ?>
|
||||
<?php require_once "modals/ticket/ticket_bulk_assign.php"; ?>
|
||||
<?php require_once "modals/ticket/ticket_bulk_edit_category.php"; ?>
|
||||
<?php require_once "modals/ticket/ticket_bulk_edit_priority.php"; ?>
|
||||
<?php require_once "modals/ticket/ticket_bulk_reply.php"; ?>
|
||||
<?php require_once "modals/ticket/ticket_bulk_merge.php"; ?>
|
||||
<?php require_once "modals/ticket/ticket_bulk_resolve.php"; ?>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -544,7 +541,7 @@ if (isset($_GET['project_id'])) {
|
|||
|
||||
require_once "modals/project_link_ticket_modal.php";
|
||||
require_once "modals/project_link_closed_ticket_modal.php";
|
||||
require_once "modals/ticket_add_modal.php";
|
||||
require_once "modals/ticket/ticket_add.php";
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -98,19 +98,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
<i class="fas fa-fw fa-ellipsis-v"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item text-dark" href="#"
|
||||
data-toggle="ajax-modal"
|
||||
data-ajax-url="ajax/ajax_rack_device_add.php"
|
||||
data-ajax-id="<?php echo $rack_id; ?>"
|
||||
>
|
||||
<a class="dropdown-item text-dark ajax-modal" href="#"
|
||||
data-modal-url="modals/rack/rack_device_add.php?id=<?= $rack_id ?>">
|
||||
<i class="fas fa-fw fa-plus text-secondary mr-2"></i>Add Device
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item text-dark" href="#"
|
||||
data-toggle="ajax-modal"
|
||||
data-ajax-url="ajax/ajax_rack_edit.php"
|
||||
data-ajax-id="<?php echo $rack_id; ?>"
|
||||
>
|
||||
<a class="dropdown-item text-dark ajax-modal" href="#"
|
||||
data-modal-url="modals/rack/rack_edit.php?id=<?= $rack_id ?>">
|
||||
<i class="fas fa-fw fa-edit text-secondary mr-2"></i>Edit
|
||||
</a>
|
||||
<?php if ($session_user_role == 3) { ?>
|
||||
|
|
@ -349,5 +343,5 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require_once "modals/client_rack_add_modal.php";
|
||||
require_once "modals/rack/rack_add.php";
|
||||
require_once "../includes/footer.php";
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue