Added Custom Link option to Reports Nav
This commit is contained in:
@@ -8,6 +8,8 @@ This file documents all notable changes made to ITFlow.
|
|||||||
- Renamed `/user/` directory to `/agent/`.
|
- Renamed `/user/` directory to `/agent/`.
|
||||||
- Stripe users: Payment Provider Threshold is now enforced. Be sure to configure your desired threshold amount. (It is set to 0 by default) meaning nonone can pay via stripe. If the invoice amount is greater than than the Threshold amount, clients will not be able to pay that invoice via Stripe Pay.
|
- Stripe users: Payment Provider Threshold is now enforced. Be sure to configure your desired threshold amount. (It is set to 0 by default) meaning nonone can pay via stripe. If the invoice amount is greater than than the Threshold amount, clients will not be able to pay that invoice via Stripe Pay.
|
||||||
- Deprecation Notice: `/scripts/cron_mail_queue.php` and `/scripts/cron_ticket_email_parser.php` are being phased out. Please transition to `/cron/mail_queue.php` and `/cron/ticket_email_parser.php`. These older scripts will be removed in the November release—update accordingly. New Installs via the script will have this already configured.
|
- Deprecation Notice: `/scripts/cron_mail_queue.php` and `/scripts/cron_ticket_email_parser.php` are being phased out. Please transition to `/cron/mail_queue.php` and `/cron/ticket_email_parser.php`. These older scripts will be removed in the November release—update accordingly. New Installs via the script will have this already configured.
|
||||||
|
- Custom is working now. Custom code should be placed in /admin/custom/ , /agent/custom/ , /client/custom/ /guest/custom/
|
||||||
|
We will provide example code with directory structure for each custom directory a week after this release.
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- Resolved issue with "Restore from Setup" not functioning correctly.
|
- Resolved issue with "Restore from Setup" not functioning correctly.
|
||||||
@@ -20,6 +22,7 @@ This file documents all notable changes made to ITFlow.
|
|||||||
- Resolved MFA enforcement bugs.
|
- Resolved MFA enforcement bugs.
|
||||||
- Fixed KeepAlive functionality to maintain user sessions longer.
|
- Fixed KeepAlive functionality to maintain user sessions longer.
|
||||||
- Fixed multiple broken links caused by the `/user/` to `/agent/` path migration.
|
- Fixed multiple broken links caused by the `/user/` to `/agent/` path migration.
|
||||||
|
- Fixed Cusom
|
||||||
|
|
||||||
### Added / Changed
|
### Added / Changed
|
||||||
- Removed "ACH" as a payment method; added "Bank Transfer" instead.
|
- Removed "ACH" as a payment method; added "Bank Transfer" instead.
|
||||||
@@ -31,6 +34,8 @@ This file documents all notable changes made to ITFlow.
|
|||||||
- Added "Assigned Agent" column for recurring tickets.
|
- Added "Assigned Agent" column for recurring tickets.
|
||||||
- Introduced "Additional Assets" option when editing assets in tickets; modal now uses the updated AJAX method.
|
- Introduced "Additional Assets" option when editing assets in tickets; modal now uses the updated AJAX method.
|
||||||
- Added Gibraltar to the list of supported countries.
|
- Added Gibraltar to the list of supported countries.
|
||||||
|
- Added Custom Link Option for the Admin Nav.
|
||||||
|
- Added Custom Link Option for the Reports Nav.
|
||||||
|
|
||||||
### Other notes
|
### Other notes
|
||||||
- Major releases will happen on the first week of every Month.
|
- Major releases will happen on the first week of every Month.
|
||||||
|
|||||||
@@ -98,6 +98,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
$custom_link_location_display = "Client Portal Nav";
|
$custom_link_location_display = "Client Portal Nav";
|
||||||
} elseif ($custom_link_location == 4) {
|
} elseif ($custom_link_location == 4) {
|
||||||
$custom_link_location_display = "Admin Nav";
|
$custom_link_location_display = "Admin Nav";
|
||||||
|
} elseif ($custom_link_location == 5) {
|
||||||
|
$custom_link_location_display = "Reports Nav";
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -67,6 +67,7 @@
|
|||||||
<option value="2">Top Nav (Icon Required)</option>
|
<option value="2">Top Nav (Icon Required)</option>
|
||||||
<option value="3">Client Portal Nav</option>
|
<option value="3">Client Portal Nav</option>
|
||||||
<option value="4">Admin Nav</option>
|
<option value="4">Admin Nav</option>
|
||||||
|
<option value="5">Reports Nav</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ ob_start();
|
|||||||
<option value="2" <?php if ($custom_link_location === 2) { echo "selected"; } ?> >Top Nav (Icon Required)</option>
|
<option value="2" <?php if ($custom_link_location === 2) { echo "selected"; } ?> >Top Nav (Icon Required)</option>
|
||||||
<option value="3" <?php if ($custom_link_location === 3) { echo "selected"; } ?> >Client Portal Nav</option>
|
<option value="3" <?php if ($custom_link_location === 3) { echo "selected"; } ?> >Client Portal Nav</option>
|
||||||
<option value="4" <?php if ($custom_link_location === 4) { echo "selected"; } ?> >Admin Nav</option>
|
<option value="4" <?php if ($custom_link_location === 4) { echo "selected"; } ?> >Admin Nav</option>
|
||||||
|
<option value="5" <?php if ($custom_link_location === 5) { echo "selected"; } ?> >Reports Nav</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -107,6 +107,35 @@
|
|||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$sql_custom_links = mysqli_query($mysqli, "SELECT * FROM custom_links
|
||||||
|
WHERE custom_link_location = 5 AND custom_link_archived_at IS NULL
|
||||||
|
ORDER BY custom_link_order ASC, custom_link_name ASC"
|
||||||
|
);
|
||||||
|
|
||||||
|
while ($row = mysqli_fetch_array($sql_custom_links)) {
|
||||||
|
$custom_link_name = nullable_htmlentities($row['custom_link_name']);
|
||||||
|
$custom_link_uri = sanitize_url($row['custom_link_uri']);
|
||||||
|
$custom_link_icon = nullable_htmlentities($row['custom_link_icon']);
|
||||||
|
$custom_link_new_tab = intval($row['custom_link_new_tab']);
|
||||||
|
if ($custom_link_new_tab == 1) {
|
||||||
|
$target = "target='_blank' rel='noopener noreferrer'";
|
||||||
|
} else {
|
||||||
|
$target = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<li class="nav-item">
|
||||||
|
<a href="<?php echo $custom_link_uri; ?>" <?php echo $target; ?> class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == basename($custom_link_uri)) { echo "active"; } ?>">
|
||||||
|
<i class="fas fa-<?php echo $custom_link_icon; ?> nav-icon"></i>
|
||||||
|
<p><?php echo $custom_link_name; ?></p>
|
||||||
|
<i class="fas fa-angle-right nav-icon float-right"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user