Remove emojis and clarify comments in search.asp and adminclearcache.asp
- Remove emoji icons from UI text (lightbulb, wrench, warning, printer, checkmark) - Replace AI-sounding comment phrases with specific descriptions - Keep technical arrow notation in code comments (→) for mapping documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h2>🔧 Cache Management</h2>
|
<h2>Cache Management</h2>
|
||||||
|
|
||||||
<%
|
<%
|
||||||
Dim confirm, cacheType, redirectPage, printerIP
|
Dim confirm, cacheType, redirectPage, printerIP
|
||||||
@@ -62,23 +62,23 @@ If confirm = "yes" Then
|
|||||||
Case "printer"
|
Case "printer"
|
||||||
If printerIP <> "" Then
|
If printerIP <> "" Then
|
||||||
Call ClearPrinterCache(printerIP)
|
Call ClearPrinterCache(printerIP)
|
||||||
Response.Write("<div class='success'><strong>✓ Success!</strong> Cache cleared for printer: " & Server.HTMLEncode(printerIP) & "</div>")
|
Response.Write("<div class='success'><strong>Success:</strong> Cache cleared for printer: " & Server.HTMLEncode(printerIP) & "</div>")
|
||||||
Else
|
Else
|
||||||
Response.Write("<div class='warning'><strong>⚠️ Error:</strong> No printer IP specified.</div>")
|
Response.Write("<div class='warning'><strong>Error:</strong> No printer IP specified.</div>")
|
||||||
End If
|
End If
|
||||||
Case "zabbix"
|
Case "zabbix"
|
||||||
Call ClearAllZabbixCache()
|
Call ClearAllZabbixCache()
|
||||||
Response.Write("<div class='success'><strong>✓ Success!</strong> All Zabbix cache cleared (all printers).</div>")
|
Response.Write("<div class='success'><strong>Success:</strong> All Zabbix cache cleared (all printers).</div>")
|
||||||
Case "dropdown"
|
Case "dropdown"
|
||||||
Call ClearDropdownCache()
|
Call ClearDropdownCache()
|
||||||
Response.Write("<div class='success'><strong>✓ Success!</strong> Dropdown cache cleared.</div>")
|
Response.Write("<div class='success'><strong>Success:</strong> Dropdown cache cleared.</div>")
|
||||||
Case "list"
|
Case "list"
|
||||||
Call ClearListCache()
|
Call ClearListCache()
|
||||||
Response.Write("<div class='success'><strong>✓ Success!</strong> List cache cleared.</div>")
|
Response.Write("<div class='success'><strong>Success:</strong> List cache cleared.</div>")
|
||||||
Case Else
|
Case Else
|
||||||
Call ClearAllZabbixCache()
|
Call ClearAllZabbixCache()
|
||||||
Call ClearAllDataCache()
|
Call ClearAllDataCache()
|
||||||
Response.Write("<div class='success'><strong>✓ Success!</strong> All cache cleared.</div>")
|
Response.Write("<div class='success'><strong>Success:</strong> All cache cleared.</div>")
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
' Redirect if specified, otherwise show link
|
' Redirect if specified, otherwise show link
|
||||||
@@ -137,7 +137,7 @@ Else
|
|||||||
|
|
||||||
' Add form for individual printer cache clearing
|
' Add form for individual printer cache clearing
|
||||||
Response.Write("<div class='info' style='margin-top:30px;'>")
|
Response.Write("<div class='info' style='margin-top:30px;'>")
|
||||||
Response.Write("<strong>🖨️ Clear Individual Printer Cache</strong>")
|
Response.Write("<strong>Clear Individual Printer Cache</strong>")
|
||||||
Response.Write("<p>To clear cache for a specific printer, enter its IP address:</p>")
|
Response.Write("<p>To clear cache for a specific printer, enter its IP address:</p>")
|
||||||
Response.Write("<form method='get' action='adminclearcache.asp'>")
|
Response.Write("<form method='get' action='adminclearcache.asp'>")
|
||||||
Response.Write("<input type='hidden' name='confirm' value='yes'>")
|
Response.Write("<input type='hidden' name='confirm' value='yes'>")
|
||||||
@@ -151,7 +151,7 @@ Else
|
|||||||
Response.Write("</div>")
|
Response.Write("</div>")
|
||||||
|
|
||||||
Response.Write("<div class='warning'>")
|
Response.Write("<div class='warning'>")
|
||||||
Response.Write("<strong>⚠️ Note:</strong> Clearing cache will cause slower page loads until cache rebuilds.")
|
Response.Write("<strong>Note:</strong> Clearing cache will cause slower page loads until cache rebuilds.")
|
||||||
Response.Write("</div>")
|
Response.Write("</div>")
|
||||||
Response.Write("<br>")
|
Response.Write("<br>")
|
||||||
Response.Write("<a href='?confirm=yes&type=all' class='btn btn-danger'>Clear ALL Cache</a> ")
|
Response.Write("<a href='?confirm=yes&type=all' class='btn btn-danger'>Clear ALL Cache</a> ")
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
'----------------------------- Search for Applications directly ----------------------------------------------------------------
|
'----------------------------- Search for Applications directly ----------------------------------------------------------------
|
||||||
|
|
||||||
' If only one application matches, redirect directly to it
|
' If only one application matches, redirect directly to it
|
||||||
' Normalize search by removing common punctuation for better matching
|
' Normalize search by removing hyphens and underscores
|
||||||
Dim normalizedSearch
|
Dim normalizedSearch
|
||||||
normalizedSearch = search
|
normalizedSearch = search
|
||||||
normalizedSearch = Replace(normalizedSearch, "-", " ")
|
normalizedSearch = Replace(normalizedSearch, "-", " ")
|
||||||
@@ -327,7 +327,7 @@ If isShared And search <> "" Then
|
|||||||
<div style="display: flex; align-items: center;">
|
<div style="display: flex; align-items: center;">
|
||||||
<i class="zmdi zmdi-info" style="font-size: 28px; margin-right: 15px; opacity: 0.9;"></i>
|
<i class="zmdi zmdi-info" style="font-size: 28px; margin-right: 15px; opacity: 0.9;"></i>
|
||||||
<div>
|
<div>
|
||||||
<strong style="font-size: 15px; display: block; margin-bottom: 5px;">💡 Self-Service Tip</strong>
|
<strong style="font-size: 15px; display: block; margin-bottom: 5px;">Self-Service Tip</strong>
|
||||||
<span style="font-size: 13px; opacity: 0.95;">This result was found by searching for "<strong><%=Server.HTMLEncode(searchDisplay)%></strong>".</span>
|
<span style="font-size: 13px; opacity: 0.95;">This result was found by searching for "<strong><%=Server.HTMLEncode(searchDisplay)%></strong>".</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -349,7 +349,7 @@ Dim rsApps, appResults(), appCount
|
|||||||
appCount = 0
|
appCount = 0
|
||||||
|
|
||||||
' Use FULLTEXT search with MATCH...AGAINST in BOOLEAN MODE (same as KB articles)
|
' Use FULLTEXT search with MATCH...AGAINST in BOOLEAN MODE (same as KB articles)
|
||||||
' This provides consistent scoring methodology across apps and KB articles
|
' Uses same FULLTEXT search as KB articles for uniform relevance ranking
|
||||||
' NOTE: FULLTEXT has ft_min_word_len=4, so short words like "PC", "3", "of" won't match
|
' NOTE: FULLTEXT has ft_min_word_len=4, so short words like "PC", "3", "of" won't match
|
||||||
strSQL = "SELECT appid, appname, " & _
|
strSQL = "SELECT appid, appname, " & _
|
||||||
"MATCH (appname) AGAINST (? IN BOOLEAN MODE) AS relevance " & _
|
"MATCH (appname) AGAINST (? IN BOOLEAN MODE) AS relevance " & _
|
||||||
|
|||||||
Reference in New Issue
Block a user