mirror of
https://github.com/itflow-org/itflow
synced 2026-09-14 02:35:12 +00:00
Fixed Side nav titles, Fixed ajax on bootstrap modals, fixed pagination all regressions
This commit is contained in:
@@ -1338,7 +1338,7 @@ if (isset($_GET['asset_id'])) {
|
||||
var notes = document.getElementById("assetNotes").value;
|
||||
|
||||
// Send a POST request to ajax.php as ajax.php with data contact_set_notes=true, contact_id=NUM, notes=NOTES
|
||||
jQuery.post(
|
||||
itflowPost(
|
||||
"ajax.php",
|
||||
{
|
||||
asset_set_notes: 'TRUE',
|
||||
|
||||
@@ -811,7 +811,7 @@ $sql_asset_retired = mysqli_query(
|
||||
var notes = document.getElementById("clientNotes").value;
|
||||
|
||||
// Send a POST request to ajax.php as ajax.php with data client_set_notes=true, client_id=NUM, notes=NOTES
|
||||
jQuery.post(
|
||||
itflowPost(
|
||||
"ajax.php",
|
||||
{
|
||||
client_set_notes: 'TRUE',
|
||||
|
||||
@@ -1193,7 +1193,7 @@ if (isset($_GET['contact_id'])) {
|
||||
var notes = document.getElementById("contactNotes").value;
|
||||
|
||||
// Send a POST request to ajax.php as ajax.php with data contact_set_notes=true, contact_id=NUM, notes=NOTES
|
||||
jQuery.post(
|
||||
itflowPost(
|
||||
"ajax.php",
|
||||
{
|
||||
contact_set_notes: 'TRUE',
|
||||
@@ -1210,7 +1210,7 @@ if (isset($_GET['contact_id'])) {
|
||||
|
||||
function generatePassword(type, id) {
|
||||
// Send a GET request to ajax.php as ajax.php?get_readable_pass=true
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php", {
|
||||
get_readable_pass: 'true'
|
||||
},
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
<!-- Main Sidebar Container -->
|
||||
<aside class="app-sidebar shadow d-print-none" data-bs-theme="dark">
|
||||
|
||||
<a class="pb-1 mt-1 brand-link" href="../<?= $config_start_page ?>">
|
||||
<p class="h5"><i class="nav-icon fas fa-arrow-left ms-3 me-2"></i>
|
||||
<span class="brand-text ">Back | <strong>Custom</strong>
|
||||
</p>
|
||||
</a>
|
||||
<div class="sidebar-brand">
|
||||
<a class="brand-link" href="../<?= $config_start_page ?>">
|
||||
<i class="fas fa-arrow-left me-2"></i>
|
||||
<span class="brand-text h5 mb-0">Back | <strong>Custom</strong></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar-wrapper">
|
||||
|
||||
@@ -33,11 +33,12 @@ $num_software = $row['num'];
|
||||
<!-- Main Sidebar Container -->
|
||||
<aside class="app-sidebar shadow d-print-none" data-bs-theme="dark">
|
||||
|
||||
<a class="pb-1 mt-1 brand-link" href="clients.php">
|
||||
<p class="h6"><i class="nav-icon fas fa-arrow-left ms-3 me-2"></i>
|
||||
<span class="brand-text ">Back | <strong>All Client Docs</strong>
|
||||
</p>
|
||||
</a>
|
||||
<div class="sidebar-brand">
|
||||
<a class="brand-link" href="clients.php">
|
||||
<i class="fas fa-arrow-left me-2"></i>
|
||||
<span class="brand-text h6 mb-0">Back | <strong>All Client Docs</strong></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar-wrapper">
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
<!-- Main Sidebar Container -->
|
||||
<aside class="app-sidebar shadow d-print-none" data-bs-theme="dark">
|
||||
|
||||
<a class="brand-link pb-1 mt-1" href="/agent/clients.php">
|
||||
<p class="h5">
|
||||
<i class="nav-icon fas fa-arrow-left ms-3 me-1"></i>
|
||||
<span class="brand-text">
|
||||
Back | <strong><?= $client_name_truncated ?></strong>
|
||||
</span>
|
||||
</p>
|
||||
</a>
|
||||
<div class="sidebar-brand">
|
||||
<a class="brand-link" href="/agent/clients.php">
|
||||
<i class="fas fa-arrow-left me-2"></i>
|
||||
<span class="brand-text h5 mb-0">Back | <strong><?= $client_name_truncated ?></strong></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar-wrapper">
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<!-- Main Sidebar Container -->
|
||||
<aside class="app-sidebar shadow d-print-none" data-bs-theme="dark">
|
||||
|
||||
<a class="brand-link" href="/agent/dashboard.php">
|
||||
<div class="brand-image"></div>
|
||||
<span class="brand-text h4"><?= escapeHtml($session_company_name) ?></span>
|
||||
</a>
|
||||
<div class="sidebar-brand">
|
||||
<a class="brand-link" href="/agent/dashboard.php">
|
||||
<span class="brand-text h4"><?= escapeHtml($session_company_name) ?></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar-wrapper">
|
||||
|
||||
@@ -16,7 +16,7 @@ function fetchSSL(type)
|
||||
}
|
||||
|
||||
//Send a GET request to post.php as post.php?certificate_fetch_parse_json_details=TRUE&domain=DOMAIN
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php",
|
||||
{certificate_fetch_parse_json_details: 'TRUE', domain: domain},
|
||||
function(data) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function showOTPViaCredentialID(credential_id) {
|
||||
// Send a GET request to ajax.php as ajax.php?get_totp_token_via_id=true&credential_id=ID
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php", {
|
||||
get_totp_token_via_id: 'true',
|
||||
credential_id: credential_id
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function showPasswordViaCredentialID(button, credential_id) {
|
||||
// Send a GET request to ajax.php as ajax.php?get_credential_via_id=true&credential_id=ID
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php", {
|
||||
get_credential_via_id: 'true',
|
||||
credential_id: credential_id
|
||||
@@ -21,7 +21,7 @@ function showPasswordViaCredentialID(button, credential_id) {
|
||||
}
|
||||
|
||||
function copyPasswordViaCredentialID(button, credential_id) {
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php", {
|
||||
get_credential_via_id: 'true',
|
||||
credential_id: credential_id
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function generatePassword(login_id) {
|
||||
// Send a GET request to ajax.php as ajax.php?get_readable_pass=true
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php", {
|
||||
get_readable_pass: 'true'
|
||||
},
|
||||
|
||||
@@ -33,7 +33,7 @@ function generateShareLink() {
|
||||
// Check values are provided
|
||||
if (item_expires) {
|
||||
// Send a GET request to ajax.php as ajax.php?share_generate_link=true....
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php",
|
||||
{share_generate_link: 'true', csrf_token: csrf_token, client_id: client_id, type: item_type, id: item_ref_id, note: item_note ,views: item_views, expires: item_expires, contact_email},
|
||||
function(data) {
|
||||
|
||||
@@ -7,7 +7,7 @@ function ticket_collision_detection() {
|
||||
var ticket_id = document.getElementById("ticket_id").value;
|
||||
|
||||
//Send a GET request to ajax.php as ajax.php?ticket_add_view=true&ticket_id=NUMBER
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php",
|
||||
{ticket_add_view: 'true', ticket_id: ticket_id},
|
||||
function(data) {
|
||||
@@ -16,7 +16,7 @@ function ticket_collision_detection() {
|
||||
);
|
||||
|
||||
//Send a GET request to ajax.php as ajax.php?ticket_query_views=true&ticket_id=NUMBER
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php",
|
||||
{ticket_query_views: 'true', ticket_id: ticket_id},
|
||||
function(data) {
|
||||
|
||||
@@ -164,7 +164,7 @@
|
||||
}
|
||||
|
||||
// Send a GET request to ajax.php as ajax.php?get_client_contacts=true&client_id=NUM
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php",
|
||||
{get_client_contacts: 'true', client_id: client_id},
|
||||
function(data) {
|
||||
@@ -229,7 +229,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php",
|
||||
{get_client_assets: 'true', client_id: client_id},
|
||||
function(data) {
|
||||
@@ -279,7 +279,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php",
|
||||
{get_client_locations: 'true', client_id: client_id},
|
||||
function(data) {
|
||||
@@ -313,7 +313,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php",
|
||||
{get_client_vendors: 'true', client_id: client_id},
|
||||
function(data) {
|
||||
@@ -347,7 +347,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php",
|
||||
{get_client_projects: 'true', client_id: client_id},
|
||||
function(data) {
|
||||
|
||||
@@ -444,7 +444,7 @@ ob_start();
|
||||
var notes = document.getElementById("assetNotes").value;
|
||||
|
||||
// Send a POST request to ajax.php as ajax.php with data contact_set_notes=true, contact_id=NUM, notes=NOTES
|
||||
jQuery.post(
|
||||
itflowPost(
|
||||
"ajax.php",
|
||||
{
|
||||
asset_set_notes: 'TRUE',
|
||||
|
||||
@@ -375,7 +375,7 @@ ob_start();
|
||||
function checkClientDuplicate() {
|
||||
var name = document.getElementById("client_name").value;
|
||||
//Send a GET request to ajax.php as ajax.php?client_duplicate_check=true&name=NAME
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php",
|
||||
{client_duplicate_check: 'true', name: name},
|
||||
function(data) {
|
||||
|
||||
@@ -285,7 +285,7 @@ ob_start();
|
||||
<script>
|
||||
|
||||
function generatePassword() {
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php", {
|
||||
get_readable_pass: 'true'
|
||||
},
|
||||
@@ -321,7 +321,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
function checkContactEmail() {
|
||||
var email = document.getElementById("contact_email").value;
|
||||
//Send a GET request to ajax.php as ajax.php?contact_email_check=true&email=email
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php",
|
||||
{contact_email_check: 'true', email: email},
|
||||
function(data) {
|
||||
|
||||
@@ -325,7 +325,7 @@ ob_start();
|
||||
<script>
|
||||
|
||||
function generatePassword() {
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php", {
|
||||
get_readable_pass: 'true'
|
||||
},
|
||||
|
||||
@@ -185,7 +185,7 @@ ob_start();
|
||||
function checkApexDomain() {
|
||||
var domain = document.getElementById("domain_name").value;
|
||||
//Send a GET request to ajax.php as ajax.php?apex_domain_check=true&domain=domain
|
||||
jQuery.get(
|
||||
itflowGet(
|
||||
"ajax.php",
|
||||
{apex_domain_check: 'true', domain: domain},
|
||||
function(data) {
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
<!-- Main Sidebar Container -->
|
||||
<aside class="app-sidebar shadow d-print-none" data-bs-theme="dark">
|
||||
|
||||
<a class="pb-1 mt-1 brand-link" href="/agent/<?= $config_start_page ?>">
|
||||
<p class="h5"><i class="nav-icon fas fa-arrow-left ms-3 me-2"></i>
|
||||
<span class="brand-text ">Back | <strong>Reports</strong>
|
||||
</p>
|
||||
</a>
|
||||
<div class="sidebar-brand">
|
||||
<a class="brand-link" href="/agent/<?= $config_start_page ?>">
|
||||
<i class="fas fa-arrow-left me-2"></i>
|
||||
<span class="brand-text h5 mb-0">Back | <strong>Reports</strong></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar-wrapper">
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
<!-- Main Sidebar Container -->
|
||||
<aside class="app-sidebar shadow d-print-none" data-bs-theme="dark">
|
||||
|
||||
<a class="brand-link pb-1 mt-1" href="/agent/<?= $config_start_page ?>">
|
||||
<p class="h5">
|
||||
<i class="nav-icon fas fa-arrow-left ms-3 me-2"></i>
|
||||
<span class="brand-text">
|
||||
Back | <strong>Account</strong>
|
||||
</span>
|
||||
</p>
|
||||
</a>
|
||||
<div class="sidebar-brand">
|
||||
<a class="brand-link" href="/agent/<?= $config_start_page ?>">
|
||||
<i class="fas fa-arrow-left me-2"></i>
|
||||
<span class="brand-text h5 mb-0">Back | <strong>Account</strong></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar-wrapper">
|
||||
|
||||
@@ -95,6 +95,7 @@ $data = "otpauth://totp/ITFlow:$session_email?secret=$token";
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
|
||||
<!-- Bootstrap 4 -->
|
||||
<script src="/js/http.js"></script>
|
||||
<script src="../../libs/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<!-- Custom js-->
|
||||
|
||||
Reference in New Issue
Block a user