fix
This commit is contained in:
@@ -10,7 +10,7 @@ Subject: {{subject}} - {{title}}
|
||||
body {margin: 0; padding: 0; min-width: 100%!important;}
|
||||
img {height: auto;}
|
||||
.content {width: 100%; max-width: 600px;}
|
||||
.header {padding: 40px 30px 20px 30px;}
|
||||
.header {padding: 10px 30px 10px 30px;}
|
||||
.innerpadding {padding: 30px 30px 30px 30px;}
|
||||
.borderbottom {border-bottom: 1px solid #f2eeed;}
|
||||
.subhead {font-size: 12px; color: #ffffff; font-family: sans-serif; letter-spacing: 3px;}
|
||||
@@ -23,7 +23,8 @@ Subject: {{subject}} - {{title}}
|
||||
.footer {padding: 20px 30px 15px 30px;}
|
||||
.footercopy {font-family: sans-serif; font-size: 14px; color: #ffffff;}
|
||||
.footercopy a {color: #ffffff; text-decoration: underline;}
|
||||
|
||||
.sect-text {font-weight: bold; }
|
||||
.big-danger{ font-weight: bold; font-size: 18px; line-height: 20px; color:red;}
|
||||
@media only screen and (max-width: 550px), screen and (max-device-width: 550px) {
|
||||
body[yahoo] .hide {display: none!important;}
|
||||
body[yahoo] .buttonwrapper {background-color: transparent!important;}
|
||||
@@ -53,93 +54,76 @@ Subject: {{subject}} - {{title}}
|
||||
<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 class="h1" style="padding: 0px 0 0 0; text-align:center;">
|
||||
<a href="https://www.wrenchboard.com/"><img src="https://dashboard.wrenchboard.com/assets/ext/images/wrenchboard.png" alt="WrenchBoard"></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="subhead" style="padding: 0 0 0 3px;">
|
||||
<td class="subhead" style="padding: 0 0 0 3px; text-align:center;">
|
||||
{{site_trade_name}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!--[if (gte mso 9)|(IE)]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="innerpadding borderbottom">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="h3">
|
||||
<b>Dear {{email}}</b>,
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bodycopy">
|
||||
You have received a job offer from a <a href="{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> user with details below.
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5px;">
|
||||
<tr>
|
||||
<td class="bodycopy">
|
||||
<b>Hi, {{email}}</b>,
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bodycopy">
|
||||
You have received a job offer from a <a href="{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> user with details below.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="innerpadding borderbottom">
|
||||
<!--[if (gte mso 9)|(IE)]>
|
||||
<table width="100%" align="left" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<![endif]-->
|
||||
<table class="col380" align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
|
||||
<tr>
|
||||
<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;">
|
||||
Title
|
||||
</td>
|
||||
<td class="bodycopy">
|
||||
{{title}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="bodycopy">
|
||||
Please <a href ="{{server_name}}/eoffer?offerID={{offer_code}}">login</a> into your account to accept this offer.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="big-danger">
|
||||
Offer Expire : {{expire2}}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
Offer ID
|
||||
</td>
|
||||
<td class="bodycopy">
|
||||
<a href ="{{server_name}}/eoffer?offerID={{offer_code}}">{{offer_code}}</a>
|
||||
<hr size="1">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="2" class="bodycopy" style="font-size: 14px; font-family: sans-serif; border: 1px solid #f2eeed; background-color:#e6f9ff;">
|
||||
<tr>
|
||||
<td class="sect-text">
|
||||
Title
|
||||
</td>
|
||||
<td class="bodycopy">
|
||||
{{title}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="sect-text">
|
||||
Offer ID
|
||||
</td>
|
||||
<td class="bodycopy">
|
||||
<a href ="{{server_name}}/eoffer?offerID={{offer_code}}">{{offer_code}}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="sect-text">
|
||||
Description
|
||||
</td>
|
||||
<td class="bodycopy">
|
||||
@@ -148,7 +132,7 @@ You have received a job offer from a <a href="{{server_name}}/eoffer?offerID={{o
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<td class="sect-text">
|
||||
Duration
|
||||
</td>
|
||||
<td class="bodycopy">
|
||||
@@ -157,49 +141,47 @@ You have received a job offer from a <a href="{{server_name}}/eoffer?offerID={{o
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<td class="sect-text">
|
||||
Price
|
||||
</td>
|
||||
<td class="bodycopy">
|
||||
{{price}} Naira
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
Detail
|
||||
<td class="sect-text">
|
||||
Detail
|
||||
</td>
|
||||
<td class="bodycopy">
|
||||
{{job_description}}
|
||||
{{job_description}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
Offer Expire
|
||||
</td>
|
||||
<td class="bodycopy">
|
||||
{{expire2}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>Please <a href ="{{server_name}}/eoffer?offerID={{offer_code}}">login</a> into your account to accept this offer.</h4>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!--[if (gte mso 9)|(IE)]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<![endif]-->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="innerpadding borderbottom">
|
||||
<table width="100%" border="0" >
|
||||
<tr>
|
||||
<td>
|
||||
<a href="https://apps.apple.com/us/app/wrenchboard/id1435718367?ls=1">
|
||||
<img src="{{server_name}}/assets/images/download-apple.jpg" alt="Apple" border="0" />
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://apps.apple.com/us/app/wrenchboard/id1435718367?ls=1">
|
||||
<img src="{{server_name}}/assets/images/download-android.jpg" alt="Android" border="0" />
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="innerpadding bodycopy">
|
||||
Please contact us at https://www.wrenchboard.com/contact if you have any question about this email.
|
||||
@@ -217,8 +199,8 @@ You have received a job offer from a <a href="{{server_name}}/eoffer?offerID={{o
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
|
||||
<tr>
|
||||
<td align="center" class="footercopy">
|
||||
® {{site_name}} 2022<br/>
|
||||
You received this email because a user sent a job to you from {{site_name}}. If you get this email in error, please <a href="{{server_name}}/contactus" class="unsubscribe"><font color="#ffffff">contact</font></a> us.
|
||||
® {{site_name}} {{YYYY}}<br/>
|
||||
You received this email because a user sent a job to you from {{site_name}}. If you get this email in error, please <a href="https://www.wrenchboard.com/contact" class="unsubscribe"><font color="#ffffff">contact</font></a> us.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -924,7 +924,7 @@ long test_email(CVars in, CVars &out) {
|
||||
form.LetStr("subject", "This is Test Email");
|
||||
form.LetStr("email", in["email"].c_str());
|
||||
form.Email("ALERT/template.mailfile");
|
||||
*/
|
||||
|
||||
if (load_db_record(x, "SELECT o.*,to_char(o.expire, 'Day Mon dd, yyyy HH:MI AM') AS expire2,j.title,j.description,j.timeline_days,j.price FROM members_jobs_offer o LEFT JOIN members_jobs j ON j.id =o.job_id WHERE o.id = %lu AND o.status >0", in["offer_id"].Long())) {
|
||||
vars2form(x, form);
|
||||
if (load_db_record(y, "SELECT email,balance,firstname FROM members WHERE id = %lu", x["member_id"].Long())) {
|
||||
@@ -941,6 +941,15 @@ long test_email(CVars in, CVars &out) {
|
||||
form.Email("JOB/job_interest_client.mailfile");
|
||||
}
|
||||
|
||||
}
|
||||
,to_char(now(), 'yyyy') AS YYYY
|
||||
*/
|
||||
logfmt(logINFO, "JOBS_INDIVIDUAL_OFFER_MAIL");
|
||||
if (load_db_record(x, "SELECT o.*,to_char(o.expire, 'Day Mon dd, yyyy HH:MI AM') AS expire2,j.title,j.description,j.timeline_days,j.price,to_char(now(), 'yyyy') AS YYYY FROM members_jobs_offer o LEFT JOIN members_jobs j ON j.id =o.job_id WHERE o.id = %lu", in["offer_id"].Long())) {
|
||||
vars2form(x, form);
|
||||
form.LetStr("subject", "Job Offer Recieved");
|
||||
form.LetStr("email", x["email"].c_str());
|
||||
form.Email("JOB/job_offer_invidual.mailfile");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user