put stuff in divs

This commit is contained in:
2025-12-19 12:12:16 -08:00
parent 82d6a70a68
commit 02120b78b2
2 changed files with 36 additions and 29 deletions
+22 -18
View File
@@ -9,23 +9,26 @@
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h2>Query GPOs by Group</h2>
This tool allows you to query Group Policy Objects in Active Directory by Restricted Group.<br>
Search is case insensitive and supports partial match. <br>
Once you have the GPO name, you can locate this in the GPO management snap-in and find what OUs it links to.<br><p>
<?php if (isset($_GET['group'])) : ?>
<form action="index.php" method="GET">
<label for="group">Group Name:</label>
<input type="text" id="group" name="group" value="<?php echo htmlspecialchars($_GET['group']); ?>" required>
<button type="submit">Query</button>
</form><p>
<?php else : ?>
<form action="index.php" method="GET">
<label for="group">Group Name:</label>
<input type="text" id="group" name="group" required>
<button type="submit">Query</button>
</form><p>
<?php endif; ?>
<div class="container">
<h2>Query GPOs by Group</h2>
This tool allows you to query Group Policy Objects in Active Directory by Restricted Group.<br>
Search is case insensitive and supports partial match. <br>
Once you have the GPO name, you can locate this in the GPO management snap-in and find what OUs it links to.<br><p>
</div>
<div class="container">
<?php if (isset($_GET['group'])) : ?>
<form action="index.php" method="GET">
<label for="group">Group Name:</label>
<input type="text" id="group" name="group" value="<?php echo htmlspecialchars($_GET['group']); ?>" required>
<button type="submit">Query</button>
</form><p>
<?php else : ?>
<form action="index.php" method="GET">
<label for="group">Group Name:</label>
<input type="text" id="group" name="group" required>
<button type="submit">Query</button>
</form><p>
<?php endif; ?>
<?php
if (isset($_GET['group'])) {
@@ -103,7 +106,8 @@ if (isset($_GET['group'])) {
else {
echo "<p>No group specified.</p>";
}
echo "<p>Source code can be found <a target='_blank' rel='noopener noreferrer' href='https://gitea.matt-cloud.com/matt/gpo_lookup'>here</a>.<p>";
echo "</div>";
//echo "<p>Source code can be found <a target='_blank' rel='noopener noreferrer' href='https://gitea.matt-cloud.com/matt/gpo_lookup'>here</a>.<p>";
?>
</body>
+14 -11
View File
@@ -8,24 +8,27 @@ body {
color: #bdc3c7; /* Dimmer text color */
}
/* unvisited link */
a:link {
color: rgb(184, 44, 44);
}
/* visited link */
a,
a:link,
a:visited {
color: rgb(42, 176, 42);
color: #3498db; /* Default link color (blue) */
text-decoration: none;
transition: color 0.2s ease;
}
/* mouse over link */
/* Visited links (distinct yet in the same palette) */
a:visited {
color: #9b59b6; /* Soft purple */
}
/* Hover state bright, engaging, and contrasting */
a:hover {
color: rgb(154, 84, 119);
color: #1abc9c; /* Turquoisegreen */
}
/* selected link */
/* Active state immediate feedback */
a:active {
color: rgb(96, 96, 196);
color: #e74c3c; /* Warm red */
}
.hidden-info {