Files
shopdb/addsubnet.asp
cproudlock 8194f5cdf0 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>
2025-12-10 14:20:35 -05:00

121 lines
4.6 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<!--#include file="./includes/header.asp"-->
<!--#include file="./includes/sql.asp"-->
</head>
<%
theme = Request.Cookies("theme")
IF theme = "" THEN
theme="bg-theme1"
END IF
%>
<body class="bg-theme <%Response.Write(theme)%>">
<!-- start loader -->
<div id="pageloader-overlay" class="visible incoming"><div class="loader-wrapper-outer"><div class="loader-wrapper-inner" ><div class="loader"></div></div></div></div>
<!-- end loader -->
<!-- Start wrapper-->
<div id="wrapper">
<!--#include file="./includes/leftsidebar.asp"-->
<!--Start topbar header-->
<!--#include file="./includes/topbarheader.asp"-->
<!--End topbar header-->
<body class="bg-theme <%Response.Write(theme)%>">
<div class="clearfix"></div>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row mt-4">
<div class="col-lg-auto">
<div class="card">
<div class="card-body">
<h5 class="card-title">Add Subnet</h5>
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th scope="col">Vlan #</th>
<th scope="col">Zone</th>
<th scope="col">Network</th>
<th scope="col">CIDR</th>
<th scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr>
<form method="post" action="./addsubnetbackend_direct.asp">
<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
%>
</select>
</td>
<td><input class="form-control" type="text" name="ipstart" size="24"></td>
<td><select name="cidr" class="btn btn-light px-3">
<option value="0">---</option>
<option value="/30,3">/30</option>
<option value="/29,7">/29</option>
<option value="/28,15">/28</option>
<option value="/27,31">/27</option>
<option value="/26,63">/26</option>
<option value="/25,127">/25</option>
<option value="/24,253">/24</option>
<option value="/23,511">/23</option>
<option value="/22,1023">/22</option>
<option value="/21,2047">/21</option>
<option value="/20,4095">/20</option>
</select>
</td>
<td><input class="form-control" type="text" name="description" size="40"></td>
</tr>
</tbody>
</table>
<div class="col-lg-4">
<BR>
<input type="submit" class="btn btn-primary" value="Add Subnet">
</div>
</div>
</div>
</div>
</div> <!-- End container-fluid-->
</div><!--End content-wrapper-->
<!--Start Back To Top Button-->
<a href="javaScript:void();" class="back-to-top"><i class="fa fa-angle-double-up"></i> </a>
<!--End Back To Top Button-->
<!--Start footer-->
<footer class="footer">
<div class="container">
<div class="text-center">
</div>
</div>
</footer>
<!--End footer-->
</div><!--End wrapper-->
<!-- Bootstrap core JavaScript-->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<!-- simplebar js -->
<script src="assets/plugins/simplebar/js/simplebar.js"></script>
<!-- sidebar-menu js -->
<script src="assets/js/sidebar-menu.js"></script>
<!-- Custom scripts -->
<script src="assets/js/app-script.js"></script>
</body>
</html>
<% objConn.Close %>