mirror of https://github.com/BOINC/boinc.git
25 lines
801 B
PHP
25 lines
801 B
PHP
<?php
|
|
require_once("../inc/util.inc");
|
|
require_once("../inc/db.inc");
|
|
|
|
// show results with pending credit for this user
|
|
|
|
db_init();
|
|
$user = get_logged_in_user();
|
|
page_head("Pending credit", $user);
|
|
$res = mysql_query("select * from result where userid=$user->id and validate_state=0");
|
|
$sum = 0;
|
|
start_table();
|
|
echo "<tr><th>Result ID</th><th>Claimed credit</th></tr>\n";
|
|
while ($result = mysql_fetch_object($res)) {
|
|
if ($result->claimed_credit > 0) {
|
|
echo "<tr><td><a href=result.php?resultid=$result->id>$result->id</a></td><td>",format_credit($result->claimed_credit), "</td></tr>\n";
|
|
$sum += $result->claimed_credit;
|
|
}
|
|
}
|
|
end_table();
|
|
|
|
echo "Pending credit: ",format_credit($sum);
|
|
page_tail();
|
|
?>
|