Merge branch 'master' of ssh://gitlab.chiefsoft.net/WrenchBoard/WrenchBoradWeb

This commit is contained in:
ChiefSoft works
2022-10-22 00:17:56 +00:00
53 changed files with 1428 additions and 1059 deletions
@@ -66,27 +66,22 @@ img {height: auto;}
</tr>
<tr>
<td class="innerpadding borderbottom">
<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="https://{{server_name}}/assets/images/article1.png" width="115" height="115" border="0" alt="" />
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
<table width="380" align="left" cellpadding="0" cellspacing="0" border="0">
<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%; max-width: 380px;">
<table class="col380" align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="bodycopy">
<a href="http://{{server_name}}">{{site_name}}</a> empowers you to find jobs or join jobs group. With <a href="https://{{server_name}}">{{site_name}}</a> you can set up and post your jobs and find expert skills sets to get them done.
<a href="{{server_name}}">{{site_name}}</a> empowers you to find jobs or join jobs group. With <a href="{{server_name}}">{{site_name}}</a> you can set up and post your jobs and find expert skills sets to get them done.
<br>
With <a href="http://{{server_name}}">{{site_name}}</a>, you can enjoy free coordinated skills training section. Empower yourself and be around those that work with latest to update your knowledge.<br>
<hr/>
With <a href="{{server_name}}">{{site_name}}</a>, you can enjoy free coordinated skills training section. Empower yourself and be around those that work with latest to update your knowledge.<br>
</td>
</tr>
@@ -104,14 +99,14 @@ With <a href="http://{{server_name}}">{{site_name}}</a>, you can enjoy free coor
</tr>
<tr>
<td class="innerpadding borderbottom">
<img class="fix" src="https://{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
</td>
</tr>
<tr>
<td class="innerpadding bodycopy">
If you did not initiate this account creation or have any further support question, Please contact us at https://{{server_name}}/contact<br>
If you did not initiate this account creation or have any further support question, Please contact us at {{server_name}}/contact<br>
<hr size="1">
With <a href="http://{{server_name}}">{{site_name}}</a>, you can enjoy free coordinated skills training section. Empower yourself and be around those that work with latest to update your knowledge.
With <a href="{{server_name}}">{{site_name}}</a>, you can enjoy free coordinated skills training section. Empower yourself and be around those that work with latest to update your knowledge.
</td>
</tr>
<tr>
@@ -127,7 +122,7 @@ With <a href="http://{{server_name}}">{{site_name}}</a>, you can enjoy free coor
<tr>
<td align="center" class="footercopy">
&reg; {{site_name}} 2022<br/>
You received this email because you subscribe to {{site_name}}. If you get this email in error, please <a href="https://{{server_name}}/contactus" class="unsubscribe"><font color="#ffffff">contact</font></a> us.
You received this email because you subscribe to {{site_name}}. If you get this email in error, please <a href="{{server_name}}/contactus" class="unsubscribe"><font color="#ffffff">contact</font></a> us.
</td>
</tr>
@@ -1,4 +1,4 @@
Subject: {{subject}}
Subject: System Alert : {{subject}}
<!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">
@@ -1,4 +1,4 @@
Subject: WrenchBoard Report {{site_name}}
Subject: System Alert-WrenchBoard Report {{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">
@@ -1,4 +1,4 @@
Subject: {{subject}}
Subject: System Alert : {{subject}}
<!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">
@@ -1,4 +1,4 @@
Subject: WrenchBoard Signup Pending ALERT
Subject: System Alert-WrenchBoard Signup Pending ALERT
<!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">
@@ -1,4 +1,4 @@
Subject: {{site_name}} - Completed Signup ALERT
Subject: System Alert-{{site_name}} - Completed Signup ALERT
<!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">
+1 -1
View File
@@ -1,4 +1,4 @@
Subject: {{subject}}
Subject: System Alert-{{subject}}
<!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">
@@ -62,14 +62,14 @@ img {height: auto;}
</tr>
<tr>
<td class="bodycopy">
You now have <b>{{preview_count}} task(s)</b> at <a href="https://{{server_name}}/">{{site_name}}</a> in <b>"Preview"</b> status and your attention is needed.
You now have <b>{{preview_count}} task(s)</b> at <a href="{{server_name}}/">{{site_name}}</a> in <b>"Preview"</b> status and your attention is needed.
</td>
</tr>
<tr>
<td class="bodycopy">
<hr size="1">
It is essential that you login and process the task(s) appropriately. In the event of no response from you, <a href="https://{{server_name}}/">{{site_name}}</a> will automatically pay the client and close the task for you in few hours.
It is essential that you login and process the task(s) appropriately. In the event of no response from you, <a href="{{server_name}}/">{{site_name}}</a> will automatically pay the client and close the task for you in few hours.
</td>
</tr>
@@ -83,7 +83,7 @@ It is essential that you login and process the task(s) appropriately. In the eve
<tr>
<td class="bodycopy">
<hr size="1">
<h4>Please <a href ="https://{{server_name}}/eoffer?offerID={{offer_code}}">login</a> into your account to manage this task.</h4>
<h4>Please <a href ="{{server_name}}/eoffer?offerID={{offer_code}}">login</a> into your account to manage this task.</h4>
</td>
</tr>
@@ -120,12 +120,12 @@ You received this email because you subscribe to {{site_name}}. If you get this
<tr>
<td width="37" style="text-align: center; padding: 0 10px 0 10px;">
<a href="https://www.facebook.com/wrenchboard/">
<img src="https://{{server_name}}/assets/images/brands/facebook.png" width="37" height="37" alt="Facebook" border="0" />
<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="https://{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
<img src="{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
</a>
</td>
</tr>
@@ -56,7 +56,7 @@ body[yahoo] .unsubscribe {display: block; margin-top: 20px; padding: 10px 50px;
<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="https://{{server_name}}/assets/images/wrenchboard-icon.gif" width="70" height="70" border="0" alt="WrenchBoard" />
<img class="fix" src="{{server_name}}/assets/images/wrenchboard-icon.gif" width="70" height="70" border="0" alt="WrenchBoard" />
</td>
</tr>
</table>
@@ -101,7 +101,7 @@ body[yahoo] .unsubscribe {display: block; margin-top: 20px; padding: 10px 50px;
</tr>
<tr>
<td class="bodycopy">
The task at <a href="https://{{server_name}}/">{{site_name}}</a> shown below is fast approaching deadline.
The task at <a href="{{server_name}}/">{{site_name}}</a> shown below is fast approaching deadline.
</td>
</tr>
</table>
@@ -112,7 +112,7 @@ The task at <a href="https://{{server_name}}/">{{site_name}}</a> shown below is
<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="https://{{server_name}}/assets/images/article1.png" width="115" height="115" border="0" alt="" />
<img class="fix" src="{{server_name}}/assets/images/article1.png" width="115" height="115" border="0" alt="" />
</td>
</tr>
</table>
@@ -156,7 +156,7 @@ This task will be due very soon. After the due date, the task will be past due,
</td>
</tr>
<tr>
<td><h4>Please <a href ="https://{{server_name}}/eoffer?offerID={{offer_code}}">login</a> into your account to manage this task.</h4>
<td><h4>Please <a href ="{{server_name}}/eoffer?offerID={{offer_code}}">login</a> into your account to manage this task.</h4>
</td>
</tr>
</table>
@@ -169,7 +169,7 @@ This task will be due very soon. After the due date, the task will be past due,
</tr>
<tr>
<td class="innerpadding borderbottom">
<img class="fix" src="https://{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
<img class="fix" src="{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
</td>
</tr>
<tr>
@@ -199,12 +199,12 @@ You received this email because a subscriber to {{site_name}}. If you get this e
<tr>
<td width="37" style="text-align: center; padding: 0 10px 0 10px;">
<a href="https://www.facebook.com/wrenchboard/">
<img src="https://{{server_name}}/assets/images/brands/facebook.png" width="37" height="37" alt="Facebook" border="0" />
<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="https://{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
<img src="{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
</a>
</td>
</tr>
@@ -10,34 +10,18 @@ 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;}
.innerpadding {padding: 30px 30px 30px 30px;}
.header {padding: 10px 10px 10px 10px;}
.innerpadding {padding: 10px 10px 10px 10px;}
.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;}
.h2 {padding: 0 0 15px 0; font-size: 24px; line-height: 28px; font-weight: bold;}
.bodycopy {font-size: 14px; line-height: 20px;}
.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;}
.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;}
@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;}
body[yahoo] .button {padding: 0px!important;}
body[yahoo] .button a {background-color: #e05443; padding: 15px 15px 13px!important;}
body[yahoo] .unsubscribe {display: block; margin-top: 20px; padding: 10px 50px; background: #2f3942; border-radius: 5px; text-decoration: none!important; font-weight: bold;}
}
/*@media only screen and (min-device-width: 601px) {
.content {width: 600px !important;}
.col425 {width: 425px!important;}
.col380 {width: 380px!important;}
}*/
</style>
</head>
@@ -53,41 +37,41 @@ body[yahoo] .unsubscribe {display: block; margin-top: 20px; padding: 10px 50px;
<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>
<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="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">
<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>
<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]-->
</td>
</tr>
@@ -114,7 +98,7 @@ body[yahoo] .unsubscribe {display: block; margin-top: 20px; padding: 10px 50px;
<table class="col380" align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
<tr>
<td class="bodycopy">
<h4>We have delivered your interest in the task at <a href="https://{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> with details shown below to the task owner.</h4>
<h4>We have delivered your interest in the task at <a href="{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> with details shown below to the task owner.</h4>
</td>
</tr>
@@ -196,11 +180,6 @@ Note that this task was posted in the public domain and the owner can select any
</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.
</td>
@@ -113,7 +113,7 @@ body[yahoo] .unsubscribe {display: block; margin-top: 20px; padding: 10px 50px;
<table class="col380" align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
<tr>
<td class="bodycopy">
<h4>You have received an interest in your task at <a href="https://{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> with details shown below.</h4>
<h4>You have received an interest in your task at <a href="{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> with details shown below.</h4>
</td>
</tr>
+26 -8
View File
@@ -83,7 +83,7 @@ img {height: auto;}
</tr>
<tr>
<td class="bodycopy">
You have received a job message from <a href="https://{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> details below.
You have received a job message from <a href="{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> details below.
</td>
</tr>
</table>
@@ -100,7 +100,25 @@ You have received a job message from <a href="https://{{server_name}}/eoffer?off
<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;">
<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>
<table width="100%" border="0" cellspacing="1" cellpadding="5" class="bodycopy" style="font-size: 14px; font-family: sans-serif; border: 1px solid #f2eeed;">
<tr>
<td style="width:90px;">
<b>Title :</b>
@@ -114,7 +132,7 @@ You have received a job message from <a href="https://{{server_name}}/eoffer?off
<b>Job ID :</b>
</td>
<td class="bodycopy">
<a href ="https://{{server_name}}/eoffer?offerID={{contract}}">{{contract}}</a>
<a href ="{{server_name}}/eoffer?offerID={{contract}}">{{contract}}</a>
</td>
</tr>
<tr style="background-color:#e6f9ff;">
@@ -144,7 +162,7 @@ You have received a job message from <a href="https://{{server_name}}/eoffer?off
</td>
</tr>
<tr>
<td><h4>Please <a href ="https://{{server_name}}/eoffer?offerID={{offer_code}}">login</a> into your account to reply this message.</h4>
<td><h4>Please <a href ="{{server_name}}/eoffer?offerID={{offer_code}}">login</a> into your account to reply this message.</h4>
</td>
</tr>
</table>
@@ -157,7 +175,7 @@ You have received a job message from <a href="https://{{server_name}}/eoffer?off
</tr>
<tr>
<td class="innerpadding borderbottom">
<img class="fix" src="https://{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
<img class="fix" src="{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
</td>
</tr>
<tr>
@@ -178,7 +196,7 @@ Please contact us at https://www.wrenchboard.com/contact if you have any questi
<tr>
<td align="center" class="footercopy">
&reg; {{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="https://{{server_name}}/contactus" class="unsubscribe"><font color="#ffffff">contact</font></a> us.
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.
</td>
</tr>
<tr>
@@ -187,12 +205,12 @@ You received this email because a user sent a job to you from {{site_name}}. If
<tr>
<td width="37" style="text-align: center; padding: 0 10px 0 10px;">
<a href="https://www.facebook.com/wrenchboard/">
<img src="https://{{server_name}}/assets/images/brands/facebook.png" width="37" height="37" alt="Facebook" border="0" />
<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="https://{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
<img src="{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
</a>
</td>
</tr>
+25 -6
View File
@@ -82,7 +82,7 @@ img {height: auto;}
</tr>
<tr>
<td class="bodycopy">
You have sent a message <a href="https://{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> to a user with details below.
You have sent a message <a href="{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> to a user with details below.
</td>
</tr>
@@ -97,6 +97,25 @@ You have sent a message <a href="https://{{server_name}}/eoffer?offerID={{offer_
<td>
<![endif]-->
<table class="col380" align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
<tr>
<td>
<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>
<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;">
@@ -115,7 +134,7 @@ You have sent a message <a href="https://{{server_name}}/eoffer?offerID={{offer_
Job ID
</td>
<td class="bodycopy">
<a href ="https://{{server_name}}/eoffer?offerID={{contract}}">{{contract}}</a>
<a href ="{{server_name}}/eoffer?offerID={{contract}}">{{contract}}</a>
</td>
</tr>
@@ -151,7 +170,7 @@ Last Message
</td>
</tr>
<tr>
<td><h4>Please <a href ="https://{{server_name}}/eoffer?offerID={{offer_code}}">login</a> into your account to reply this message.</h4>
<td><h4>Please <a href ="{{server_name}}/eoffer?offerID={{offer_code}}">login</a> into your account to reply this message.</h4>
</td>
</tr>
</table>
@@ -164,7 +183,7 @@ Last Message
</tr>
<tr>
<td class="innerpadding borderbottom">
<img class="fix" src="https://{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
<img class="fix" src="{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
</td>
</tr>
<tr>
@@ -194,12 +213,12 @@ You received this email because a user sent a job to you from {{site_name}}. If
<tr>
<td width="37" style="text-align: center; padding: 0 10px 0 10px;">
<a href="https://www.facebook.com/wrenchboard/">
<img src="https://{{server_name}}/assets/images/brands/facebook.png" width="37" height="37" alt="Facebook" border="0" />
<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="https://{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
<img src="{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
</a>
</td>
</tr>
@@ -89,7 +89,7 @@ img {height: auto;}
<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="https://{{server_name}}/assets/images/article1.png" width="115" height="115" border="0" alt="" />
<img class="fix" src="{{server_name}}/assets/images/article1.png" width="115" height="115" border="0" alt="" />
</td>
</tr>
</table>
@@ -101,7 +101,7 @@ img {height: auto;}
<table class="col380" align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%; max-width: 380px;">
<tr>
<td class="bodycopy">
<h4>You have accepted the job offer from a <a href="https://{{server_name}}/eoffer?offerID={{contract}}">{{site_name}}</a> user with details below.</h4>
<h4>You have accepted the job offer from a <a href="{{server_name}}/eoffer?offerID={{contract}}">{{site_name}}</a> user with details below.</h4>
</td>
</tr>
@@ -123,7 +123,7 @@ img {height: auto;}
Offer ID
</td>
<td class="bodycopy">
<a href ="https://{{server_name}}/eoffer?offerID={{contract}}">{{contract}}</a>
<a href ="{{server_name}}/eoffer?offerID={{contract}}">{{contract}}</a>
</td>
</tr>
@@ -190,7 +190,7 @@ img {height: auto;}
</tr>
<tr>
<td class="innerpadding borderbottom">
<img class="fix" src="https://{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
<img class="fix" src="{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
</td>
</tr>
<tr>
@@ -211,7 +211,7 @@ img {height: auto;}
<tr>
<td align="center" class="footercopy">
&reg; {{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="https://{{server_name}}/contactus" class="unsubscribe"><font color="#ffffff">contact</font></a> us.
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>
@@ -220,12 +220,12 @@ img {height: auto;}
<tr>
<td width="37" style="text-align: center; padding: 0 10px 0 10px;">
<a href="https://www.facebook.com/wrenchboard/">
<img src="https://{{server_name}}/assets/images/brands/facebook.png" width="37" height="37" alt="Facebook" border="0" />
<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="https://{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
<img src="{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
</a>
</td>
</tr>
@@ -244,8 +244,5 @@ img {height: auto;}
</td>
</tr>
</table>
<!--analytics-->
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
</body>
</html>
@@ -89,7 +89,7 @@ img {height: auto;}
<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="https://{{server_name}}/assets/images/article1.png" width="115" height="115" border="0" alt="" />
<img class="fix" src="{{server_name}}/assets/images/article1.png" width="115" height="115" border="0" alt="" />
</td>
</tr>
</table>
@@ -101,7 +101,7 @@ img {height: auto;}
<table class="col380" align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%; max-width: 380px;">
<tr>
<td class="bodycopy">
<h4>The offer below from a <a href="https://{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> with details below is canceled.</h4>
<h4>The offer below from a <a href="{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> with details below is canceled.</h4>
</td>
</tr>
@@ -123,7 +123,7 @@ img {height: auto;}
Offer ID
</td>
<td class="bodycopy">
<a href ="https://{{server_name}}/eoffer?offerID={{offer_code}}">{{offer_code}}</a>
<a href ="{{server_name}}/eoffer?offerID={{offer_code}}">{{offer_code}}</a>
</td>
</tr>
@@ -180,7 +180,7 @@ img {height: auto;}
</tr>
<tr>
<td class="innerpadding borderbottom">
<img class="fix" src="https://{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
<img class="fix" src="{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
</td>
</tr>
<tr>
@@ -201,7 +201,7 @@ img {height: auto;}
<tr>
<td align="center" class="footercopy">
&reg; {{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="https://{{server_name}}/contactus" class="unsubscribe"><font color="#ffffff">contact</font></a> us.
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.
</td>
</tr>
<tr>
@@ -210,12 +210,12 @@ img {height: auto;}
<tr>
<td width="37" style="text-align: center; padding: 0 10px 0 10px;">
<a href="https://www.facebook.com/wrenchboard/">
<img src="https://{{server_name}}/assets/images/brands/facebook.png" width="37" height="37" alt="Facebook" border="0" />
<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="https://{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
<img src="{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
</a>
</td>
</tr>
@@ -235,7 +235,6 @@ img {height: auto;}
</tr>
</table>
<!--analytics-->
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
</body>
</html>
+81 -107
View File
@@ -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,102 +54,77 @@ 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">
</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>
<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:#eaf7fb;">
<tr>
<td class="sect-text">
Title
</td>
<td class="bodycopy">
{{title}}
</td>
</tr>
<tr>
<td>
Offer ID
</td>
<td class="bodycopy">
<a href ="{{server_name}}/eoffer?offerID={{offer_code}}">{{offer_code}}</a>
</td>
</tr>
<tr>
<td>
Description
<td class="sect-text">
Offer ID
</td>
<td class="bodycopy">
{{description}}
<a href ="{{server_name}}/eoffer?offerID={{offer_code}}">{{offer_code}}</a>
</td>
</tr>
<tr>
<td>
<tr>
<td class="sect-text">
Duration
</td>
<td class="bodycopy">
@@ -157,49 +133,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 +191,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">
&reg; {{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.
&reg; {{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>
@@ -89,7 +89,7 @@ img {height: auto;}
<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="https://{{server_name}}/assets/images/article1.png" width="115" height="115" border="0" alt="" />
<img class="fix" src="{{server_name}}/assets/images/article1.png" width="115" height="115" border="0" alt="" />
</td>
</tr>
</table>
@@ -101,7 +101,7 @@ img {height: auto;}
<table class="col380" align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%; max-width: 380px;">
<tr>
<td class="bodycopy">
<h4>You have rejected the job offer from a <a href="https://{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> user with details below.</h4>
<h4>You have rejected the job offer from a <a href="{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> user with details below.</h4>
</td>
</tr>
@@ -123,7 +123,7 @@ img {height: auto;}
Offer ID
</td>
<td class="bodycopy">
<a href ="https://{{server_name}}/eoffer?offerID={{offer_code}}">{{offer_code}}</a>
<a href ="{{server_name}}/eoffer?offerID={{offer_code}}">{{offer_code}}</a>
</td>
</tr>
@@ -187,7 +187,7 @@ img {height: auto;}
</tr>
<tr>
<td class="innerpadding borderbottom">
<img class="fix" src="https://{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
<img class="fix" src="{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
</td>
</tr>
<tr>
@@ -208,7 +208,7 @@ img {height: auto;}
<tr>
<td align="center" class="footercopy">
&reg; {{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="https://{{server_name}}/contactus" class="unsubscribe"><font color="#ffffff">contact</font></a> us.
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.
</td>
</tr>
<tr>
@@ -217,12 +217,12 @@ img {height: auto;}
<tr>
<td width="37" style="text-align: center; padding: 0 10px 0 10px;">
<a href="https://www.facebook.com/wrenchboard/">
<img src="https://{{server_name}}/assets/images/brands/facebook.png" width="37" height="37" alt="Facebook" border="0" />
<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="https://{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
<img src="{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
</a>
</td>
</tr>
@@ -241,8 +241,5 @@ img {height: auto;}
</td>
</tr>
</table>
<!--analytics-->
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
</body>
</html>
+177 -161
View File
@@ -1,212 +1,228 @@
Subject: {{subject}}
Subject: {{subject}} - {{title}}
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{site_name}} - {{subject}}.</title>
<style type="text/css">
body {margin: 0; padding: 0; min-width: 100%!important;}
img {height: auto;}
.content {width: 100%; max-width: 600px;}
.header {padding: 10px 10px 10px 10px;}
.innerpadding {padding: 10px 10px 10px 10px;}
.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;}
.h2 {padding: 0 0 15px 0; font-size: 24px; line-height: 28px; font-weight: bold;}
.bodycopy {font-size: 14px; line-height: 20px;}
.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;}
.footercopy {font-family: sans-serif; font-size: 14px; color: #ffffff;}
.footercopy a {color: #ffffff; text-decoration: underline;}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{site_name}} - {{subject}}.</title>
<style type="text/css">
body {margin: 0; padding: 0; min-width: 100%!important;}
img {height: auto;}
.content {width: 100%; max-width: 600px;}
.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;}
.h1, .h2, .bodycopy {color: #153643; font-family: sans-serif;}
.h1 {font-size: 33px; line-height: 38px; font-weight: bold;}
.h2 {padding: 0 0 15px 0; font-size: 24px; line-height: 28px; font-weight: bold;}
.bodycopy {font-size: 14px; line-height: 20px;}
.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;}
.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;}
body[yahoo] .button {padding: 0px!important;}
body[yahoo] .button a {background-color: #e05443; padding: 15px 15px 13px!important;}
body[yahoo] .unsubscribe {display: block; margin-top: 20px; padding: 10px 50px; background: #2f3942; border-radius: 5px; text-decoration: none!important; font-weight: bold;}
}
/*@media only screen and (min-device-width: 601px) {
.content {width: 600px !important;}
.col425 {width: 425px!important;}
.col380 {width: 380px!important;}
}*/
</style>
</style>
</head>
<body yahoo bgcolor="#f6f8f1">
<table width="100%" bgcolor="#f6f8f1" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<!--[if (gte mso 9)|(IE)]>
<table width="600" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<![endif]-->
<table bgcolor="#ffffff" class="content" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td bgcolor="#c7d8a7" class="header">
<td>
<!--[if (gte mso 9)|(IE)]>
<table width="600" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<![endif]-->
<table bgcolor="#ffffff" class="content" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td bgcolor="#c7d8a7" class="header">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<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; text-align:center;">
{{site_trade_name}}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="innerpadding borderbottom">
<table width="100%" border="0" cellspacing="0" cellpadding="5px;">
<tr>
<td class="bodycopy">
<b>Hi, {{firstname}}</b>,
</td>
</tr>
<tr>
<td class="bodycopy">
You have sent a job offer from a <a href="{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> user with details below to {{job_email}}.
<!--[if (gte mso 9)|(IE)]>
<table width="100%" align="left" cellpadding="0" cellspacing="0" border="0">
</td>
</tr>
<tr>
<td class="bodycopy">
Please <a href ="{{server_name}}/eoffer?offerID={{offer_code}}">login</a> into your account to manage this offer.
</td>
</tr>
<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">
<td class="big-danger">
Offer Expire : {{expire2}}
</td>
<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]-->
</td>
</tr>
<tr>
<td class="innerpadding borderbottom">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="h3">
<b>{{title}}</b>,
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="innerpadding borderbottom">
<!--[if (gte mso 9)|(IE)]>
<table width="380" 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%; max-width: 100%;"> <br>
<tr>
<td class="bodycopy">
Visit <a href="https://{{server_name}}/plb/viewjob/{{offer_code}}">{{site_name}}!</a> to learn more.
</td>
</tr>
<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;">
<tr style="background-color:#e6f9ff;">
<td colspan="2">
<hr size="1">
</td>
</tr>
<tr>
<td style="width:100px;">
<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:#eaf7fb;">
<tr>
<td class="sect-text">
Title
</td>
<td class="bodycopy">
<a href="https://{{server_name}}/plb/viewjob/{{offer_code}}">{{title}}</a>
{{title}}
</td>
</tr>
<tr>
<td>
Description
<td class="sect-text">
Offer ID
</td>
<td class="bodycopy">
{{description}}
<a href ="{{server_name}}/eoffer?offerID={{offer_code}}">{{offer_code}}</a>
</td>
</tr>
<tr>
<td class="sect-text">
Duration
</td>
<td class="bodycopy">
{{timeline_days}} day(s)
</td>
</tr>
<tr>
<td>
Duration
<td class="sect-text">
Price
</td>
<td class="bodycopy">
{{timeline_days}} day(s)
{{price}} Naira
</td>
</tr>
<tr>
<td>
Price
<td class="sect-text">
Detail
</td>
<td class="bodycopy">
{{price}} Naira
{{job_description}}
</td>
</tr>
<tr style="background-color:#e6f9ff;">
<td>
</td>
<td class="bodycopy">
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
<tr>
<td class="innerpadding borderbottom">
<img class="fix" src="https://{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
</td>
</tr>
<tr>
<td class="innerpadding bodycopy">
{{firstname}} {{lastname}} @ <a href="https://{{server_name}}/plb/viewjob/{{offer_code}}">{{site_name}}</a>
</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.
</td>
</tr>
<tr>
<td class="innerpadding bodycopy">
{{site_name}} Team
<br>
{{server_name}}
</td>
</tr>
<tr>
<td class="footer" bgcolor="#44525f">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<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="https://{{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="https://twitter.com/wrenchboard">
<img src="https://{{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>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
</td>
</tr>
<tr>
<td class="footer" bgcolor="#44525f">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td align="center" class="footercopy">
&reg; {{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>
<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>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
</table>
</body>
</html>
</html>
@@ -28,7 +28,7 @@ img {height: auto;}
</style>
</head>
<body yahoo bgcolor="#f6f8f1">
<body bgcolor="#f6f8f1">
<table width="100%" bgcolor="#f6f8f1" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
@@ -40,36 +40,25 @@ img {height: auto;}
<table bgcolor="#ffffff" class="content" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td bgcolor="#c7d8a7" class="header">
<!--[if (gte mso 9)|(IE)]>
<table width="100%" 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;">
<table class="col425" align="left" border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
<tr>
<td height="50">
<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>
<tr>
<td style="padding: 1px 0 1px 0; text-align:center;">
<a href="https://www.wrenchboard.com/"><img src="https://dashboard.wrenchboard.com/assets/ext/images/wrenchboard.png" alt="WrenchBoard"></a> <!-- {{site_name}} -->
</td>
</tr>
<tr>
<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>
@@ -82,8 +71,7 @@ Dear <b>{{firstname}}</b>,
</tr>
<tr>
<td class="bodycopy">
You have received a reply message from <a href="https://{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> at {{added}} as shown below.
You have received a reply message from <a href="{{server_name}}/eoffer?offerID={{offer_code}}">{{site_name}}</a> at {{added}} as shown below.
</td>
</tr>
</table>
@@ -91,36 +79,14 @@ You have received a reply message from <a href="https://{{server_name}}/eoffer?o
</tr>
<tr>
<td class="innerpadding borderbottom">
<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="https://{{server_name}}/assets/images/article1.png" width="115" height="115" border="0" alt="" />
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
<table width="380" 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%; max-width: 380px;">
<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;">
<tr>
<td>
<b>Message</b>
</td>
</tr>
<tr>
<td class="bodycopy" style="background-color:#e6f9ff;">
{{prev_message}}
</td>
</tr>
<tr>
<tr>
<td>
<b>Reply</b>
<b>New Message</b>
</td>
</tr>
<tr>
@@ -129,6 +95,17 @@ You have received a reply message from <a href="https://{{server_name}}/eoffer?o
</td>
</tr>
<tr>
<tr>
<td>
<b>Previous Message</b>
</td>
</tr>
<tr>
<td class="bodycopy" style="background-color:#e6f9ff;">
{{prev_message}}
</td>
</tr>
</table>
</td>
</tr>
@@ -143,7 +120,7 @@ You have received a reply message from <a href="https://{{server_name}}/eoffer?o
</tr>
<tr>
<td class="innerpadding borderbottom">
<img class="fix" src="https://{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
<img class="fix" src="{{server_name}}/assets/images/wrenchboard_email_banner.jpg" width="100%" border="0" alt="" />
</td>
</tr>
<tr>
@@ -164,7 +141,7 @@ Please contact us at https://www.wrenchboard.com/contact if you have any questio
<tr>
<td align="center" class="footercopy">
&reg; {{site_name}} 2022<br/>
You received this email because of your interest in a task @ {{site_name}}. If you get this email in error, please <a href="https://{{server_name}}/contactus" class="unsubscribe"><font color="#ffffff">contact</font></a> us.
You received this email because of your interest in a task @ {{site_name}}. If you get this email in error, please <a href="{{server_name}}/contactus" class="unsubscribe"><font color="#ffffff">contact</font></a> us.
</td>
</tr>
<tr>
@@ -173,12 +150,12 @@ You received this email because of your interest in a task @ {{site_name}}. If y
<tr>
<td width="37" style="text-align: center; padding: 0 10px 0 10px;">
<a href="https://www.facebook.com/wrenchboard/">
<img src="https://{{server_name}}/assets/images/brands/facebook.png" width="37" height="37" alt="Facebook" border="0" />
<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="https://{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
<img src="{{server_name}}/assets/images/brands/twitter.png" width="37" height="37" alt="Twitter" border="0" />
</a>
</td>
</tr>
@@ -197,8 +174,5 @@ You received this email because of your interest in a task @ {{site_name}}. If y
</td>
</tr>
</table>
<!--analytics-->
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
</body>
</html>
+7
View File
@@ -14,6 +14,7 @@ system:
site_andriod_app = "https://play.google.com/store/apps/details?id=com.wrenchboard.users";
upload_size_limit = "3145728";
server_name = "https://oameye.work.wrenchboard.com";
force_job_wait = "0";
};
flutterwave:
@@ -136,3 +137,9 @@ google:
storage_project_id = "wrenchboard-prod";
storage_auth_file = "/home/oameye/wrenchboard/wrenchboard/etc/wrenchboard-prod-16dbc94e46a8.json";
};
onesignal:
{
app_id = "e80afcf4-6fad-493c-b5cc-452d37196dea";
};
+14 -3
View File
@@ -553,7 +553,9 @@ long job_email(long mailtype, CVars in, CVars &out) {
case JOBS_OFFER_SENDTOME_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,o.member_id,j.title,o.offer_code "
" j.description,j.timeline_days,j.price,o.member_id,j.title, "
" (CASE WHEN o.email IS NULL THEN 'Public View' ELSE o.email END) AS job_email, "
" o.offer_code,to_char(now(), 'yyyy') AS YYYY "
" FROM members_jobs_offer o "
" LEFT JOIN members_jobs j ON j.id =o.job_id WHERE o.offer_code = '%s'", in["offer_code"].c_str())) {
vars2form(x, form);
@@ -588,7 +590,7 @@ long job_email(long mailtype, CVars in, CVars &out) {
case JOBS_OFFER_CANCEL_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 FROM members_jobs_offer o LEFT JOIN members_jobs j ON j.id =o.job_id WHERE o.id = %lu AND o.status = 3", in["offer_id"].Long())) {
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 ", in["offer_id"].Long())) {
vars2form(x, form);
form.LetStr("subject", "Job Offer Canceled");
form.LetStr("email", x["email"].c_str());
@@ -924,7 +926,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 +943,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;
+1 -1
View File
@@ -488,7 +488,7 @@ long WrenchConcludeJobsOffer(CVars in, CVars &out) {
if (WrenchRefundoffer(y, out) == PHP_CREATED_OK) {
pgsql_exec("UPDATE members_jobs_offer SET status = 4 WHERE id = %lu AND offer_code='%s' ", out["offer_id"].Long(), in["offer_code"].c_str());
// REFUND THE MONEY
job_email(JOBS_OFFER_CANCEL_MAIL, in, out); // the email will come from offer table
job_email(JOBS_OFFER_CANCEL_MAIL, y, out); // the email will come from offer table
}
}
break;
+13 -7
View File
@@ -604,6 +604,9 @@ Foreign-key constraints:
x["what_offer"] = in["offer_id"]; x["what_offer"].set_valid( true );
x["flags"] = FLAG_INIT; x["flags"].set_valid( true ); // starting the pprocess
x["currency"] = vw["currency"]; x["currency"].set_valid( true );
payment_id = insert_db_record( DBS_VALID, "members_payments", "members_payments_id_seq", x );
out["payment_id"] = payment_id; out["payment_id"].set_valid( true );
@@ -659,9 +662,11 @@ long WrenchRefundoffer( CVars in, CVars &out )
}
long retDb2 = load_db_record( out, "SELECT * FROM members_payments WHERE id =%lu AND what_offer = %lu AND member_id=%lu AND code = 'OFDPS' AND status = 1 AND flags = 4 AND confirmation IS NOT NULL",payment_id,offer_id,member_id);
long retDb2 = load_db_record( out, "SELECT id AS current_payment_id, * FROM members_payments WHERE id =%lu AND what_offer = %lu AND member_id=%lu AND code = 'OFDPS' AND status = 1 AND flags = 4 AND confirmation IS NOT NULL",payment_id,offer_id,member_id);
if (retDb2)
{
long current_payment_id = out["current_payment_id"].Long();
CVars x;
x["member_id"] = in["member_id"]; x["member_id"].set_valid( true );
x["code"] = in["code"]; x["code"].set_valid( true );
@@ -680,13 +685,13 @@ long WrenchRefundoffer( CVars in, CVars &out )
ret = PHP_CREATED_OK;
x["flags"] = FLAG_START; x["flags"].set_valid( true ); // done not completed yet
// now generate the confirmation
// pgsql_exec("UPDATE members SET balance=balance + %lu WHERE id = %lu",x["amount"].Long() + x["fee"].Long(),in["member_id"].Long() );
char confirmation[15] = "";
Confirmation(payment_id, confirmation, sizeof (confirmation)); // this stamp the offer code directly in that call
UpdateMemberWallet( member_id, wallet_id,x["amount"].Long(), payment_id); // correct this dont send amount
x["flags"] = FLAG_OK; x["flags"].set_valid( true );
x["payment_id"] = payment_id; x["payment_id"].set_valid( true );
pgsql_exec("UPDATE members_payments SET flags = %lu WHERE id = %lu",x["flags"].Long(),payment_id );
pgsql_exec("UPDATE members_payments SET flags = %lu WHERE id = %lu",x["flags"].Long(),payment_id );
pgsql_exec("UPDATE members_payments SET flags = 7 WHERE id = %lu",current_payment_id );
//pgsql_exec("UPDATE members_jobs_offer SET payment_id = %lu WHERE id = %lu",x["payment_id"].Long(),x["what_offer"].Long() );
load_db_record( out, "SELECT * FROM members_payments WHERE id = %lu ", payment_id );
} else {
@@ -750,11 +755,12 @@ long WrenchContractPayment( CVars in, CVars &out )
return PHP_API_BAD_PARAM;
}
CVars vw;
CVars vw;
vw["currency"] = "NAIRA"; // this might become a variable based on the country
vw["currency"].set_valid( true );
long wallet_id = CheckWallet(in["member_id"].Long(),vw);
//
long client_wallet_id = CheckWallet(client_id,vw);
// TEST FOR DUPLICATE
long retDb = load_db_record( out, "SELECT balance AS curr_balance FROM members WHERE id = %lu", client_id);
@@ -808,8 +814,8 @@ long WrenchContractPayment( CVars in, CVars &out )
//pgsql_exec("UPDATE members SET balance=balance + %lu WHERE id = %lu",x["amount"].Long(),x["member_id"].Long() ); // pay attention to who you pay here
char confirmation[15] = "";
Confirmation(payment_id, confirmation, sizeof (confirmation)); // this stamp the offer code directly in that call
UpdateMemberWallet( x["member_id"].Long(), wallet_id,x["amount"].Long(), payment_id); // correct this dont send amount
logfmt( logINFO, "paying for job completed, make sure you paythe correct person()" );
UpdateMemberWallet( x["member_id"].Long(), client_wallet_id,x["amount"].Long(), payment_id); // correct this dont send amount
x["flags"] = FLAG_OK; x["flags"].set_valid( true );
x["payment_id"] = payment_id; x["payment_id"].set_valid( true );
+3
View File
@@ -0,0 +1,3 @@
if( 'function' === typeof importScripts) {
importScripts('https://cdn.onesignal.com/sdks/OneSignalSDKWorker.js');
}
+3 -3
View File
@@ -161,7 +161,7 @@ class Dash extends Users_Controller {
$this->table->set_template($this->template);
$jbx = "''/jobs/viewjob''";
$mysql = "SELECT jo.added::date AS pdate,j.title,(CASE WHEN jo.public_view > 0 THEN '-Public View' ELSE jo.email END) AS tRec,'\/jobs\/viewjob' AS qpath,"
$mysql = "SELECT jo.added::date AS pdate, jo.added::date AS start_job_date , jo.expire::date AS end_job_date, j.title,(CASE WHEN jo.public_view > 0 THEN '-Public View' ELSE jo.email END) AS tRec,'\/jobs\/viewjob' AS qpath,"
. 'CASE WHEN jo.status = 1 AND jo.public_view =0 THEN \'Pending\' WHEN jo.status = 1 AND jo.public_view >0 THEN \'Active\' ELSE \'Other\' END AS status,'
. "'<input type=submit onclick=\"return post_nav_find_action($jbx,'''||jo.offer_code||''')\" name=\"manage\" class=\"btn btn-primary btn-xs\" value=\"View\">' AS View ,jo.offer_code AS offer_code "
. "FROM members_jobs_offer jo LEFT JOIN members_jobs j ON j.id = jo.job_id "
@@ -184,9 +184,9 @@ class Dash extends Users_Controller {
if ($offer_found == false) {
$data["dash_title"] = "<a href='/jobs/pendingoffer'>Offer(s)</a>";
$data["dash_title"] = "<a href='/jobs/pendingoffer'>Active Offer(s)</a>";
$jbx = "''/jobs/viewmyjob''";
$mysql = "SELECT jo.added::date||'<br>'||jo.expire::date AS pdate,j.title, (CASE WHEN jo.public_view > 0 THEN '-Public View' ELSE jo.email END) AS tRec,'\/jobs\/viewmyjob' AS qpath,"
$mysql = "SELECT jo.added::date||'<br>'||jo.expire::date AS pdate, jo.added::date AS start_job_date , jo.expire::date AS end_job_date, j.title, (CASE WHEN jo.public_view > 0 THEN '-Public View' ELSE jo.email END) AS tRec,'\/jobs\/viewmyjob' AS qpath,"
. 'CASE WHEN jo.status = 1 AND jo.public_view =0 THEN \'Pending\' WHEN jo.status = 1 AND jo.public_view >0 THEN \'Active\' ELSE \'Other\' END AS status,'
. "'<input type=submit onclick=\"return post_nav_find_action($jbx,'''||jo.offer_code||''')\" name=\"manage\" class=\"btn btn-primary btn-xs\" value=\"View\">' AS View,jo.offer_code AS offer_code "
. "FROM members_jobs_offer jo LEFT JOIN members_jobs j ON j.id = jo.job_id "
+7 -8
View File
@@ -715,6 +715,7 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
$data["timeline_days"] = $out["timeline_days"];
$data["price"] = $out["price"];
$data["offer_code"] = $out["offer_code"];
$data['is_public_view'] = $out['public_view'];
$a_from = array('\t','\n','\r','\0','\v');
$a_to = array("\t","\n","\r","","");
$data["job_description"] = trim(trim(str_replace($a_from,$a_to,$out["job_description"])),'"'); // str_replace('"','\"',$out["job_description"]); // $out["job_description"];
@@ -736,17 +737,15 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] );
// $data = array();
$data = $this->getSessionArray();
$this->load->model('offers_model');
$out = $this->offers_model->getUserPendingOffers($_SESSION['member_id']);
$data['my_offer_rows'] = $out["query"]->result();
$data['page_title'] = "Pending";
$out = $this->offers_model->getUserPendingOffers($_SESSION['member_id'], 10000);
$data['my_offer_rows'] = $out["my_offer_rows"]; //same
$data['offer_dash_result'] = $out["my_offer_rows"]; //same
$data['offer_found']= count($out["my_offer_rows"])>0;
$data['dash_title'] = "Pending Offers";
$this->renderSecurePage('jobs/view_myoffer', $data);
}
public function pendingoffer() {
$data = array();
$data = $this->getSessionArray();
+44 -5
View File
@@ -749,7 +749,7 @@ class Member extends Users_Controller {
$data['card_coupon_data_result'] = $this->report_model->getRedeemCouponsList(6)['card_coupon_data_result'];
$data['wallet'] = $this->account_model->getUserWallet( $_SESSION['member_id']);
$data['escrow'] = $this->account_model->getUserEscrowWallet( $_SESSION['member_id']);
if ($_POST) {
$data['comment'] = $this->input->post('comment');
@@ -1014,11 +1014,25 @@ class Member extends Users_Controller {
$data = $this->getSessionArray();
$this->load->library('table');
$this->table->set_template($this->template);
$mysql = "SELECT added::date AS msg_date,msg,id AS msg_id
FROM members_messages
WHERE member_id = " . $_SESSION['member_id'] . " AND reply IS NULL
ORDER BY id DESC LIMIT 20";
$mysql88 = "SELECT mm.added::date AS msg_date,mm.msg,id AS msg_id ,ms.firstname AS senders_name
FROM members_messages mm
LEFT JOIN members ms ON mm.senders_id = ms.id
WHERE mm.member_id = " . $_SESSION['member_id'] . " AND mm.reply IS NULL
ORDER BY mm.id DESC LIMIT 20";
$mysql = "SELECT mm.added::date AS msg_date,mm.msg,mm.id AS msg_id ,ms.firstname AS senders_name ,mm.senders_id, mm.memo,mm.reply
FROM members_messages mm
LEFT JOIN members ms ON mm.senders_id = ms.id
WHERE mm.member_id = " . $_SESSION['member_id'] . "
UNION
SELECT mm.added::date AS msg_date,mm.msg,mm.id AS msg_id ,'Me' AS senders_name ,mm.senders_id, mm.memo, mm.reply
FROM members_messages mm
WHERE mm.senders_id = " . $_SESSION['member_id'] . "
ORDER BY msg_date DESC LIMIT 30";
$query = $this->db->query($mysql);
$data['my_message_rows'] = $query->result_array(); // new implementation
$myTable = "<table class='table table-row-bordered table-row-gray-100 align-middle gs-0 gy-3'>";
@@ -1037,6 +1051,30 @@ class Member extends Users_Controller {
. "<tr><td colspan = '2'><div id='" . $row['msg_id'] . "'></div></td></tr>";
}
public function setupReply(){
$message_id = trim($this->input->get('message_id'));
$job_id = trim($this->input->get('job_id'));
if ($message_id > 0 && $job_id !=''){
$data['job_id'] = $job_id;
$data['message_id'] = $message_id;
$mysql = "SELECT mm.added::date AS msg_date,mm.msg,mm.id AS msg_id ,ms.firstname AS senders_name ,mm.senders_id, mm.memo
FROM members_messages mm
LEFT JOIN members ms ON mm.senders_id = ms.id
WHERE mm.member_id = " . $_SESSION['member_id'] . " AND mm.memo='".$job_id."'
UNION
SELECT mm.added::date AS msg_date,mm.msg,mm.id AS msg_id ,'Me' AS senders_name ,mm.senders_id, mm.memo
FROM members_messages mm
WHERE mm.senders_id = " . $_SESSION['member_id'] . " AND mm.memo='".$job_id."'
ORDER BY msg_date DESC LIMIT 30";
$query = $this->db->query($mysql);
$data['my_message_rows'] = $query->result_array(); // new implementation
$answer_string = $this->load->view('users/sections/mgs_reply', $data, TRUE);
echo $answer_string;
}
}
public function messagedetail() {
// echo 'Ameye';
@@ -1087,6 +1125,7 @@ class Member extends Users_Controller {
$in["message_id"] = $this->input->get('message_id');
$in["memo"] = trim($this->input->get('message_code'));
$in["yourmessage"] = trim($this->input->get('yourmessage'));
$in['member_id'] = $_SESSION['member_id'];
if ($in["message_id"] > 0 && $in["memo"] != '' && $in["yourmessage"] != '') {
$in['action'] = WRENCHBOARD_JOB_REPLY_QUESTION;
+131 -105
View File
@@ -200,7 +200,7 @@ class Proj extends Users_Controller {
$data['job_table_result'] = $query->result();;
$data['ref_site'] = "/proj/active/$page";
$data['job_table'] = $this->table->generate($query);
$this->table->set_heading(array('data' => 'Job', 'style' => 'width:180px'), 'Title/Description', array('data' => '', 'style' => 'width:100px; cellpadding:0px;'));
//$this->table->set_heading('Job', 'Description', '');
@@ -362,114 +362,132 @@ class Proj extends Users_Controller {
if ($ajax == 1) {
echo $res;
} else {
$this->load->view('users/view_header_user', $data);
$this->load->view('jobs/view_latejob', $data);
$this->load->view('users/view_footer_user', $data);
// $this->load->view('users/view_header_user', $data);
// $this->load->view('jobs/view_latejob', $data);
// $this->load->view('users/view_footer_user', $data);
$this->RenderUserPage('jobs/view_latejob', $data);
}
}
}
public function thisjob() {
$data = $this->getSessionArray();
$data['redirect_to'] = '/proj/active/';
$uploaded = false;
if (!isset($_SESSION['username']) or $_SESSION['username'] == '') {
redirect(home);
return;
}
ob_start();
$message = "";
$res = -1;
// echo rand(100,9999). " ameye 1";
if ($_POST) {
$ajax = $this->input->post('ajax');
$jobID = $this->input->post('jobID');
} else {
$message = "";
// echo rand(100,9999). " ameye 1";
$ajax = $this->input->get('ajax');
$jobID = $this->input->get('jobID');
$message = $this->input->get('message');
}
$data['jobID'] = $jobID;
if ($_POST) {
$ajax = $this->input->post('ajax');
$jobID = $this->input->post('jobID');
} else {
$ajax = $this->input->get('ajax');
$jobID = $this->input->get('jobID');
$message = $this->input->get('message');
}
$data['jobID'] = $jobID;
//$mybalance = 10666;
//$data['mybalance'] = $mybalance;
//$mybalance = 10666;
//$data['mybalance'] = $mybalance;
$this->load->model('backend_model');
// echo rand(100,9999). " ameye 2";
if ($_POST && !isset($_POST['uploadForm'])) {
// echo rand(100,9999). " ameye 2222-2222";
// exit;
$msgArray = array();
$msgArray['message'] = trim($this->input->post('jobmessage'));
$msgArray['contract'] = $this->input->post('contractId');
$msgArray['msg_type'] = 'TEXT';
$msgArray['member_id'] = $_SESSION['member_id']; // = $ret->email;
$this->load->model('backend_model');
// echo rand(100,9999). " ameye 2";
if ($_POST && !isset($_POST['uploadForm'])) {
// echo rand(100,9999). " ameye 2222-2222";
// exit;
$msgArray = array();
$msgArray['message'] = trim($this->input->post('jobmessage'));
$msgArray['contract'] = $this->input->post('contractId');
if (trim($msgArray['message']) != '') { // NOTE THAT IT msg_type is IMPORTTANT
$msgArray['msg_type'] = 'TEXT';
$msgArray['member_id'] = $_SESSION['member_id']; // = $ret->email;
$msgArray['action'] = WRENCHBOARD_CONTRACT_MESSAGE;
if ($msgArray['message'] != '') { // NOTE THAT IT msg_type is IMPORTTANT
$msgArray['msg_type'] = 'TEXT';
$msgArray['action'] = WRENCHBOARD_CONTRACT_MESSAGE;
$out = array();
$res = $this->backend_model->wrenchboard_api($msgArray, $out);
}
} else if ($_POST && isset($_POST['uploadForm']) && isset($_FILES["fileToUpload"])) {
list ($message, $uploaded) = $this->process_files($_FILES["fileToUpload"]);
$out = array();
$res = $this->backend_model->wrenchboard_api($msgArray, $out);
} else {
$res = "Message is empty!";
}
} else if ($_POST && isset($_POST['uploadForm']) && isset($_FILES["fileToUpload"])) {
list ($message, $uploaded) = $this->process_files($_FILES["fileToUpload"]);
}
$data = $this->load_files($data, $jobID);
//$this->load_files($data, $jobID);
$data = $this->load_files($data, $jobID);
//$this->load_files($data, $jobID);
$data["sizeLimit"] = $this->backend_model->cfgReadChar("system.upload_size_limit");
$data["sizeLimit"] = $this->backend_model->cfgReadChar("system.upload_size_limit");
$data["force_job_wait"] = $this->backend_model->cfgReadChar("system.force_job_wait"); // configuration to supress wait time
$this->load->model('dash_model');
$out = $this->dash_model->getDashData($data);
$data['active_task'] = $out['active_task'];
$data['active_pass_due'] = $out['active_pass_due'];
$data['current_balance'] = $out['current_balance'];
$data['new_message'] = $out['new_message'];
$data['message'] = $message;
$this->load->model('dash_model');
$out = $this->dash_model->getDashData($data);
$data['active_task'] = $out['active_task'];
$data['active_pass_due'] = $out['active_pass_due'];
$data['current_balance'] = $out['current_balance'];
$data['new_message'] = $out['new_message'];
$data['message'] = $message;
$data['this_is_client'] = false;
$data['this_is_project_owner'] = false;
$data['disabled1'] = 'disabled';
$data['disabled2'] = 'disabled';
$data['disabled11'] = 'disabled';
$data['disabled22'] = 'disabled';
if ( $data["force_job_wait"] == 0 ){
//just forget about delays
$data['disabled1'] = $data['disabled2'] = $data['disabled11'] = $data['disabled22'] ='';
}
/*
$data['job_status'] = $jbD1->status;
$data['job_member_id'] = $jbD1->member_id;
$data['job_client_id'] = $jbD1->client_id;
*/
if ($data['job_member_id'] == $_SESSION['member_id']) {
$data['this_is_client'] = false;
$data['this_is_project_owner'] = false;
$data['disabled1'] = 'disabled';
$data['disabled2'] = 'disabled';
$data['disabled11'] = 'disabled';
$data['disabled22'] = 'disabled';
/*
$data['job_status'] = $jbD1->status;
$data['job_member_id'] = $jbD1->member_id;
$data['job_client_id'] = $jbD1->client_id;
*/
if ($data['job_member_id'] == $_SESSION['member_id']) {
$data['this_is_client'] = false;
$data['this_is_project_owner'] = true;
if ($data["job_status"] == CONTRACT_NOTIFY_COMPLETE) {
$data['disabled11'] = '';
$data['disabled22'] = '';
}
} else {
$data['this_is_client'] = true;
$data['this_is_project_owner'] = false;
if ($data["job_status"] == 1 and $data['force_wait'] == false) {
$data['disabled1'] = '';
$data['disabled2'] = '';
}
$data['this_is_project_owner'] = true;
if ($data["job_status"] == CONTRACT_NOTIFY_COMPLETE) {
$data['disabled11'] = '';
$data['disabled22'] = '';
}
} else {
$data['this_is_client'] = true;
$data['this_is_project_owner'] = false;
if ($data["job_status"] == 1 and $data['force_wait'] == false) {
if ($ajax == 1) {
echo isset($res)? $res:'';
$this->RenderUserPage('jobs/view_thisjob', $data);
$data['disabled1'] = '';
$data['disabled2'] = '';
}
}
if ($ajax == 1) {
ob_end_clean();
echo isset($res)? $res:'';
// $this->RenderUserPage('jobs/view_thisjob', $data);
} else {
/* $this->load->view('users/view_header_user', $data);
$this->load->view('jobs/view_thisjob', $data);
$this->load->view('users/view_footer_user', $data); */
ob_end_flush();
if ($uploaded) {
redirect('/proj/thisjob?jobID='.$jobID.'&message='.$message);
} else {
/* $this->load->view('users/view_header_user', $data);
$this->load->view('jobs/view_thisjob', $data);
$this->load->view('users/view_footer_user', $data); */
if ($uploaded) {
redirect('/proj/thisjob?jobID='.$jobID.'&message='.$message);
} else {
$this->RenderUserPage('jobs/view_thisjob', $data);
}
$this->RenderUserPage('jobs/view_thisjob', $data);
}
}
}
@@ -656,12 +674,8 @@ class Proj extends Users_Controller {
}
}
}
private function load_files($data, $jobID) {
$data['username'] = $_SESSION['username']; // = $this->input->post('username');
$data['name'] = $_SESSION['name']; // = $this->input->post('username');
$data['firstname'] = $_SESSION['firstname']; // = $ret->firstname;
@@ -683,27 +697,35 @@ class Proj extends Users_Controller {
$mysql = "SELECT '<b>Project ID :</b>'||mc.contract||' - <b>Name: </b><a href=\"#\" onclick=\"showModal('||m.id||');\" >'||m.firstname||'</a><br><b>Title:</b>'||mc.title||'<br>'||'<b>Description: </b>'||mc.description||'<br><b>Timeline: </b> '||mc.timeline_days||' day(s) <b>Price: </b>'||mc.price*0.01||'Naira'||' <b>Expected Delivery: </b>'||mc.delivery_date||' '||$detail_button AS this_job,"
. " mc.contract AS contract_id, mc.job_detail AS job_detail "
. "FROM members_jobs_contract mc LEFT JOIN members m ON m.id=mc.client_id "
. " WHERE (mc.member_id = " . $_SESSION['member_id'] . " OR mc.client_id=" . $_SESSION['member_id'] . ") AND mc.id=" . $jobID;
. " WHERE (mc.member_id = '" . $_SESSION['member_id'] . "' OR mc.client_id='" . $_SESSION['member_id'] . "') AND mc.id=" . ((int)$jobID);
$query = $this->db->query($mysql);
$jbD = $query->row();
$result = $query->result_array();
$jbD = array("this_job" => "", "contract_id" => "", "job_detail" => "");
if (is_array($result) && count($result)>0) {
$jbD = $result[0];
}
//----------------------
$mysql = "SELECT m.id,mc.contract, m.firstname,mc.title,mc.description,
mc.timeline_days, mc.price*0.01,mc.delivery_date,
mc.contract AS contract_id, mc.job_detail AS job_detail ,
$detail_button As delivery_details
$detail_button As delivery_details,mc.status AS current_job_status
FROM members_jobs_contract mc
LEFT JOIN members m ON m.id=mc.client_id
WHERE (mc.member_id = " . $_SESSION['member_id'] . " OR mc.client_id=" . $_SESSION['member_id'] . ")
AND mc.id=" . $jobID;
WHERE (mc.member_id = '" . $_SESSION['member_id'] . "' OR mc.client_id='" . $_SESSION['member_id'] . "')
AND mc.id=" . ((int)$jobID);
$query = $this->db->query($mysql);
$data["this_job_result"] = $query->result()[0];
$result = $query->result();
$r = new stdClass();
$r->id = ""; $r->contract = ""; $r->firstname = ""; $r->title = ""; $r->description = ""; $r->timeline_days = "";
$r->price = ""; $r->delivery_date = ""; $r->contract_id = ""; $r->job_detail = ""; $r->delivery_details = "";
$data["this_job_result"] = is_array($result) ? $result[0] : $r;
//----------------------
// $this->table->set_heading('Job', 'Client', 'Terms', 'Price', 'Manage', 'Status');
$data['job_table'] = $this->table->generate($query);
$data['this_job'] = $jbD->this_job;
$data['contract_id'] = $jbD->contract_id;
$data['job_detail'] = $jbD->job_detail;
$data['this_job'] = $jbD["this_job"];
$data['contract_id'] = $jbD["contract_id"];
$data['job_detail'] = $jbD["job_detail"];
/*
$sqlMsg = "SELECT (CASE WHEN jc.msg_type='FILE' THEN '<a target=\"_blank\" href=\"/smedia/" . ($is_live ? "LIVE" : "TEST") . "/contract/" . $data['contract_id'] . "/'||jc.message||'\">'||jc.message||'</a>' ELSE '<b>['||m.firstname||']->'||jc.created||'</b><br>'||jc.message END) AS msg "
. "FROM jobs_contract_message jc "
@@ -751,15 +773,19 @@ class Proj extends Users_Controller {
// $data['message_result_show'] = $this->messageAccordion($data['message_result']);
$mysql3 = "SELECT *,(delivery_date::date- now()::date)::int AS remaining_days FROM members_jobs_contract WHERE id= " . $jobID;
$mysql3 = "SELECT *,(delivery_date::date- now()::date)::int AS remaining_days FROM members_jobs_contract WHERE id= " . ((int)$jobID);
$query3 = $this->db->query($mysql3);
$jbD1 = $query3->row();
$data['job_status'] = $jbD1->status;
$data['job_member_id'] = $jbD1->member_id;
$data['job_client_id'] = $jbD1->client_id;
$data['job_contract'] = $jbD1->contract;
$data['timeline_days'] = $jbD1->timeline_days;
$data['remaining_days'] = $jbD1->remaining_days;
$result3 = $query3->result_array();
$jbD1 = array("status"=>"","member_id"=>"","client_id"=>"","contract"=>"","timeline_days"=>"","remaining_days"=>"");
if (is_array($result3) && count($result3)) {
$jbD1 = $result3[0];
}
$data['job_status'] = $jbD1["status"];
$data['job_member_id'] = $jbD1["member_id"];
$data['job_client_id'] = $jbD1["client_id"];
$data['job_contract'] = $jbD1["contract"];
$data['timeline_days'] = $jbD1["timeline_days"];
$data['remaining_days'] = $jbD1["remaining_days"];
$data['force_wait'] = false;
if ($data['remaining_days'] > 0) {
if ($data['timeline_days'] / 2 < $data['remaining_days']) {
@@ -162,6 +162,8 @@ class Users_Controller extends WRB_Controller {
}
protected function renderSecurePage($page_path_name, $data) {
$this->load->model('backend_model');
$data["OneSignalAppId"] = $this->backend_model->cfgReadChar("onesignal.app_id");
$this->load->view('site3/internal/template/view_securehead', $data);
$this->load->view( $page_path_name, $data);
$this->load->view('site3/internal/template/view_securefooter', $data);
+6
View File
@@ -18,6 +18,12 @@ class Account_model extends CI_Model {
return $query->result_array();
}
public function getUserEscrowWallet($member_id) {
$mysql = "SELECT sum(amount),currency FROM members_payments WHERE code ='OFDPS' AND member_id = $member_id AND confirmation IS NOT NULL AND flags = 4 GROUP BY currency";
$query = $this->db->query($mysql);
return $query->result_array();
}
public function verify_link($data) {
$q = $this
->db
+3 -1
View File
@@ -176,7 +176,8 @@ class Job_model extends CI_Model {
public function readMyloadJobOffer($member_id, $offer_code) {
$out = array();
$out['result'] = 0;
$mysql = "SELECT jo.added::date AS added_date,j.title,j.description, j.timeline_days, j.price*0.01 AS price,jo.offer_code,jo.job_description,jo.expire,(CASE WHEN jo.public_view > 0 THEN 'Public View' ELSE jo.email END ) AS job_sent_to "
$mysql = "SELECT jo.added::date AS added_date,j.title,j.description, j.timeline_days, j.price*0.01 AS price,public_view,"
." jo.offer_code,jo.job_description,jo.expire,(CASE WHEN jo.public_view > 0 THEN 'Public View' ELSE jo.email END ) AS job_sent_to "
. "FROM members_jobs_offer jo LEFT JOIN members_jobs j ON j.id = jo.job_id "
. "WHERE jo.expire > now() AND jo.status = 1 "
. "AND jo.member_id = " . $member_id . " AND jo.offer_code='" . $offer_code . "' ";
@@ -192,6 +193,7 @@ class Job_model extends CI_Model {
$out['offer_code'] = $q->row()->offer_code;
$out['job_description'] = $q->row()->job_description;
$out['expire'] = $q->row()->expire;
$out['public_view'] = $q->row()->public_view;
$out['result'] = 1;
} else {
+38 -2
View File
@@ -9,6 +9,13 @@ class Offers_model extends CI_Model
function __construct()
{
}
// NOT completed --
public function getSentPendingOffers($member_id)
{
}
public function attachOffers($email)
@@ -28,10 +35,11 @@ class Offers_model extends CI_Model
}
// NOT completed --
public function getUserPendingOffers($member_id)
public function getUserPendingOffers($member_id,$listLimit)
{
$out = array();
/*
$error_state = false;
$out['error'] = '';
$sqlOffer = "SELECT mo.member_id, to_char(mo.added, 'Day Mon dd, yyyy HH:MI AM') AS sent,
@@ -47,7 +55,35 @@ class Offers_model extends CI_Model
$out["query"] = $this->db->query($sqlOffer);
return $out;
$offer_found = false;
*/
$data = array();
$data['offer_dash'] = $data['offer_dash_result'] ='';
$jbx = "''/jobs/viewjob''";
$mysql = "SELECT jo.added::date AS pdate, jo.added::date AS start_job_date , jo.expire::date AS end_job_date, j.title,(CASE WHEN jo.public_view > 0 THEN '-Public View' ELSE jo.email END) AS tRec,'\/jobs\/viewjob' AS qpath,"
. 'CASE WHEN jo.status = 1 AND jo.public_view =0 THEN \'Pending\' WHEN jo.status = 1 AND jo.public_view >0 THEN \'Active\' ELSE \'Other\' END AS status,'
. "'<input type=submit onclick=\"return post_nav_find_action($jbx,'''||jo.offer_code||''')\" name=\"manage\" class=\"btn btn-primary btn-xs\" value=\"View\">' AS View ,jo.offer_code AS offer_code "
. "FROM members_jobs_offer jo LEFT JOIN members_jobs j ON j.id = jo.job_id "
. "WHERE jo.expire > now() AND jo.status = 1 "
. "AND jo.client_id = " .$member_id . " LIMIT $listLimit";
$query = $this->db->query($mysql);
$num = $query->num_rows();
$data["dash_title"] = "Pending Offer(s)";
// array('data' => 'Added', 'style' => 'width:80px')
// $this->table->set_heading(array('data' => 'Added', 'style' => 'width:80px'), 'Title', array('data' => '', 'style' => 'width:80px'));
// $data['offer_dash'] = $this->table->generate($query);
$data['my_offer_rows'] = $query->result();
$offer_found = true;
return $data;
/*
*/
@@ -0,0 +1,26 @@
<div class="card card-xl-stretch mb-5 mb-xl-8">
<div class="card-header border-0 pt-5">
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1"><? echo ( $offer_found == true && count($offer_dash_result) > 0) ? $dash_title : 'Offers'; ?></span>
</h3>
<div class="card-toolbar">
</div>
</div>
<div class="card-body py-3">
<div class="tab-content">
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
<div class="table-responsive">
<?
if ( $offer_found == true && count($offer_dash_result) > 0){
include 'offers_jobs/offers_jobs_table.php';
}
else{
include 'offers_jobs/offers_jobs_noffers.php';
}
?>
</div>
</div>
</div>
</div>
</div>
@@ -0,0 +1,30 @@
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<div class="post d-flex flex-column-fluid" id="kt_post">
<!--begin::Container-->
<div id="kt_content_container" class="container-xxl">
<!--begin::Card-->
<div class="card">
<!--begin::Card body-->
<div class="card-body">
<!--begin::Heading-->
<div class="card-px text-center pt-15 pb-15">
<!--begin::Title-->
<h2 class="fs-2x fw-bolder mb-0">No current offers found</h2>
<!--end::Title-->
<!--begin::Description-->
<p class="text-gray-400 fs-4 fw-bold py-7">Click on the below buttons to
<br />search jobs.</p>
<!--end::Description-->
<!--begin::Action-->
<a href="/jobs/market" class="btn btn-primary btn-sm er fs-6 px-8 py-4" >Browse Jobs</a>
<!--end::Action-->
</div>
<!--end::Heading-->
</div>
<!--end::Card body-->
</div>
<!--end::Card-->
</div>
</div>
</div>
@@ -0,0 +1,46 @@
<table class="table table-row-dashed table-row-gray-200 align-middle gs-0 gy-4">
<thead>
<tr class="border-0">
<th class="p-0 w-100px">Added/Expire</th>
<th class="p-0 min-w-125px">Title/Target</th>
<!-- th class="p-0 min-w-90px">Status</th -->
<th class="p-0 min-w-50px"></th>
</tr>
</thead>
<tbody>
<?php
if ($offer_found == true ){
foreach ($offer_dash_result as $row)
{
?>
<tr>
<td>
<div class="symbol symbol-45px me-2">
<span class="badge badge-light-success"> <?=$row->start_job_date?></span><br>
<span class="badge badge-light-danger"><?=$row->end_job_date?></span>
</div>
</td>
<td>
<a href="#" onclick="return post_nav_find_action('<?=$row->qpath?>','<?=$row->offer_code?>')" class="text-dark fw-bolder text-hover-primary mb-1 fs-6"> <?= $row->title ?></a>
<span class="text-muted fw-bold d-block"><mark><?= $row->trec?></mark></span>
</td>
<!-- td class="text-end">
<span class="badge badge-light-success"><?= $row->status ?></span>
</td -->
<td class="text-end">
<a href="#" onclick="return post_nav_find_action('<?=$row->qpath?>','<?=$row->offer_code?>')" class="btn btn-sm btn-icon btn-bg-primary btn-active-color-info">
<span class="svg-icon svg-icon-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<rect opacity="0.5" x="18" y="13" width="13" height="2" rx="1" transform="rotate(-180 18 13)" fill="black" />
<path d="M15.4343 12.5657L11.25 16.75C10.8358 17.1642 10.8358 17.8358 11.25 18.25C11.6642 18.6642 12.3358 18.6642 12.75 18.25L18.2929 12.7071C18.6834 12.3166 18.6834 11.6834 18.2929 11.2929L12.75 5.75C12.3358 5.33579 11.6642 5.33579 11.25 5.75C10.8358 6.16421 10.8358 6.83579 11.25 7.25L15.4343 11.4343C15.7467 11.7467 15.7467 12.2533 15.4343 12.5657Z" fill="black" />
</svg>
</span>
</a>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
+86 -100
View File
@@ -13,7 +13,6 @@
// -->
</script>
<!--begin::Toolbar-->
<div class="d-flex flex-wrap flex-stack my-5">
<!--begin::Heading-->
<h2 class="fs-2 fw-bold my-2">Available Jobs
@@ -32,10 +31,9 @@
</div -->
<!--end::Select wrapper-->
</div>
<!--end::Controls-->
</div>
<!--end::Toolbar-->
<!--begin::Row-->
<div class="row g-6 g-xl-9">
<?php
// $market_table_result
@@ -43,7 +41,7 @@
//onclick="return EDetail('$row->offer_code')
foreach ($market_table_result as $row)
{
?>
?>
<!--begin::Col-->
<div class="col-md-6 col-xl-4" >
<!--begin::Card-->
@@ -77,7 +75,7 @@
<div class="symbol-group symbol-hover">
<!--begin::User-->
<?=$row->offer_code?>
<?=$row->offer_code?>
<!--begin::User-->
</div>
@@ -88,131 +86,119 @@
<!--end::Card-->
</div>
<!--end::Col-->
<?php
<?php
}
?>
</div>
<!--end::Row-->
<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
<!-- Basic modal -->
<div id="modal_theme_primary" class="modal fade">
<div class="modal-dialog modal-dialog-centered mw-650px">
<div class="modal-content rounded">
<!--begin::Modal header-->
<div class="modal-header pb-0 border-0 justify-content-end">
<!--begin::Close-->
<div class="btn btn-sm btn-icon btn-active-color-primary" data-bs-dismiss="modal">
<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
<span class="svg-icon svg-icon-1">
<div id="modal_theme_primary" class="modal fade">
<div class="modal-dialog modal-dialog-centered mw-650px">
<div class="modal-content rounded">
<!--begin::Modal header-->
<div class="modal-header pb-0 border-0 justify-content-end">
<!--begin::Close-->
<div class="btn btn-sm btn-icon btn-active-color-primary" data-bs-dismiss="modal">
<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
<span class="svg-icon svg-icon-1">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
</svg>
</span>
<!--end::Svg Icon-->
<!--end::Svg Icon-->
</div>
<!--end::Close-->
</div>
<!--end::Close-->
</div>
<!--begin::Modal header-->
<div id="modal-content">
<!--begin::Modal header-->
<div id="modal-content">
</div>
</div>
</div>
</div>
</div>
<!-- /basic modal -->
<!-- /main content -->
<script type="text/javascript">
<!--
<!--
var current_job_contract = null;
var current_job_contract = null;
function showMarketJobModal(job_contract) {
//alert(job_contract);
if (typeof event !== 'undefined') {
event.preventDefault();
}
function showMarketJobModal(job_contract) {
//alert(job_contract);
if (typeof event !== 'undefined') {
event.preventDefault();
}
// load the modal content with a loader gif and message
$('#modal-content').html('Loading...');
// load the modal content with a loader gif and message
$('#modal-content').html('Loading...');
// show modal window
$('#modal_theme_primary').modal('show');
// show modal window
$('#modal_theme_primary').modal('show');
//alert("/jobs/marketdetail?proc=NCOMPLETE&job_contract=" + job_contract);
//alert("/jobs/marketdetail?proc=NCOMPLETE&job_contract=" + job_contract);
$.ajax({
url: "/jobs/marketdetail?proc=NCOMPLETE&job_contract=" + job_contract
}).done(function (data) {
$.ajax({
url: "/jobs/marketdetail?proc=NCOMPLETE&job_contract=" + job_contract
}).done(function (data) {
//alert(data);
$('#modal-content').html(data);
});
}
$('#modal-content').html(data);
});
}
function EDetail(job_contract) {
if (current_job_contract!=null) {
$('#'+current_job_contract).html('');
current_job_contract = null;
}
current_job_contract = job_contract;
//$('#req_completion').html('Processing...');
//$('#req_completion_submit').prop('disabled', true);
$('#submit_'+job_contract).prop('disabled', true);
$.ajax({
url: "/jobs/marketdetail?proc=NCOMPLETE&job_contract=" + job_contract
}).done(function( data ) {
$('#'+job_contract).html(data);
$('#submit_'+job_contract).prop('disabled', false);
});
return false;
}
function EDetail(job_contract) {
if (current_job_contract!=null) {
$('#'+current_job_contract).html('');
current_job_contract = null;
}
current_job_contract = job_contract;
//$('#req_completion').html('Processing...');
//$('#req_completion_submit').prop('disabled', true);
$('#submit_'+job_contract).prop('disabled', true);
$.ajax({
url: "/jobs/marketdetail?proc=NCOMPLETE&job_contract=" + job_contract
}).done(function( data ) {
$('#'+job_contract).html(data);
$('#submit_'+job_contract).prop('disabled', false);
});
return false;
}
function SInterest(job_contract) {
//$('#req_completion').html('Processing...');
//$('#req_completion_submit').prop('disabled', true);
$('#submit_interest_'+job_contract).prop('disabled', true);
$.ajax({
url: "/jobs/showinterest?proc=NCOMPLETE&job_contract=" + job_contract
}).done(function( data ) {
$('#'+job_contract).html(data);
$('#submit_interest_'+job_contract).prop('disabled', false);
});
return false;
}
function SInterest(job_contract) {
//$('#req_completion').html('Processing...');
//$('#req_completion_submit').prop('disabled', true);
$('#submit_interest_'+job_contract).prop('disabled', true);
$.ajax({
url: "/jobs/showinterest?proc=NCOMPLETE&job_contract=" + job_contract
}).done(function( data ) {
$('#'+job_contract).html(data);
$('#submit_interest_'+job_contract).prop('disabled', false);
});
return false;
}
function OMessage(offer_code) {
if (document.job_message.yourmessage.value=='') {
alert('Missing message!');
return false;
}
//$('#msg_result_'+offer_code).html('Processing...');
$('#submit_yourmessage_'+offer_code).prop('disabled', true);
$.ajax({
url: "/jobs/marketrmessage?proc=NCOMPLETE&offer_code=" + offer_code + "&yourmessage=" + document.job_message.yourmessage.value
}).done(function( data ) {
$('#msg_result_'+offer_code).html(data);
// document.offer_individual.rec_email.value = '';
$('#submit_yourmessage_'+offer_code).prop('disabled', false);
});
return false;
}
// -->
</script>
function OMessage(offer_code) {
if (document.job_message.yourmessage.value=='') {
alert('Missing message!');
return false;
}
//$('#msg_result_'+offer_code).html('Processing...');
$('#submit_yourmessage_'+offer_code).prop('disabled', true);
$.ajax({
url: "/jobs/marketrmessage?proc=NCOMPLETE&offer_code=" + offer_code + "&yourmessage=" + document.job_message.yourmessage.value
}).done(function( data ) {
$('#msg_result_'+offer_code).html(data);
// document.offer_individual.rec_email.value = '';
$('#submit_yourmessage_'+offer_code).prop('disabled', false);
});
return false;
}
// -->
</script>
+3 -60
View File
@@ -18,66 +18,9 @@
<div class="row g-5 g-xl-8">
<!--begin::Col-->
<div class="col-xl-6">
<!--begin::Tables Widget 5-->
<div class="card card-xl-stretch mb-5 mb-xl-8">
<!--begin::Header-->
<div class="card-header border-0 pt-5">
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1">My Offers </span>
</h3>
<div class="card-toolbar">
</div>
</div>
<!--end::Header-->
<!--begin::Body-->
<div class="card-body py-3">
<div class="tab-content">
<!--begin::Tap pane-->
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
<!--begin::Table container-->
<div class="table-responsive">
<table class="table align-middle gs-0 gy-3">
<tbody>
<?php
foreach( $my_offer_rows as $row){
?>
<tr>
<td>
<a href="#" class="text-dark fw-bolder text-hover-primary mb-1 fs-6"><?=$row->title?></a>
<span class="text-muted fw-bold d-block fs-7"><?=$row->description?></span>
Send : <?=$row->sent?><br>
Expire : <?=$row->expire?>
</td>
<td class="text-end">
<a href="#"
onclick="return post_nav_find_action('/jobs/viewmyjob','<?=$row->offer_code?>')"
class="btn btn-sm btn-icon btn-bg-light btn-active-color-info">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<rect opacity="0.5" x="18" y="13" width="13" height="2" rx="1" transform="rotate(-180 18 13)" fill="black" />
<path d="M15.4343 12.5657L11.25 16.75C10.8358 17.1642 10.8358 17.8358 11.25 18.25C11.6642 18.6642 12.3358 18.6642 12.75 18.25L18.2929 12.7071C18.6834 12.3166 18.6834 11.6834 18.2929 11.2929L12.75 5.75C12.3358 5.33579 11.6642 5.33579 11.25 5.75C10.8358 6.16421 10.8358 6.83579 11.25 7.25L15.4343 11.4343C15.7467 11.7467 15.7467 12.2533 15.4343 12.5657Z" fill="black" />
</svg>
</a>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<!--end::Table-->
</div>
<!--end::Tap pane-->
</div>
</div>
<!--end::Body-->
</div>
<!--end::Tables Widget 5-->
<?php
include(VIEWPATH.'/compo/comp_current_offers.php');
?>
</div>
<!--end::Col-->
<!--begin::Col-->
@@ -42,9 +42,9 @@
<!--begin::Table head-->
<thead>
<tr style="font-weight: bolder;">
<th class="p-0 " style="width: 120px;">Added<br>Expire</th>
<th class="p-0 min-w-160px">Title<br>Recipient</th>
<tr style="font-weight: normal;">
<th class="p-0 " style="width: 100px;">Added/Expire</th>
<th class="p-0 min-w-160px">Title/Target</th>
<th class="p-0 w-100px"></th>
</tr>
</thead>
@@ -56,18 +56,18 @@
?>
<tr>
<td>
<?=$row->start_job_date?><br>
<?=$row->end_job_date?>
<span class="badge badge-light-success"> <?=$row->start_job_date?></span><br>
<span class="badge badge-light-danger"><?=$row->end_job_date?></span>
</td>
<td>
<a href="#" class="text-dark fw-bolder text-hover-primary mb-1 fs-6"><?=$row->title?></a>
<span class="text-muted fw-bold d-block fs-7">To : <?=$row->job_to?></span>
<span class="text-muted fw-bold d-block fs-7">To :<mark> <?=$row->job_to?> </mark></span>
</td>
<td class="text-end">
<a href="#"
onclick="return post_nav_find_action('/jobs/viewmyjob','<?=$row->offer_code?>')"
class="btn btn-sm btn-icon btn-bg-light btn-active-color-info">
class="btn btn-sm btn-icon btn-bg-primary btn-active-color-info">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<rect opacity="0.5" x="18" y="13" width="13" height="2" rx="1" transform="rotate(-180 18 13)" fill="black" />
<path d="M15.4343 12.5657L11.25 16.75C10.8358 17.1642 10.8358 17.8358 11.25 18.25C11.6642 18.6642 12.3358 18.6642 12.75 18.25L18.2929 12.7071C18.6834 12.3166 18.6834 11.6834 18.2929 11.2929L12.75 5.75C12.3358 5.33579 11.6642 5.33579 11.25 5.75C10.8358 6.16421 10.8358 6.83579 11.25 7.25L15.4343 11.4343C15.7467 11.7467 15.7467 12.2533 15.4343 12.5657Z" fill="black" />
+90 -51
View File
@@ -17,18 +17,21 @@
<div class="row g-5 g-xl-8">
<div class="col-xl-8">
<div class="card mb-5 mb-xl-8">
<div class="border-0 pt-2">
<h3 class="card-title align-items-start flex-column">
<a href="<?php echo $redirect_to; ?>" class="label label-flat border-warning text-primary-600"> <i class="icon-arrow-left52 position-left"></i> Return to List </a>
</h3>
</div>
</div>
<div class="card mb-5 mb-xl-8">
<div class="card-header border-0 pt-5">
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1"><?=$this_job_result->title?></span>
<table>
<tr>
<td>
<a href="<?php echo $redirect_to; ?>"> <img style="height: 40px; width: auto;" src="/assets/images/icons/back-arrow.png"></a> &nbsp;&nbsp;&nbsp;
</td>
<td>
<span class="card-label fw-bolder fs-3 mb-1"><?=$this_job_result->title?></span>
</td>
</tr>
</table>
</h3>
</div>
<div class="card-body" style="padding-top: 5px !important;">
@@ -68,14 +71,14 @@
<ul class="nav nav-tabs nav-line-tabs mb-5 fs-6">
<li class="nav-item">
<a class="nav-link active" data-bs-toggle="tab" href="#kt_tab_pane_1">Send Message</a>
<a class="nav-link active" data-bs-toggle="tab" href="#kt_tab_pane_1">Message(s)</a>
</li>
<!-- li class="nav-item">
<a class="nav-link" data-bs-toggle="tab" href="#kt_tab_pane_2">Add File(s)</a>
</li -->
</li>
<li class="nav-item">
<a class="nav-link" data-bs-toggle="tab" href="#kt_tab_pane_3">Actions</a>
</li>
</li -->
</ul>
<div class="tab-content" id="myTabContent">
@@ -88,7 +91,7 @@
<input type='hidden' name='contractId' value='<?php echo $contract_id; ?>'>
<div class="form-group">
<textarea cols="18" onkeypress="textContentChanged();" style="height:180px;" rows="3" id='jobmessage' name='jobmessage' class="textarea wysihtml5 wysihtml5-min form-control" placeholder="Enter message here ..."></textarea>
<textarea cols="18" onchange="textContentChanged();" style="height:120px;" rows="3" id='jobmessage' name='jobmessage' class="textarea wysihtml5 wysihtml5-min form-control" placeholder="Enter message here ..."></textarea>
</div>
<div class="form-group">
@@ -133,36 +136,9 @@
<div class="form-group">
<?php
if ($this_is_client == true) {
?>
<table class='table table-striped table-hover table-bordered table-condensed'>
<tr>
<td>
If you have completed this task and will like the owner to review the work for acceptance, click "Completed" button.
</td>
<td style="width:140px;">
<div id="req_completion"> <button type="submit" id="req_completion_submit" class="btn btn-primary btn-sm" onclick="return requestCompletion('<?php echo $job_contract; ?>');" <?php echo $disabled1; ?> >Completed</button></div>
</td>
</tr>
<tr>
<td>
If you are unable to complete and will like this project canceled, click "Cancel task" button.
</td>
<td style="width:140px;">
<div id="req_cancel"> <button type="submit" id="req_cancel_submit" onclick="return requestCancel('<?php echo $job_contract; ?>');" class="btn btn-danger btn-sm" <?php echo $disabled2; ?> >Request Cancel</button> </div>
</td>
</tr>
</table>
<div style="font-size: large; font-family: sans-serif">
<p style="color: #ff0000; background-color: #ffffff">Note: Buttons may be disabled for some days at the start of the task</p>
</div>
<?php
include('jobaction/job_worker.php');
}
?>
<?php
if ($this_is_project_owner == true) {
?>
<table class='table table-striped table-hover table-bordered table-condensed'>
@@ -229,11 +205,25 @@
<?php
if ($this_is_client == true) {
// include(VIEWPATH.'/compo/compo_msg4_accord.php');
include('jobaction/job_worker.php');
if ($this_job_result->current_job_status != 4){
include('jobaction/job_worker.php');
}
if ($this_job_result->current_job_status == 4){
echo "You have sent this task to the owner for review and acceptance. The job will automatically be completed in 3 days if the owner does not respond";
}
}
if ($this_is_project_owner == true) {
include('jobaction/job_owner.php');
if ($this_job_result->current_job_status == 4){
include('jobaction/job_owner.php');
}
else{
echo "Waiting for the completion message from the client before you can approve.";
}
//
}
?>
</div>
@@ -269,7 +259,7 @@
<script type="text/javascript">
<!--
var length_limit = 500;
const length_limit = 500;
var timerId = setTimeout(function tick() {
$.ajax({
url: "/proj/thisjobfiles?jobID=<?php echo $jobID; ?>"
@@ -288,13 +278,17 @@
function textContentChanged(){
/*
if (length_limit <= document.message.jobmessage.value.length){
document.message.jobmessage.value = document.message.jobmessage.value .substring(0, length_limit);
}
$('#remain_text').text(length_limit -document.message.jobmessage.value.length);
*/
var r = length_limit -document.message.jobmessage.value.length;
if (r < 0) r = 0;
$('#remain_text').text(r);
// document.message.remain_text.value= length_limit -document.message.jobmessage.value.length;
/*
if (document.message.jobmessage.value.length > 0 ){
// alert(100);
document.message.btn_cancel.disabled = false;
@@ -302,6 +296,17 @@
else{
document.message.btn_cancel.disabled = true;
}
*/
if(document.message.jobmessage.value.length > length_limit)
{
document.message.btn_submit.disabled = true;
}
else
{
document.message.btn_submit.disabled = false;
}
console.log('JobMessage Length = '+document.message.jobmessage.value.length);
console.log('JobMessage Value = '+document.message.jobmessage.value);
}
function SendMessage() {
@@ -318,11 +323,30 @@
} else {
$('#jobs_contract_message > tbody:last-child').append(res);
}
var id = Date.now();
var html = `<div class="accordion-item">
<h2 class="accordion-header" id="kt_accordion_1_header_1">
<button class="accordion-button fs-4 fw-semibold"
type="button" data-bs-toggle="collapse" data-bs-target="#kt_accordion_1_` + id + `"
aria-expanded="true" aria-controls="kt_accordion_1_body_1">
<b></b><?= $_SESSION["firstname"] ?>-` + d_str + `
</button>
</h2>
<div id="kt_accordion_1_` + id + `" class="accordion-collapse collapse" aria-labelledby="kt_accordion_1_header_1" data-bs-parent="#kt_accordion_1">
<div class="accordion-body">
` + document.message.jobmessage.value + `
</div>
</div>
</div>`;
document.message.jobmessage.value = '';
$('#jobmessage').data("wysihtml5").editor.clear();
//$('#jobmessage').data("wysihtml5").editor.clear();
$('#jobmessage').trumbowyg('empty');
$('#sendmessagenote').html('<div class=\"text-left\"><div class=\"alert alert-info no-border\">Message was sent!</div></div>');
// Append
$(html).prependTo('#kt_accordion_1');
} else {
alert('<div class=\"text-left\"><div class=\"alert alert-danger no-border\">Failed to send message</div></div>');
$('#sendmessagenote').html('<div class=\"text-left\"><div class=\"alert alert-danger no-border\">Failed to send message</div></div>');
}
document.message.btn_cancel.disabled = false;
document.message.btn_submit.disabled = false;
@@ -330,8 +354,23 @@
}
$(document).ready(function () {
var length_limit = 500;
$('#jobmessage').data("wysihtml5").editor.observe("load", function () {
$('#jobmessage').trumbowyg({
btns: [
['viewHTML'],
['undo','redo'],// Only supported in Blink browsers
['formatting'],
['strong','em','del'],
['superscript','subscript'],
['link'],
/* ['insertImage'], */
['justifyLeft','justifyCenter','justifyRight','justifyFull'],
['unorderedList','orderedList'],
['horizontalRule'],
['removeformat'],
['fullscreen']
]
});
/*$('#jobmessage').data("wysihtml5").editor.observe("load", function () {
editor.composer.element.addEventListener("keyup", function () {
// enter your listener-triggered code or function call here
var content = $(this).html();
@@ -340,7 +379,7 @@
$(this).html(content.substr(0, length_limit));
}
});
});
});*/
});
// -->
</script>
@@ -50,7 +50,7 @@
</label>
<div class="col-lg-8 d-flex align-items-center">
<span class="fw-bolder fs-6 text-gray-800 me-2"><div id="extend_result"><?php echo $expire; ?></div></span>
<input type="button" name="extend_job" id="extend_job" onclick="return extendDuration();" value='Extend by a week' class="btn btn-info btn-sm" >
</div>
</div>
<div class="row mb-7">
@@ -80,7 +80,7 @@
<div class="row mb-10" style="text-align: right'">
<!-- div class="row mb-10" style="text-align: right'">
<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group mr-2" role="group" aria-label="cancel grp" style="padding-left: 0px; padding-right: 10px;">
<input type="button" name="reject_submit" id="reject_submit" onclick="return cancelOffer();" value='Cancel Offer' class="btn btn-danger btn-sm" >
@@ -93,7 +93,7 @@
<input type="button" name="sendjob_tome" id="sendjob_tome" onclick="return sendOfferToMe();" value='Send to me' class="btn btn-info btn-sm" >
</div>
</div>
</div>
</div -->
</div>
</div>
@@ -104,14 +104,70 @@
<div class="card card-xl-stretch mb-5 mb-xl-8">
<div class="card-header border-0 pt-5">
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1">Other Offers</span>
<span class="card-label fw-bolder fs-3 mb-1">Actions</span>
</h3>
</div>
<div class="card-body py-3">
<div class="tab-content">
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
<div class="table-responsive">
<!--begin::Table-->
<table class="table table-striped">
<tbody>
<tr>
<td>
<? if($is_public_view > 0){
?>
Job sent to <?php echo $job_sent_to; ?>
<?php
}
else{
?>
<input type="button" name="sendjob_resend" id="sendjob_resend" onclick="return resendOffer();" value='Resend Offer' class="btn btn-primary btn-sm btn-block " >
<?php
}
?>
</td>
</tr>
<tr>
<td>
<input type="button" name="extend_job" id="extend_job" onclick="return extendDuration();" value='Extend by a week' class="btn btn-info btn-sm btn-block" >
</td>
</tr>
<tr>
<td>
<input type="button" name="sendjob_tome" id="sendjob_tome" onclick="return sendOfferToMe();" value='Send to me' class="btn btn-info btn-sm btn-block" >
</td>
</tr>
<tr>
<td style="height: 60x; vertical-align: bottom;">
<br>
<br>
<input type="button" name="reject_submit" id="reject_submit" onclick="return cancelOffer();" value='Cancel Offer' class="btn btn-danger btn-sm btn-block" >
</td>
</tr>
</tbody>
</table>
</div>
</div>
@@ -119,7 +175,8 @@
</div>
</div>
</div>
</div>
</div>
@@ -137,14 +194,14 @@
</div>
<!-- /main charts -->
<div class="row">
<div class="col-md-12">
<div class="col-md-12">
<div class="panel panel-flat">
</div>
</div>
<!-- div class="col-md-3">
<div class="thumbnail">
<div class="thumbnail">
<div class="caption">
<div id="offer_result">
<div class="alert alert-info no-border"> You have sent this job to <?php echo $job_sent_to; ?></div>
@@ -89,6 +89,27 @@
</a>
<a href="/refer/refagree">
<div class="menu-item">
<span class="menu-link">
<span class="menu-icon">
<!--begin::Svg Icon | path: icons/duotune/general/gen025.svg-->
<span class="svg-icon svg-icon-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<rect x="2" y="2" width="9" height="9" rx="2" fill="black" />
<rect opacity="0.3" x="13" y="2" width="9" height="9" rx="2" fill="black" />
<rect opacity="0.3" x="13" y="13" width="9" height="9" rx="2" fill="black" />
<rect opacity="0.3" x="2" y="13" width="9" height="9" rx="2" fill="black" />
</svg>
</span>
<!--end::Svg Icon-->
</span>
<span class="menu-title">Refer a Friend</span>
</span>
</div>
</a>
<!-- a href="/member/schedule">
<div class="menu-item">
<span class="menu-link">
@@ -136,6 +157,9 @@
</div>
</a>
<a href="/jobs/myoffer" >
<div class="menu-item">
<span class="menu-link">
@@ -154,28 +178,11 @@
</span>
<!--end::Svg Icon-->
</span>
<span class="menu-title">Pending</span>
<span class="menu-title">Pending Offers</span>
</span>
</div>
</a>
<!-- a href="/member/yourpage" >
<div class="menu-item">
<span class="menu-link">
<span class="menu-icon">
<span class="svg-icon svg-icon-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M6.28548 15.0861C7.34369 13.1814 9.35142 12 11.5304 12H12.4696C14.6486 12 16.6563 13.1814 17.7145 15.0861L19.3493 18.0287C20.0899 19.3618 19.1259 21 17.601 21H6.39903C4.87406 21 3.91012 19.3618 4.65071 18.0287L6.28548 15.0861Z" fill="black" />
<rect opacity="0.3" x="8" y="3" width="8" height="8" rx="4" fill="black" />
</svg>
</span>
</span>
<span class="menu-title">My Page</span>
</span>
</div>
</a -->
<a href="/member/message" >
<div class="menu-item">
<span class="menu-link">
@@ -205,27 +212,31 @@
<?php
if (isset($_SESSION["post_jobs"]) && $_SESSION["post_jobs"] != '') {
?>
<a href="/jobs/manage">
<div class="menu-item">
<span class="menu-link">
<span class="menu-icon">
<!--begin::Svg Icon | path: icons/duotune/general/gen002.svg-->
<span class="svg-icon svg-icon-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path opacity="0.3" d="M4.05424 15.1982C8.34524 7.76818 13.5782 3.26318 20.9282 2.01418C21.0729 1.98837 21.2216 1.99789 21.3618 2.04193C21.502 2.08597 21.6294 2.16323 21.7333 2.26712C21.8372 2.37101 21.9144 2.49846 21.9585 2.63863C22.0025 2.7788 22.012 2.92754 21.9862 3.07218C20.7372 10.4222 16.2322 15.6552 8.80224 19.9462L4.05424 15.1982ZM3.81924 17.3372L2.63324 20.4482C2.58427 20.5765 2.5735 20.7163 2.6022 20.8507C2.63091 20.9851 2.69788 21.1082 2.79503 21.2054C2.89218 21.3025 3.01536 21.3695 3.14972 21.3982C3.28408 21.4269 3.42387 21.4161 3.55224 21.3672L6.66524 20.1802L3.81924 17.3372ZM16.5002 5.99818C16.2036 5.99818 15.9136 6.08615 15.6669 6.25097C15.4202 6.41579 15.228 6.65006 15.1144 6.92415C15.0009 7.19824 14.9712 7.49984 15.0291 7.79081C15.0869 8.08178 15.2298 8.34906 15.4396 8.55884C15.6494 8.76862 15.9166 8.91148 16.2076 8.96935C16.4986 9.02723 16.8002 8.99753 17.0743 8.884C17.3484 8.77046 17.5826 8.5782 17.7474 8.33153C17.9123 8.08486 18.0002 7.79485 18.0002 7.49818C18.0002 7.10035 17.8422 6.71882 17.5609 6.43752C17.2796 6.15621 16.8981 5.99818 16.5002 5.99818Z" fill="black" />
<path d="M4.05423 15.1982L2.24723 13.3912C2.15505 13.299 2.08547 13.1867 2.04395 13.0632C2.00243 12.9396 1.9901 12.8081 2.00793 12.679C2.02575 12.5498 2.07325 12.4266 2.14669 12.3189C2.22013 12.2112 2.31752 12.1219 2.43123 12.0582L9.15323 8.28918C7.17353 10.3717 5.4607 12.6926 4.05423 15.1982ZM8.80023 19.9442L10.6072 21.7512C10.6994 21.8434 10.8117 21.9129 10.9352 21.9545C11.0588 21.996 11.1903 22.0083 11.3195 21.9905C11.4486 21.9727 11.5718 21.9252 11.6795 21.8517C11.7872 21.7783 11.8765 21.6809 11.9402 21.5672L15.7092 14.8442C13.6269 16.8245 11.3061 18.5377 8.80023 19.9442ZM7.04023 18.1832L12.5832 12.6402C12.7381 12.4759 12.8228 12.2577 12.8195 12.032C12.8161 11.8063 12.725 11.5907 12.5653 11.4311C12.4057 11.2714 12.1901 11.1803 11.9644 11.1769C11.7387 11.1736 11.5205 11.2583 11.3562 11.4132L5.81323 16.9562L7.04023 18.1832Z" fill="black" />
</svg>
</span>
<!--end::Svg Icon-->
</span>
<span class="menu-title">My Jobs</span>
</span>
</div>
<div class="menu-item">
<span class="menu-link">
<span class="menu-icon">
<!--begin::Svg Icon | path: icons/duotune/general/gen002.svg-->
<span class="svg-icon svg-icon-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path opacity="0.3" d="M4.05424 15.1982C8.34524 7.76818 13.5782 3.26318 20.9282 2.01418C21.0729 1.98837 21.2216 1.99789 21.3618 2.04193C21.502 2.08597 21.6294 2.16323 21.7333 2.26712C21.8372 2.37101 21.9144 2.49846 21.9585 2.63863C22.0025 2.7788 22.012 2.92754 21.9862 3.07218C20.7372 10.4222 16.2322 15.6552 8.80224 19.9462L4.05424 15.1982ZM3.81924 17.3372L2.63324 20.4482C2.58427 20.5765 2.5735 20.7163 2.6022 20.8507C2.63091 20.9851 2.69788 21.1082 2.79503 21.2054C2.89218 21.3025 3.01536 21.3695 3.14972 21.3982C3.28408 21.4269 3.42387 21.4161 3.55224 21.3672L6.66524 20.1802L3.81924 17.3372ZM16.5002 5.99818C16.2036 5.99818 15.9136 6.08615 15.6669 6.25097C15.4202 6.41579 15.228 6.65006 15.1144 6.92415C15.0009 7.19824 14.9712 7.49984 15.0291 7.79081C15.0869 8.08178 15.2298 8.34906 15.4396 8.55884C15.6494 8.76862 15.9166 8.91148 16.2076 8.96935C16.4986 9.02723 16.8002 8.99753 17.0743 8.884C17.3484 8.77046 17.5826 8.5782 17.7474 8.33153C17.9123 8.08486 18.0002 7.79485 18.0002 7.49818C18.0002 7.10035 17.8422 6.71882 17.5609 6.43752C17.2796 6.15621 16.8981 5.99818 16.5002 5.99818Z" fill="black" />
<path d="M4.05423 15.1982L2.24723 13.3912C2.15505 13.299 2.08547 13.1867 2.04395 13.0632C2.00243 12.9396 1.9901 12.8081 2.00793 12.679C2.02575 12.5498 2.07325 12.4266 2.14669 12.3189C2.22013 12.2112 2.31752 12.1219 2.43123 12.0582L9.15323 8.28918C7.17353 10.3717 5.4607 12.6926 4.05423 15.1982ZM8.80023 19.9442L10.6072 21.7512C10.6994 21.8434 10.8117 21.9129 10.9352 21.9545C11.0588 21.996 11.1903 22.0083 11.3195 21.9905C11.4486 21.9727 11.5718 21.9252 11.6795 21.8517C11.7872 21.7783 11.8765 21.6809 11.9402 21.5672L15.7092 14.8442C13.6269 16.8245 11.3061 18.5377 8.80023 19.9442ZM7.04023 18.1832L12.5832 12.6402C12.7381 12.4759 12.8228 12.2577 12.8195 12.032C12.8161 11.8063 12.725 11.5907 12.5653 11.4311C12.4057 11.2714 12.1901 11.1803 11.9644 11.1769C11.7387 11.1736 11.5205 11.2583 11.3562 11.4132L5.81323 16.9562L7.04023 18.1832Z" fill="black" />
</svg>
</span>
<!--end::Svg Icon-->
</span>
<span class="menu-title">My Jobs</span>
</span>
</div>
</a>
<?php
if ($_SESSION["active_offers_count"] > 0) {
?>
<<a href="/jobs/pendingoffer">
<a href="/jobs/pendingoffer">
<div class="menu-item">
<span class="menu-link">
<span class="menu-icon">
@@ -238,30 +249,34 @@
</span>
<!--end::Svg Icon-->
</span>
<span class="menu-title">my Market Jobs[<?php echo $_SESSION["active_offers_count"]; ?>]</span>
<span class="menu-title">Active Jobs[<?php echo $_SESSION["active_offers_count"]; ?>]</span>
</span>
</div>
</a>
<a href="/jobs/offerinterest">
<div class="menu-item">
<span class="menu-link">
<span class="menu-icon">
<!--begin::Svg Icon | path: icons/duotune/graphs/gra006.svg-->
<span class="svg-icon svg-icon-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M13 5.91517C15.8 6.41517 18 8.81519 18 11.8152C18 12.5152 17.9 13.2152 17.6 13.9152L20.1 15.3152C20.6 15.6152 21.4 15.4152 21.6 14.8152C21.9 13.9152 22.1 12.9152 22.1 11.8152C22.1 7.01519 18.8 3.11521 14.3 2.01521C13.7 1.91521 13.1 2.31521 13.1 3.01521V5.91517H13Z" fill="black" />
<path opacity="0.3" d="M19.1 17.0152C19.7 17.3152 19.8 18.1152 19.3 18.5152C17.5 20.5152 14.9 21.7152 12 21.7152C9.1 21.7152 6.50001 20.5152 4.70001 18.5152C4.30001 18.0152 4.39999 17.3152 4.89999 17.0152L7.39999 15.6152C8.49999 16.9152 10.2 17.8152 12 17.8152C13.8 17.8152 15.5 17.0152 16.6 15.6152L19.1 17.0152ZM6.39999 13.9151C6.19999 13.2151 6 12.5152 6 11.8152C6 8.81517 8.2 6.41515 11 5.91515V3.01519C11 2.41519 10.4 1.91519 9.79999 2.01519C5.29999 3.01519 2 7.01517 2 11.8152C2 12.8152 2.2 13.8152 2.5 14.8152C2.7 15.4152 3.4 15.7152 4 15.3152L6.39999 13.9151Z" fill="black" />
</svg>
</span>
<!--end::Svg Icon-->
</span>
<span class="menu-title">Flagged Interest</span>
</span>
</div>
</a>
<?
}
?>
<a href="/jobs/offerinterest">
<div class="menu-item">
<span class="menu-link">
<span class="menu-icon">
<!--begin::Svg Icon | path: icons/duotune/graphs/gra006.svg-->
<span class="svg-icon svg-icon-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M13 5.91517C15.8 6.41517 18 8.81519 18 11.8152C18 12.5152 17.9 13.2152 17.6 13.9152L20.1 15.3152C20.6 15.6152 21.4 15.4152 21.6 14.8152C21.9 13.9152 22.1 12.9152 22.1 11.8152C22.1 7.01519 18.8 3.11521 14.3 2.01521C13.7 1.91521 13.1 2.31521 13.1 3.01521V5.91517H13Z" fill="black" />
<path opacity="0.3" d="M19.1 17.0152C19.7 17.3152 19.8 18.1152 19.3 18.5152C17.5 20.5152 14.9 21.7152 12 21.7152C9.1 21.7152 6.50001 20.5152 4.70001 18.5152C4.30001 18.0152 4.39999 17.3152 4.89999 17.0152L7.39999 15.6152C8.49999 16.9152 10.2 17.8152 12 17.8152C13.8 17.8152 15.5 17.0152 16.6 15.6152L19.1 17.0152ZM6.39999 13.9151C6.19999 13.2151 6 12.5152 6 11.8152C6 8.81517 8.2 6.41515 11 5.91515V3.01519C11 2.41519 10.4 1.91519 9.79999 2.01519C5.29999 3.01519 2 7.01517 2 11.8152C2 12.8152 2.2 13.8152 2.5 14.8152C2.7 15.4152 3.4 15.7152 4 15.3152L6.39999 13.9151Z" fill="black" />
</svg>
</span>
<!--end::Svg Icon-->
</span>
<span class="menu-title">Flagged Interest</span>
</span>
</div></a>
<?php
} else {
?>
@@ -51,22 +51,24 @@ $server_name = 'https://'. $_SERVER['HTTP_HOST'];
</style>
<!-- link href="/assets/ext/css/hack.css" rel="stylesheet" type="text/css" / -->
<link href="/assets/js/plugins/trumbowyg/ui/trumbowyg.min.css" rel="stylesheet" type="text/css" />
<script src="/OneSignalSDKWorker.js" async=""></script>
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
<script>
window.OneSignal = window.OneSignal || [];
OneSignal.push(function() {
OneSignal.init({
appId: "<?php echo $OneSignalAppId; ?>",
/* oameye: "e80afcf4-6fad-493c-b5cc-452d37196dea", */
/* prod: "13755f98-ec69-45fd-a2f1-d2166afcaa51", */
});
});
</script>
</head>
<!--end::Head-->
<!--begin::Body-->
<body id="kt_body" class="header-tablet-and-mobile-fixed aside-enabled">
<!--begin::Main-->
<!--begin::Root-->
<body id="kt_body" class="header-tablet-and-mobile-fixed aside-enabled">
<div class="d-flex flex-column flex-root">
<!--begin::Page-->
<div class="page d-flex flex-row flex-column-fluid">
<!--begin::Aside-->
<div id="kt_aside" class="aside" data-kt-drawer="true" data-kt-drawer-name="aside" data-kt-drawer-activate="{default: true, lg: false}" data-kt-drawer-overlay="true" data-kt-drawer-width="{default:'200px', '300px': '250px'}" data-kt-drawer-direction="start" data-kt-drawer-toggle="#kt_aside_mobile_toggle">
<!--begin::Aside Toolbarl-->
<div class="aside-toolbar flex-column-auto" id="kt_aside_toolbar">
<!--begin::Aside user-->
<!--begin::User-->
<div class="aside-user d-flex align-items-sm-center justify-content-center py-5">
<!--begin::Symbol-->
<div class="symbol symbol-50px"><?php if (array_key_exists('profile_picture', $_SESSION)) { ?>
@@ -384,13 +386,9 @@ $server_name = 'https://'. $_SERVER['HTTP_HOST'];
<!--begin::Action-->
<a href="/refer/refagree" class="btn btn-sm btn-active-icon-primary" >
<!--begin::Svg Icon | path: icons/duotune/files/fil003.svg-->
<span class="fs-7 text-gray-700 fw-bolder pe-3 d-none d-xxl-block">Refer a Friend</span>
<!--end::Svg Icon-->
</a>
<!--end::Action-->
@@ -0,0 +1,111 @@
<div class="card" id="kt_chat_messenger">
<!--begin::Card header-->
<div class="card-header" id="kt_chat_messenger_header">
<!--begin::Title-->
<div class="card-title">
<!--begin::User-->
<div class="d-flex justify-content-center flex-column me-3">
<a href="#" class="fs-4 fw-bolder text-gray-900 text-hover-primary me-1 mb-2 lh-1"><?=$job_id?></a>
<!--begin::Info-->
<div class="mb-0 lh-1">
<span class="badge badge-success badge-circle w-10px h-10px me-1"></span>
<span class="fs-7 fw-bold text-muted">Active</span>
</div>
<!--end::Info-->
</div>
<!--end::User-->
</div>
<!--end::Title-->
<!--begin::Card toolbar-->
<div class="card-toolbar">
</div>
<!--end::Card toolbar-->
</div>
<!--end::Card header-->
<!--begin::Card body-->
<div class="card-body" id="kt_chat_messenger_body">
<!--begin::Messages-->
<div class="scroll-y me-n5 pe-5 h-300px h-lg-auto" data-kt-element="messages" data-kt-scroll="true" data-kt-scroll-activate="{default: false, lg: true}" data-kt-scroll-max-height="auto" data-kt-scroll-dependencies="#kt_header, #kt_toolbar, #kt_footer, #kt_chat_messenger_header, #kt_chat_messenger_footer" data-kt-scroll-wrappers="#kt_content, #kt_chat_messenger_body" data-kt-scroll-offset="5px">
<?php
foreach ($my_message_rows as $row)
{
if ($row['senders_id'] === $_SESSION['member_id'] ){
?>
<div class="d-flex justify-content-end mb-10">
<div class="d-flex flex-column align-items-end">
<div class="d-flex align-items-center mb-2">
<div class="me-3">
<span class="text-muted fs-7 mb-1"><?=$row['msg_date']?></span>
<a href="#" class="fs-5 fw-bolder text-gray-900 text-hover-primary ms-1"><?=$row['senders_name']?></a>
</div>
</div>
<div class="p-5 rounded bg-light-primary text-dark fw-bold mw-lg-500px text-end"
data-kt-element="message-text"><?=$row['msg']?>
</div>
</div>
</div>
<?
}else{
?>
<div class="d-flex justify-content-start mb-10">
<div class="d-flex flex-column align-items-start">
<div class="d-flex align-items-center mb-2">
<div class="ms-3">
<a href="#" class="fs-5 fw-bolder text-gray-900 text-hover-primary me-1"><?=$row['senders_name']?></a>
<span class="text-muted fs-7 mb-1"><?=$row['msg_date']?></span>
</div>
</div>
<div class="p-5 rounded bg-light-info text-dark fw-bold mw-lg-500px text-start"
data-kt-element="message-text"><?=$row['msg']?></div>
</div>
</div>
<?php
}
}
?>
</div>
<!--end::Messages-->
</div>
<!--end::Card body-->
<!--begin::Card footer-->
<form name="job_message">
<div class="card-footer pt-4" id="kt_chat_messenger_footer">
<textarea name="yourmessage" class="form-control form-control-flush mb-3" rows="1" data-kt-element="input" placeholder="Type a message"></textarea>
<div class="d-flex flex-stack">
<div class="d-flex align-items-center me-2">
</div>
<button id="submit_yourmessage_<?=$message_id?>" onclick="return replyThisMessage('<?=$job_id?>', <?=$message_id?>);" class="btn btn-primary" type="button" data-kt-element="send">Send</button>
</div>
</div>
</form>
</div>
<!-- /main content -->
<script type="text/javascript">
<!--
function replyThisMessage(message_code,message_id) {
if (document.job_message.yourmessage.value=='') {
alert('Missing message!');
return false;
}
$('#submit_yourmessage_'+message_id).prop('disabled', true);
$.ajax({
url: "/member/replymessage?proc=REPLYMSG&message_code=" + message_code + "&message_id="+message_id+"&yourmessage=" + document.job_message.yourmessage.value
}).done(function( data ) {
$('#msg_result_'+message_id).html(data);
document.job_message.yourmessage.value = '';
$('#submit_yourmessage_'+message_id).prop('disabled', false);
});
return false;
}
// -->
</script>
+14 -1
View File
@@ -54,7 +54,20 @@ function getAddWithdrawButtons(){
<span class="badge badge-light-success fs-7 fw-bolder"><? echo money_format('%.2n', $wlt['amount']*0.01); ?></span>
</td>
<td class="text-start">
<span class="badge badge-light-danger fs-7 fw-bolder"><? echo money_format('%.2n', 0 * 0.01); ?></span>
<span class="badge badge-light-danger fs-7 fw-bolder"><?
// var_dump($escrow);
// $found_key = array_search($wlt['code'], array_column($escrow[0], 'currency'));
// var_dump($found_key);
$escrow_amount = 0;
foreach ($escrow as $key => $val) {
if ($val['currency'] === $wlt['code']) {
$escrow_amount = $val['sum'];
}
}
echo money_format('%.2n', $escrow_amount * 0.01);
?></span>
</td>
<td class="text-end">
<?php
+4 -154
View File
@@ -2,72 +2,13 @@
<input type="hidden" name="jobOfferID" value="">
<input type="hidden" name="jobID" value="">
</form>
<?php include('common/userstrip.php'); ?>
<div class="row g-5 g-xl-8">
<div class="col-xl-6">
<div class="card card-xl-stretch mb-5 mb-xl-8">
<div class="card-header border-0 pt-5">
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1"><?=$dash_title?></span>
</h3>
<div class="card-toolbar">
<?php
include(VIEWPATH.'/compo/comp_current_offers.php');
?>
</div>
</div>
<div class="card-body py-3">
<div class="tab-content">
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
<div class="table-responsive">
<table class="table table-row-dashed table-row-gray-200 align-middle gs-0 gy-4">
<thead>
<tr class="border-0">
<th class="p-0 w-100px">Added/Expire</th>
<th class="p-0 min-w-125px">Title/Target</th>
<th class="p-0 min-w-90px">Status</th>
<th class="p-0 min-w-50px"></th>
</tr>
</thead>
<tbody>
<?php
if ($offer_found == true ){
foreach ($offer_dash_result as $row)
{
?>
<tr>
<td>
<div class="symbol symbol-45px me-2">
<?= $row->pdate ?>
</div>
</td>
<td>
<a href="#" class="text-dark fw-bolder text-hover-primary mb-1 fs-6"> <?= $row->title ?></a>
<span class="text-muted fw-bold d-block"><mark><?= $row->trec ?></mark></span>
</td>
<td class="text-end">
<span class="badge badge-light-success"><?= $row->status ?></span>
</td>
<td class="text-end">
<a href="#" onclick="return post_nav_find_action('<?=$row->qpath?>','<?=$row->offer_code?>')" class="btn btn-sm btn-icon btn-bg-light btn-active-color-primary">
<span class="svg-icon svg-icon-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<rect opacity="0.5" x="18" y="13" width="13" height="2" rx="1" transform="rotate(-180 18 13)" fill="black" />
<path d="M15.4343 12.5657L11.25 16.75C10.8358 17.1642 10.8358 17.8358 11.25 18.25C11.6642 18.6642 12.3358 18.6642 12.75 18.25L18.2929 12.7071C18.6834 12.3166 18.6834 11.6834 18.2929 11.2929L12.75 5.75C12.3358 5.33579 11.6642 5.33579 11.25 5.75C10.8358 6.16421 10.8358 6.83579 11.25 7.25L15.4343 11.4343C15.7467 11.7467 15.7467 12.2533 15.4343 12.5657Z" fill="black" />
</svg>
</span>
</a>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-6">
<?php
@@ -77,97 +18,6 @@
<!--end::Col-->
</div>
<div class="row g-5 g-xl-8">
<div class="col-xl-12">
<!--begin::Charts Widget 1-->
<div class="card card-xl-stretch mb-5 mb-xl-8">
<!--begin::Header-->
<div class="card-header border-0 pt-5">
<!--begin::Title-->
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1">Recent Task Message</span>
</h3>
<!--end::Title-->
</div>
<!--end::Header-->
<!--begin::Body-->
<div class="card-body">
<div class="tab-content">
<!--begin::Tap pane-->
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
<!--begin::Table container-->
<div class="table-responsive">
<!--begin::Table-->
<table class="table table-row-dashed table-row-gray-200 align-middle gs-0 gy-4">
<!--begin::Table head-->
<thead>
<tr class="border-0">
<th class="p-0 w-100px">Date</th>
<th class="p-0 min-w-125px">Title/Message</th>
<th class="p-0 min-w-50px"></th>
</tr>
</thead>
<!--end::Table head-->
<!--begin::Table body-->
<tbody>
<?php
if ($message_found == true ){
foreach ($job_message_table_result as $row)
{
?>
<tr>
<td>
<div class="symbol symbol-45px me-2">
<?= $row->date_contract ?>
</div>
</td>
<td>
<a href="#" class="text-dark fw-bolder text-hover-primary mb-1 fs-6"> <?= $row->title ?></a>
<span class="text-muted fw-bold d-block"><?=$row->title_message?></span>
</td>
<td class="text-end">
<a href="#" onclick="return post_nav_find_action('<?=$row->qpath?>','<?=$row->offer_code?>')" class="btn btn-sm btn-icon btn-bg-light btn-active-color-primary">
<!--begin::Svg Icon | path: icons/duotune/arrows/arr064.svg-->
<span class="svg-icon svg-icon-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<rect opacity="0.5" x="18" y="13" width="13" height="2" rx="1" transform="rotate(-180 18 13)" fill="black" />
<path d="M15.4343 12.5657L11.25 16.75C10.8358 17.1642 10.8358 17.8358 11.25 18.25C11.6642 18.6642 12.3358 18.6642 12.75 18.25L18.2929 12.7071C18.6834 12.3166 18.6834 11.6834 18.2929 11.2929L12.75 5.75C12.3358 5.33579 11.6642 5.33579 11.25 5.75C10.8358 6.16421 10.8358 6.83579 11.25 7.25L15.4343 11.4343C15.7467 11.7467 15.7467 12.2533 15.4343 12.5657Z" fill="black" />
</svg>
</span>
<!--end::Svg Icon-->
</a>
</td>
</tr>
<?php
} }
?>
</tbody>
<!--end::Table body-->
</table>
</div>
<!--end::Table-->
</div>
<!--end::Tap pane-->
</div>
</div>
<!--end::Body-->
</div>
<!--end::Charts Widget 1-->
</div>
</div>
<!--end::Row-->
<script type="text/javascript">
<!--
+167 -17
View File
@@ -1,39 +1,175 @@
<?php include('common/userstrip.php'); ?>
<!--begin::Row-->
<div class="row g-5 g-xl-8">
<div class="col-xl-6">
<div class="card" id="kt_chat_messenger">
<div class="card-header" id="kt_chat_messenger_header">
<div class="card-title">
<div class="d-flex justify-content-center flex-column me-3">
<a href="#" class="fs-4 fw-bolder text-gray-900 text-hover-primary me-1 mb-2 lh-1">Recent Contacts</a>
</div>
</div>
<div class="card-toolbar">
</div>
</div>
<div class="card-body" id="kt_chat_messenger_body">
<div class="scroll-y me-n5 pe-5 h-300px h-lg-auto" data-kt-element="messages" data-kt-scroll="true" data-kt-scroll-activate="{default: false, lg: true}" data-kt-scroll-max-height="auto" data-kt-scroll-dependencies="#kt_header, #kt_toolbar, #kt_footer, #kt_chat_messenger_header, #kt_chat_messenger_footer" data-kt-scroll-wrappers="#kt_content, #kt_chat_messenger_body" data-kt-scroll-offset="5px">
<?php
foreach ($my_message_rows as $row)
{
if ($row['senders_id'] === $_SESSION['member_id'] ){
?>
<div class="d-flex justify-content-end mb-10">
<div class="d-flex flex-column align-items-end">
<div class="d-flex align-items-center mb-2">
<div class="me-3">
<span class="text-muted fs-7 mb-1"><?=$row['memo']?></span>
<span class="text-muted fs-7 mb-1"><?=$row['msg_date']?></span>
<a href="#" class="fs-5 fw-bolder text-gray-900 text-hover-primary ms-1"><?=$row['senders_name']?></a>
</div>
</div>
<div class="p-5 rounded bg-light-primary text-dark fw-bold mw-lg-500px text-end"
data-kt-element="message-text"
onclick="RelyBoxShow(<?=$row['msg_id']?>,'<?=$row['memo']?>');"><?=$row['msg']?>
<?=($row['reply']!='') ? '<br><small>Replied : '.$row['reply'].'</small>' : '' ?>
</div>
</div>
</div>
<?
}else{
?>
<div class="d-flex justify-content-start mb-10">
<div class="d-flex flex-column align-items-start">
<div class="d-flex align-items-center mb-2">
<div class="ms-3">
<a href="#" class="fs-5 fw-bolder text-gray-900 text-hover-primary me-1"><?=$row['senders_name']?></a>
<span class="text-muted fs-7 mb-1"><?=$row['msg_date']?></span>
<span class="text-muted fs-7 mb-1"><?=$row['memo']?></span>
</div>
</div>
<div class="p-5 rounded bg-light-info text-dark fw-bold mw-lg-500px text-start"
data-kt-element="message-text"
onclick="RelyBoxShow(<?=$row['msg_id']?>,'<?=$row['memo']?>');"><?=$row['msg']?>
<?=($row['reply']!='') ? '<br><small>Replied : '.$row['reply'].'</small>' : '<br><small>Reply Now</small>' ?>
</div>
</div>
</div>
<?php
}
}
?>
<div class="d-flex justify-content-end mb-10 d-none" data-kt-element="template-out">
<!--begin::Wrapper-->
<div class="d-flex flex-column align-items-end">
<!--begin::User-->
<div class="d-flex align-items-center mb-2">
<!--begin::Details-->
<div class="me-3">
<span class="text-muted fs-7 mb-1">Just now</span>
<a href="#" class="fs-5 fw-bolder text-gray-900 text-hover-primary ms-1">You</a>
</div>
<!--end::Details-->
</div>
<!--end::User-->
<!--begin::Text-->
<div class="p-5 rounded bg-light-primary text-dark fw-bold mw-lg-400px text-end" data-kt-element="message-text"></div>
<!--end::Text-->
</div>
<!--end::Wrapper-->
</div>
<!--end::Message(template for out)-->
<!--begin::Message(template for in)-->
<div class="d-flex justify-content-start mb-10 d-none" data-kt-element="template-in">
<!--begin::Wrapper-->
<div class="d-flex flex-column align-items-start">
<!--begin::User-->
<div class="d-flex align-items-center mb-2">
<!--begin::Details-->
<div class="ms-3">
<a href="#" class="fs-5 fw-bolder text-gray-900 text-hover-primary me-1">Brian Cox</a>
<span class="text-muted fs-7 mb-1">Just now</span>
</div>
<!--end::Details-->
</div>
<!--end::User-->
<!--begin::Text-->
<div class="p-5 rounded bg-light-info text-dark fw-bold mw-lg-400px text-start" data-kt-element="message-text">Right before vacation season we have the next Big Deal for you.</div>
<!--end::Text-->
</div>
<!--end::Wrapper-->
</div>
<!--end::Message(template for in)-->
</div>
<!--end::Messages-->
</div>
<!--end::Card body-->
<!--begin::Card footer-->
<div class="card-footer pt-4" id="kt_chat_messenger_footer">
<!--begin:Toolbar-->
<div class="d-flex flex-stack">
<!--begin::Actions-->
</div>
<!--end::Toolbar-->
</div>
<!--end::Card footer-->
</div>
</div>
<div class="col-xl-6">
<div class="card" id="kt_chat_messenger">
<div id="reply_esction">
<div class="card-header" id="kt_chat_messenger_header">
<div class="card-title">
<div class="d-flex justify-content-center flex-column me-3">
<a href="#" class="fs-4 fw-bolder text-gray-900 text-hover-primary me-1 mb-2 lh-1">Reply Message</a>
</div>
</div>
<div class="card-toolbar">
</div>
</div>
<div class="card-body" id="kt_chat_messenger_body">
</div>
<div class="card-footer pt-4" id="kt_chat_messenger_footer">
<div class="d-flex flex-stack">
</div>
</div>
</div>
</div>
</div>
</div>
<!-- div class="row g-5 g-xl-8">
<div class="col-xl-12">
<!--begin::Charts Widget 1-->
<div class="card card-xl-stretch mb-5 mb-xl-8">
<!--begin::Header-->
<div class="card-header border-0 pt-5">
<!--begin::Title-->
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1">Messages</span>
</h3>
<!--end::Title-->
</div>
<!--end::Header-->
<!--begin::Body-->
<div class="card-body">
<div class="tab-content">
<!--begin::Tap pane-->
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
<?php echo $message_table; ?>
<?php //echo $message_table; ?>
</div>
<!--end::Tap pane-->
</div>
</div>
<!--end::Body-->
</div>
<!--end::Charts Widget 1-->
</div>
</div>
<!--end::Row-->
</div -->
<!-- /main content -->
@@ -42,6 +178,20 @@
var current_message_id = null;
function RelyBoxShow(message_id, job_id ){
if (current_message_id!=null) {
$('#'+current_message_id).html('');
current_message_id = null;
}
current_message_id = message_id;
$.ajax({
url: "/member/setupReply?proc=NCOMPLETE&message_id=" + message_id +"&job_id="+job_id
}).done(function( data ) {
$('#reply_esction').html(data);
});
return false;
}
function EDetail(message_id) {
if (current_message_id!=null) {
$('#'+current_message_id).html('');
Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

File diff suppressed because one or more lines are too long