Example #1
0
function bounty_cmp($a, $b)
{
    if (converted_value($a["bounty"]) < converted_value($b["bounty"])) {
        return 1;
    }
    if (converted_value($a["bounty"]) > converted_value($b["bounty"])) {
        return -1;
    }
    return 0;
}
Example #2
0
if (!empty($projinfo['funding_goal'])) {
    ?>
<div id="thermometer">
    <div>
        <h1>Goal funding:</h1>
        <a href="setvote.php?type=funding&amp;vote=more&amp;id=<?php 
    echo $id . '&amp;tab=' . urlencode($_REQUEST['tab']);
    ?>
" title="Vote for higher goal funding">More</a>
        <a href="setvote.php?type=funding&amp;vote=less&amp;id=<?php 
    echo $id . '&amp;tab=' . urlencode($_REQUEST['tab']);
    ?>
" title="Vote for lower goal funding">Less</a>
    </div>
    <div><img src="thermo.php?p=<?php 
    echo converted_value($projinfo['bounty']) / converted_value($projinfo['funding_goal']) . '&amp;t=' . converted_value($projinfo['funding_goal']) . $GLOBALS['pref_currency'];
    ?>
" /></div>
</div>
<?php 
} else {
    if ($projinfo['creator'] == $GLOBALS['username']) {
        ?>
<div id="thermometer">
    <div>
        <h1>Goal funding:</h1>
        Initial amount
    </div>
    <div>
        <form method="post">
            <?php 
Example #3
0
    <tr>
        <th width="0%">&nbsp;</th><th align=left width="100%">Project / Service</th><th align=right width="0%">Monthly Amount*</th>
    </tr>
<?php 
include_once "formattext.php";
$row = -1;
$totalsubscription = 0;
$reservedeposit = converted_value($memberinfo["subscription_amount"]);
foreach ($myprojects as $myproject) {
    $row++;
    if ($row % 2 == 0) {
        $background = "class=oddrow";
    } else {
        $background = '';
    }
    $amount = converted_value($subscriptions[$myproject["id"]]["amount"]);
    $reservedeposit -= $amount;
    if ($reservedeposit < 0) {
        $reservedeposit = 0;
    }
    $totalsubscription += $amount;
    ?>
    <tr <?php 
    echo $background;
    ?>
>
        <td valign=top width="0%"><img class=arrow id="proj-<?php 
    echo $myproject["id"];
    ?>
-arrow" src="arrow-right.gif" onClick="folder('proj-<?php 
    echo $myproject["id"];