mirror of
https://github.com/itflow-org/itflow
synced 2026-03-04 21:04:50 +00:00
Consolidate vendor modals to modals/vendor removed ajax_ and _modal prefixes from file names and use new ajax-modal syntax
This commit is contained in:
@@ -220,7 +220,7 @@ ob_start();
|
|||||||
while ($row = mysqli_fetch_array($sql_vendors)) {
|
while ($row = mysqli_fetch_array($sql_vendors)) {
|
||||||
$vendor_id = intval($row['vendor_id']);
|
$vendor_id = intval($row['vendor_id']);
|
||||||
$vendor_name = nullable_htmlentities($row['vendor_name']);
|
$vendor_name = nullable_htmlentities($row['vendor_name']);
|
||||||
echo "<li><a href='#' data-toggle='ajax-modal' data-modal-size='lg' data-ajax-url='ajax/ajax_vendor_details.php' data-ajax-id='$vendor_id'>$vendor_name</a></li>";
|
echo "<li><a class='ajax-modal' href='#' data-modal-size='lg' data-modal-url='modals/vendor/vendor_details.php?id=$vendor_id'>$vendor_name</a></li>";
|
||||||
}
|
}
|
||||||
echo "</ul>";
|
echo "</ul>";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -339,10 +339,7 @@ $page_title = $row['document_name'];
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="ml-2">
|
<div class="ml-2">
|
||||||
<a href="#"
|
<a class="ajax-modal" href="#" data-modal-url="modals/vendor/vendor_details.php?id=<?= $vendor_id ?>">
|
||||||
data-toggle="ajax-modal"
|
|
||||||
data-ajax-url="ajax/ajax_vendor_details.php"
|
|
||||||
data-ajax-id="<?php echo $vendor_id; ?>">
|
|
||||||
<?php echo $vendor_name; ?>
|
<?php echo $vendor_name; ?>
|
||||||
</a>
|
</a>
|
||||||
<a class="confirm-link float-right" href="post.php?unlink_vendor_from_document&vendor_id=<?php echo $vendor_id; ?>&document_id=<?php echo $document_id; ?>">
|
<a class="confirm-link float-right" href="post.php?unlink_vendor_from_document&vendor_id=<?php echo $vendor_id; ?>&document_id=<?php echo $document_id; ?>">
|
||||||
|
|||||||
@@ -266,23 +266,19 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
$client_name = nullable_htmlentities($row['client_name']);
|
$client_name = nullable_htmlentities($row['client_name']);
|
||||||
// Add - if empty on the table
|
// Add - if empty on the table
|
||||||
$domain_registrar_name_display = $domain_registrar_name ? "
|
$domain_registrar_name_display = $domain_registrar_name ? "
|
||||||
<a href='#' data-toggle='ajax-modal'
|
<a class='ajax-modal' href='#' data-modal-url='modals/vendor/vendor_details.php?id=$domain_registrar_id'>
|
||||||
data-ajax-url='ajax/ajax_vendor_details.php' data-ajax-id='$domain_registrar_id'>
|
|
||||||
$domain_registrar_name
|
$domain_registrar_name
|
||||||
</a>" : "-";
|
</a>" : "-";
|
||||||
$domain_webhost_name_display = $domain_webhost_name ? "
|
$domain_webhost_name_display = $domain_webhost_name ? "
|
||||||
<a href='#' data-toggle='ajax-modal'
|
<a class='ajax-modal' href='#' data-modal-url='modals/vendor/vendor_details.php?id=$domain_webhost_id'>
|
||||||
data-ajax-url='ajax/ajax_vendor_details.php' data-ajax-id='$domain_webhost_id'>
|
|
||||||
$domain_webhost_name
|
$domain_webhost_name
|
||||||
</a>" : "-";
|
</a>" : "-";
|
||||||
$domain_dnshost_name_display = $domain_dnshost_name ? "
|
$domain_dnshost_name_display = $domain_dnshost_name ? "
|
||||||
<a href='#' data-toggle='ajax-modal'
|
<a class='ajax-modal' href='#' data-modal-url='modals/vendor/vendor_details.php?id=$domain_dnshost_id'>
|
||||||
data-ajax-url='ajax/ajax_vendor_details.php' data-ajax-id='$domain_dnshost_id'>
|
|
||||||
$domain_dnshost_name
|
$domain_dnshost_name
|
||||||
</a>" : "-";
|
</a>" : "-";
|
||||||
$domain_mailhost_name_display = $domain_mailhost_name ? "
|
$domain_mailhost_name_display = $domain_mailhost_name ? "
|
||||||
<a href='#' data-toggle='ajax-modal'
|
<a class='ajax-modal' href='#' data-modal-url='modals/vendor/vendor_details.php?id=$domain_mailhost_id'>
|
||||||
data-ajax-url='ajax/ajax_vendor_details.php' data-ajax-id='$domain_mailhost_id'>
|
|
||||||
$domain_mailhost_name
|
$domain_mailhost_name
|
||||||
</a>" : "-";
|
</a>" : "-";
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once '../../includes/modal_header.php';
|
require_once '../../../includes/modal_header_new.php';
|
||||||
|
|
||||||
$vendor_id = intval($_GET['id']);
|
$vendor_id = intval($_GET['id']);
|
||||||
|
|
||||||
@@ -86,4 +86,4 @@ ob_start();
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once '../../includes/modal_footer.php';
|
require_once '../../../includes/modal_footer_new.php';
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once '../../includes/modal_header.php';
|
require_once '../../../includes/modal_header_new.php';
|
||||||
|
|
||||||
$vendor_id = intval($_GET['id']);
|
$vendor_id = intval($_GET['id']);
|
||||||
|
|
||||||
@@ -212,4 +212,4 @@ ob_start();
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once '../../includes/modal_footer.php';
|
require_once '../../../includes/modal_footer_new.php';
|
||||||
@@ -205,7 +205,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
$vendor_name = nullable_htmlentities($row['vendor_name']);
|
$vendor_name = nullable_htmlentities($row['vendor_name']);
|
||||||
$vendor_id = intval($row['vendor_id']);
|
$vendor_id = intval($row['vendor_id']);
|
||||||
if ($vendor_name) {
|
if ($vendor_name) {
|
||||||
$vendor_display = "<a href='#' data-toggle='ajax-modal' data-ajax-url='ajax/ajax_vendor_details.php' data-ajax-id='$vendor_id'>$vendor_name</a>";
|
$vendor_display = "<a class='ajax-modal' href='#' data-modal-url='modals/vendor/vendor_details.php?id=$vendor_id'>$vendor_name</a>";
|
||||||
} else {
|
} else {
|
||||||
$vendor_display = "<span class='text-muted'>N/A</span>";
|
$vendor_display = "<span class='text-muted'>N/A</span>";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -200,11 +200,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a class="text-dark" href="#"
|
<a class="text-dark ajax-modal" href="#" data-modal-url="modals/vendor/vendor_edit.php?id=<?= $vendor_id ?>">
|
||||||
data-toggle="ajax-modal"
|
|
||||||
data-ajax-url="ajax/ajax_vendor_edit.php"
|
|
||||||
data-ajax-id="<?php echo $vendor_id; ?>"
|
|
||||||
>
|
|
||||||
<div class="media">
|
<div class="media">
|
||||||
<i class="fa fa-fw fa-2x fa-building mr-3"></i>
|
<i class="fa fa-fw fa-2x fa-building mr-3"></i>
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
@@ -243,11 +239,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<i class="fas fa-ellipsis-h"></i>
|
<i class="fas fa-ellipsis-h"></i>
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
<a class="dropdown-item" href="#"
|
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/vendor/vendor_edit.php?id=<?= $vendor_id ?>">
|
||||||
data-toggle="ajax-modal"
|
|
||||||
data-ajax-url="ajax/ajax_vendor_edit.php"
|
|
||||||
data-ajax-id="<?php echo $vendor_id; ?>"
|
|
||||||
>
|
|
||||||
<i class="fas fa-fw fa-edit mr-2"></i>Edit
|
<i class="fas fa-fw fa-edit mr-2"></i>Edit
|
||||||
</a>
|
</a>
|
||||||
<?php if ($session_user_role == 3) { ?>
|
<?php if ($session_user_role == 3) { ?>
|
||||||
@@ -291,7 +283,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<script src="../js/bulk_actions.js"></script>
|
<script src="../js/bulk_actions.js"></script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once "modals/vendor_add_modal.php";
|
require_once "modals/vendor/vendor_add.php";
|
||||||
require_once "modals/vendor_add_from_template_modal.php";
|
require_once "modals/vendor/vendor_add_from_template.php";
|
||||||
require_once "modals/vendor_export_modal.php";
|
require_once "modals/vendor/vendor_export.php";
|
||||||
require_once "../includes/footer.php";
|
require_once "../includes/footer.php";
|
||||||
|
|||||||
Reference in New Issue
Block a user