コード例 #1
0
ファイル: topic.php プロジェクト: TEJATJ/BITSQ
                    echo "0";
                } else {
                    echo $d->countot;
                }
                ?>
 />
				<span class="d"><a id="link" <?php 
                if (upvoted($user_id, $topicSel->id, $reply->id)) {
                    echo 'onclick="addLikes(' . $reply->id . ',\'downvote\',' . $topicSel->id . ');"';
                } else {
                    echo 'onclick="addLikes(' . $reply->id . ',\'upvote\',' . $topicSel->id . ');"';
                }
                ?>
  class="upvotes upvoteborder" >
				<span class="result"><?php 
                if (upvoted($user_id, $topicSel->id, $reply->id)) {
                    echo 'Upvoted';
                } else {
                    echo 'Upvote';
                }
                ?>
 | <?php 
                $d = getUpVoteCount($reply->id);
                echo $d->countot;
                ?>
</span></a></span></span>
				<?php 
            }
            ?>
				<span id="downvoteReply-<?php 
            echo $reply->id;
コード例 #2
0
ファイル: topics.php プロジェクト: TEJATJ/BITSQ
                echo "0";
            } else {
                echo $d->countot;
            }
            ?>
 />
				<span class="dTopic"><a id="linkTopic" <?php 
            if (upvoted($user_id, $topic->id, 0)) {
                echo 'onclick="addLikesTopic(0,\'downvote\',' . $topic->id . ');"';
            } else {
                echo 'onclick="addLikesTopic(0,\'upvote\',' . $topic->id . ');"';
            }
            ?>
  class="upvotes upvoteborder" >
				<span class="resultTopic"><?php 
            if (upvoted($user_id, $topic->id, 0)) {
                echo 'Upvoted';
            } else {
                echo 'Upvote';
            }
            ?>
 | <?php 
            $d = getUpVoteCountTopic($topic->id);
            echo $d->countot;
            ?>
</span></a></span></span>
				<?php 
        }
        ?>
				<span id="downvoteTopic-<?php 
        echo $topic->id;