| 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 |
{ |
{ |
| 495 |
$nickname = htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); |
$nickname = htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); |
| 496 |
$title_f = split_line(htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'), "", 65, 2, "<br />"); |
$title_f = split_line(htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'), "", 65, 2, "<br />"); |
| 497 |
$title_class = ($article["visible"] ? "title_normal" : "title_deleted"); |
$title_class = ($article["visible"] ? "title_normal" : "title_deleted"); |
| 498 |
$content_f = LML(htmlspecialchars($article["content"], ENT_HTML401, 'UTF-8'), true, true, 80); |
$content_f = LML(htmlspecialchars($article["content"], ENT_HTML401, 'UTF-8'), true, 80); |
| 499 |
$content_class = ($article["visible"] ? "content_normal" : "content_deleted"); |
$content_class = ($article["visible"] ? "content_normal" : "content_deleted"); |
| 500 |
|
|
| 501 |
$transship_info = ""; |
$transship_info = ""; |