Exemplo n.º 1
0
defined('ROOT') or exit('Can\'t Access !');
if (vote::title($aid, 1)) {
    ?>

<form name="voteform" method="post" action="<?php 
    echo url('vote/do');
    ?>
">
    <input type="hidden" name="aid" value="<?php 
    echo $aid;
    ?>
"/>

        <div id="content_vote">
            <?php 
    if (!vote::voted($aid, $user['username'])) {
        ?>
<h5><?php 
        echo lang(vote);
        ?>
:</h5>
            <ul>
                <?php 
        $i = 1;
        while (vote::title($aid, $i)) {
            ?>

                <li>
                   <span class="content-num"> <?php 
            echo $i;
            ?>