Created
February 17, 2011 08:45
-
-
Save lizheming/831320 to your computer and use it in GitHub Desktop.
last_entry的评论样式修改
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
<ul id="reply_contents_{$last_entry['id']}"> | |
<!--{if ($SQL->GetNumRows($last_entry_reply) > 0)}--> | |
<!--{while ($message = $SQL->FetchArray($last_entry_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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment