family suggest

This commit is contained in:
CHIEFSOFT\ameye
2023-09-24 16:44:08 -04:00
parent c9a8426e2d
commit a4bbe30adb
2 changed files with 32 additions and 72 deletions
@@ -1,4 +1,4 @@
Subject: {{subject}}
Subject: {{subject}} {{family_firstname}} !!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
@@ -20,15 +20,16 @@ border: none;
.cent{ text-align:center; }
.borderbottom {border-bottom: 1px solid #f2eeed;}
.ls1{ border-color: aliceblue; color: aliceblue;}
.subhead {font-size: 12px; color: #ffffff; font-family: Circular, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif; letter-spacing: 3px;}
.subhead {font-size: 16px; color: #ffffff; font-family: Circular, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif; letter-spacing: 3px;}
.h1, .h2, .bodycopy {color: #153643; font-family: Circular, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;}
.h1 {font-size: 33px; line-height: 38px; font-weight: bold;}
.bodycopy {font-size: 14px; line-height: 20px;}
.h1 {font-size: 16px; line-height: 38px; font-weight: bold;}
.bodycopy {font-size: 16px; line-height: 20px;}
.button {text-align: center; font-size: 16px; font-family: Circular, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif; font-weight: bold; padding: 0 30px 0 30px;}
.button a {color: #ffffff; text-decoration: none;}
.footer {padding: 20px 30px 15px 30px; bgcolor:#252f3e; background-color:#252f3e;}
.footercopy { font-family: Circular, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif; font-size: 14px; font-weight:bolder; color: #ffffff;}
.footercopy a {color: #ffffff; text-decoration: underline;}
.action_table{ background-color: aliceblue; font-size:25px; font-weight:bold; max-width: 425px; text-align:center;}
</style>
</head>
@@ -44,55 +45,32 @@ border: none;
<table bgcolor="#ffffff" class="content" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td bgcolor="#c7d8a7" class="header">
<table width="70" align="left" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="70" style="padding: 0 20px 20px 0;">
<img class="fix" src="{{server_name}}/assets/images/wrenchboard-icon.gif" width="70" height="70" border="0" alt="WrenchBoard" />
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
<table width="425" align="left" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<![endif]-->
<table class="col425" align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%; max-width: 425px;">
<tr>
<td height="50">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="h1" style="padding: 5px 0 0 0;">
{{site_name}}
</td>
</tr>
<tr>
<td class="subhead" style="padding: 0 0 0 3px;">
{{site_trade_name}}
</td>
</tr>
</table>
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
<tr>
<td class="h1" style="padding: 5px 0 0 0;">
<a href="https://www.wrenchboard.com/"><img src="https://www.wrenchboard.com/assets/images/wrenchboard-logo-text.png" style="width: 200px; height:auto;" alt="WrenchBoard"></a>
</td>
</tr>
<tr>
<td class="subhead" style="padding: 0 0 0 3px;">
{{site_trade_name}}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="innerpadding borderbottom">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="h3">
<b>Message from {{firstname}}</b>,
<td class="bodycopy">
Task suggestion from {{family_firstname}} to you.,
</td>
</tr>
<tr>
<td class="bodycopy">
The task at <a href="{{server_name}}/">{{site_name}}</a> shown below is fast approaching deadline.
</td>
</tr>
</table>
@@ -103,7 +81,7 @@ The task at <a href="{{server_name}}/">{{site_name}}</a> shown below is fast app
<table width="115" align="left" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="115" style="padding: 0 20px 20px 0;">
<img class="fix" src="{{server_name}}/assets/images/article1.png" width="115" height="115" border="0" alt="" />
<img class="fix" src="https://www.wrenchboard.com/assets/images/apps/family/{{banner}}" width="115" height="115" border="0" alt="" />
</td>
</tr>
</table>
@@ -117,52 +95,34 @@ The task at <a href="{{server_name}}/">{{site_name}}</a> shown below is fast app
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="bodycopy" style="font-size: 14px; font-family: sans-serif; border: 1px solid #f2eeed; background-color:#e6f9ff;">
<tr>
<td style="width:100px;">
<b>Title: </b>
<td class="bodycopy" style="font-weight:border;">
{{title}}
</td>
</tr>
<tr>
<td>
<b>Job ID: </b>
{{contract}}
<td class="bodycopy">
{{description}}
</td>
</tr>
<tr>
<td>
This task will be due very soon. After the due date, the task will be past due, and only the owner can extend it is for a short time before the task is closed permanently.
<td class="bodycopy" style="padding-top: 20px;">
<b>{{family_firstname}}</b> is waiting for your approval to get started soon.
</td>
</tr>
<tr>
<td>
<b>Delivery Date: </b>
{{delivery_date}}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><h4>Please <a href ="{{server_name}}/eoffer?offerID={{offer_code}}">login</a> into your account to manage this task.</h4>
<td class="bodycopy">
Go to your <a href ="{{server_name}}">account</a> to get task started.
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
<tr>
<td class="innerpadding borderbottom">
<img class="fix" src="{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
</td>
</tr>
<tr>
<td class="innerpadding bodycopy">
Please contact us at https://www.wrenchboard.com/contact if you have any question about this email.
+2 -2
View File
@@ -358,11 +358,11 @@ long family_email(long mailtype, CVars in, CVars &out) {
case WRENCHBOARD_FAMILY_SGGESTTASKS:
REQ_LONG(in, "suggest_id", 1, -1);
if (load_db_record(x, "SELECT s.*,m.email AS parent_email FROM members_family_suggesttask s "
if (load_db_record(x, "SELECT s.*,m.email AS parent_email,f.firstname AS family_firstname FROM members_family_suggesttask s "
" LEFT JOIN members_family f ON f.family_member_id = s.member_id "
" LEFT JOIN members m ON m.id=f.member_id WHERE s.id = %lu", in["suggest_id"].Long())) {
vars2form(x, form);
form.LetStr("subject", "You have recieved a task suggestion!");
form.LetStr("subject", "You have received a task suggestion from");
form.LetStr("email", x["parent_email"].c_str());
form.Email("FAMILY/family_suggest_task.mailfile");
}