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:
@@ -36,27 +36,37 @@
|
||||
<tr>
|
||||
<th scope="col">Machine</th>
|
||||
<th scope="col">Application</th>
|
||||
<th scope="col">Version</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<%
|
||||
strSQL = " SELECT machinenumber,appname,installedapps.machineid FROM machines,installedapps,applications WHERE installedapps.machineid=machines.machineid AND installedapps.isactive=1 " & _
|
||||
"AND installedapps.appid=applications.appid AND installedapps.appid="&appid &" ORDER BY machinenumber ASC"
|
||||
strSQL = "SELECT m.machinenumber, a.appname, ia.machineid, av.version " & _
|
||||
"FROM installedapps ia " & _
|
||||
"INNER JOIN machines m ON ia.machineid = m.machineid " & _
|
||||
"INNER JOIN applications a ON ia.appid = a.appid " & _
|
||||
"LEFT JOIN appversions av ON ia.appversionid = av.appversionid " & _
|
||||
"WHERE ia.isactive = 1 AND ia.appid = " & CLng(appid) & " " & _
|
||||
"ORDER BY m.machinenumber ASC"
|
||||
set rs = objconn.Execute(strSQL)
|
||||
|
||||
while not rs.eof
|
||||
Response.write("<tr>")
|
||||
Dim versionDisplay
|
||||
versionDisplay = rs("version") & ""
|
||||
If versionDisplay = "" Then versionDisplay = "<span class='text-muted'>-</span>"
|
||||
%>
|
||||
<td><a href="./displaymachine.asp?machineid=<%Response.Write(rs("machineid"))%>" title="View Machine Details"><%Response.Write(rs("machinenumber"))%></a></td>
|
||||
<td><%Response.Write(rs("appname"))%></td>
|
||||
|
||||
<td><a href="./displaymachine.asp?machineid=<%Response.Write(rs("machineid"))%>" title="View Machine Details"><%Response.Write(Server.HTMLEncode(rs("machinenumber") & ""))%></a></td>
|
||||
<td><%Response.Write(Server.HTMLEncode(rs("appname") & ""))%></td>
|
||||
<td><%Response.Write(versionDisplay)%></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<%
|
||||
rs.movenext
|
||||
wend
|
||||
objConn.Close
|
||||
objConn.Close
|
||||
%>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user