Commit 81f954da authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Remove default form values as per Jay request.

parent c7c3239d
......@@ -13,7 +13,7 @@ PAGEHEADER("Start a New Project");
# the project form.
#
if (!isset($pid) ||
strcmp($pid, "ucb-omcast") == 0) {
strcmp($pid, "") == 0) {
FORMERROR("Name");
}
if (!isset($proj_head_uid) ||
......@@ -21,7 +21,7 @@ if (!isset($proj_head_uid) ||
FORMERROR("Username");
}
if (!isset($proj_name) ||
strcmp($proj_name, "UCB Overlay Multicast") == 0) {
strcmp($proj_name, "") == 0) {
FORMERROR("Long Name");
}
if (!isset($proj_members) ||
......@@ -45,7 +45,7 @@ if (!isset($usr_name) ||
FORMERROR("Full Name");
}
if (!isset($proj_URL) ||
strcmp($proj_URL, "http://www.cs.berkeley.edu/netgrp/omcast/") == 0) {
strcmp($proj_URL, "") == 0) {
FORMERROR("Project URL");
}
if (!isset($usr_email) ||
......@@ -57,11 +57,11 @@ if (!isset($usr_addr) ||
FORMERROR("Postal Address");
}
if (!isset($usr_affil) ||
strcmp($usr_affil, "UCB Networks Group") == 0) {
strcmp($usr_affil, "") == 0) {
FORMERROR("Institutional Afilliation");
}
if (!isset($usr_title) ||
strcmp($usr_title, "Professor Emeritus") == 0) {
strcmp($usr_title, "") == 0) {
FORMERROR("Title/Position");
}
if (!isset($usr_phones) ||
......
......@@ -107,7 +107,7 @@ echo "<tr>
if ($row) {
echo " type=\"readonly\" value=\"$row[usr_title]\">";
} else {
echo " type=\"text\" value=\"Professor Emeritus\" size=\"30\">";
echo " type=\"text\" size=\"30\">";
}
echo " </td>
......@@ -123,7 +123,7 @@ echo "<tr>
if ($row) {
echo " type=\"readonly\" value=\"$row[usr_affil]\">";
} else {
echo " type=\"text\" value=\"UCB Networks Group\" size=\"40\">";
echo " type=\"text\" size=\"40\">";
}
echo " </td>
......@@ -139,9 +139,7 @@ echo "<tr>
if ($row) {
echo " type=\"readonly\" value=\"$row[usr_URL]\">";
} else {
echo " type=\"text\"
value=\"http://www.cs.berkeley.edu/~jml/\"
size=\"45\">";
echo " type=\"text\" size=\"45\">";
}
echo " </td>
......@@ -225,7 +223,7 @@ echo "<tr>
#
echo "<tr>
<td>*Name (no blanks):</td>
<td><input type=\"text\" name=\"pid\" value=\"ucb-omcast\"
<td><input type=\"text\" name=\"pid\"
size=$TBDB_PIDLEN maxlength=$TBDB_PIDLEN></td>
</tr>\n";
......@@ -235,16 +233,15 @@ echo "<tr>
echo "<tr>
<td>*Long name:</td>
<td><input type=\"text\" name=\"proj_name\"
value=\"UCB Overlay Multicast\" size=\"40\"></td>
size=\"40\"></td>
</tr>\n";
#
# URL
#
echo "<tr>
<td>+URL:</td>
<td><input type=\"text\" name=\"proj_URL\" size=\"45\"
value=\"http://www.cs.berkeley.edu/netgrp/omcast/\"></td>
<td>*URL:</td>
<td><input type=\"text\" name=\"proj_URL\" size=\"45\"></td>
</tr>\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