Make the media admin block look a little nicer
This commit is contained in:
parent
8638a16694
commit
d2d6c433e6
@ -8,13 +8,14 @@ class MediaTheme extends Themelet
|
||||
|
||||
$html = "Use this to force scanning for media properties.";
|
||||
$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) {
|
||||
$html .= "<option value='".$type["ext"]."'>".$type["ext"]." (".$type["count"].")</option>";
|
||||
}
|
||||
$html .= "</select><br/>";
|
||||
$html .= "<input type='submit' value='Scan Media Information'>";
|
||||
$html .= "</form>\n";
|
||||
$html .= "</select></td></tr>";
|
||||
$html .= "<tr><td colspan='2'><input type='submit' value='Scan Media Information'></td></tr>";
|
||||
$html .= "</table></form>\n";
|
||||
$page->add_block(new Block("Media Tools", $html));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user