.
require_once("../inc/util.inc");
require_once("../inc/cert.inc");
require_once("../inc/user.inc");
check_get_args(array("border"));
$user = get_logged_in_user();
$join = gmdate('j F Y', $user->create_time);
$today = gmdate('j F Y', time(0));
$border = get_str("border", true);
if ($border=="no") {
$border = 0;
} else {
$border=8;
}
$title_font = "\"Optima,ZapfChancery\"";
$font = "\"Optima,Lucida Bright,Times New Roman\"";
$user = get_other_projects($user);
$total_credit = 0;
foreach ($user->projects as $p) {
$total_credit += $p->total_credit;
}
$credit = credit_string($total_credit, false);
function show_proj($p) {
$join = date('j F Y', $p->create_time);
echo "
$p->name | $p->total_credit | $join |
";
}
echo "
Certificate of Computation
This certifies that
$user->name
has contributed $credit
to the following scientific research projects:
Project | Cobblestones | Joined |
";
foreach ($user->projects as $p) {
if ($p->total_credit<100) continue;
show_proj($p);
}
echo "
";
echo "
|
";
echo "
|
";
?>
|