CIM63 - asset search on email

This commit is contained in:
“VeLiTi”
2024-04-05 14:10:07 +02:00
parent 40d40ae0f8
commit da3dc228d9
5 changed files with 30 additions and 4 deletions

View File

@@ -8,8 +8,12 @@ defined(page_security_key) or exit;
include_once './assets/functions.php';
include_once './settings/settings.php';
//SET ORIGIN FOR NAVIGATION
$_SESSION['prev_origin'] = $_SERVER['REQUEST_URI'];
$page = $_SESSION['origin'] = 'histories';
//Check if allowed
if (isAllowed('histories',$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
header('location: index.php');
exit;
}
@@ -74,6 +78,7 @@ $view .= '
</form>
</div>
';
$view .= '
<div class="content-block">
<div class="table">
@@ -85,6 +90,7 @@ $view .= '
<th class="responsive-hidden">'.$history_label3.'</th>
<th class="responsive-hidden">'.$history_label4.'</th>
<th>'.$history_label5.'</th>
<th>'.$view_asset_actions.'</th>
</tr>
</thead>
<tbody>
@@ -109,6 +115,7 @@ $view .= '
<td class="responsive-hidden">'.$response->created.'</td>
<td class="responsive-hidden">'.$response->createdby.'</td>
<td><pre>' . $description . '</pre></td>
<td><a href="index.php?page=equipment&equipmentID='.$response->equipmentID.'" class="btn_link">'.$general_view .'</a></td>
</tr>
';
}