Files
controls-web/lasuca/grower-quicklinks.php
2026-02-17 09:29:34 -06:00

29 lines
1.2 KiB
PHP

<?php
// phpcs:ignoreFile
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
$quickLinksUsername = isset($_SESSION['myusername']) ? $_SESSION['myusername'] : '';
$quickLinksGrowerId = isset($_SESSION['growerid']) ? $_SESSION['growerid'] : '';
if ($quickLinksUsername === '') {
return;
}
?>
<div class="grower-quick-links">
<div class="quick-links-info">
<strong>Grower Tools</strong>
<span class="quick-links-user">Signed in as <?php echo htmlspecialchars($quickLinksUsername, ENT_QUOTES, 'UTF-8'); ?><?php if ($quickLinksGrowerId !== '') { ?> (Grower <?php echo htmlspecialchars($quickLinksGrowerId, ENT_QUOTES, 'UTF-8'); ?>)<?php } ?></span>
</div>
<div class="quick-links-actions">
<a href="/home.php" class="quick-links-button">Home</a>
<a href="/grower-dashboard.php" class="quick-links-button">Dashboard</a>
<a href="/grower-main-loaddata.php" class="quick-links-button">Daily Reports</a>
<a href="/grower-files.php" class="quick-links-button">File Browser</a>
<a href="/grower-account.php" class="quick-links-button">Manage Account</a>
<a href="/grower-logout.php" class="quick-links-button logout">Log Out</a>
</div>
</div>