| 187 |
["ontop", "article_service_ontop.php"], |
["ontop", "article_service_ontop.php"], |
| 188 |
["lock", "article_service_lock.php"], |
["lock", "article_service_lock.php"], |
| 189 |
["transship", "article_service_transship.php"], |
["transship", "article_service_transship.php"], |
| 190 |
|
["favorite", "article_service_favor.php"], |
| 191 |
]); |
]); |
| 192 |
|
|
| 193 |
var opNeedRefresh = new Set([ |
var opNeedRefresh = new Set([ |
| 470 |
<a class="s4" id="unset_transship_{$article['aid']}" style="display: none" href=""></a> |
<a class="s4" id="unset_transship_{$article['aid']}" style="display: none" href=""></a> |
| 471 |
HTML; |
HTML; |
| 472 |
} |
} |
| 473 |
|
if ($article["tid"] == 0) |
| 474 |
|
{ |
| 475 |
|
$set_favorite_display = ($result_set["data"]["topic_favorite"] ? "none" : "inline"); |
| 476 |
|
$unset_favorite_display = ($result_set["data"]["topic_favorite"] ? "inline" : "none"); |
| 477 |
|
|
| 478 |
|
$article_ctrl_bar .= <<<HTML |
| 479 |
|
<a class="s4" id="set_favorite_{$article['aid']}" style="display: {$set_favorite_display}" href="" onclick="return article_op('favorite', {$article['aid']}, 1);" title="收藏主题">收藏</a> |
| 480 |
|
<a class="s4" id="unset_favorite_{$article['aid']}" style="display: {$unset_favorite_display}" href="" onclick="return article_op('favorite', {$article['aid']}, 0);" title="取消收藏主题">取消收藏</a> |
| 481 |
|
HTML; |
| 482 |
|
} |
| 483 |
} |
} |
| 484 |
else |
else |
| 485 |
{ |
{ |