Commit 3db1215b authored by Leigh Stoller's avatar Leigh Stoller

Address some Jay nit

* Add the project request date to the "approve new projects" page.
* If the user isn't verified yet, add "(unverified)" after long name.
parent 5e09af9f
<?php <?php
# #
# EMULAB-COPYRIGHT # EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group. # Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved. # All rights reserved.
# #
include("defs.php3"); include("defs.php3");
...@@ -32,7 +32,9 @@ if (! $isadmin) { ...@@ -32,7 +32,9 @@ if (! $isadmin) {
# implies denying the project leader account, when there is just a single # implies denying the project leader account, when there is just a single
# project pending for that project leader. # project pending for that project leader.
# #
$query_result = DBQueryFatal("SELECT * from projects ". $query_result = DBQueryFatal("SELECT *, ".
" DATE_FORMAT(created, '%m/%d/%y') as day_created ".
" from projects ".
"where approved='0' order by created desc"); "where approved='0' order by created desc");
if (mysql_num_rows($query_result) == 0) { if (mysql_num_rows($query_result) == 0) {
...@@ -66,6 +68,7 @@ while ($projectrow = mysql_fetch_array($query_result)) { ...@@ -66,6 +68,7 @@ while ($projectrow = mysql_fetch_array($query_result)) {
$headuid = $projectrow[head_uid]; $headuid = $projectrow[head_uid];
$Purl = $projectrow[URL]; $Purl = $projectrow[URL];
$Pname = $projectrow[name]; $Pname = $projectrow[name];
$Pcreated = $projectrow[day_created];
$userinfo_result = $userinfo_result =
DBQueryFatal("SELECT * from users where uid='$headuid'"); DBQueryFatal("SELECT * from users where uid='$headuid'");
...@@ -76,6 +79,7 @@ while ($projectrow = mysql_fetch_array($query_result)) { ...@@ -76,6 +79,7 @@ while ($projectrow = mysql_fetch_array($query_result)) {
$title = $row[usr_title]; $title = $row[usr_title];
$affil = $row[usr_affil]; $affil = $row[usr_affil];
$phone = $row[usr_phone]; $phone = $row[usr_phone];
$status = $row[status];
echo "<tr> echo "<tr>
<td height=15 colspan=6></td> <td height=15 colspan=6></td>
...@@ -85,12 +89,17 @@ while ($projectrow = mysql_fetch_array($query_result)) { ...@@ -85,12 +89,17 @@ while ($projectrow = mysql_fetch_array($query_result)) {
<A href='approveproject_form.php3?pid=$pid'> <A href='approveproject_form.php3?pid=$pid'>
<img alt=\"o\" src=\"redball.gif\"></A></td> <img alt=\"o\" src=\"redball.gif\"></A></td>
<td rowspan=2> <td rowspan=2>
<A href='showproject.php3?pid=$pid'>$pid</A></td> <A href='showproject.php3?pid=$pid'>$pid</A>
<br>$Pcreated</td>
<td rowspan=2> <td rowspan=2>
<A href='showuser.php3?target_uid=$headuid'> <A href='showuser.php3?target_uid=$headuid'>
$headuid</A></td> $headuid</A></td>
<td>$name</td> <td>$name";
<td>$title</td> if ($status == TBDB_USERSTATUS_UNVERIFIED) {
echo " (<font color=red>" . TBDB_USERSTATUS_UNVERIFIED . "</font>)";
}
echo " </td>";
echo " <td>$title</td>
<td>$email</td> <td>$email</td>
</tr>\n"; </tr>\n";
echo "<tr> echo "<tr>
......
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