Fix network device description/machinenotes display and edit
- Fix ADO cursor issue where reading rs("description") twice caused
empty values (IsNull check consumed the field value)
- Change all device pages to read description field once using
`description = rs("description") & ""` pattern
- Add deviceDescription variable in displaydevice.asp
- Fix machinetypeid mapping: IDF=17, Camera=18 (was swapped)
- Add model dropdown fix to include currently assigned model
- Add server application tracking feature
- Various other improvements and fixes
Files affected:
- displaydevice.asp, displaylocationdevice.asp
- deviceaccesspoint.asp, deviceserver.asp, deviceswitch.asp
- devicecamera.asp, deviceidf.asp
- savenetworkdevice.asp, networkdevices.asp
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -167,31 +167,31 @@ End If
|
||||
Case "IDF"
|
||||
badgeStyle = "background:#FF9800; color:#fff; padding:5px 10px; border-radius:4px; font-weight:500;"
|
||||
iconClass = "zmdi-city-alt"
|
||||
detailUrl = "displaymachine.asp?machineid=" & rs("device_id")
|
||||
detailUrl = "displaydevice.asp?type=idf&id=" & rs("device_id")
|
||||
Case "Server"
|
||||
badgeStyle = "background:#607D8B; color:#fff; padding:5px 10px; border-radius:4px; font-weight:500;"
|
||||
iconClass = "zmdi-storage"
|
||||
detailUrl = "displaymachine.asp?machineid=" & rs("device_id")
|
||||
detailUrl = "displaydevice.asp?type=server&id=" & rs("device_id")
|
||||
Case "Switch"
|
||||
badgeStyle = "background:#9C27B0; color:#fff; padding:5px 10px; border-radius:4px; font-weight:500;"
|
||||
iconClass = "zmdi-device-hub"
|
||||
detailUrl = "displaymachine.asp?machineid=" & rs("device_id")
|
||||
detailUrl = "displaydevice.asp?type=switch&id=" & rs("device_id")
|
||||
Case "Camera"
|
||||
badgeStyle = "background:#F44336; color:#fff; padding:5px 10px; border-radius:4px; font-weight:500;"
|
||||
iconClass = "zmdi-videocam"
|
||||
detailUrl = "displaymachine.asp?machineid=" & rs("device_id")
|
||||
detailUrl = "displaydevice.asp?type=camera&id=" & rs("device_id")
|
||||
Case "Access Point"
|
||||
badgeStyle = "background:#2196F3; color:#fff; padding:5px 10px; border-radius:4px; font-weight:500;"
|
||||
iconClass = "zmdi-wifi"
|
||||
detailUrl = "displaymachine.asp?machineid=" & rs("device_id")
|
||||
detailUrl = "displaydevice.asp?type=accesspoint&id=" & rs("device_id")
|
||||
Case "Router"
|
||||
badgeStyle = "background:#00BCD4; color:#fff; padding:5px 10px; border-radius:4px; font-weight:500;"
|
||||
iconClass = "zmdi-router"
|
||||
detailUrl = "displaymachine.asp?machineid=" & rs("device_id")
|
||||
detailUrl = "displaydevice.asp?type=router&id=" & rs("device_id")
|
||||
Case "Firewall"
|
||||
badgeStyle = "background:#E91E63; color:#fff; padding:5px 10px; border-radius:4px; font-weight:500;"
|
||||
iconClass = "zmdi-shield-security"
|
||||
detailUrl = "displaymachine.asp?machineid=" & rs("device_id")
|
||||
detailUrl = "displaydevice.asp?type=firewall&id=" & rs("device_id")
|
||||
Case "Printer"
|
||||
badgeStyle = "background:#4CAF50; color:#fff; padding:5px 10px; border-radius:4px; font-weight:500;"
|
||||
iconClass = "zmdi-print"
|
||||
|
||||
Reference in New Issue
Block a user