make wallpaper query work without forms

This commit is contained in:
2023-10-09 08:58:45 -04:00
parent 44d6eb8d45
commit 16cb41ee39
2 changed files with 3 additions and 13 deletions

View File

@ -26,12 +26,8 @@
if (!$res[0]) if (!$res[0])
printf("No Results Found :("); printf("No Results Found :(");
else else
foreach($res[0] as $walls) { foreach($res[0] as $walls)
printf("<form action='/view.php' method='POST'>\n"); printf("<a href='/view.php?w=%s&p=%s'><img id='%s' width=307 height=206 src=/proxy.php?i=%s loading='lazy'></a>", $walls["id"], $walls["purity"], $walls["purity"], $walls["thumbs"]["small"]);
printf("<input type='hidden' name='purity' value='%s'/>\n", $walls["purity"]);
printf("<button name=wall value='%s' data-value='%s'><img id='%s' width=307 height=206 src=/proxy.php?i=%s></button>\n", $walls["path"], $walls["purity"], $walls["purity"], $walls["thumbs"]["small"]);
printf("</form>\n");
}
printf("</div>\n"); printf("</div>\n");
/* page numbers */ /* page numbers */

View File

@ -55,13 +55,7 @@ h1, #header {
text-align: center; text-align: center;
color: #fff; color: #fff;
} }
#wallpapers form { display: inline-block; } #wallpapers img { margin: 5px; }
button[name=wall] {
all: unset;
margin: 3px;
cursor: pointer;
}
#wallmaster { #wallmaster {
width: 100%; width: 100%;