Location: PHPKode > projects > php Blogger > themes/classic/post.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
{config_load file="languages/lang_$language.conf"} 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="{$sitepath}/themes/{$themes}/styles/post.css" />
<link rel="alternate" type="application/atom+xml" title="{$sitetitle}" href="{$sitepath}/rss.php" />
<title>{foreach from=$comment item=z}{$z.texty}: {$z.amess|truncate:48}{/foreach} - {$sitetitle}</title>
<script type="text/javascript" src="{$sitepath}/scripts/jquery-1.4.2.js"></script>
<script type="text/javascript" src="{$sitepath}/scripts/ui/jquery.effects.core.js"></script>
<script type="text/javascript" src="{$sitepath}/scripts/ui/jquery.effects.explode.js"></script>
<script type="text/javascript" src="{$sitepath}/scripts/ui/jquery.effects.slide.js"></script>
<script type="text/javascript" src="{$sitepath}/scripts/ui/jquery.effects.blind.js"></script>
<script type="text/javascript">
$(function() {
function runEffect() {
var selectedEffect = 'explode';
var options = {};
$( "#effect" ).hide( selectedEffect, options, 1000, callback );
};
function callback() {
setTimeout(function() {
$( "#effect" ).removeAttr( "style" ).hide().slideDown();
}, 1000 );
};
$("#start").click(function() {
runEffect();
return false;
});
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$("a.sendName").click(function(){
var comrev = $("#comrev").val();
var incuser = $("#incuser").val();
var incimage = $("#incimage").val();
var amess = $("#amess").val();
$.post("{$sitepath}/comment.php", {literal}{comrev: comrev, incuser: incuser, incimage: incimage, amess: amess}{/literal},
function(data){
$("#loadName").html(data).slideDown("slow");
$("#update").fadeIn("slow");
$('#amess').val('');
$('#amess').focus();
});
});
});
</script>
</head>
<body>
<div id="wrapper">
<a id="section"></a>
{include file='themes/classic/header.php'}
<div id="main">
<div class="float">
<div class="columns">
<div id="lefty">
{foreach from=$comment item=m}
<li class="hentry"> 
<span class="thumb"><img class="imm" src="{$sitepath}/maxthumb/{$m.imgs}" height="50px" width="50px" border="0" /></span>  
<span class="status-body">
{if $rewritemod eq 2}
<a href="{$sitepath}/{$m.texty}"><span class="linky">{$m.texty}</span></a>
{/if}
{if $rewritemod eq 1}
<a href="{$sitepath}/profile.php?cid={$m.texty}"><span class="linky">{$m.texty}</span></a>
{/if}
<br />
<span class="entry-content">
{$m.amess|intergrate}
</span>
<div id="timeand">{$m.date|date_format:"%A, %B %e, %Y, %H:%M:%S"} - 
{if $rewritemod eq 2}
<a href="{$sitepath}/status/{$m.commid}">comments [{$m.nocomm}]</a>  - views: [{$m.views}]
{/if}
{if $rewritemod eq 1}
<a href="{$sitepath}/post.php?id={$m.commid}">comments [{$m.nocomm}]</a>  - views: [{$m.views}]
{/if}
</div>
</span>
</li>
{/foreach}
<br />
{nocache}
{if $smarty.session.logged_in|default eq true && $smarty.session.INC_USER_NAME|default eq true}
<div id="effect">
<input type="hidden" name="comrev" id="comrev" value="{$smarty.get.id}" />
<input type="hidden" name="incuser" id="incuser" value="{$smarty.session.INC_USER_NAME}" />
<input type="hidden" name="incimage" id="incimage" value="{$smarty.session.INC_USER_THUMB}" /> 
<textarea name="amess" class="target" id="amess"></textarea><br />
<div id="above">
<div id="hatitle">Comments</div>
<a style="align:center;text-decoration:none" href="javascript:submit();" id="start" class="sendName">Comment</a>
</div>
</div>
{else}
{/if}
{/nocache}
<div id="loadName">
{include file="themes/$themes/line.php"}
</div>
</div>
<div id="righty">
<div id="intro">
{if $adsoffon eq 2}
<center>
{$sensedown}
</center>
{/if}
</div>
<div id="intro">
</div>
</div></div></div></div>
Return current item: php Blogger