~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to html/user/team_email_list.php

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
$xml = get_int('xml', true);
25
25
if ($xml) {
 
26
    $creditonly = get_int('creditonly', true);
26
27
    require_once("../inc/xml.inc");
27
28
    xml_header();
28
29
    $retval = db_init_xml();
39
40
    $users = BoincUser::enum_fields("id, email_addr, send_email, name, total_credit, expavg_credit, has_profile, donated, country, cross_project_id, create_time, url", "teamid=$team->id");
40
41
    //$users = BoincUser::enum("teamid=$team->id");
41
42
    foreach($users as $user) {
42
 
        show_team_member($user, $show_email);
 
43
        show_team_member($user, $show_email, $creditonly);
43
44
    } 
44
45
    echo "</users>\n";
45
46
    exit();
49
50
$teamid = get_int("teamid");
50
51
$plain = get_int("plain", true);
51
52
$team = BoincTeam::lookup_id($teamid);
52
 
if (!$team) error_page("no such team");
 
53
if (!$team) error_page(tra("no such team"));
53
54
require_founder_login($user, $team);
54
55
 
55
56
if ($plain) {
56
57
    header("Content-type: text/plain");
57
58
} else {
58
 
    page_head("$team->name Email List");
 
59
    page_head(tra("%1 Email List", $team->name));
59
60
    start_table();
60
 
    table_header(array("Member list of ".$team->name, "colspan=\"6\""));
61
 
    table_header("Name", "Email address", "Total credit", "Recent average credit", "Country");
 
61
    table_header(array(tra("Member list of %1", $team->name), "colspan=\"6\""));
 
62
    table_header(tra("Name"), tra("Email address"), tra("Total credit"), tra("Recent average credit"), tra("Country"));
62
63
}
63
64
$users = BoincUser::enum_fields("id, email_addr, send_email, name, total_credit, expavg_credit, has_profile, donated, country, cross_project_id, create_time, url", "teamid=$team->id");
64
65
foreach($users as $user) {
72
73
73
74
if (!$plain) {
74
75
    end_table();
75
 
    echo "<p><a href=\"team_email_list.php?teamid=".$teamid."&amp;plain=1\">Show as plain text</a></p>";
 
76
    echo "<p><a href=\"team_email_list.php?teamid=".$teamid."&amp;plain=1\">".tra("Show as plain text")."</a></p>";
76
77
    page_tail();
77
78
}
78
79
 
79
 
$cvs_version_tracker[]="\$Id: team_email_list.php 15758 2008-08-05 22:43:14Z davea $";  //Generated automatically - do not edit
 
80
$cvs_version_tracker[]="\$Id: team_email_list.php 21780 2010-06-20 08:35:36Z Rytis $";  //Generated automatically - do not edit
80
81
?>