summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202019-08-01 12:49:27 +0530
committerGitHub2019-08-01 12:49:27 +0530
commite0605d07aba8fde91a42a4ec9146e01a2bab4d0a (patch)
tree333abc0c8aa1ad1c57611d1f5122a4f69d8bd330
parent799fe8681f2d7c1d45ba8bfa3993f8adbdf37e11 (diff)
parent34b9adec46d8f2d031f156fe1890a24fe5f89fb9 (diff)
downloadcfd_case_study-e0605d07aba8fde91a42a4ec9146e01a2bab4d0a.tar.gz
cfd_case_study-e0605d07aba8fde91a42a4ec9146e01a2bab4d0a.tar.bz2
cfd_case_study-e0605d07aba8fde91a42a4ec9146e01a2bab4d0a.zip
Merge pull request #7 from Sashi20/master
Modify completed case studies to display only university
-rwxr-xr-xcfd_case_study_details.inc9
-rwxr-xr-xmanage_proposal.inc2
2 files changed, 6 insertions, 5 deletions
diff --git a/cfd_case_study_details.inc b/cfd_case_study_details.inc
index d545f24..89a5645 100755
--- a/cfd_case_study_details.inc
+++ b/cfd_case_study_details.inc
@@ -30,7 +30,7 @@ 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();
- $project_title = WordWrap(l($row->project_title, "case-study-project/case-study-run/" . $row->id),10,"\n",true);
+ $project_title = l($row->project_title, "case-study-project/case-study-run/" . $row->id);
$year = date("Y", $row->actual_completion_date);
$solver_used = WordWrap($row->solver_used,10,"\n",true);
$preference_rows[] = array(
@@ -40,7 +40,6 @@ function cfd_case_study_completed_proposals_all()
l('Download', "case-study-project/download/project-file/" . $row->id),
$row->contributor_name,
$row->university,
- $row->institute,
$year
);
$i++;
@@ -51,8 +50,8 @@ function cfd_case_study_completed_proposals_all()
'Solver used',
'Abstract File',
'Contributor Name',
- 'University',
- 'Institute',
+ 'Institute/ University',
+ //'Institute',
'Year'
);
$output .= theme('table', array(
@@ -96,7 +95,7 @@ function cfd_case_study_progress_all()
'No',
'Case Study Project',
'Contributor Name',
- 'Institute',
+ 'Institute/ University',
'Year'
);
$page_content .= theme('table', array(
diff --git a/manage_proposal.inc b/manage_proposal.inc
index 74c663b..74ad41d 100755
--- a/manage_proposal.inc
+++ b/manage_proposal.inc
@@ -871,6 +871,7 @@ function cfd_case_study_proposal_edit_form_submit($form, &$form_state)
name_title=:name_title,
contributor_name=:contributor_name,
university=:university,
+ institute=:institute,
city=:city,
pincode=:pincode,
state=:state,
@@ -882,6 +883,7 @@ function cfd_case_study_proposal_edit_form_submit($form, &$form_state)
':name_title' => $v['name_title'],
':contributor_name' => $v['contributor_name'],
':university' => $v['university'],
+ ":institute" => $v['institute'],
':city' => $v['city'],
':pincode' => $v['pincode'],
':state' => $v['all_state'],