summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprashantsinalkar2017-02-20 18:00:05 +0530
committerprashantsinalkar2017-02-20 18:00:05 +0530
commit1ecca5b0f8e173211ba226a1edced0129f230f16 (patch)
tree3ffc02a3b1bcf50d06595b0151bca1de8e5e88fa
parentd544b997fac843afa319f922d17ddcd922993b1f (diff)
downloaddwsim_flowsheet-1ecca5b0f8e173211ba226a1edced0129f230f16.tar.gz
dwsim_flowsheet-1ecca5b0f8e173211ba226a1edced0129f230f16.tar.bz2
dwsim_flowsheet-1ecca5b0f8e173211ba226a1edced0129f230f16.zip
done changes in email template as per the suggestion
-rwxr-xr-xemail.inc152
1 files changed, 104 insertions, 48 deletions
diff --git a/email.inc b/email.inc
index ae75a61..adf0bd7 100755
--- a/email.inc
+++ b/email.inc
@@ -33,6 +33,24 @@ function dwsim_flowsheet_mail($key, &$message, $params)
{
$file_name = basename($proposal_data->user_defined_compound_filepath);
}
+
+ if ($proposal_data->project_guide_name == "NULL")
+ {
+ $project_guide_name = "Not Entered";
+ } //$proposal_data->project_guide_name == NULL
+ else
+ {
+ $project_guide_name = $proposal_data->project_guide_name;
+ }
+ if ($proposal_data->project_guide_email_id == "NULL")
+ {
+ $project_guide_email_id = "Not Entered";
+ } //$proposal_data->project_guide_email_id == NULL
+ else
+ {
+ $project_guide_email_id = $proposal_data->project_guide_email_id;
+ }
+
$message['headers'] = $params['dwsim_flowsheet_proposal_received']['headers'];
$message['subject'] = t('[!site_name][Flowsheeting Project] Your DWSIM Flowsheeting Project proposal has been received', array(
'!site_name' => variable_get('site_name', '')
@@ -53,8 +71,8 @@ City : ' . $proposal_data->city . '
State : ' . $proposal_data->state . '
Country : ' . $proposal_data->country . '
-Project Guide : ' . $proposal_data->project_guide_name . '
-Project Guide Email : ' . $proposal_data->project_guide_email_id . '
+Project Guide : ' . $project_guide_name . '
+Project Guide Email : ' . $project_guide_email_id . '
DWSIM Version : ' . $proposal_data->version . '
@@ -62,13 +80,6 @@ Project Title : ' . $proposal_data->project_title . '
Name of compound for which process development is carried out : ' . $proposal_data->process_development_compound_name . '
-List of compounds from DWSIM Database used in process flowsheet : ' . $proposal_data->dwsim_database_compound_name . '
-
-List of user defined compounds used in process flowsheet : ' . $user_defined_compounds_used_in_process . '
-
-Uploaded user defined compound : ' . $file_name . '
-
-
Your proposal is under review. You will soon receive an email when same has been approved/disapproved.
@@ -107,6 +118,22 @@ FOSSEE,IIT Bombay', array(
{
$file_name = basename($proposal_data->user_defined_compound_filepath);
}
+ if ($proposal_data->project_guide_name == "NULL")
+ {
+ $project_guide_name = "Not Entered";
+ } //$proposal_data->project_guide_name == NULL
+ else
+ {
+ $project_guide_name = $proposal_data->project_guide_name;
+ }
+ if ($proposal_data->project_guide_email_id == "NULL")
+ {
+ $project_guide_email_id = "Not Entered";
+ } //$proposal_data->project_guide_email_id == NULL
+ else
+ {
+ $project_guide_email_id = $proposal_data->project_guide_email_id;
+ }
$message['headers'] = $params['dwsim_flowsheet_proposal_disapproved']['headers'];
$message['subject'] = t('[!site_name][Flowsheeting Project] Your DWSIM Flowsheeting Project proposal has been disapproved', array(
'!site_name' => variable_get('site_name', '')
@@ -117,7 +144,7 @@ FOSSEE,IIT Bombay', array(
'body' => t('
Dear !user_name,
-Your DWSIM Flowsheeting Project proposal with the following details has been disapproved :
+We regret to inform you that your DWSIM Flowsheeting Project proposal with following details have been disapproved:
Full Name : ' . $proposal_data->name_title . ' ' . $proposal_data->student_name . '
Email : ' . $user_data->mail . '
@@ -127,24 +154,20 @@ City : ' . $proposal_data->city . '
State : ' . $proposal_data->state . '
Country : ' . $proposal_data->country . '
-Project Guide : ' . $proposal_data->project_guide_name . '
-Project Guide Email : ' . $proposal_data->project_guide_email_id . '
+Project Guide : ' . $project_guide_name . '
+Project Guide Email : ' . $project_guide_email_id . '
+
+DWSIM Version : ' . $proposal_data->version . '
Project Title : ' . $proposal_data->project_title . '
Name of compound for which process development is carried out : ' . $proposal_data->process_development_compound_name . '
-List of compounds from DWSIM Database used in process flowsheet : ' . $proposal_data->dwsim_database_compound_name . '
-
-List of user defined compounds used in process flowsheet : ' . $user_defined_compounds_used_in_process . '
-
-Uploaded user defined compound : ' . $file_name . '
-
-Reason for dissapproval : ' . $proposal_data->dissapproval_reason . '
+Reason for rejection: : ' . $proposal_data->dissapproval_reason . '
-Your are eligible to propose a new flowsheeting proposal.
+You are welcome to submit a new proposal.
Best Wishes,
@@ -181,6 +204,22 @@ FOSSEE,IIT Bombay', array(
{
$file_name = $params['dwsim_flowsheet_proposal_approved']['file_name'];
}
+ if ($proposal_data->project_guide_name == "NULL")
+ {
+ $project_guide_name = "Not Entered";
+ } //$proposal_data->project_guide_name == NULL
+ else
+ {
+ $project_guide_name = $proposal_data->project_guide_name;
+ }
+ if ($proposal_data->project_guide_email_id == "NULL")
+ {
+ $project_guide_email_id = "Not Entered";
+ } //$proposal_data->project_guide_email_id == NULL
+ else
+ {
+ $project_guide_email_id = $proposal_data->project_guide_email_id;
+ }
$message['headers'] = $params['dwsim_flowsheet_proposal_approved']['headers'];
$message['subject'] = t('[!site_name][Flowsheeting Project] Your DWSIM Flowsheeting Project proposal has been approved', array(
'!site_name' => variable_get('site_name', '')
@@ -201,20 +240,15 @@ City : ' . $proposal_data->city . '
State : ' . $proposal_data->state . '
Country : ' . $proposal_data->country . '
-Project Guide : ' . $proposal_data->project_guide_name . '
-Project Guide Email : ' . $proposal_data->project_guide_email_id . '
+Project Guide : ' . $project_guide_name . '
+Project Guide Email : ' . $project_guide_email_id . '
+
+DWSIM Version : ' . $proposal_data->version . '
Project Title : ' . $proposal_data->project_title . '
Name of compound for which process development is carried out : ' . $proposal_data->process_development_compound_name . '
-List of compounds from DWSIM Database used in process flowsheet : ' . $proposal_data->dwsim_database_compound_name . '
-
-List of user defined compounds used in process flowsheet : ' . $user_defined_compounds_used_in_process . '
-
-Uploaded user defined compound : ' . $file_name . '
-
-
You can upload your abstract using abstract submission interface.
@@ -253,6 +287,22 @@ FOSSEE,IIT Bombay', array(
{
$file_name = $params['dwsim_flowsheet_proposal_approved']['file_name'];
}
+ if ($proposal_data->project_guide_name == "NULL")
+ {
+ $project_guide_name = "Not Entered";
+ } //$proposal_data->project_guide_name == NULL
+ else
+ {
+ $project_guide_name = $proposal_data->project_guide_name;
+ }
+ if ($proposal_data->project_guide_email_id == "NULL")
+ {
+ $project_guide_email_id = "Not Entered";
+ } //$proposal_data->project_guide_email_id == NULL
+ else
+ {
+ $project_guide_email_id = $proposal_data->project_guide_email_id;
+ }
$message['headers'] = $params['dwsim_flowsheet_proposal_approved']['headers'];
$message['subject'] = t('[!site_name][Flowsheeting Project] Your DWSIM Flowsheeting Project proposal has been completed', array(
'!site_name' => variable_get('site_name', '')
@@ -263,7 +313,7 @@ FOSSEE,IIT Bombay', array(
'body' => t('
Dear !user_name,
-You have completed your DWSIM Flowsheeting Project with the following details:
+Your DWSIM flowsheet and abstract on the following process have been completed successfully.
Full Name : ' . $proposal_data->name_title . ' ' . $proposal_data->student_name . '
Email : ' . $user_data->mail . '
@@ -273,20 +323,14 @@ City : ' . $proposal_data->city . '
State : ' . $proposal_data->state . '
Country : ' . $proposal_data->country . '
-Project Guide : ' . $proposal_data->project_guide_name . '
-Project Guide Email : ' . $proposal_data->project_guide_email_id . '
+Project Guide : ' . $project_guide_name . '
+Project Guide Email : ' . $project_guide_email_id . '
+
+DWSIM Version : ' . $proposal_data->version . '
Project Title : ' . $proposal_data->project_title . '
Name of compound for which process development is carried out : ' . $proposal_data->process_development_compound_name . '
-
-List of compounds from DWSIM Database used in process flowsheet : ' . $proposal_data->dwsim_database_compound_name . '
-
-List of user defined compounds used in process flowsheet : ' . $user_defined_compounds_used_in_process . '
-
-Uploaded user defined compound : ' . $file_name . '
-
-
Best Wishes,
!site_name Team,
@@ -322,6 +366,22 @@ FOSSEE,IIT Bombay', array(
{
$file_name = $params['dwsim_flowsheet_proposal_approved']['file_name'];
}
+ if ($proposal_data->project_guide_name == "NULL")
+ {
+ $project_guide_name = "Not Entered";
+ } //$proposal_data->project_guide_name == NULL
+ else
+ {
+ $project_guide_name = $proposal_data->project_guide_name;
+ }
+ if ($proposal_data->project_guide_email_id == "NULL")
+ {
+ $project_guide_email_id = "Not Entered";
+ } //$proposal_data->project_guide_email_id == NULL
+ else
+ {
+ $project_guide_email_id = $proposal_data->project_guide_email_id;
+ }
$message['headers'] = $params['dwsim_flowsheet_proposal_deleted']['headers'];
$message['subject'] = t('[!site_name][Flowsheeting Project] Your DWSIM Flowsheeting Project proposal has been deleted', array(
'!site_name' => variable_get('site_name', '')
@@ -342,19 +402,15 @@ City : ' . $proposal_data->city . '
State : ' . $proposal_data->state . '
Country : ' . $proposal_data->country . '
-Project Guide : ' . $proposal_data->project_guide_name . '
-Project Guide Email : ' . $proposal_data->project_guide_email_id . '
+Project Guide : ' . $project_guide_name . '
+Project Guide Email : ' . $project_guide_email_id . '
+
+DWSIM Version : ' . $proposal_data->version . '
Project Title : ' . $proposal_data->project_title . '
Name of compound for which process development is carried out : ' . $proposal_data->process_development_compound_name . '
-List of compounds from DWSIM Database used in process flowsheet : ' . $proposal_data->dwsim_database_compound_name . '
-
-List of user defined compounds used in process flowsheet : ' . $user_defined_compounds_used_in_process . '
-
-Uploaded user defined compound : ' . $file_name . '
-
You can propose a new flowsheet project.