Manage Products - Initial
This commit is contained in:
10
products.php
10
products.php
@@ -8,8 +8,12 @@ defined(page_security_key) or exit;
|
||||
include_once './assets/functions.php';
|
||||
include_once './settings/settings.php';
|
||||
|
||||
//SET ORIGIN FOR NAVIGATION
|
||||
$prev_page = $_SESSION['prev_origin'] ?? '';
|
||||
$page = $_SESSION['origin'] = 'products';
|
||||
|
||||
//Check if allowed
|
||||
if (isAllowed('products',$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
||||
if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
||||
header('location: index.php');
|
||||
exit;
|
||||
}
|
||||
@@ -69,7 +73,7 @@ $view .= ' <div class="msg success">
|
||||
}
|
||||
$view .= '
|
||||
<div class="content-header responsive-flex-column pad-top-5">
|
||||
<a href="index.php?page=product" class="btn">'.$button_create_product.'</a>
|
||||
<a href="index.php?page=product_manage" class="btn">'.$button_create_product.'</a>
|
||||
<form action="" method="get">
|
||||
<input type="hidden" name="page" value="products">
|
||||
<div class="filters">
|
||||
@@ -130,7 +134,7 @@ $view .= '
|
||||
'.(($picture)?'<img style="border-radius: 4px;height: 50px;" src="'.$picture[0].'" alt="">' : '').'
|
||||
</td>
|
||||
<td>'.$response->productname.'</td>
|
||||
<td><a href="index.php?page=product&id='.$response->rowID.'" class="btn_link">'.$general_view .'</a></td>
|
||||
<td><a href="index.php?page=product&rowID='.$response->rowID.'" class="btn_link">'.$general_view .'</a></td>
|
||||
</tr>
|
||||
';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user