コード例 #1
0
<h2>Initial Subproject Funding Goal</h2>
<?php 
echo $GLOBALS['pref_currency'];
?>
 <input name="fundgoal" value="<?php 
echo htmlentities(number_format($fundgoal, 2));
?>
" size="7" />
</td>
<?php 
if ($islead) {
    ?>
<td valign="bottom" width="34%">
<h2>Bounty Allotment</h2>
<input name="allotment" value="0" size=5>&nbsp;% of <?php 
    echo convert_money($parent["bounty"]);
    ?>
</td>
<?php 
}
?>
</tr><tr><td valign="bottom" colspan="<?php 
echo $islead ? 3 : 2;
?>
" width="100%">
<br>
<h2>Subproject Requirements</h2>
<div style="font-size:small">
(Note: Your first paragraph will also be used as the subproject abstract.
Use blank lines to separate paragraphs.)
</div>
コード例 #2
0
ファイル: reserve.php プロジェクト: lobolabs/fossfactory
        $one_currency = $currency;
    }
    if ($num_currencies > 1) {
        ?>
<p>
Your reserve contains funds in <?php 
        echo $num_currencies;
        ?>
 different currencies.
</p>
<p>
The current value in <?php 
        echo htmlentities($currencies[$GLOBALS["pref_currency"]]["name"] . "s");
        ?>
 is approximately <?php 
        echo convert_money($reserve);
        ?>
.
</p>
<?php 
    }
    ?>
<table cellspacing=0 cellpadding=5 id="currency_table">
    <tr><th align=left>Currency</th><th align=right>Amount</th></tr>
<?php 
    foreach ($currencies as $code => $currency) {
        $amount = currency_value($reserve, $code);
        if (!ereg("[1-9]", $amount)) {
            continue;
        }
        ?>
コード例 #3
0
ファイル: index.php プロジェクト: lobolabs/fossfactory
        ?>
        <li>
            <a href="<?php 
        echo projurl($feature["id"]);
        ?>
">
            <h2><?php 
        echo htmlentities($feature["name"]);
        ?>
</h2>
            <p><?php 
        echo htmlentities($feature["abstract"]);
        ?>
</p>
            <h3>Bounty: <em><?php 
        echo convert_money($feature["bounty"]);
        ?>
</em></h3>
            </a>
        </li>
<?php 
        $count++;
        if ($count == 4) {
            break;
        }
    }
    ?>
     </ul>
</div>
<?php 
}
コード例 #4
0
ファイル: browse.php プロジェクト: lobolabs/fossfactory
<nobr>(Approx. <?php 
            echo htmlentities(convert_money($project["bounty"]));
            ?>
)</nobr><?php 
        }
        ?>
                    </p>
                    <a href="<?php 
        echo projurl($project["id"]);
        ?>
">project&nbsp;page</a>
                </div>
            </span></td>
        <td class=lead><?php 
        echo $project['lead'] === '' ? "<i>&lt;none&gt;</i>" : htmlentities($project['lead']);
        ?>
</td>
        <td class=bounty><nobr><?php 
        echo htmlentities(convert_money($project["bounty"]));
        ?>
</nobr></td>
    </tr>
<?php 
    }
    ?>
</table>
<script>
set_showpoor();
</script>
<?php 
}
コード例 #5
0
ファイル: project.php プロジェクト: lobolabs/fossfactory
<a href="supplant.php?id=<?php 
                echo $id;
                ?>
" onClick="return confirm('Are you sure you want to become the\nnew project lead for this project?')">(Become Project Lead)</a>
<?php 
            }
        }
    }
} else {
    print "&nbsp;";
}
?>
</p></div>

<div id=bounty><h1>Bounty: </h1><?php 
echo convert_money($projinfo["bounty"]);
?>
<a href="javascript:folder('sponsor','orange')">(Sponsor Project)</a></div>

<?php 
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']);
コード例 #6
0
ファイル: allot.php プロジェクト: lobolabs/fossfactory
'> %
                </td>
            <?php 
        } else {
            ?>
                <td align=right valign=top>
                <?php 
            echo $subproject['allotment'] / 10;
            ?>
 %
                </td>
            <?php 
        }
        ?>
        <td align=right valign=top><?php 
        echo htmlentities(convert_money($subproject['bounty']));
        ?>
