/[LeafOK_CVS]/fenglin/bbs/themes/default/view_article.view.php
ViewVC logotype

Diff of /fenglin/bbs/themes/default/view_article.view.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 by sysadm, Tue Apr 15 11:22:54 2025 UTC Revision 1.13 by sysadm, Wed Apr 23 05:03:57 2025 UTC
# Line 1  Line 1 
1  <?  <?php
2          // Prevent load standalone          // Prevent load standalone
3          if (!isset($result_set))          if (!isset($result_set))
4          {          {
# Line 41  TD.content_deleted Line 41  TD.content_deleted
41          text-decoration: line-through;          text-decoration: line-through;
42  }  }
43  </style>  </style>
 <script type="text/javascript" src="/js/nw_open.js"></script>  
44  <script type="text/javascript" src="../js/img_adjust.js"></script>  <script type="text/javascript" src="../js/img_adjust.js"></script>
45  <script src="../js/polyfill.min.js"></script>  <script src="../js/polyfill.min.js"></script>
46  <script src="../js/axios.min.js"></script>  <script src="../js/axios.min.js"></script>
# Line 111  function upload_del(id) Line 110  function upload_del(id)
110  function article_op(op_type, id, set, confirm = false)  function article_op(op_type, id, set, confirm = false)
111  {  {
112          var opService = new Map([          var opService = new Map([
113                  ["delete", "delete.php"],                  ["delete", "article_service_del.php"],
114                  ["restore", "restore.php"],                  ["restore", "restore.php"],
115                  ["excerption", "set_excerption.php"],                  ["excerption", "set_excerption.php"],
116                  ["ontop", "set_ontop.php"],                  ["ontop", "set_ontop.php"],
# Line 361  window.addEventListener("load", () => { Line 360  window.addEventListener("load", () => {
360                  if ($_SESSION["BBS_priv"]->checkpriv(0, S_MSG) && $_SESSION["BBS_uid"] != $article["uid"])                  if ($_SESSION["BBS_priv"]->checkpriv(0, S_MSG) && $_SESSION["BBS_uid"] != $article["uid"])
361                  {                  {
362  ?>  ?>
363                                          <img src="images/mail.gif" width="16" height="16"><a class="s4" href="" onclick="return NW_open('send_msg.php?uid=<? echo $article["uid"]; ?>', 'send_msg', 500, 300);" title="给作者发消息">消息</a>                                          <img src="images/mail.gif" width="16" height="16"><a class="s4" href="read_msg.php?sent=1&uid=<? echo $article["uid"]; ?>" target=_blank title="给作者发消息">消息</a>
364  <?  <?
365                  }                  }
366                  if ($article["visible"])                  if ($article["visible"])
# Line 447  window.addEventListener("load", () => { Line 446  window.addEventListener("load", () => {
446                          </tr>                          </tr>
447                          <tr>                          <tr>
448                                  <td align="center">                                  <td align="center">
449                                          昵称:&nbsp;<span style="color:#909090;"><? echo htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); ?></span>                                          昵称:&nbsp;<span style="color: #909090;"><? echo htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); ?></span>
450                                  </td>                                  </td>
451                                  <td class="body">                                  <td class="body">
452                                          <span style="color:#606060;">来自:</span>&nbsp;<span style="color:#909090; "><? echo $article["sub_ip"]; ?></span>                                          <span style="color:#606060;">来自:</span>&nbsp;<span style="color: #909090; "><? echo $article["sub_ip"]; ?></span>
453                                  </td>                                  </td>
454                                  <td>                                  <td>
455                                  </td>                                  </td>
# Line 460  window.addEventListener("load", () => { Line 459  window.addEventListener("load", () => {
459                                          经验值:&nbsp;<span style="color:red;"><? echo $article["exp"]; ?></span>                                          经验值:&nbsp;<span style="color:red;"><? echo $article["exp"]; ?></span>
460                                  </td>                                  </td>
461                                  <td class="body">                                  <td class="body">
462                                          <span style="color:#606060;">发贴时间:</span>&nbsp;<span style="color:#909090; "><? echo $article["sub_dt"]->format("Y年m月d日 H:i:s (\U\T\C P)"); ?></span>                                          <span style="color:#606060;">发贴时间:</span>&nbsp;<span style="color: #909090; "><? echo $article["sub_dt"]->format("Y年m月d日 H:i:s (\U\T\C P)"); ?></span>
463                                  </td>                                  </td>
464                                  <td>                                  <td>
465                                  </td>                                  </td>
466                          </tr>                          </tr>
467                          <tr>                          <tr>
468                                  <td align="center">                                  <td align="center">
469                                          等级:&nbsp;<span style="color:#909090;"><? echo user_level($article["exp"]); ?></span>                                          等级:&nbsp;<span style="color: #909090;"><? echo user_level($article["exp"]); ?></span>
470                                  </td>                                  </td>
471                                  <td class="body">                                  <td class="body">
472                                          <span style="color:#606060;">长度:</span>&nbsp;<span style="color:#909090; "><? echo $article["length"]; ?>字</span>                                          <span style="color:#606060;">长度:</span>&nbsp;<span style="color: #909090; "><? echo $article["length"]; ?>字</span>
473                                  </td>                                  </td>
474                                  <td>                                  <td>
475                                  </td>                                  </td>
# Line 478  window.addEventListener("load", () => { Line 477  window.addEventListener("load", () => {
477                          <tr height="2">                          <tr height="2">
478                                  <td>                                  <td>
479                                  </td>                                  </td>
480                                  <td style="background-color:#909090;">                                  <td style="background-color: #909090;">
481                                  </td>                                  </td>
482                                  <td>                                  <td>
483                                  </td>                                  </td>
# Line 488  window.addEventListener("load", () => { Line 487  window.addEventListener("load", () => {
487                                          <img src="<? echo $article["photo_path"]; ?>" border="0">                                          <img src="<? echo $article["photo_path"]; ?>" border="0">
488                                  </td>                                  </td>
489                                  <td id="content_<? echo $article["aid"]; ?>" class="<? echo ($article["visible"] ? "content_normal" : "content_deleted"); ?>">                                  <td id="content_<? echo $article["aid"]; ?>" class="<? echo ($article["visible"] ? "content_normal" : "content_deleted"); ?>">
490                                          <? echo LML(htmlspecialchars((isset($article["content"]) ? $article["content"] : ""), ENT_HTML401, 'UTF-8'), true, true, 80); ?>                                          <pre><? echo LML(htmlspecialchars((isset($article["content"]) ? $article["content"] : ""), ENT_HTML401, 'UTF-8'), true, true, 80); ?></pre>
491                                  </td>                                  </td>
492                                  <td>                                  <td>
493                                  </td>                                  </td>
# Line 556  window.addEventListener("load", () => { Line 555  window.addEventListener("load", () => {
555                                  </td>                                  </td>
556                          </tr>                          </tr>
557                          <tr>                          <tr>
558                                  <td width="40%" style="color:#909090">                                  <td width="40%" style="color: #909090">
559                                  <form action="view_article.php" method="get" id="change_page" name="change_page">                                  <form action="view_article.php" method="get" id="change_page" name="change_page">
560                                          <input type="hidden" id="id" name="id" value="<? echo $result_set["data"]["id"]; ?>">                                          <input type="hidden" id="id" name="id" value="<? echo $result_set["data"]["id"]; ?>">
561                                          <input type="hidden" id="ex" name="ex" value="<? echo $result_set["data"]["ex"]; ?>">                                          <input type="hidden" id="ex" name="ex" value="<? echo $result_set["data"]["ex"]; ?>">


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1