mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Feature: Added Client URI field to Assets which is exposed in the client portal can be used for remote desktop links etc
This commit is contained in:
@@ -37,6 +37,7 @@ $assets_sql = mysqli_query($mysqli, "SELECT * FROM assets LEFT JOIN contacts ON
|
||||
<th>Purchase</th>
|
||||
<th>Warranty</th>
|
||||
<th>Status</th>
|
||||
<th>URI</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -54,6 +55,7 @@ $assets_sql = mysqli_query($mysqli, "SELECT * FROM assets LEFT JOIN contacts ON
|
||||
$asset_warranty_expire = nullable_htmlentities($row['asset_warranty_expire'] ?? "-");
|
||||
$assigned_to = nullable_htmlentities($row['contact_name'] ?? "-");
|
||||
$asset_status = nullable_htmlentities($row['asset_status']);
|
||||
$asset_uri_client = sanitize_url($row['asset_uri_client']);
|
||||
|
||||
?>
|
||||
|
||||
@@ -70,6 +72,13 @@ $assets_sql = mysqli_query($mysqli, "SELECT * FROM assets LEFT JOIN contacts ON
|
||||
<td><?php echo $asset_purchase_date; ?></td>
|
||||
<td><?php echo $asset_warranty_expire; ?></td>
|
||||
<td><?php echo $asset_status; ?></td>
|
||||
<td>
|
||||
<?php if ($asset_uri_client) { ?>
|
||||
<i class="fa fa-fw fa-link text-secondary mr-1"></i><a href="<?php echo $asset_uri_client; ?>" target="_blank" title="<?php echo $asset_uri_client; ?>"><?php echo truncate($asset_uri_client, 40); ?></a>
|
||||
<?php } else { ?>
|
||||
-
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
@@ -266,10 +266,12 @@ if ($session_contact_primary == 1 || $session_contact_is_technical_contact) {
|
||||
while ($row = mysqli_fetch_array($sql_assigned_assets)) {
|
||||
$asset_name = nullable_htmlentities($row['asset_name']);
|
||||
$asset_type = nullable_htmlentities($row['asset_type']);
|
||||
$asset_uri_client = sanitize_url($row['asset_uri_client']);
|
||||
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><i class="fa fa-fw fa-desktop text-secondary mr-2"></i><?php echo $asset_name; ?></td>
|
||||
<td><i class="fa fa-fw fa-desktop text-secondary mr-2"></i><?php if ($asset_uri_client) { ?><a href="<?= $asset_uri_client ?>" target="_blank"><i class='fas fa-external-link-alt mr-2'></i></a><?php } ?><?php echo $asset_name; ?></td>
|
||||
<td class="text-secondary">(<?php echo $asset_type; ?>)</td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user