Commit b36c3e18 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add #of Project members as per Jay request.

parent d3a4f588
...@@ -76,6 +76,7 @@ $proj_expires = $row[expires]; ...@@ -76,6 +76,7 @@ $proj_expires = $row[expires];
$proj_name = $row[name]; $proj_name = $row[name];
$proj_URL = $row[URL]; $proj_URL = $row[URL];
$proj_head_uid = $row[head_uid]; $proj_head_uid = $row[head_uid];
$proj_members = $row[num_members];
$proj_pcs = $row[num_pcs]; $proj_pcs = $row[num_pcs];
$proj_sharks = $row[num_sharks]; $proj_sharks = $row[num_sharks];
$proj_why = $row[why]; $proj_why = $row[why];
...@@ -105,6 +106,11 @@ echo "<tr> ...@@ -105,6 +106,11 @@ echo "<tr>
<A href='$proj_URL'>$proj_URL</A></td> <A href='$proj_URL'>$proj_URL</A></td>
</tr>\n"; </tr>\n";
echo "<tr>
<td>#Project Members: </td>
<td class=\"left\">$proj_members</td>
</tr>\n";
echo "<tr> echo "<tr>
<td>#PCs: </td> <td>#PCs: </td>
<td class=\"left\">$proj_pcs</td> <td class=\"left\">$proj_pcs</td>
......
...@@ -28,6 +28,10 @@ if (!isset($proj_name) || ...@@ -28,6 +28,10 @@ if (!isset($proj_name) ||
strcmp($proj_name, "UCB Overlay Multicast") == 0) { strcmp($proj_name, "UCB Overlay Multicast") == 0) {
$formerror = "Long Name"; $formerror = "Long Name";
} }
if (!isset($proj_members) ||
strcmp($proj_members, "") == 0) {
$formerror = "Estimated #of Project Members";
}
if (!isset($proj_pcs) || if (!isset($proj_pcs) ||
strcmp($proj_pcs, "") == 0) { strcmp($proj_pcs, "") == 0) {
$formerror = "Estimated #of PCs"; $formerror = "Estimated #of PCs";
...@@ -215,10 +219,10 @@ $unix_gid++; ...@@ -215,10 +219,10 @@ $unix_gid++;
$newproj_command = "INSERT INTO projects ". $newproj_command = "INSERT INTO projects ".
"(pid, created, expires, name, URL, head_uid, ". "(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',". "VALUES ('$pid', now(), '$proj_expires','$proj_name','$proj_URL',".
"'$proj_head_uid', '$proj_pcs', '$proj_sharks', '$proj_why', ". "'$proj_head_uid', '$proj_members', '$proj_pcs', '$proj_sharks', ".
"'$unix_gid')"; "'$proj_why', '$unix_gid')";
$newproj_result = mysql_db_query($TBDBNAME, $newproj_command); $newproj_result = mysql_db_query($TBDBNAME, $newproj_command);
if (! $newproj_result) { if (! $newproj_result) {
$err = mysql_error(); $err = mysql_error();
...@@ -245,6 +249,7 @@ mail($TBMAIL_APPROVAL, ...@@ -245,6 +249,7 @@ mail($TBMAIL_APPROVAL,
"Affiliation: $usr_affil\n". "Affiliation: $usr_affil\n".
"Address: $usr_addr\n". "Address: $usr_addr\n".
"Phone: $usr_phones\n". "Phone: $usr_phones\n".
"Members: $proj_members\n".
"PCs: $proj_pcs\n". "PCs: $proj_pcs\n".
"Sharks: $proj_sharks\n". "Sharks: $proj_sharks\n".
"Reasons:\n$proj_why\n\n". "Reasons:\n$proj_why\n\n".
......
...@@ -235,8 +235,13 @@ echo "<tr> ...@@ -235,8 +235,13 @@ echo "<tr>
</tr>\n"; </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> echo "<tr>
<td>*Estimated #of PCs:</td> <td>*Estimated #of PCs:</td>
<td><input type=\"text\" name=\"proj_pcs\" size=\"4\"></td> <td><input type=\"text\" name=\"proj_pcs\" size=\"4\"></td>
......
...@@ -61,6 +61,7 @@ $proj_expires = $row[expires]; ...@@ -61,6 +61,7 @@ $proj_expires = $row[expires];
$proj_name = $row[name]; $proj_name = $row[name];
$proj_URL = $row[URL]; $proj_URL = $row[URL];
$proj_head_uid = $row[head_uid]; $proj_head_uid = $row[head_uid];
$proj_members = $row[num_members];
$proj_pcs = $row[num_pcs]; $proj_pcs = $row[num_pcs];
$proj_sharks = $row[num_sharks]; $proj_sharks = $row[num_sharks];
$proj_why = $row[why]; $proj_why = $row[why];
...@@ -90,6 +91,11 @@ echo "<tr> ...@@ -90,6 +91,11 @@ echo "<tr>
<A href='$proj_URL'>$proj_URL</A></td> <A href='$proj_URL'>$proj_URL</A></td>
</tr>\n"; </tr>\n";
echo "<tr>
<td>#Project Members: </td>
<td class=\"left\">$proj_members</td>
</tr>\n";
echo "<tr> echo "<tr>
<td>#PCs: </td> <td>#PCs: </td>
<td class=\"left\">$proj_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