forked from science-ation/science-ation
Fix identification of externally downloaded awards in the awards list
This commit is contained in:
parent
71509f3f16
commit
b2c6729def
@ -1011,7 +1011,11 @@ if(mysql_num_rows($q))
|
|||||||
|
|
||||||
$hasexternal=false;
|
$hasexternal=false;
|
||||||
while($r=mysql_fetch_object($q)) {
|
while($r=mysql_fetch_object($q)) {
|
||||||
$cl = ($r->award_source_fairs_id) ? externalaward : '';
|
if($r->award_source_fairs_id) {
|
||||||
|
$cl="externalaward";
|
||||||
|
$hasexternal=true;
|
||||||
|
}
|
||||||
|
else $cl="";
|
||||||
$eh = "style=\"cursor:pointer;\" onclick=\"popup_editor({$r->id},'');\"";
|
$eh = "style=\"cursor:pointer;\" onclick=\"popup_editor({$r->id},'');\"";
|
||||||
echo "<tr class=\"$cl awardlist_tr\" id=\"{$r->id}\" >\n";
|
echo "<tr class=\"$cl awardlist_tr\" id=\"{$r->id}\" >\n";
|
||||||
echo " <td id=\"awardlist_order_{$r->id}\" class=\"drag_handle\" style=\"cursor:move; text-align:right;\">{$r->order}</td>\n";
|
echo " <td id=\"awardlist_order_{$r->id}\" class=\"drag_handle\" style=\"cursor:move; text-align:right;\">{$r->order}</td>\n";
|
||||||
|
@ -246,8 +246,8 @@ hr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tr.externalaward {
|
tr.externalaward {
|
||||||
background-color: #CCCCDD;
|
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
color: #0000AA;
|
||||||
}
|
}
|
||||||
|
|
||||||
.adminconfigtable {
|
.adminconfigtable {
|
||||||
|
@ -246,8 +246,8 @@ hr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tr.externalaward {
|
tr.externalaward {
|
||||||
background-color: #CCCCDD;
|
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
color: #0000AA;
|
||||||
}
|
}
|
||||||
|
|
||||||
.adminconfigtable {
|
.adminconfigtable {
|
||||||
|
Loading…
Reference in New Issue
Block a user