diff options
author | Sashi20 | 2017-08-29 14:04:41 +0530 |
---|---|---|
committer | Sashi20 | 2017-08-29 14:04:41 +0530 |
commit | 8139d86ed2dd2134412674eb99b494f8d0975109 (patch) | |
tree | ac65c4c9f283b760c8cc343825ce9d1e997772d0 /flowsheet_details.inc | |
parent | 78cf1c0c4a566a28e44faf832e1b879298f4350b (diff) | |
download | dwsim_flowsheet-8139d86ed2dd2134412674eb99b494f8d0975109.tar.gz dwsim_flowsheet-8139d86ed2dd2134412674eb99b494f8d0975109.tar.bz2 dwsim_flowsheet-8139d86ed2dd2134412674eb99b494f8d0975109.zip |
Changed flowsheet in progress to tabular format
Diffstat (limited to 'flowsheet_details.inc')
-rwxr-xr-x | flowsheet_details.inc | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/flowsheet_details.inc b/flowsheet_details.inc index f7813ab..05f1701 100755 --- a/flowsheet_details.inc +++ b/flowsheet_details.inc @@ -59,15 +59,32 @@ function dwsim_flowsheet_progress_all() } //$result->rowCount() == 0 else { - $page_content .= "Work is in progress for the following flowsheets under Flowsheeting Project<hr>"; - $page_content .= "<ol>"; + $page_content .= "Work is in progress for the following flowsheets under Flowsheeting Project<hr>";; + $preference_rows = array(); + $i = 1; while ($row = $result->fetchObject()) { - $page_content .= "<li>"; - $page_content .= $row->project_title; - $page_content .= "</li>"; + $approval_date = date("Y", $row->approval_date); + $preference_rows[] = array( + $i, + $row->project_title, + $row->contributor_name, + $row->university, + $approval_date + ); + $i++; } //$row = $result->fetchObject() - $page_content .= "</ol>"; + $preference_header = array( + 'No', + 'Flowsheet Project', + 'Contributor Name', + 'Institution', + 'Year' + ); + $page_content .= theme('table', array( + 'header' => $preference_header, + 'rows' => $preference_rows + )); } return $page_content; -} +}
\ No newline at end of file |