diff options
author | prashantsinalkar | 2017-01-11 16:53:57 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-01-11 16:53:57 +0530 |
commit | a574e3c3719b0cb63e96d1395efeb9b73938f9be (patch) | |
tree | c8cd3b95f467505c85fab57d02e096da001abc62 | |
parent | 032116b4dba160d7415d0863fd1877f8fd918166 (diff) | |
download | DWSIM_textbook_companion-a574e3c3719b0cb63e96d1395efeb9b73938f9be.tar.gz DWSIM_textbook_companion-a574e3c3719b0cb63e96d1395efeb9b73938f9be.tar.bz2 DWSIM_textbook_companion-a574e3c3719b0cb63e96d1395efeb9b73938f9be.zip |
added proposed completion date
-rwxr-xr-x | textbook_companion.module | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/textbook_companion.module b/textbook_companion.module index f795de6..3bba94a 100755 --- a/textbook_companion.module +++ b/textbook_companion.module @@ -1942,9 +1942,9 @@ function book_proposal_form_submit($form, &$form_state, $directory_name = NULL) $result = db_query($query);*/ $query = "INSERT INTO {textbook_companion_proposal} - (uid, approver_uid, full_name, mobile, gender, how_project, course, branch, university,city,pincode,state,country, faculty, reviewer,reference, completion_date, creation_date, approval_date, proposal_status, dwsim_version, operating_system, teacher_email,reason,samplefilepath,proposal_type) VALUES (:uid, :approver_uid, :full_name, :mobile, :gender, :how_project, :course, :branch, :university, :city,:pincode,:state,:country, :faculty, :reviewer,:reference, :completion_date, + (uid, approver_uid, full_name, mobile, gender, how_project, course, branch, university,city,pincode,state,country, faculty, reviewer,reference, completion_date, creation_date, approval_date, proposal_status, dwsim_version, operating_system, teacher_email,reason,samplefilepath,proposal_type,proposed_completion_date) VALUES (:uid, :approver_uid, :full_name, :mobile, :gender, :how_project, :course, :branch, :university, :city,:pincode,:state,:country, :faculty, :reviewer,:reference, :completion_date, :creation_date, :approval_date, :proposal_status, :dwsim_version, :operating_system, -:teacher_email,:reason,:samplefilepath,:proposal_type)"; +:teacher_email,:reason,:samplefilepath,:proposal_type,:proposed_completion_date)"; $args = array( ":uid" => $user->uid, ":approver_uid" => 0, @@ -1960,7 +1960,7 @@ function book_proposal_form_submit($form, &$form_state, $directory_name = NULL) ":state" => trim($form_state['values']['all_state']), ":country" => $form_state['values']['country'], ":faculty" => ucwords(strtolower($form_state['values']['faculty'])), - ":reviewer" => ucwords(strtolower($form_state['values']['reviewer'])), + ":reviewer" => "DWSIM TBC Team", ":reference" => trim($form_state['values']['reference']), ":completion_date" => $completion_date_timestamp, ":creation_date" => time(), @@ -1971,7 +1971,8 @@ function book_proposal_form_submit($form, &$form_state, $directory_name = NULL) ":teacher_email" => $form_state['values']['faculty_email'], ":reason" => $form_state['values']['reason'], ":samplefilepath" => "", - ":proposal_type" => 0 + ":proposal_type" => 0, + ":proposed_completion_date" => $completion_date_timestamp ); $result = db_query($query, $args, array( 'return' => Database::RETURN_INSERT_ID |