|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
<!--<?php
$cname = urlencode($article[cname]);
print <<<EOT
-->
<div class="post">
<div class="title">$article[title]</div>
<div class="postdate">Submitted by <a href="./?action=showuser&id=$article[authorid]">$article[author]</a> on $article[dateline]. <a href="./?cid=$article[cid]&cname=$cname">$article[cname]</a></div><!--
EOT;
if (!$article['allowread']) {print <<<EOT
-->
<div style="padding-bottom:20px;background-color:#fff;margin: 20px 0px;"><form action="./?action=show&id=$article[articleid]" method="post">这篇日志被加密了。请输入密码后查看。<br />密码 <input class="formfield" type="password" name="readpassword" /> <input class="formbutton" type="submit" value="提交" /></form></div>
<!--
EOT;
} else {print <<<EOT
-->
<div class="content">$article[content]</div>
<!--
EOT;
if ($article['image']) {
foreach ($article['image'] as $image) {
if($image[6]){print <<<EOT
--><div class="attach">图片附件(缩略图):<br /><a href="./attachment.php?id=$image[0]" target="_blank"><img src="$image[1]" border="0" alt="大小: $image[2] 尺寸: $image[3] x $image[4] 浏览: $image[5] 次 点击打开新窗口浏览全图" width="$image[3]" height="$image[4]" /></a></div><!--
EOT;
} else {print <<<EOT
--><div class="attach">图片附件:<br /><a href="./attachment.php?id=$image[0]" target="_blank"><img src="$image[1]" border="0" alt="大小: $image[2] 尺寸: $image[3] x $image[4] 浏览: $image[5] 次 点击打开新窗口浏览全图" width="$image[3]" height="$image[4]" /></a></div><!--
EOT;
}}}
if($article[file]){
foreach($article[file] as $file){
if($file){print <<<EOT
--><div class="attach"><b>附件: </b><a href="attachment.php?id=$file[0]" target="_blank">$file[1]</a> ($file[2], 下载次数file[3])</div><!--
EOT;
}}}
if (!empty($article['keywords'])) {
print <<<EOT
--><div class="tags"><b>Tags</b>: $article[tags]</div><!--
EOT;
}
print <<<EOT
-->
</div>
<div id="article-other"><strong>«</strong> <a href="./?action=show&id=$id&goto=previous">上一篇</a> | <a href="./?action=show&id=$id&goto=next">下一篇</a> <strong>»</strong></div>
<!--
EOT;
if ($related_tatol > 0 && $relids != $articleid) {print <<<EOT
-->
<div class="post">
<div class="title"><span style="float:right;padding-bottom: 2px;font-size: 12px;">只显示$options[related_shownum]条记录</span>相关文章</div>
<div class="cmcontent">
<!--
EOT;
foreach($titledb as $key => $title){print <<<EOT
--><a href="./?action=show&id=$title[articleid]">$title[title]</a> (浏览: <font color="#CC0000">$title[views]</font>, 评论: <font color="#CC0000">$title[comments]</font>)<br />
<!--
EOT;
}print <<<EOT
-->
</div>
<div style="height:5px"></div>
</div>
<!--
EOT;
}print <<<EOT
-->
<a name="trackbacks"></a>
<div class="post">
<div class="title"><!--
EOT;
if ($article['trackbacks'] > 0) {print <<<EOT
--><span style="float:right;padding-bottom: 2px;font-size: 12px;"><a href="###" onclick="showhide('tbbody');" title="点击查看所有Trackbacks">$article[trackbacks]条记录</a></span>
<!--
EOT;
}print <<<EOT
-->Trackbacks</div>
<div id="tburl"><!--
EOT;
if ($article['closetrackback']) {print <<<EOT
--><strong>本文因为某种原因此时不允许引用</strong><!--
EOT;
} else {print <<<EOT
-->
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="85" height="20"><a href="###" onclick="sax_getbyid('spanid_$article[articleid]').innerHTML=showtburl('$options[url]',$article[articleid],'utf-8');return false;"><img src="templates/$options[templatename]/utf8.jpg" width="73" height="15" border="0" alt="点击获得Trackback地址,Encode: UTF-8" /></a></td>
<td width="85" height="20"><a href="###" onclick="sax_getbyid('spanid_$article[articleid]').innerHTML=showtburl('$options[url]',$article[articleid],'gbk');return false;"><img src="templates/$options[templatename]/gbk.jpg" width="73" height="15" border="0" alt="点击获得Trackback地址,Encode: GB2312 or GBK" /></a></td>
<td width="85" height="20"><a href="###" onclick="sax_getbyid('spanid_$article[articleid]').innerHTML=showtburl('$options[url]',$article[articleid],'big5');return false;"><img src="templates/$options[templatename]/big5.jpg" width="73" height="15" border="0" alt="点击获得Trackback地址,Encode: BIG5" /></a></td>
</tr>
</table>
<span id="spanid_$article[articleid]"></span>
<!--
EOT;
}print <<<EOT
--></div>
<!--
EOT;
if ($article['trackbacks'] > 0) {print <<<EOT
-->
<div id="tbbody" class="divOFF">
<!--
EOT;
foreach($trackbackdb as $key => $trackback){print <<<EOT
--><div class="tbcontent">标题: <a href="$trackback[url]" target="_blank">$trackback[title]</a><br />
来自: <a href="$trackback[url]" target="_blank">$trackback[blog_name]</a><br />
摘要: $trackback[excerpt]</div>
<div class="tbdate">Tracked on $trackback[dateline] <font color="#000000">#<strong>$trackback[tborderid]</strong></font></div>
<!--
EOT;
}print <<<EOT
--></div>
<!--
EOT;
}print <<<EOT
-->
</div>
<div style="height:5px"></div>
<a name="comment"></a>
<!--
EOT;
if ($article['comments'] > 0) {print <<<EOT
-->
<div class="post">
<div class="title"><span style="FLOAT:right;padding-bottom: 2px;font-size: 12px;">$article[comments]条记录</span>访客评论</div>
<!--
EOT;
foreach($commentdb as $key => $comment){print <<<EOT
--><a name="cm$comment[commentid]"></a><div class="cmcontent" id="comm_$comment[commentid]">$comment[content]</div>
<div class="cmdate">ost by $comment[author] on $comment[dateline] <!--
EOT;
if ($comment['url']) {
print <<<EOT
--><a href="$comment[url]" target="_blank"><img src="templates/$options[templatename]/top_home.gif" width="13" height="12" border="0" alt="访问评论者的主页/博客" /></a> <!--
EOT;
}
print <<<EOT
--><img style="cursor: hand" onclick="addquote('comm_$comment[commentid]','$comment[quoteuser]')" src="templates/$options[templatename]/quote.gif" width="10" height="12" border="0" alt="引用此文发表评论" /> <font color="#000000">#<strong>$comment[cmtorderid]</strong></font></div>
<!--
EOT;
}print <<<EOT
-->
<div id="addnew"></div>
</div>
$multipage
<br />
<!--
EOT;
}
if (!$multipage AND $article['comments'] > 0) { //美观
print <<<EOT
-->
<div style="height:5px"></div>
<!--
EOT;
}
if (!$article['closecomment']) {
print <<<EOT
-->
<a name="addcomment"></a>
<div class="title">发表评论</div>
<form method="post" name="form" id="form" action="post.php" onsubmit="return checkform();">
<input type="hidden" name="articleid" value="$article[articleid]" />
<table border="0" cellpadding="0" cellspacing="0">
<!--
EOT;
if ($loginstat) {
print <<<EOT
-->
<tr>
<td colspan="2" class="formbox">已经登陆为 <b>$_COOKIE[username]</b> [<a href="post.php?action=logout">注销</a>]</td>
</tr>
<!--
EOT;
} else {print <<<EOT
-->
<tr>
<td width="50%" class="formbox">名字(*):<br />
<input name="username" id="username" type="text" size="25" maxlength="20" value="$_COOKIE[comment_username]" class="formfield" /></td>
<td width="50%" class="formbox">密码(游客不需要密码):<br />
<input name="password" id="password" type="password" size="25" maxlength="20" value="" class="formfield" /></td>
</tr>
<tr>
<td colspan="2" class="formbox">主页/博客(必须以http://开头):<br />
<input name="url" id="url" type="text" size="54" maxlength="100" value="$_COOKIE[comment_url]" class="formfield" /></td>
</tr>
<tr>
<td colspan="2" class="formbox">电子邮件:<br />
<input name="email" id="email" type="text" size="54" maxlength="100" value="$_COOKIE[comment_email]" class="formfield" /></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
<tr>
<td colspan="2" class="formbox">评论内容(*):<br />
<textarea name="content" id="content" cols="54" rows="8" class="formfield" onkeydown="ctlent(event);">$_COOKIE[cmcontent]</textarea></td>
</tr>
<!--
EOT;
if ($options['seccode'] && $gd_version) {print <<<EOT
-->
<tr>
<td colspan="2" class="formbox"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="70">验证码(*):</td>
<td width="50"><img src="include/seccode.php" alt="验证码" border="0" /></td>
<td width="70"><input name="clientcode" id="clientcode" type="text" size="6" maxlength="6" value="" class="formfield" /></td>
</tr>
</table></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
<tr>
<td colspan="2" class="formbox"><input type="hidden" name="action" value="addcomment" />
<input type="submit" id="submit" name="submit" class="formbutton" value="提交" />
<input type="button" class="formbutton" onclick="window.location.href='?action=reg'" value="注册" />
<input name="remember" type="checkbox" value="1" checked="checked" />
记住我【Alt+S 或 Ctrl+Enter 快速提交】</td>
</tr>
</table>
</form>
<!--
EOT;
} else {print <<<EOT
--><p align="center"><strong>本文因为某种原因此时不允许访客进行评论</strong></p>
<!--
EOT;
}}
if (!$article['allowread']) {print <<<EOT
--></div><!--
EOT;
}
?> |
|