Make the media admin block look a little nicer

This commit is contained in:
Matthew Barbour 2019-06-26 23:13:15 -05:00 committed by matthew
parent 8638a16694
commit d2d6c433e6

View File

@ -8,13 +8,14 @@ class MediaTheme extends Themelet
$html = "Use this to force scanning for media properties."; $html = "Use this to force scanning for media properties.";
$html .= make_form(make_link("admin/media_rescan")); $html .= make_form(make_link("admin/media_rescan"));
$html .= "<select name='media_rescan_type'><option value=''>All</option>"; $html .= "<table class='form'>";
$html .= "<tr><th>Image Type</th><td><select name='media_rescan_type'><option value=''>All</option>";
foreach ($types as $type) { foreach ($types as $type) {
$html .= "<option value='".$type["ext"]."'>".$type["ext"]." (".$type["count"].")</option>"; $html .= "<option value='".$type["ext"]."'>".$type["ext"]." (".$type["count"].")</option>";
} }
$html .= "</select><br/>"; $html .= "</select></td></tr>";
$html .= "<input type='submit' value='Scan Media Information'>"; $html .= "<tr><td colspan='2'><input type='submit' value='Scan Media Information'></td></tr>";
$html .= "</form>\n"; $html .= "</table></form>\n";
$page->add_block(new Block("Media Tools", $html)); $page->add_block(new Block("Media Tools", $html));
} }