Commit b36c3e18 authored by Leigh Stoller's avatar Leigh Stoller

Add #of Project members as per Jay request.

parent d3a4f588
......@@ -76,6 +76,7 @@ $proj_expires = $row[expires];
$proj_name = $row[name];
$proj_URL = $row[URL];
$proj_head_uid = $row[head_uid];
$proj_members = $row[num_members];
$proj_pcs = $row[num_pcs];
$proj_sharks = $row[num_sharks];
$proj_why = $row[why];
......@@ -105,6 +106,11 @@ echo "<tr>
<A href='$proj_URL'>$proj_URL</A></td>
</tr>\n";
echo "<tr>
<td>#Project Members: </td>
<td class=\"left\">$proj_members</td>
</tr>\n";
echo "<tr>
<td>#PCs: </td>
<td class=\"left\">$proj_pcs</td>
......
......@@ -28,6 +28,10 @@ if (!isset($proj_name) ||
strcmp($proj_name, "UCB Overlay Multicast") == 0) {
$formerror = "Long Name";
}
if (!isset($proj_members) ||
strcmp($proj_members, "") == 0) {
$formerror = "Estimated #of Project Members";
}
if (!isset($proj_pcs) ||
strcmp($proj_pcs, "") == 0) {
$formerror = "Estimated #of PCs";
......@@ -215,10 +219,10 @@ $unix_gid++;
$newproj_command = "INSERT INTO projects ".
"(pid, created, expires, name, URL, head_uid, ".
" num_pcs, num_sharks, why, unix_gid)".
" num_members, num_pcs, num_sharks, why, unix_gid)".
"VALUES ('$pid', now(), '$proj_expires','$proj_name','$proj_URL',".
"'$proj_head_uid', '$proj_pcs', '$proj_sharks', '$proj_why', ".
"'$unix_gid')";
"'$proj_head_uid', '$proj_members', '$proj_pcs', '$proj_sharks', ".
"'$proj_why', '$unix_gid')";
$newproj_result = mysql_db_query($TBDBNAME, $newproj_command);
if (! $newproj_result) {
$err = mysql_error();
......@@ -245,6 +249,7 @@ mail($TBMAIL_APPROVAL,
"Affiliation: $usr_affil\n".
"Address: $usr_addr\n".
"Phone: $usr_phones\n".
"Members: $proj_members\n".
"PCs: $proj_pcs\n".
"Sharks: $proj_sharks\n".
"Reasons:\n$proj_why\n\n".
......
......@@ -235,8 +235,13 @@ echo "<tr>
</tr>\n";
#
# Nodes and PCs
# Nodes and PCs and Users
#
echo "<tr>
<td>*Estimated #of Project Members:</td>
<td><input type=\"text\" name=\"proj_members\" size=\"4\"></td>
</tr>\n";
echo "<tr>
<td>*Estimated #of PCs:</td>
<td><input type=\"text\" name=\"proj_pcs\" size=\"4\"></td>
......
......@@ -61,6 +61,7 @@ $proj_expires = $row[expires];
$proj_name = $row[name];
$proj_URL = $row[URL];
$proj_head_uid = $row[head_uid];
$proj_members = $row[num_members];
$proj_pcs = $row[num_pcs];
$proj_sharks = $row[num_sharks];
$proj_why = $row[why];
......@@ -90,6 +91,11 @@ echo "<tr>
<A href='$proj_URL'>$proj_URL</A></td>
</tr>\n";
echo "<tr>
<td>#Project Members: </td>
<td class=\"left\">$proj_members</td>
</tr>\n";
echo "<tr>
<td>#PCs: </td>
<td class=\"left\">$proj_pcs</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment