<table cellpadding="0" cellspacing="0" class="forumlist">
                    <tfoot>
                    <tr>
                        <td colspan="3"><?php 
    echo $pagination->renderPaginate('/forum/search_topics.php?s=' . $keyword . '&orderby=' . $orderBy . '&', $results['total']);
    ?>
</td>
                    </tr>
                    </tfoot>
                    <tbody>
                    <?php 
    foreach ($results['topics'] as $row) {
        ?>
                    <tr>
                        <td <?php 
        echo !BuckysForumTopic::isVoted($row['topicID']) ? 'class="post-votes"' : 'class="post-votes voted votedStatus1" title="' . MSG_ALREADY_CASTED_A_VOTE . '"';
        ?>
>
                            <a href="#" class="thumb-up" data-type='topic' data-id="<?php 
        echo $row['topicID'];
        ?>
"
                                data-hashed="<?php 
        echo buckys_encrypt_id($row['topicID']);
        ?>
">
                                <?php 
        if ($row['votes'] > 0) {
            echo '+';
        }
        echo $row['votes'];