{combine_css path=$GUESTBOOK_PATH|cat:'admin/template/style.css'}

GuestBook

{footer_script} function highlighComments() { jQuery(".checkComment").each(function() { var parent = jQuery(this).parent('tr'); if (jQuery(this).children("input[type=checkbox]").is(':checked')) { jQuery(parent).addClass('selectedComment'); } else { jQuery(parent).removeClass('selectedComment'); } }); } jQuery(".checkComment").click(function(event) { var checkbox = jQuery(this).children("input[type=checkbox]"); if (event.target.type !== 'checkbox') { jQuery(checkbox).attr('checked', !jQuery(checkbox).is(':checked')); } highlighComments(); }); jQuery("#commentSelectAll").click(function() { jQuery(".checkComment input[type=checkbox]").attr('checked', true); highlighComments(); return false; }); jQuery("#commentSelectNone").click(function() { jQuery(".checkComment input[type=checkbox]").attr('checked', false); highlighComments(); return false; }); jQuery("#commentSelectInvert").click(function() { jQuery(".checkComment input[type=checkbox]").each(function() { jQuery(this).attr('checked', !$(this).is(':checked')); }); highlighComments(); return false; }); {/footer_script} {if !empty($comments)}
{foreach from=$comments item=comment name=comment} {/foreach}

{$comment.AUTHOR} - {$comment.DATE}
{if $comment.WEBSITE}{$comment.WEBSITE_NAME}{/if} {if $comment.RATE}{$comment.STARS}{/if}

{$comment.CONTENT}

{'Select:'|translate} {'All'|translate}, {'None'|translate}, {'Invert'|translate}

{else} {'No pending comment'|translate} {/if}