zebraify reported images table
This commit is contained in:
parent
39bd7a763f
commit
8e2b5d7c1e
@ -15,6 +15,7 @@ class ReportImageTheme extends Themelet {
|
|||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
$h_reportedimages = "";
|
$h_reportedimages = "";
|
||||||
|
$n = 0;
|
||||||
foreach($reports as $report) {
|
foreach($reports as $report) {
|
||||||
$image = $report['image'];
|
$image = $report['image'];
|
||||||
$h_reason = html_escape($report['reason']);
|
$h_reason = html_escape($report['reason']);
|
||||||
@ -35,8 +36,9 @@ class ReportImageTheme extends Themelet {
|
|||||||
ksort($iabbe->parts);
|
ksort($iabbe->parts);
|
||||||
$actions = join("<br>", $iabbe->parts);
|
$actions = join("<br>", $iabbe->parts);
|
||||||
|
|
||||||
|
$oe = ($n++ % 2 == 0) ? "even" : "odd";
|
||||||
$h_reportedimages .= "
|
$h_reportedimages .= "
|
||||||
<tr>
|
<tr class='$oe'>
|
||||||
<td>{$image_link}</td>
|
<td>{$image_link}</td>
|
||||||
<td>Report by $userlink: $h_reason</td>
|
<td>Report by $userlink: $h_reason</td>
|
||||||
<td class='formstretch'>
|
<td class='formstretch'>
|
||||||
@ -53,12 +55,7 @@ class ReportImageTheme extends Themelet {
|
|||||||
|
|
||||||
$thumb_width = $config->get_int("thumb_width");
|
$thumb_width = $config->get_int("thumb_width");
|
||||||
$html = "
|
$html = "
|
||||||
<style>
|
<table id='reportedimage' class='zebra'>
|
||||||
.formstretch FORM INPUT {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<table border='1'>
|
|
||||||
<thead><td width='$thumb_width'>Image</td><td>Reason</td><td width='128'>Action</td></thead>
|
<thead><td width='$thumb_width'>Image</td><td>Reason</td><td width='128'>Action</td></thead>
|
||||||
$h_reportedimages
|
$h_reportedimages
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user