Approve a Project

\n"; # # Check to make sure thats this is a valid PID. # $query_result = mysql_db_query($TBDBNAME, "SELECT * FROM projects WHERE pid=\"$pid\""); if (mysql_num_rows($query_result) == 0) { USERERROR("The project $pid is not a valid project.", 1); } $row = mysql_fetch_array($query_result); echo "

You have the following choices:

Deny - Deny project application (kills project records)
Destroy - Deny project application, and kill the user account
Approve - Approve the project
More Info - Ask for more info
Postpone - Twiddle your thumbs some more
\n"; echo "

Project Information

\n"; $proj_created = $row[created]; $proj_expires = $row[expires]; $proj_name = $row[name]; $proj_URL = $row[URL]; $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]; # # Generate the table. # echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Name: $pid
Long Name: $proj_name
Project Head: $proj_head_uid
URL: $proj_URL
#PCs: $proj_pcs
#Sharks: $proj_sharks
Created: $proj_created
Why?
$proj_why
\n"; $userinfo_result = mysql_db_query($TBDBNAME, "SELECT * from users where uid=\"$proj_head_uid\""); $row = mysql_fetch_array($userinfo_result); $usr_expires = $row[usr_expires]; $usr_email = $row[usr_email]; $usr_addr = $row[usr_addr]; $usr_name = $row[usr_name]; $usr_phone = $row[usr_phone]; $usr_passwd = $row[usr_pswd]; $usr_title = $row[usr_title]; $usr_affil = $row[usr_affil]; echo "

Project Leader Information

\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Username: $proj_head_uid
Full Name: $usr_name
Email Address: $usr_email
Expiration date: $usr_expires
Mailing Address: $usr_addr
Phone #: $usr_phone
Title/Position: $usr_title
Institutional Affiliation: $usr_affil
\n"; # # Now put up the menu choice along with a text box for an email message. # echo "

What would you like to do?

\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Use the text box to add a message to the email notification.
\n"; ?>