Added market emsil
This commit is contained in:
@@ -0,0 +1,140 @@
|
||||
Subject: Welcome to {{site_name}}
|
||||
|
||||
<!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">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome to {{site_name}}</title>
|
||||
<style type="text/css">
|
||||
body {margin: 0; padding: 0; min-width: 100%!important; font-family: sans-serif;}
|
||||
.content {width: 100%; max-width: 600px;}
|
||||
.header {padding: 10px 10px 10px 10px;}
|
||||
.innerpadding {padding: 10px 10px 10px 10px;}
|
||||
.signup_random{ font-size: 44px; padding:10px; margin:10px;}
|
||||
.line-band {height 20px;}
|
||||
.warning{color:lightred; font-weight: bolder; padding 10px;}
|
||||
.continue-web{background-color:aliceblue; padding:10px;}
|
||||
.cent-ver{text-align:center; }
|
||||
.borderbottom {border-bottom: 1px solid #f2eeed;}
|
||||
.subhead {font-size: 12px; color: #ffffff; font-family: sans-serif; letter-spacing: 3px;}
|
||||
.h1, .h2, .bodycopy {color: #153643; font-family: sans-serif;}
|
||||
.h1 {font-size: 33px; line-height: 38px; font-weight: bold;}
|
||||
.bodycopy {font-size: 14px; line-height: 20px; padding-bottom:10px;}
|
||||
.button {text-align: center; font-size: 16px; font-family: sans-serif; font-weight: bold; padding: 0 30px 0 30px;}
|
||||
.button a {color: #ffffff; text-decoration: none;}
|
||||
.footer {padding: 20px 30px 15px 30px; bgcolor:#007bff; background-color:#007bff;}
|
||||
.footercopy {font-family: sans-serif; font-size: 14px; color: #ffffff;}
|
||||
.footercopy a {color: #ffffff; text-decoration: underline;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="margin: 0; padding: 10px; min-width: 100%!important; font-size: 14px; line-height: 20px; font-family: sans-serif; background-color:#f6f8f1;" bgcolor="#f6f8f1; padding: 10px;">
|
||||
<table style="max-width:640px; margin:0px auto auto auto" bgcolor="#f6f8f1" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<table bgcolor="#ffffff" class="content" align="center" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td class="header">
|
||||
<table align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%; max-width: 600px;">
|
||||
<tr>
|
||||
<td height="30" border="0" style="text-align:center;">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
|
||||
<tr>
|
||||
<td style="padding: 1px 0 1px 0; text-align:center;">
|
||||
<a href="https://www.wrenchboard.com/"><img src="https://www.wrenchboard.com/assets/ext/images/wrenchboard.png" alt="WrenchBoard"></a> <!-- {{site_name}} -->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="subhead"
|
||||
style="font-size: 12px; color: #ffffff; font-family: sans-serif; letter-spacing: 3px; color:black; padding: 0 0 0 3px; text-align:center;">
|
||||
{{site_trade_name}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="innerpadding borderbottom" style="padding: 10px 10px 10px 10px;">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="bodycopy" style="padding-bottom:10px;">
|
||||
Dear <b>{{firstname}}</b>,
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bodycopy" style="padding-bottom:10px;">
|
||||
Welcome to <a href="{{server_name}}">{{site_name}}</a>, your account is now verified and ready to go.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bodycopy" style="padding-bottom:10px;">
|
||||
<hr />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bodycopy" style="padding-bottom:10px;">
|
||||
|
||||
With <a href="{{server_name}}">{{site_name}}</a>, you can set up a family accounts and reward achievements or set up tasks for others to perform or simply find tasks that rewards you
|
||||
<hr size="1">
|
||||
<div style="background-color:#fce6f2; margin-top: 10px; padding: 5px;">
|
||||
If you did not initiate this account creation or have any further support question, Please contact us at {{server_name}}/contact<br>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="innerpadding bodycopy" style="padding: 10px 10px 10px 10px;">
|
||||
{{site_name}} Team
|
||||
<br>
|
||||
{{server_name}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="footer" style="color:#ffffff; padding: 20px 30px 15px 30px; bgcolor:#007bff; background-color:#007bff;">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" class="footercopy">
|
||||
® {{site_name}} {{YYYY}}<br/>
|
||||
You received this email because you subscribe to {{site_name}}. If you get this email in error, please <a href="{{main_site_url}}contact" class="unsubscribe"><font color="#ffffff">contact</font></a> us.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="padding: 20px 0 0 0;">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="37" style="text-align: center; padding: 0 10px 0 10px;">
|
||||
<a href="https://www.facebook.com/wrenchboard/">
|
||||
<img src="{{server_name}}/assets/images/brands/facebook.png" width="37" height="37" alt="Facebook" border="0" />
|
||||
</a>
|
||||
</td>
|
||||
<td width="37" style="text-align: center; padding: 0 10px 0 10px;">
|
||||
<a href="http://www.twitter.com/">
|
||||
<img src="{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -383,6 +383,25 @@ long market_email(long mailtype, CVars in, CVars &out) {
|
||||
}
|
||||
break;
|
||||
|
||||
case WRENCHBOARD_MARKET_PLAN01_START:
|
||||
if (load_db_record(x, "SELECT * FROM members WHERE id =1")) {
|
||||
vars2form(x, form);
|
||||
form.LetStr("subject", "You have received a task suggestion from");
|
||||
//form.LetStr("email", x["parent_email"].c_str());
|
||||
form.LetStr("email", "ameye@chiefsoft.com");
|
||||
form.Email("MARKET/market_invite_step1.mailfile");
|
||||
}
|
||||
break;
|
||||
|
||||
case WRENCHBOARD_MARKET_PLAN01_NEXT1:
|
||||
if (load_db_record(x, "SELECT * FROM members WHERE id =1")) {
|
||||
vars2form(x, form);
|
||||
form.LetStr("subject", "You have received a task suggestion from");
|
||||
//form.LetStr("email", x["parent_email"].c_str());
|
||||
form.LetStr("email", "ameye@chiefsoft.com");
|
||||
form.Email("MARKET/market_invite_step1.mailfile");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
} catch (bad_parameter) {
|
||||
|
||||
@@ -25,13 +25,14 @@ long market_calls(CVars in, CVars &out) {
|
||||
long action = REQ_LONG( in, "action", 1, -1 );
|
||||
switch(action){
|
||||
case WRENCHBOARD_MARKET_PLAN01_START:
|
||||
//file_uid is the UID of the user
|
||||
snprintf(vname, sizeof (vname), "SELECT uid AS member_uid, profile_pic AS saved_file_name FROM members WHERE uid ='%s'", in["file_uid"].c_str());
|
||||
market_email(WRENCHBOARD_MARKET_PLAN01_START, in, in);
|
||||
|
||||
break;
|
||||
|
||||
case WRENCHBOARD_MARKET_PLAN01_NEXT1:
|
||||
//file_uid is the UID of the user
|
||||
snprintf(vname, sizeof (vname), "SELECT uid AS member_uid, profile_pic AS saved_file_name FROM members WHERE uid ='%s'", in["file_uid"].c_str());
|
||||
market_email(WRENCHBOARD_MARKET_PLAN01_START, in, in);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user