changed search list colors: archive=grey, unpublished=red

This commit is contained in:
following
2013-04-28 20:00:56 +02:00
parent d27d9c3fa5
commit 892a5a9625
2 changed files with 16 additions and 8 deletions

View File

@ -1,17 +1,17 @@
<!--m-->
<tr>
<td width="18" class="{bgcolor}">&nbsp;{position}&nbsp;</td>
<td width="45" class="{bgcolor}">{distance}&nbsp;</td>
<td width="18" class="{bgcolor}" style="{line_style}">&nbsp;{position}&nbsp;</td>
<td width="45" class="{bgcolor}" style="{line_style}">{distance}&nbsp;</td>
<td width="32" class="{bgcolor}" rowspan="2"><img src='lang/de/ocstyle/images/{icon_large}' alt='{cachetype}' title='{cachetype}'></td>
<td width="46" class="{bgcolor}" rowspan="2" nowrap="nowarp">{diffpic}{terrpic}</td>
<td width="448" class="{bgcolor}">{new} <!-- Ocprop >> --><a href="viewcache.php?cacheid={urlencode_cacheid}">{cachename}</a> {string_by} <a href="viewprofile.php?userid={urlencode_userid}">{username}</a><!-- << --></td>
<td width="448" class="{bgcolor}">{new} <!-- Ocprop >> --><a href="viewcache.php?cacheid={urlencode_cacheid}">{cachename}</a> <span style="{line_style}">{string_by}</span> <a href="viewprofile.php?userid={urlencode_userid}" style="{line_style}">{username}</a><!-- << --></td>
<td width="74" class="{bgcolor}" rowspan="2" style="padding: 0px">{oconly}</td>
<td width="110" valign="top" class="{bgcolor}">{logimage1} {logdate1}&nbsp;</td>
</tr>
<!--n-->
<tr>
<td width="25" class="{bgcolor}">&nbsp;</td>
<td width="32" class="{bgcolor}" valign="top">{direction}&nbsp;</td>
<td width="448" class="{bgcolor}" valign="top"><p>{ratpic}{desclangs} {short_desc} &nbsp;</p></td>
<td width="32" class="{bgcolor}" valign="top" style="{line_style}">{direction}&nbsp;</td>
<td width="448" class="{bgcolor}" valign="top"><p style="{line_style}">{ratpic}{desclangs} {short_desc} &nbsp;</p></td>
<td width="110" class="{bgcolor}" valign="top">{lastlogs}&nbsp;</td>
</tr>

View File

@ -226,15 +226,23 @@
// strikeout inavtive caches
// see also res_cachestatus_span.tpl
$line_style = "";
switch ($caches_record['status'])
{
case 2: $status_style = "text-decoration: line-through;"; break;
case 2: $status_style = "text-decoration: line-through;";
break;
case 3:
case 6:
case 7: $status_style = "text-decoration: line-through; color: #c00000;"; break;
default: $status_style = "";
case 7: $status_style = "text-decoration: line-through; color: grey";
$line_style = "color:grey";
break;
case 5: $status_style = "color: #e00000";
$line_style = "";
break;
default: $status_style = $line_style = "";
}
$tmpline = mb_ereg_replace('{line_style}', $line_style, $tmpline);
$tmpline = mb_ereg_replace('{desclangs}', $desclangs, $tmpline);
$tmpline = mb_ereg_replace('{cachename}', '<span style="'.$status_style.'">' . htmlspecialchars($caches_record['name'], ENT_COMPAT, 'UTF-8') . '</span>', $tmpline);
$tmpline = mb_ereg_replace('{urlencode_cacheid}', htmlspecialchars(urlencode($caches_record['cache_id']), ENT_COMPAT, 'UTF-8'), $tmpline);