</td>
        <td valign=top><?php 
        echo ereg("^Bug [a-z0-9]*\$", $subproject["name"]) ? formatText(ereg_replace("\n.*", "", $subproject['reqmts'])) : htmlentities($subproject["name"]);
        ?>
</td>
    </tr>
<?php 
    }
    ?>
</tr></table>
<?php 
    if ($GLOBALS['username'] !== '' && $GLOBALS['username'] == $projinfo['lead']) {
        ?>
 
コード例 #7
0
ファイル: subscription.php プロジェクト: lobolabs/fossfactory
    echo $myproject["id"];
    ?>
" size=5 maxLength=10 style="text-align:right;font-size:small" onChange="recalculateTotal()" value="<?php 
    echo format_for_entryfield($amount);
    ?>
"></span></nobr></td>
    </tr>
<?php 
}
$totalsubscription += $reservedeposit;
?>
    <tr class='feerow'>
        <td valign=top width="0%">&nbsp;</td>
        <td valign=top width="100%">Randomly Selected Featured Project</td>
        <td align=right valign=top width="0"><nobr>&nbsp;&nbsp;<span class=oldvalue><?php 
echo htmlentities(convert_money($reservedeposit . $currency["code"]));
?>
</span><span class=newvalue><?php 
echo htmlentities($currency["prefix"]);
?>
 <input name="reserve_deposit" id="dreserve" value="<?php 
echo format_for_entryfield($reservedeposit);
?>
" size=5 maxLength=10 style="text-align:right;font-size:small"></span></nobr></td>
    </tr>
    <tr class='extrarow'>
        <td valign=top width="0%">&nbsp;</td>
        <td valign=top width="100%"><b>Total Monthly Sponsorship Amount</b></td>
        <td align=right valign=top width="0%"><nobr>&nbsp;&nbsp;<b class=oldvalue><?php 
echo format_money($totalsubscription . $currency["code"]);
?>
コード例 #8
0
ファイル: myprojects.php プロジェクト: lobolabs/fossfactory
        ?>
</a>&nbsp;&nbsp;<a href="<?php 
        echo projurl($myproject["id"]);
        ?>
" style="text-decoration:none">[go]</a>
        <div id="proj-<?php 
        echo $myproject["id"];
        ?>
-div" class=folded>
	<p style="font-size:small">
        <b>Project Lead:</b> <?php 
        echo htmlentities($myproject["lead"]);
        ?>
<br>
        <b>Bounty:</b> <?php 
        echo convert_money($myproject["bounty"]);
        ?>
	</p>
        <?php 
        echo formatText(ereg_replace("\n.*", "", $myproject["reqmts"]));
        ?>
<br><br></div></td>
        <td align=right valign=top><nobr>&nbsp;&nbsp;<?php 
        echo format_money($memberdonations[$myproject["id"]]["amount"]);
        ?>
</nobr></td>

        <td align=right valign=top>&nbsp;&nbsp;<?php 
        echo intval($memberdonations[$myproject["id"]]["credits"]);
        ?>
</td>
コード例 #9
0
ファイル: member.php プロジェクト: lobolabs/fossfactory
</a>&nbsp;&nbsp;<a href="<?php 
        echo projurl($project["id"]);
        ?>
" style="text-decoration:none">[go]</a>
                <div id="proj-<?php 
        echo $project["id"];
        ?>
-div" class=folded>
                    <p><?php 
        echo formatText(ereg_replace("\n.*", "", $project["reqmts"]));
        ?>
</p>
                </div>
            </td>
            <td align=right valign=top>&nbsp;&nbsp;<nobr><?php 
        echo convert_money($project["bounty"], "CAD");
        ?>
</nobr></td>
        </tr>
    <?php 
    }
    ?>
</table><br><br>
<?php 
} else {
    ?>
<p>
This member is not a project lead.
</p>
<?php 
}