CMXX - Improved history visibility
This commit is contained in:
@@ -110,13 +110,18 @@ $view .= '
|
||||
|
||||
$description = json_decode($response->description) ?? $response->description;
|
||||
$description = json_encode($description, JSON_PRETTY_PRINT);
|
||||
//Replace JSON ITEMS
|
||||
$search = ['{', '}', '"',':','[',']',','];
|
||||
$replace = ['', '','','=','','',''];
|
||||
$description = str_replace($search, $replace, $description);
|
||||
|
||||
|
||||
$view .= '<tr>
|
||||
<td class="responsive-hidden">'.$response->historyID.'</td>
|
||||
<td>'.$response->type.'</td>
|
||||
<td class="responsive-hidden">'.$response->created.'</td>
|
||||
<td class="responsive-hidden">'.$response->createdby.'</td>
|
||||
<td><pre>' . $description . '</pre></td>
|
||||
<td><div style="overflow-y:scroll;height:200px !important;max-width:300px;"><pre>' . $description . '</pre><div></td>
|
||||
<td><a href="index.php?page=equipment&equipmentID='.$response->equipmentID.'" class="btn_link">'.$general_view .'</a></td>
|
||||
</tr>
|
||||
';
|
||||
|
||||
Reference in New Issue
Block a user