Commit 9675076d authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add project linked_to_us boolean to various places.

parent 4dba86b6
......@@ -875,9 +875,11 @@ else {
if (!isset($formfields[proj_linked]) ||
strcmp($formfields[proj_linked], "checked")) {
$proj_linked = "No";
$linked = 0;
}
else {
$proj_linked = "Yes";
$linked = 1;
}
#
......@@ -953,12 +955,12 @@ if (! $returning) {
DBQueryFatal("INSERT INTO projects ".
"(pid, created, expires, name, URL, head_uid, ".
" num_members, num_pcs, why, funders, unix_gid, ".
" num_pcplab, num_ron, public, public_whynot)".
" num_pcplab, num_ron, public, public_whynot, linked_to_us)".
"VALUES ('$pid', now(), '$proj_expires','$proj_name', ".
" '$proj_URL', '$proj_head_uid', '$proj_members', ".
" '$proj_pcs', '$proj_why', ".
" '$proj_funders', NULL, $proj_plabpcs, $proj_ronpcs, ".
" $public, '$proj_whynotpublic')");
" $public, '$proj_whynotpublic', $linked)");
DBQueryFatal("INSERT INTO project_stats (pid) VALUES ('$pid')");
......
......@@ -36,6 +36,7 @@ function SHOWPROJECT($pid, $thisuid) {
$proj_pcs = $row[num_pcs];
$proj_ronpcs = $row[num_ron];
$proj_plabpcs = $row[num_pcplab];
$proj_linked = $row[linked_to_us];
$proj_why = nl2br($row[why]);
$control_node = $row[control_node];
$approved = $row[approved];
......@@ -49,6 +50,13 @@ function SHOWPROJECT($pid, $thisuid) {
$proj_public = "No";
}
if ($proj_linked) {
$proj_linked = "Yes";
}
else {
$proj_linked = "No";
}
if (!$expt_last) {
$expt_last = "&nbsp";
}
......@@ -85,6 +93,11 @@ function SHOWPROJECT($pid, $thisuid) {
<td class=\"left\">$proj_public</td>
</tr>\n";
echo "<tr>
<td>Link to Us?: </td>
<td class=\"left\">$proj_linked</td>
</tr>\n";
echo "<tr>
<td>Funders: </td>
<td class=\"left\">$proj_funders</td>
......
......@@ -111,6 +111,7 @@ function INFORMLEADERS($uid) {
$proj_URL = $row[URL];
$proj_funders = stripslashes($row[funders]);
$proj_public = ($row[public] ? "Yes" : "No");
$proj_linked = ($row[linked_to_us] ? "Yes" : "No");
$proj_whynotpublic = stripslashes($row[public_whynot]);
$proj_members = $row[num_members];
$proj_pcs = $row[num_pcs];
......@@ -132,6 +133,7 @@ function INFORMLEADERS($uid) {
"Project URL: $proj_URL\n".
"Public URL: $proj_public\n".
"Why Not Public: $proj_whynotpublic\n".
"Linked to Us?: $proj_linked\n".
"Funders: $proj_funders\n".
"Title: $usr_title\n".
"Affiliation: $usr_affil\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