Consolidate product modals to modals/product removed ajax_ and _modal prefixes from file names and use new ajax-modal syntax
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once '../../includes/modal_header.php';
|
require_once '../../../includes/modal_header_new.php';
|
||||||
|
|
||||||
$product_id = intval($_GET['id']);
|
$product_id = intval($_GET['id']);
|
||||||
|
|
||||||
@@ -149,4 +149,4 @@ ob_start();
|
|||||||
|
|
||||||
<?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';
|
||||||
|
|
||||||
$product_id = intval($_GET['id']);
|
$product_id = intval($_GET['id']);
|
||||||
|
|
||||||
@@ -75,4 +75,4 @@ ob_start();
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once '../../includes/modal_footer.php';
|
require_once '../../../includes/modal_footer_new.php';
|
||||||
@@ -248,11 +248,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a class="text-dark text-bold" href="#"
|
<a class="text-dark text-bold ajax-modal" href="#"
|
||||||
data-toggle="ajax-modal"
|
data-modal-url="modals/product/product_edit.php?id=<?= $product_id ?>">
|
||||||
data-ajax-url="ajax/ajax_product_edit.php"
|
|
||||||
data-ajax-id="<?= $product_id ?>"
|
|
||||||
>
|
|
||||||
<?= $product_name; ?>
|
<?= $product_name; ?>
|
||||||
<?php if ($product_code) { echo "<div class='text-secondary'>$product_code</div>"; } ?>
|
<?php if ($product_code) { echo "<div class='text-secondary'>$product_code</div>"; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -274,20 +271,14 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
<?php if ($type_filter == 'product') { ?>
|
<?php if ($type_filter == 'product') { ?>
|
||||||
<a class="dropdown-item" href="#"
|
<a class="dropdown-item ajax-modal" href="#"
|
||||||
data-toggle="ajax-modal"
|
data-modal-url="modals/product/product_stock_add.php?id=<?= $product_id ?>">
|
||||||
data-ajax-url="ajax/ajax_product_stock_add.php"
|
|
||||||
data-ajax-id="<?php echo $product_id; ?>"
|
|
||||||
>
|
|
||||||
<i class="fas fa-fw fa-box-open mr-2"></i>Add Stock
|
<i class="fas fa-fw fa-box-open mr-2"></i>Add Stock
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<a class="dropdown-item" href="#"
|
<a class="dropdown-item ajax-modal" href="#"
|
||||||
data-toggle="ajax-modal"
|
data-modal-url="modals/product/product_edit.php?id=<?= $product_id ?>">
|
||||||
data-ajax-url="ajax/ajax_product_edit.php"
|
|
||||||
data-ajax-id="<?php echo $product_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) { ?>
|
||||||
@@ -323,7 +314,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<?php require_once "modals/product_bulk_edit_category_modal.php"; ?>
|
<?php require_once "modals/product/product_bulk_edit_category.php"; ?>
|
||||||
</form>
|
</form>
|
||||||
<?php require_once "../includes/filter_footer.php";
|
<?php require_once "../includes/filter_footer.php";
|
||||||
?>
|
?>
|
||||||
@@ -334,7 +325,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once "modals/product_add_modal.php";
|
require_once "modals/product/product_add.php";
|
||||||
require_once "modals/product_export_modal.php";
|
require_once "modals/product/product_export.php";
|
||||||
|
|
||||||
require_once "../includes/footer.php";
|
require_once "../includes/footer.php";
|
||||||
|
|||||||
Reference in New Issue
Block a user