Example #1
0
        <!-- Display User main informations -->
        <!--********************************-->
        <div style="height:150px; width:250px; float:left;">
            <div style="font-size:2em; font-weight:bold;"><?php 
echo $user->username;
?>
</div>
            <div>
                <?php 
echo isset($user->province) ? $user->province->name : "";
echo isset($user->city) ? " - " . $user->city->name : "";
echo isset($user->district) ? " - " . $user->district->name : "";
?>
            </div>
            <div><?php 
echo isset($user->birthDate) ? MyFunctions::getAge($user->birthDate) : '';
?>
</div>
            <div style="margin-top:10px;"><?php 
echo MyFunctions::getTruthRankName($user->scoreTruth->score);
?>
</div>
            <div id="progressBarTruth" style="width:100px; height:10px; margin-bottom:10px;"></div>
            <div><?php 
echo MyFunctions::getDareRankName($user->scoreDare->score);
?>
</div>
            <div id="progressBarDare" style="width:100px; height:10px;"></div>
        </div>
        
        <!--****************************-->
Example #2
0
    ?>
" width="64px" height="64px" style="margin:0" /></div>
            <div>
                <div><b><?php 
    echo $row->username;
    ?>
</b></div>
                <div style="font-size:0.9em;">
                    <?php 
    echo isset($row->province) ? $row->province->name : "";
    echo isset($row->city) ? " - " . $row->city->name : "";
    echo isset($row->district) ? " - " . $row->district->name : "";
    ?>
                </div>
                <div><?php 
    echo isset($row->birthDate) ? MyFunctions::getAge($row->birthDate) . " yo" : '';
    ?>
</div>
                <div>Level <?php 
    echo isset($row->level) ? $row->level->level : 0;
    ?>
</div>
            </div>
            <div style="clear:both; width:140px;">
                <div style="width:210px;"><?php 
    echo MyFunctions::getTruthRankName($row->scoreTruth->score);
    ?>
</div>
                <div id="PBT<?php 
    echo $row->idUser;
    ?>
Example #3
0
        <!--********************************-->
        <div style="height:150px; width:250px; float:left;">
            <div style="font-size:2em; font-weight:bold;"><?php 
echo $user->username;
?>
</div>
            <div>
                <?php 
echo isset($user->province) ? $user->province->name : "";
echo isset($user->city) ? " - " . $user->city->name : "";
echo isset($user->district) ? " - " . $user->district->name : "";
?>
            </div>
            <div><?php 
$myFunctions = new MyFunctions();
echo isset($user->birthDate) ? $myFunctions->getAge($user->birthDate) : '';
?>
</div>
            <div style="margin-top:10px;"><?php 
echo MyFunctions::getTruthRankName($user->scoreTruth->score);
?>
</div>
            <div id="progressBarTruth" style="width:100px; height:10px; margin-bottom:10px;"></div>
            <div><?php 
echo MyFunctions::getDareRankName($user->scoreDare->score);
?>
</div>
            <div id="progressBarDare" style="width:100px; height:10px;"></div>
        </div>
        
        <!--****************************-->