Пример #1
0
function get_info_attribution($id)
{
    // retourne le code html des informations de l'attribution
    $retour = "";
    $start = "<tr class='mh_tdtitre' align='center'><td class='mh_tdpage'>";
    $end = "</td></tr>";
    $dom = get_dom();
    $attribution = $dom->getElementsByTagName("attrib")->item($id);
    $retour .= $start . "<h3>" . utf8_decode(stripslashes($attribution->getAttribute("name"))) . " par " . utf8_decode(stripslashes($attribution->getAttribute("pseudo"))) . " le " . $attribution->getAttribute("date") . "</h3>" . $end;
    $retour .= $start . get_participants($attribution) . $end;
    $retour .= $start . "<h3>Résutalt du jet : " . $attribution->getAttribute("random") . "</h3>" . $end;
    $retour .= $start . "<h3>Vainqueur : " . utf8_decode(get_winner($attribution)) . "</h3>" . $end;
    return $retour;
}
Пример #2
0
                            <div id="progress-bar"></div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="left">
                            <i class="fa fa-clock-o fa-2x"></i>
                            <h4 id="jours-restants"><?php 
date_left();
?>
</h4>
                            <h5>Jours restants</h5>
                        </div>
                        <div class="right">
                            <i class="fa fa-user fa-2x"></i>
                            <h4 id="nb-participants"><?php 
echo get_participants();
?>
</h4>
                            <h5>participants</h5>
                        </div>
                    </div>
                    <div class="row">
                        <a href="javascript:void(0)">
                            <div class="clearfix" id="button">Je participe</div>
                        </a>

                        <form action="#" class="amount" method="post">
                            <h5>Montant de votre don</h5><br/>
                            <input type="number" name="amount" placeholder="10" class="form-control amountNb" min="1"/><br/>
                            <input type="submit" class="form-control"/>
                        </form>