/[LeafOK_CVS]/fenglin/bbs/themes/xml/view_article_xml.view.php
ViewVC logotype

Diff of /fenglin/bbs/themes/xml/view_article_xml.view.php

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

Revision 1.1 by sysadm, Sat Apr 12 12:27:29 2025 UTC Revision 1.3 by sysadm, Wed Apr 23 05:13: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 15  Line 15 
15  ?>  ?>
16  <Topic>  <Topic>
17          <Subject>          <Subject>
18                  <SectionId><? echo $result_set["data"]["sid"]; ?></SectionId>                  <SectionId><?= $result_set["data"]["sid"]; ?></SectionId>
19                  <SectionTitle><? echo $result_set["data"]["section_title"]; ?></SectionTitle>                  <SectionTitle><?= $result_set["data"]["section_title"]; ?></SectionTitle>
20                  <TopicId><? echo $result_set["data"]["id"]; ?></TopicId>                  <TopicId><?= $result_set["data"]["id"]; ?></TopicId>
21                  <TopicTitle><? echo htmlspecialchars($result_set["data"]["title"], ENT_HTML401, 'UTF-8'); ?></TopicTitle>                  <TopicTitle><?= htmlspecialchars($result_set["data"]["title"], ENT_HTML401, 'UTF-8'); ?></TopicTitle>
22          </Subject>          </Subject>
23          <Articles>          <Articles>
24  <?  <?php
25          foreach ($result_set["data"]["articles"] as $article)          foreach ($result_set["data"]["articles"] as $article)
26          {          {
27  ?>  ?>
28                  <Article>                  <Article>
29                          <PostUserId><? echo $article["uid"]; ?></PostUserId>                          <PostUserId><?= $article["uid"]; ?></PostUserId>
30                          <PostUserName><? echo htmlspecialchars($article["username"], ENT_HTML401, 'UTF-8'); ?></PostUserName>                          <PostUserName><?= htmlspecialchars($article["username"], ENT_HTML401, 'UTF-8'); ?></PostUserName>
31                          <PostUserNickName><? echo htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); ?></PostUserNickName>                          <PostUserNickName><?= htmlspecialchars($article["nickname"], ENT_HTML401, 'UTF-8'); ?></PostUserNickName>
32                          <rank><? echo user_level($article["exp"]); ?></rank>                          <rank><?= user_level($article["exp"]); ?></rank>
33                          <credit><? echo $article["exp"]; ?></credit>                          <credit><?= $article["exp"]; ?></credit>
34                          <photo><? echo $article["photo_path"]; ?></photo>                          <photo><?= $article["photo_path"]; ?></photo>
35                          <ArticleId><? echo $article["aid"]; ?></ArticleId>                          <ArticleId><?= $article["aid"]; ?></ArticleId>
36                          <ArticleTitle><? echo htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'); ?></ArticleTitle>                          <ArticleTitle><?= htmlspecialchars($article["title"], ENT_HTML401, 'UTF-8'); ?><? if ($article["transship"]) { ?> [转载]<? } ?></ArticleTitle>
37                          <ExpressionIcon><? echo $article["icon"]; ?></ExpressionIcon>                          <ExpressionIcon><?= $article["icon"]; ?></ExpressionIcon>
38                          <PostDateTime><? echo $article["sub_dt"]->format("Y-m-d H:i:s (\U\T\C P)"); ?></PostDateTime>                          <PostDateTime><?= $article["sub_dt"]->format("Y-m-d H:i:s (\U\T\C P)"); ?></PostDateTime>
39                          <PostIP><? echo $article["sub_ip"]; ?></PostIP>                          <PostIP><?= $article["sub_ip"]; ?></PostIP>
40                          <Content><![CDATA[<? echo LML($article["content"], true, false, 1024); ?>]]></Content>                          <Content><![CDATA[<?= LML($article["content"], true, false, 1024); ?>]]></Content>
41                          <Length><? echo $article["length"]; ?></Length>                          <Length><?= $article["length"]; ?></Length>
42                  </Article>                  </Article>
43  <?  <?php
44          }          }
45  ?>                ?>              
46          </Articles>          </Articles>


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

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