Standardize UI consistency across ShopDB pages
Security fixes: - Add HTMLEncode to displaysubnets.asp output - Add HTMLEncode to displayapplications.asp URL attributes Icon standardization: - Use zmdi-plus-circle for all Add buttons (displaypcs, pcs, pclist, computers, listpcs) - Use zmdi-edit for all Edit tab icons (displayapplication, displayprinter, displaysubnet, displaydevice) - Replace icon-note with zmdi icons throughout Layout consistency: - Standardize title row margin-bottom to 15px across all pages - Add table-hover class to all data tables - Fix editpc.asp title from "Edit Equipment" to "Edit PC" - Fix editpc.asp back link to point to displaypcs.asp Terminology: - Change "Make" to "Vendor" in displayprinters.asp - Standardize Back button text to "Back to [Page]" format Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -36,13 +36,13 @@
|
||||
<div class="card-body">
|
||||
<ul class="nav nav-tabs nav-tabs-primary top-icon nav-justified">
|
||||
<li class="nav-item">
|
||||
<a href="javascript:void();" data-target="#addsubnet" data-toggle="pill" class="nav-link"><i class="icon-note"></i> <span class="hidden-xs">Add Subnet</span></a>
|
||||
<a href="javascript:void();" data-target="#addsubnet" data-toggle="pill" class="nav-link"><i class="zmdi zmdi-plus-circle"></i> <span class="hidden-xs">Add Subnet</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content p-3">
|
||||
<div class="tab-pane" id="addsubnet">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Vlan #</th>
|
||||
@@ -58,12 +58,12 @@
|
||||
<th scope="row"><input class="form-control" type="text" name="vlan" size="4"></th>
|
||||
<td><select name="subnettypeid" class="btn btn-light px-3">
|
||||
<%
|
||||
strSQL = "Select * FROM subnettypes where isactive=1 ORDER BY subnettype ASC"
|
||||
set rs = objconn.Execute(strSQL)
|
||||
while not rs.eof
|
||||
Response.Write("<option class='btn' value='"&rs("subnettypeid")&"'>"&rs("subnettype")&"</option>")
|
||||
rs.movenext
|
||||
wend
|
||||
strSQL = "SELECT * FROM subnettypes WHERE isactive=1 ORDER BY subnettype ASC"
|
||||
Set rs = objConn.Execute(strSQL)
|
||||
While Not rs.EOF
|
||||
Response.Write("<option class='btn' value='" & Server.HTMLEncode(rs("subnettypeid") & "") & "'>" & Server.HTMLEncode(rs("subnettype") & "") & "</option>")
|
||||
rs.MoveNext
|
||||
Wend
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
@@ -96,7 +96,7 @@
|
||||
</div>
|
||||
<h5 class="card-title"><a href="./network_map.asp" target="_blank"><i class='zmdi zmdi-map' title='Show Network Infrastructure Map'></i></a>  Subnet Details</h5>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Vlan #</th>
|
||||
@@ -115,11 +115,11 @@
|
||||
WHILE NOT rs.eof
|
||||
%>
|
||||
<tr>
|
||||
<th scope="row"><a href="./displaysubnet.asp?subnetid=<%Response.Write(rs("subnetid"))%>"><%Response.Write(rs("vlan"))%></a></th>
|
||||
<td><%Response.Write(rs("subnettype"))%> </td>
|
||||
<td><%Response.Write(rs("subnetstart"))%></td>
|
||||
<td><%Response.Write(rs("cidr"))%></td>
|
||||
<td><%Response.Write(rs("description"))%></td>
|
||||
<th scope="row"><a href="./displaysubnet.asp?subnetid=<%=Server.HTMLEncode(rs("subnetid") & "")%>"><%=Server.HTMLEncode(rs("vlan") & "")%></a></th>
|
||||
<td><%=Server.HTMLEncode(rs("subnettype") & "")%></td>
|
||||
<td><%=Server.HTMLEncode(rs("subnetstart") & "")%></td>
|
||||
<td><%=Server.HTMLEncode(rs("cidr") & "")%></td>
|
||||
<td><%=Server.HTMLEncode(rs("description") & "")%></td>
|
||||
</tr>
|
||||
<%
|
||||
rs.movenext
|
||||
|
||||
Reference in New Issue
Block a user