Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
250b0d83
Commit
250b0d83
authored
Nov 07, 2000
by
Leigh B. Stoller
Browse files
Add PCs, Sharks, and Why? to the database and the showproject dump.
parent
09c357e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
www/newproject.php3
View file @
250b0d83
...
...
@@ -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\n
They are expecting a result "
.
...
...
www/newproject_form.php3
View file @
250b0d83
...
...
@@ -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>
...
...
www/showproject.php3
View file @
250b0d83
...
...
@@ -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
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment