changed search list colors: archive=grey, unpublished=red
This commit is contained in:
@ -1,17 +1,17 @@
|
||||
<!--m-->
|
||||
<tr>
|
||||
<td width="18" class="{bgcolor}"> {position} </td>
|
||||
<td width="45" class="{bgcolor}">{distance} </td>
|
||||
<td width="18" class="{bgcolor}" style="{line_style}"> {position} </td>
|
||||
<td width="45" class="{bgcolor}" style="{line_style}">{distance} </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} </td>
|
||||
</tr>
|
||||
<!--n-->
|
||||
<tr>
|
||||
<td width="25" class="{bgcolor}"> </td>
|
||||
<td width="32" class="{bgcolor}" valign="top">{direction} </td>
|
||||
<td width="448" class="{bgcolor}" valign="top"><p>{ratpic}{desclangs} {short_desc} </p></td>
|
||||
<td width="32" class="{bgcolor}" valign="top" style="{line_style}">{direction} </td>
|
||||
<td width="448" class="{bgcolor}" valign="top"><p style="{line_style}">{ratpic}{desclangs} {short_desc} </p></td>
|
||||
<td width="110" class="{bgcolor}" valign="top">{lastlogs} </td>
|
||||
</tr>
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user