diff options
author | prashantsinalkar | 2017-06-09 10:20:23 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-06-09 10:20:23 +0530 |
commit | dcfeded5aad935c101fd6a3d888cf7b5fbb9230e (patch) | |
tree | 73e6a8d417f137e2d88e0e70acf8bd42fb9d0fba | |
parent | 83e324ba9956107f86979c714b58c082d8060aa0 (diff) | |
download | dwsim_flowsheet-dcfeded5aad935c101fd6a3d888cf7b5fbb9230e.tar.gz dwsim_flowsheet-dcfeded5aad935c101fd6a3d888cf7b5fbb9230e.tar.bz2 dwsim_flowsheet-dcfeded5aad935c101fd6a3d888cf7b5fbb9230e.zip |
added reference field in proposal and manage proposal
-rwxr-xr-x | manage_proposal.inc | 12 | ||||
-rwxr-xr-x | proposal.inc | 16 |
2 files changed, 26 insertions, 2 deletions
diff --git a/manage_proposal.inc b/manage_proposal.inc index b1a7a92..d7b824d 100755 --- a/manage_proposal.inc +++ b/manage_proposal.inc @@ -923,6 +923,16 @@ function dwsim_flowsheet_proposal_edit_form($form, &$form_state) '#required' => TRUE, '#default_value' => $proposal_data->project_title ); + $form['reference'] = array( + '#type' => 'textarea', + '#title' => t('Reference'), + '#required' => TRUE, + '#size' => 10000, + '#attributes' => array( + 'placeholder' => 'Links of must be provided....' + ) + '#default_value' => $proposal_data->reference + ); $form['delete_proposal'] = array( '#type' => 'checkbox', '#title' => t('Delete Proposal') @@ -1052,6 +1062,7 @@ function dwsim_flowsheet_proposal_edit_form_submit($form, &$form_state) pincode=:pincode, state=:state, project_title=:project_title, + reference=:reference, directory_name=:directory_name WHERE id=:proposal_id"; $args = array( @@ -1062,6 +1073,7 @@ function dwsim_flowsheet_proposal_edit_form_submit($form, &$form_state) ':pincode' => $v['pincode'], ':state' => $v['all_state'], ':project_title' => $project_title, + ':reference' => $v['reference'], ':directory_name' => $directory_name, ':proposal_id' => $proposal_id ); 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( |