summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202019-07-22 16:31:11 +0530
committerGitHub2019-07-22 16:31:11 +0530
commit799fe8681f2d7c1d45ba8bfa3993f8adbdf37e11 (patch)
tree820158a216d69167617736bd259d28d2863c127d
parent806532d02b5312786b32f07c1c329d1c6e390cfd (diff)
parent38ab38b4c96aa14bb21fee2a0080dc38261599a4 (diff)
downloadcfd_case_study-799fe8681f2d7c1d45ba8bfa3993f8adbdf37e11.tar.gz
cfd_case_study-799fe8681f2d7c1d45ba8bfa3993f8adbdf37e11.tar.bz2
cfd_case_study-799fe8681f2d7c1d45ba8bfa3993f8adbdf37e11.zip
Merge pull request #6 from Sashi20/master
Add a column for institute name
-rwxr-xr-xcfd_case_study_details.inc12
1 files changed, 8 insertions, 4 deletions
diff --git a/cfd_case_study_details.inc b/cfd_case_study_details.inc
index 99254f0..d545f24 100755
--- a/cfd_case_study_details.inc
+++ b/cfd_case_study_details.inc
@@ -30,15 +30,18 @@ function cfd_case_study_completed_proposals_all()
$query1->condition('proposal_id', $proposal_id);
$case_study_files = $query1->execute();
$case_study_abstract = $case_study_files->fetchObject();
- $approval_date = date("Y", $row->approval_date);
+ $project_title = WordWrap(l($row->project_title, "case-study-project/case-study-run/" . $row->id),10,"\n",true);
+ $year = date("Y", $row->actual_completion_date);
+ $solver_used = WordWrap($row->solver_used,10,"\n",true);
$preference_rows[] = array(
$i,
- l($row->project_title, "case-study-project/case-study-run/" . $row->id),
- $row->solver_used,
+ $project_title,
+ $solver_used,
l('Download', "case-study-project/download/project-file/" . $row->id),
$row->contributor_name,
$row->university,
- $approval_date
+ $row->institute,
+ $year
);
$i++;
} //$row = $result->fetchObject()
@@ -48,6 +51,7 @@ function cfd_case_study_completed_proposals_all()
'Solver used',
'Abstract File',
'Contributor Name',
+ 'University',
'Institute',
'Year'
);