/* * aegis - project change supervisor * Copyright (C) 1997, 1998, 2000, 2001 Peter Miller; * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. * * MANIFEST: report the staff currently assigned to a project */ auto script_name; script_name = getenv("SCRIPT_NAME"); if (script_name == "") script_name = "http://localhost/cgi-bin/aegis.cgi"; auto pn; pn = project_name(); columns({width = 1000;}); print("Content-Type: text/html"); print(""); print("
User | Developer | "); print("Reviewer | Integrator | "); print("Administrator | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
"); auto href, email, long_name; email = name; try { email = user[name].email_address; } catch (email) { email = ""; } if (email == "") email = name; href = "mailto:" ## email; print(""); try { long_name = passwd[name].pw_comment; } catch (long_name) { long_name = name; } print(quote_html(long_name) ## ""); print(" | "); print(s.developer ? "Yes" : "No"); print(" | "); print(s.developer_count + 0); print(" | ");
if (s.developer_count)
{
n = round(developer_max * s.developer_count);
if (n < 3)
n = 3;
href = script_name ## "?file@rect+" ## n ## "+12";
print(" | "); print(s.reviewer ? "Yes" : "No"); print(" | "); print(s.reviewer_count + 0); print(" | ");
if (s.reviewer_count)
{
n = round(reviewer_max * s.reviewer_count);
if (n < 3)
n = 3;
href = script_name ## "?file@rect+" ## n ## "+12";
print(" | "); print(s.integrator ? "Yes" : "No"); print(" | "); print(s.integrator_count + 0); print(" | ");
if (s.integrator_count)
{
n = round(integrator_max * s.integrator_count);
if (n < 3)
n = 3;
href = script_name ## "?file@rect+" ## n ## "+12";
print(" | "); print(s.administrator ? "Yes" : "No"); print(" | "); print(s.administrator_count + 0); print(" | ");
if (s.administrator_count)
{
n = round(administrator_max * s.administrator_count);
if (n < 3)
n = 3;
href = script_name ## "?file@rect+" ## n ## "+12";
print(" |
aer proj_staff -p " ## pn ## ""); print("