Add USB checkout system and SSO profile page
New Features: - USB Device checkout/check-in system with barcode scanning - displayusb.asp: List all USB devices with status - addusb.asp: Add new USB devices via barcode scan - checkout_usb.asp/savecheckout_usb.asp: Check out USB to SSO - checkin_usb.asp/savecheckin_usb.asp: Check in with wipe confirmation - usb_history.asp: Full checkout history with filters - api_usb.asp: JSON API for AJAX lookups - displayprofile.asp: SSO profile page showing user info and USB history - Date/time format changed to 12-hour (MM/DD/YYYY h:mm AM/PM) - SSO links in USB history now link to profile page via search Database: - New machinetypeid 44 for USB devices - New usb_checkouts table for tracking checkouts Cleanup: - Removed v2 folder (duplicate/old files) - Removed old debug/test files - Removed completed migration documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,34 @@
|
||||
<%
|
||||
' Calculate fiscal week (GE fiscal year starts first Monday of January)
|
||||
Dim fwToday, fwYearStart, fwFirstMonday, fwDayOfWeek, fwDaysFromStart, fiscalWeek
|
||||
fwToday = Date()
|
||||
|
||||
' Find first Monday of current year
|
||||
fwYearStart = DateSerial(Year(fwToday), 1, 1)
|
||||
fwDayOfWeek = Weekday(fwYearStart, vbMonday) ' 1=Monday, 7=Sunday
|
||||
If fwDayOfWeek = 1 Then
|
||||
fwFirstMonday = fwYearStart
|
||||
Else
|
||||
fwFirstMonday = DateAdd("d", 8 - fwDayOfWeek, fwYearStart)
|
||||
End If
|
||||
|
||||
' If we're before the first Monday, use previous year's week count
|
||||
If fwToday < fwFirstMonday Then
|
||||
Dim fwPrevYearStart, fwPrevFirstMonday, fwPrevDayOfWeek
|
||||
fwPrevYearStart = DateSerial(Year(fwToday) - 1, 1, 1)
|
||||
fwPrevDayOfWeek = Weekday(fwPrevYearStart, vbMonday)
|
||||
If fwPrevDayOfWeek = 1 Then
|
||||
fwPrevFirstMonday = fwPrevYearStart
|
||||
Else
|
||||
fwPrevFirstMonday = DateAdd("d", 8 - fwPrevDayOfWeek, fwPrevYearStart)
|
||||
End If
|
||||
fwDaysFromStart = DateDiff("d", fwPrevFirstMonday, fwToday)
|
||||
fiscalWeek = Int(fwDaysFromStart / 7) + 1
|
||||
Else
|
||||
fwDaysFromStart = DateDiff("d", fwFirstMonday, fwToday)
|
||||
fiscalWeek = Int(fwDaysFromStart / 7) + 1
|
||||
End If
|
||||
%>
|
||||
<!--Start sidebar-wrapper-->
|
||||
<div id="sidebar-wrapper" data-simplebar="" data-simplebar-auto-hide="true">
|
||||
<div class="brand-logo">
|
||||
@@ -6,6 +37,7 @@
|
||||
<h5 class="logo-text">West Jefferson</h5>
|
||||
</a>
|
||||
</div>
|
||||
<div style="font-size: 10px; color: #888; text-align: center; padding-bottom: 8px;">Fiscal Week <%=fiscalWeek%></div>
|
||||
<ul class="sidebar-menu do-nicescrol">
|
||||
<li class="sidebar-header">MAIN NAVIGATION</li>
|
||||
<li>
|
||||
@@ -53,10 +85,12 @@
|
||||
<li><a href="./displaysubnets.asp"><i class="zmdi zmdi-network text-danger"></i><span>Network</span></a></li>
|
||||
<li><a href="./network_devices.asp"><i class="zmdi zmdi-device-hub text-info"></i><span>Network Devices</span></a></li>
|
||||
<li><a href="./displaypcs.asp"><i class="zmdi zmdi-desktop-windows text-primary"></i><span>PC Admin</span></a></li>
|
||||
<li><a href="./displayusb.asp"><i class="zmdi zmdi-usb text-purple"></i><span>USB Devices</span></a></li>
|
||||
<li><a href="./displaynotifications.asp"><i class="zmdi zmdi zmdi-notifications-none text-success"></i><span>Notifications</span></a></li>
|
||||
<li><a href="./tv-dashboard/" target="_blank"><i class="zmdi zmdi-tv text-warning"></i><span>Lobby Display</span></a></li>
|
||||
<li><a href="javaScript:void();"><i class="zmdi zmdi-share text-info"></i> <span>Information</span></a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<!--End sidebar-wrapper-->
|
||||
<!--End sidebar-wrapper-->
|
||||
|
||||
Reference in New Issue
Block a user