summaryrefslogtreecommitdiff
path: root/proposal.inc
diff options
context:
space:
mode:
authorprashantsinalkar2017-06-09 10:20:23 +0530
committerprashantsinalkar2017-06-09 10:20:23 +0530
commitdcfeded5aad935c101fd6a3d888cf7b5fbb9230e (patch)
tree73e6a8d417f137e2d88e0e70acf8bd42fb9d0fba /proposal.inc
parent83e324ba9956107f86979c714b58c082d8060aa0 (diff)
downloaddwsim_flowsheet-dcfeded5aad935c101fd6a3d888cf7b5fbb9230e.tar.gz
dwsim_flowsheet-dcfeded5aad935c101fd6a3d888cf7b5fbb9230e.tar.bz2
dwsim_flowsheet-dcfeded5aad935c101fd6a3d888cf7b5fbb9230e.zip
added reference field in proposal and manage proposal
Diffstat (limited to 'proposal.inc')
-rwxr-xr-xproposal.inc16
1 files changed, 14 insertions, 2 deletions
diff --git a/proposal.inc b/proposal.inc
index 846238e..2c5f67b 100755
--- a/proposal.inc
+++ b/proposal.inc
@@ -244,6 +244,15 @@ function dwsim_flowsheet_proposal_form($form, &$form_state, $no_js_use = FALSE)
'#description' => t('Maximum character limit is 250'),
'#required' => TRUE
);
+ $form['reference'] = array(
+ '#type' => 'textarea',
+ '#title' => t('Reference'),
+ '#required' => TRUE,
+ '#size' => 10000,
+ '#attributes' => array(
+ 'placeholder' => 'Links of must be provided....'
+ )
+ );
$form['version'] = array(
'#type' => 'select',
'#title' => t('Version'),
@@ -638,7 +647,8 @@ function dwsim_flowsheet_proposal_form_submit($form, &$form_state)
creation_date,
approval_date,
directory_name,
- user_defined_compound_filepath
+ user_defined_compound_filepath,
+ reference
) VALUES
(
:uid,
@@ -666,7 +676,8 @@ function dwsim_flowsheet_proposal_form_submit($form, &$form_state)
:creation_date,
:approval_date,
:directory_name,
- :user_defined_compound_filepath
+ :user_defined_compound_filepath,
+ :reference
)";
$args = array(
":uid" => $user->uid,
@@ -695,6 +706,7 @@ function dwsim_flowsheet_proposal_form_submit($form, &$form_state)
":approval_date" => 0,
":directory_name" => $directory_name,
":user_defined_compound_filepath" => "NULL"
+ ":reference" => $['reference']
);
//var_dump($args);die;
$proposal_id = db_query($result, $args, array(