Created
February 17, 2011 09:03
-
-
Save lizheming/831345 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{template header} | |
<style type="text/css"> | |
@import 'css/jquery.lightbox.css'; | |
</style> | |
<script type="text/javascript" src="javascript/jquery.lightbox.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
$('p.image a').lightBox(); | |
}); | |
</script> | |
<div id="main"> | |
<div class="entry view" id="entry_content_{$entry['id']}" <!--{if (!$is_guest)}--> ondblclick="editEntry({$entry['id']}, {$entry['prefix']})"<!--{/if}-->> | |
<strong><echo>get_username_by_id($entry['userid'])</echo></strong><echo>get_prefix($entry['prefix'])</echo><span id="entry_html_{$entry['id']}"><echo>Format::ParseBBCode($entry['content']);</echo></span> | |
<!--{if ($entry['picture']['id'])}--> | |
<p class="image"><a href="<echo>get_picture_url($entry['picture']['id'], 'o')" title="<echo>$entry['picture']['filename']</echo>"><img src="<echo>get_picture_url($entry['picture']['id'], 'm')" alt="<echo>$entry['picture']['filename']</echo>" /></a></p> | |
<!--{/if}--> | |
<p style="font: 10px Arial; margin-top: 10px; text-align: right;"> | |
<span class="entry-meta" style="float:left"><echo>Format::Time($entry['time'], 1)</echo> from {$entry['from']}</span> | |
<!--{if ($options['allow_comment'] != 'false')}--><a class="reply" href="#" onclick="$('#reply_content_{$entry['id']}').slideToggle(); return false;">({$entry['reply']['count']})</a><!--{/if}--><a class="permalink" href="?act=view&id={$entry['id']}">Permalink</a><!--{if (!$is_guest)}--><a class="action" href="#" onclick="javascript:if (confirm('<t>确认删除这条日志?')) { window.location = BASE_URL + '?do=delete&id={$entry['id']}&v=<echo>strtoupper(md5(Format::Date(time(), 'd') . $entry['id']))</echo>'; } return false;"><img src="images/delete.png" alt="<t/>删除" /></a><!--{/if}--> | |
</p> | |
<div class="clear"></div> | |
</div> | |
<!--{if ($options['allow_comment'] != 'false')}--> | |
<a name="comments"></a> | |
<div class="reply" id="reply_content_{$entry['id']}"> | |
<ul id="reply_contents_{$entry['id']}"> | |
<!--{if ($SQL->GetNumRows($reply) > 0)}--> | |
<!--{while ($message = $SQL->FetchArray($reply))}--> | |
<php>$ip = explode('.', $message['ip']);</php> | |
<li id="reply_item_{$message['id']}"> | |
<div class="reply_avatar"><img src="<echo>"http://www.gravatar.com/avatar/" . md5( strtolower( trim( $message['email'] ) ) ) . "?d=" . urlencode( "http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=40") . "&s=40";</echo>" alt="" /></div> | |
<!--{if ($message['userid'] > 0)}--><span style="color:red"><echo>get_username_by_id($message['userid'])</echo>:</span><!--{else if ($message['geo'] == 'owner')}--><span style="color:red">博主:</span><!--{else}--><span style="color:#666"><!--{if ($message['nickname'])}--><strong><a href="{$message['url']}" target="_blank">{$message['nickname']}</a></strong> {$message['geo']}<!--{else}-->{$message['geo']} 网友<!--{/if}--> ({$ip[0]}.{$ip[1]}.{$ip[2]}.*):</span><!--{/if}--><br /> | |
<echo>strip_tags($message['message'])</echo> <!--{if ($message['time'] > 0)}--> <span class="time">(<echo>Format::Date($message['time'])</echo>)</span><!--{/if}--> <!--{if (!$is_guest)}-->  <a href="#" onclick="this.innerHTML = '正在处理...'; $.post(BASE_URL + 'httprequest.php?act=deletereply', 'id={$message['id']}', function (data) { if (data == 'done') { $('#reply_item_{$message['id']}').fadeOut('slow'); } else { alert(data); window.location.reload(); } }); return false;">[删]</a><!--{/if}--></li> | |
<!--{/while}--> | |
<!--{else}--> | |
<li style="min-height:10px;">走过路过千万不要错过!</li> | |
<!--{/if}--> | |
</ul> | |
<p> | |
<!--{if ($options['allow_comment'] == 'false')}--> | |
<i>评论功能已关闭.</i> | |
<!--{else}--> | |
<!--{if (!$is_guest)}--> | |
登录身份:<a href="?act=profile"><echo>get_username_by_id($User['id'])</echo></a>. <a href="?act=logout">退出»</a> | |
<!--{else}--> | |
<input type="text" class="content" name="nickname" value="昵称" onblur="if(this.value==''){this.value='昵称';}" onfocus="if(this.value=='昵称'){this.value=''};" onkeydown="if(event.keyCode==13){return false;}" maxlength="10" style="width: 60px; margin: 0 10px 0 0; border-top: 0; border-left: 0; border-right: 0;background: transparent url(../images/name.png) no-repeat scroll left center;" id="reply_nickname_{$entry['id']}" /> | |
<input type="text" class="content" name="email" value="邮箱"onblur="if(this.value==''){this.value='邮箱';}" onfocus="if(this.value=='邮箱'){this.value=''};" onkeydown="if(event.keyCode==13){return false;}" maxlength="50" style="width: 60px; margin: 0 10px 0 0; border-top: 0; border-left: 0; border-right: 0; background: transparent url(../images/mail.png) no-repeat scroll left center;" id="reply_email_{$entry['id']}" /> | |
<input type="text" class="content" name="url" value="网址" onblur="if(this.value==''){this.value='网址';}" onfocus="if(this.value=='网址'){this.value=''};" onkeydown="if(event.keyCode==13){return false;}" maxlength="50" style="width: 60px; margin: 0 10px 0 0; border-top: 0; border-left: 0; border-right: 0; background: transparent url(../images/home.png) no-repeat scroll left center;" id="reply_url_{$entry['id']}" /> | |
<!--{/if}--> | |
<br /> | |
<input type="text" class="content" name="message" maxlength="75" id="reply_message_{$entry['id']}" style="margin-top:5px;"/> <a href="#" onclick="sendReply({$entry['id']}); return false;" class="submit" id="reply_message_{$entry['id']}_submit"><img src="images/btn_send.png" border="0" alt="送出评论" /></a> <span id="reply_loading_{$entry['id']}"></span> | |
<div style="clear:both"></div> | |
<!--{/if}--> | |
</p> | |
</div> | |
<!--{/if}--> | |
<div id="stat"><t>数据统计</t>:<t>24 小时内发布</t><strong>{$stats['24h']}</strong><t>条</t> ... <t>一周内发布</t><strong>{$stats['week']}</strong><t>条</t> ... <t>总发布数</t> <strong>{$stats['total']}</strong></div> | |
</div> | |
{template footer} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment