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:
@@ -34,7 +34,7 @@
|
||||
<div class="card-body">
|
||||
<div style="margin-bottom:15px;">
|
||||
<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:10px;">
|
||||
<h5 class="card-title" style="margin:0;">Machines</h5>
|
||||
<h5 class="card-title" style="margin:0;"><a href="./machine_map.asp" target="_blank"><i class='zmdi zmdi-map' title='Show Machine Map'></i></a> Machines</h5>
|
||||
<div>
|
||||
<a href="./addmachine.asp" class="btn btn-primary">
|
||||
<i class="zmdi zmdi-plus-circle"></i> Add Machine
|
||||
@@ -82,13 +82,15 @@
|
||||
|
||||
<%
|
||||
' Build WHERE clause with optional BU filter
|
||||
' NOTE: Filter on machines.machinetypeid to exclude PCs (33-43) and network devices (16-20)
|
||||
' Equipment types are 1-15
|
||||
Dim whereClause
|
||||
whereClause = "machines.machinetypeid = machinetypes.machinetypeid AND " &_
|
||||
whereClause = "models.machinetypeid = machinetypes.machinetypeid AND " &_
|
||||
"machines.modelnumberid = models.modelnumberid AND " &_
|
||||
"models.vendorid = vendors.vendorid AND " &_
|
||||
"machines.businessunitid = businessunits.businessunitID AND " &_
|
||||
"machines.isactive = 1 AND islocationonly=0 AND machines.pctypeid IS NULL AND " &_
|
||||
"machines.machinetypeid BETWEEN 1 AND 24"
|
||||
"models.machinetypeid NOT IN (1, 16, 17, 18, 19, 20, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43)"
|
||||
|
||||
' Add BU filter if specified
|
||||
If filterBU <> "" And IsNumeric(filterBU) Then
|
||||
@@ -108,7 +110,13 @@
|
||||
<i class="zmdi zmdi-pin"></i>
|
||||
</span>
|
||||
</td>
|
||||
<td><a href="./displaymachine.asp?machineid=<%Response.Write(rs("machineid"))%>" title="View Machine Details"><%Response.Write(rs("machinenumber"))%></a></td>
|
||||
<td><a href="./displaymachine.asp?machineid=<%Response.Write(rs("machineid"))%>" title="View Machine Details"><%
|
||||
Dim displayName
|
||||
displayName = rs("machinenumber") & ""
|
||||
If displayName = "" Then displayName = rs("hostname") & ""
|
||||
If displayName = "" Then displayName = "ID:" & rs("machineid")
|
||||
Response.Write(Server.HTMLEncode(displayName))
|
||||
%></a></td>
|
||||
<td><%Response.Write(rs("machinetype"))%></td>
|
||||
<td><%Response.Write(rs("vendor"))%></td>
|
||||
<td><%Response.Write(rs("modelnumber"))%></a></td>
|
||||
|
||||
Reference in New Issue
Block a user