Commit 250b0d83 authored by Leigh Stoller's avatar Leigh Stoller

Add PCs, Sharks, and Why? to the database and the showproject dump.

parent 09c357e3
......@@ -36,6 +36,10 @@ if (!isset($proj_sharks) ||
strcmp($proj_sharks, "") == 0) {
$formerror = "Estimated #of Sharks";
}
if (!isset($proj_why) ||
strcmp($proj_why, "") == 0) {
$formerror = "Please describe your project";
}
if (!isset($usr_name) ||
strcmp($usr_name, "") == 0) {
$formerror = "Full Name";
......@@ -210,9 +214,11 @@ $unix_gid = $row[0];
$unix_gid++;
$newproj_command = "INSERT INTO projects ".
"(pid, created, expires, name, URL, head_uid, unix_gid)".
"(pid, created, expires, name, URL, head_uid, ".
" num_pcs, num_sharks, why, unix_gid)".
"VALUES ('$pid', now(), '$proj_expires','$proj_name','$proj_URL',".
"'$proj_head_uid', '$unix_gid')";
"'$proj_head_uid', '$proj_pcs', '$proj_sharks', '$proj_why', ".
"'$unix_gid')";
$newproj_result = mysql_db_query($TBDBNAME, $newproj_command);
if (! $newproj_result) {
$err = mysql_error();
......@@ -237,10 +243,10 @@ mail($TBMAIL_APPROVAL,
"Title: $usr_title\n".
"Affiliation: $usr_affil\n".
"Address: $usr_addr\n".
"Phone: $usr_phones\n\n".
"Phone: $usr_phones\n".
"PCs: $proj_pcs\n".
"Sharks: $proj_sharks\n".
"Reasons:\n$why\n\n".
"Reasons:\n$proj_why\n\n".
"Please review the application and when you have\n".
"made a decision, go to $TBWWW and\n".
"select the 'Project Approval' page.\n\nThey are expecting a result ".
......
......@@ -268,7 +268,7 @@ echo "<tr>
<tr>
<td colspan="2" align="center" class="left">
<textarea name="why" rows="10" cols="60"></textarea></td>
<textarea name="proj_why" rows="10" cols="60"></textarea></td>
</tr>
<tr>
......
......@@ -60,9 +60,10 @@ $proj_created = $row[created];
$proj_expires = $row[expires];
$proj_name = $row[name];
$proj_URL = $row[URL];
$proj_affil = $row[affil];
$proj_addr = $row[addr];
$proj_head_uid = $row[head_uid];
$proj_pcs = $row[num_pcs];
$proj_sharks = $row[num_sharks];
$proj_why = $row[why];
$control_node = $row[control_node];
#
......@@ -89,14 +90,27 @@ echo "<tr>
<A href='$proj_URL'>$proj_URL</A></td>
</tr>\n";
echo "<tr>
<td>#PCs: </td>
<td class=\"left\">$proj_pcs</td>
</tr>\n";
echo "<tr>
<td>#Sharks: </td>
<td class=\"left\">$proj_sharks</td>
</tr>\n";
echo "<tr>
<td>Created: </td>
<td class=\"left\">$proj_created</td>
</tr>\n";
echo "<tr>
<td>Expires: </td>
<td class=\"left\">$proj_expires</td>
<td colspan='2'>Why?</td>
</tr>\n";
echo "<tr>
<td colspan='2' width=600>$proj_why</td>
</tr>\n";
echo "</table>\n";
......
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