summaryrefslogtreecommitdiff
path: root/run.inc
diff options
context:
space:
mode:
authorSashi202017-08-22 15:44:20 +0530
committerSashi202017-08-22 15:44:20 +0530
commit8e33072c9789a860abcd5af52bc57977622bf654 (patch)
tree5782672e1f82928989cf963456920e3d5dee00e8 /run.inc
parentf28f70b5727b17dec4986f01ccb1f871373028b1 (diff)
downloaddwsim_flowsheet-8e33072c9789a860abcd5af52bc57977622bf654.tar.gz
dwsim_flowsheet-8e33072c9789a860abcd5af52bc57977622bf654.tar.bz2
dwsim_flowsheet-8e33072c9789a860abcd5af52bc57977622bf654.zip
Minor changes to the edit interface
Diffstat (limited to 'run.inc')
-rwxr-xr-xrun.inc8
1 files changed, 1 insertions, 7 deletions
diff --git a/run.inc b/run.inc
index 5536aea..24f5801 100755
--- a/run.inc
+++ b/run.inc
@@ -137,13 +137,7 @@ function _flowsheet_details($flowsheet_default_value)
{
$flowsheet_details = _flowsheet_information($flowsheet_default_value);
if ($flowsheet_default_value != 0) {
- if($flowsheet_details->reference != NULL){
- $url = '~(?:(https?)://([^\s<]+)|(www\.[^\s<]+?\.[^\s<]+))(?<![\.,:])~i';
- $reference = preg_replace($url, '<a href="$0" target="_blank" title="$0">$0</a>', $flowsheet_details->reference);
- }else{
- $reference = 'Not provided';
- }
- $form['flowsheet_details']['#markup'] = '<span style="color: rgb(128, 0, 0);"><strong>About the Flowsheet</strong></span></td><td style="width: 35%;"><br />' . '<ul>' . '<li><strong>Proposer Name:</strong> ' . $flowsheet_details->name_title . ' ' . $flowsheet_details->contributor_name . '</li>' . '<li><strong>Title of the Flowhseet:</strong> ' . l($flowsheet_details->project_title,'flowsheeting-project/full-download/project/' . $flowsheet_default_value,array('attributes' => array('title' => 'This is a zip file containing a pdf (abstract) and a dwxml/dwxmz file which is the DWSIM flow sheet which is to be viewed by right clicking on the file and opening with DWSIM.'))) . '</li>' . '<li><strong>University:</strong> ' . $flowsheet_details->university . '</li>' . '<li>'.'<strong>Reference:</strong> ' . $reference .'</li>'.'</ul>';
+ $form['flowsheet_details']['#markup'] = '<span style="color: rgb(128, 0, 0);"><strong>About the Flowsheet</strong></span></td><td style="width: 35%;"><br />' . '<ul>' . '<li><strong>Proposer Name:</strong> ' . $flowsheet_details->name_title . ' ' . $flowsheet_details->contributor_name . '</li>' . '<li><strong>Title of the Flowhseet:</strong> ' . l($flowsheet_details->project_title,'flowsheeting-project/full-download/project/' . $flowsheet_default_value,array('attributes' => array('title' => 'This is a zip file containing a pdf (abstract) and a dwxml/dwxmz file which is the DWSIM flow sheet which is to be viewed by right clicking on the file and opening with DWSIM.'))) . '</li>' . '<li><strong>Institution:</strong> ' . $flowsheet_details->university . '</li>' . '<li><strong>Version:</strong> ' . $flowsheet_details->version . '</li>' . '</ul>';
$details = $form['flowsheet_details']['#markup'];
return $details;
} //$flowsheet_default_value != 0