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

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

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

Revision 1.3 by sysadm, Sun Apr 13 11:27:28 2025 UTC Revision 1.5 by sysadm, Tue Apr 15 01:10:48 2025 UTC
# Line 93  function ch_rpp() Line 93  function ch_rpp()
93  </head>  </head>
94  <body>  <body>
95  <center>  <center>
96  <table cols="5" border="0" cellpadding="0" cellspacing="0" width="770">  <table cols="5" border="0" cellpadding="0" cellspacing="0" width="1050" >
97          <tr bgcolor="#d0d3F0" height="20">          <tr bgcolor="#d0d3F0" height="25">
98                  <td width="4%" class="title">状态</td>                  <td width="4%" class="title">状态</td>
99                  <td width="39%" class="title">标题(共<? echo $result_set["data"]["toa"]; ?>篇)</td>                  <td width="39%" class="title">标题(共<? echo $result_set["data"]["toa"]; ?>篇)</td>
100                  <td width="16%" class="title">作者</td>                  <td width="16%" class="title">作者</td>
# Line 102  function ch_rpp() Line 102  function ch_rpp()
102                  <td width="31%" class="title">最后更新 | 回复人</td>                  <td width="31%" class="title">最后更新 | 回复人</td>
103          </tr>          </tr>
104  </table>  </table>
105  <table cols="5" border="0" cellpadding="0" cellspacing="0" width="770">  <table cols="5" border="0" cellpadding="0" cellspacing="0" width="1050">
106  <?  <?
107          $ex = ($result_set["data"]["ex"] > 0 ? 1 : 0);          $ex = ($result_set["data"]["ex"] > 0 ? 1 : 0);
108    
# Line 131  function ch_rpp() Line 131  function ch_rpp()
131                          $status_str .= "<font color=red>x</font>";                          $status_str .= "<font color=red>x</font>";
132                  }                  }
133                                    
134                  $title = split_line(htmlspecialchars($article["title"], ENT_QUOTES | ENT_HTML401, 'UTF-8'), "", 42, 2, "<br />");                  $title = split_line(htmlspecialchars($article["title"], ENT_QUOTES | ENT_HTML401, 'UTF-8'), "", 50, 2, "<br />");
135                  $username = htmlspecialchars($article["username"], ENT_QUOTES | ENT_HTML401, 'UTF-8');                  $username = htmlspecialchars($article["username"], ENT_QUOTES | ENT_HTML401, 'UTF-8');
136                  $nickname = htmlspecialchars($article["nickname"], ENT_QUOTES | ENT_HTML401, 'UTF-8');                  $nickname = htmlspecialchars($article["nickname"], ENT_QUOTES | ENT_HTML401, 'UTF-8');
137                    $user_viewable = (isset($result_set["data"]["author_list"][$article["uid"]]));
138                  $last_reply_username = htmlspecialchars($article["last_reply_username"], ENT_QUOTES | ENT_HTML401, 'UTF-8');                  $last_reply_username = htmlspecialchars($article["last_reply_username"], ENT_QUOTES | ENT_HTML401, 'UTF-8');
139                  $last_reply_nickname = htmlspecialchars($article["last_reply_nickname"], ENT_QUOTES | ENT_HTML401, 'UTF-8');                  $last_reply_nickname = htmlspecialchars($article["last_reply_nickname"], ENT_QUOTES | ENT_HTML401, 'UTF-8');
140                    $last_reply_user_viewable = (isset($result_set["data"]["author_list"][$article["last_reply_uid"]]));
141                  $class_title = htmlspecialchars($article["class_title"], ENT_QUOTES | ENT_HTML401, 'UTF-8');                  $class_title = htmlspecialchars($article["class_title"], ENT_QUOTES | ENT_HTML401, 'UTF-8');
142                  $section_title = htmlspecialchars($article["section_title"], ENT_QUOTES | ENT_HTML401, 'UTF-8');                  $section_title = htmlspecialchars($article["section_title"], ENT_QUOTES | ENT_HTML401, 'UTF-8');
143  ?>  ?>
# Line 149  function ch_rpp() Line 151  function ch_rpp()
151                  <font color="green"><? echo $class_title; ?>&gt;&gt;</font>                  <font color="green"><? echo $class_title; ?>&gt;&gt;</font>
152                  <font color="green"><? echo $section_title; ?>&gt;&gt;</font><br />                  <font color="green"><? echo $section_title; ?>&gt;&gt;</font><br />
153    
154                          <a class="s0" href="view_article.php?id=<? echo $article["aid"]; ?>&ex=<? echo $ex; ?>&trash=<? echo ($result_set["data"]["trash"] ? 1 : 0); ?>#<? echo $article["aid"]; ?>" target=_blank title="发表时间:<? echo $article["sub_dt"]->format("Y-m-d H:i") . "\n"; ?>文章长度:<? echo $article["length"]; ?>字">                          <a class="s0" href="view_article.php?id=<? echo $article["aid"]; ?>&ex=<? echo $ex; ?>&trash=<? echo ($result_set["data"]["trash"] ? 1 : 0); ?>#<? echo $article["aid"]; ?>" target=_blank title="发表时间:<? echo $article["sub_dt"]->format("Y-m-d H:i:s") . "\n"; ?>文章长度:<? echo $article["length"]; ?>字">
155                                  <img src="images/expression/<? echo $article["icon"]; ?>.gif" border="0">                                  <img src="images/expression/<? echo $article["icon"]; ?>.gif" border="0">
156  <?  <?
157                  if ($article["transship"])                  if ($article["transship"])
# Line 164  function ch_rpp() Line 166  function ch_rpp()
166                          <? echo $status_str; ?>                          <? echo $status_str; ?>
167                  </td>                  </td>
168                  <td width="16%" class="dark">                  <td width="16%" class="dark">
169                          <a class="s2" href="show_profile.php?uid=<? echo $article["uid"]; ?>" title="<? echo $article["username"]; ?>" target=_blank>                          <a class="s2" href="show_profile.php?uid=<? echo $article["uid"]; ?>" onclick='return <? echo ($user_viewable ? "true" : "false"); ?>' title="<? echo $article["username"]; ?>" target=_blank>
170                                  <? echo $article["nickname"]; ?>                                  <? echo $article["nickname"]; ?>
171                          </a>                          </a>
172                  </td>                  </td>
173                  <td width="10%" class="favor">                  <td width="10%" class="favor">
174                          <? echo $article["reply_count"]; ?>/<? echo $article["view_count"]; ?>                          <? echo $article["reply_count"]; ?>/<? echo $article["view_count"]; ?>
175                  </td>                  </td>
176                  <td width="31%" class="reply"><? echo $article["last_reply_dt"]->format("Y-m-d H:i"); ?> |                  <td width="31%" class="reply"><? echo $article["last_reply_dt"]->format("Y-m-d H:i:s"); ?> |
177  <?  <?
178                  if ($article["reply_count"] > 0)                  if ($article["reply_count"] > 0)
179                  {                  {
180  ?>  ?>
181                          <a class="s2" href="show_profile.php?uid=<? echo $article["last_reply_uid"]; ?>" title="<? echo $article["last_reply_username"]; ?>" target=_blank>                          <a class="s2" href="show_profile.php?uid=<? echo $article["last_reply_uid"]; ?>" onclick='return <? echo ($last_reply_user_viewable ? "true" : "false"); ?>' title="<? echo $article["last_reply_username"]; ?>" target=_blank>
182                                  <? echo $article["last_reply_nickname"]; ?>                                  <? echo $article["last_reply_nickname"]; ?>
183                          </a>                          </a>
184  <?  <?
# Line 194  function ch_rpp() Line 196  function ch_rpp()
196          }          }
197  ?>  ?>
198  </table>  </table>
199  <table cols="3" border="0" cellpadding="0" cellspacing="0" width="770">  <table cols="3" border="0" cellpadding="0" cellspacing="0" width="1050">
200          <tr bgcolor="#d0d3F0" height="5">          <tr bgcolor="#d0d3F0" height="5">
201                  <td colspan="3"></td>                  <td colspan="3"></td>
202          </tr>          </tr>
# Line 228  function ch_rpp() Line 230  function ch_rpp()
230          if ($result_set["data"]["page"] > 1)          if ($result_set["data"]["page"] > 1)
231          {          {
232  ?>  ?>
233  <a class="s8" title="首页" href="" onclick="return ch_page(1);"><font face=webdings>9</font></a>  <a class="s8" title="首页" href="" onclick="return ch_page(1);">|◀</a>
234  <a class="s8" title="上一页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page"] - 1); ?>);"><font face=webdings>7</font></a>  <a class="s8" title="上一页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page"] - 1); ?>);">◀</a>
235  <?  <?
236          }          }
237          else          else
238          {          {
239  ?>  ?>
240  <font face=webdings>9 7</font>  |◀ ◀
241  <?  <?
242          }          }
243  ?>  ?>
# Line 244  function ch_rpp() Line 246  function ch_rpp()
246          if ($result_set["data"]["page"] < $result_set["data"]["page_total"])          if ($result_set["data"]["page"] < $result_set["data"]["page_total"])
247          {          {
248  ?>  ?>
249  <a class="s8" title="下一页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page"] + 1); ?>);"><font face=webdings>8</font></a>  <a class="s8" title="下一页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page"] + 1); ?>);">▶</a>
250  <a class="s8" title="尾页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page_total"]); ?>);"><font face=webdings>:</font></a>  <a class="s8" title="尾页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page_total"]); ?>);">▶|</a>
251  <?  <?
252          }          }
253          else          else
254          {          {
255  ?>  ?>
256  <font face=webdings>8 :</font>  ▶ ▶|
257  <?  <?
258          }          }
259  ?>  ?>


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

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