PK

ADDRLIN : /home/questend/public_html/subdomain/trufflenation.questend.com_down/admin/payments/
FLL :
Current File : /home/questend/public_html/subdomain/trufflenation.questend.com_down/admin/payments/paynow.php

<?php
   ob_start();
   //error_reporting(E_ALL ^ E_NOTICE);
   @session_start();
   ini_set('allow_url_include',1);    
   date_default_timezone_set("Asia/Kolkata");
   set_time_limit(600);
   ini_set('max_execution_time',600);
   require_once '../includes/settings/PDODB.php';
   include '../includes/modules/functions.php';
   
   $function = new FUNCTIONS();

   if(empty($_SESSION['adminId'])){
    header("Location: ../index.php");
    exit();
   }

   if(isset($_POST['btnPay']) && !empty($_POST)){
      //print_r($_POST); exit;

      $invoiceNo = !empty($_POST['invoiceNo'])?trim($_POST['invoiceNo']):"";
      $orderId = !empty($_POST['orderId'])?trim($_POST['orderId']):"";
      $amount = !empty($_POST['amount'])?trim($_POST['amount']):"";      
      $paymentMode = !empty($_POST['paymentMode'])?trim($_POST['paymentMode']):"";
      $particular = !empty($_POST['particular'])?trim($_POST['particular']):"";   
      $transaction_id = !empty($_POST['transaction_id'])?trim($_POST['transaction_id']):"";
      $bankname = !empty($_POST['bankname'])?trim($_POST['bankname']):"";
      $chequeno = !empty($_POST['chequeno'])?trim($_POST['chequeno']):"";
      $studentid = !empty($_POST['studentid'])?trim($_POST['studentid']):"";
      $date = !empty($_POST['date'])?trim($_POST['date']):"";

      $error_msg = "";
      
      $pdodb = PDODB::getInstance();
      $orderdata = $function->getStudentJoinCourseList($id=$orderId,$studentId=NULL,$isActive=1,$orderBy='DESC');
      $coursedata = $function->getCourse($id=$orderdata[0]['courseId'],$isActive=1,$orderBy='ASC');
      //$coursename = $coursedata[0]['courseName'];
      $array = explode(",", $orderdata[0]['courseId']);
      $courselist = $function->getCourse($id=NULL,$isActive=1,$orderBy='ASC');
      $courseNames = array(); // Initialize an array to store course names
      for ($k = 0; $k < count($courselist); $k++) {
           $courseid = $courselist[$k]['id'];
           if (in_array($courseid, $array)) {
               $courseNames[] = $courselist[$k]['courseName']; // Add course name to the array
           }
      }
      $coursename = implode(', ', $courseNames); // Convert array to comma-separated string
      //echo $coursename; exit;

      $amountinword = $function->numbertoWords($number=$amount);
      $studentdata = $function->getStudent($id=$studentid,$isActive=1,$orderBy='ASC');
      $uemail = $studentdata[0]['uemail'];
      $username = $studentdata[0]['username'];
      $todaydate = date('d-m-Y');
      
      if ($paymentMode=='Cash') {
         $mailmsg = " Cash, dated ".$todaydate;
      }elseif ($paymentMode=='Card') {
         $mailmsg = " Card, TXN Id ".$transaction_id." dated ".$todaydate;
      }elseif ($paymentMode=='Cheque') {
         $mailmsg = " Cheque No. ".$chequeno.", Bank Name. ".$bankname." dated ".$todaydate;
      }elseif ($paymentMode=='UPI') {
         $mailmsg = " UPI, TXN Id ".$transaction_id." dated ".$todaydate;
      }

      //print_r($amountinword); exit;
      if (!empty($orderdata[0]['gstNo'])) {
         $gstNo = !empty($orderdata[0]['gstNo'])?trim($orderdata[0]['gstNo']):"";
         $companyName = !empty($orderdata[0]['companyName'])?trim($orderdata[0]['companyName']):"";
         $companyAddress = !empty($orderdata[0]['companyAddress'])?trim($orderdata[0]['companyAddress']):"";
         $companyState = !empty($orderdata[0]['companyState'])?trim($orderdata[0]['companyState']):"";

         $sql1 = "INSERT INTO `tn_invoice` SET amount='".$amount."', orderId='".$orderId."', gstNo='".$gstNo."', uId='".$studentid."', companyName='".$companyName."', companyAddress='".$companyAddress."', companyState='".$companyState."', isGst='1', isDated='".$date."'";
         $result1 = $pdodb->query($sql1);
         $insert_invoice = $pdodb->lastInsertId();
         $invoiceNo = "TFN/COM/2024/00".$insert_invoice;
         $Rcpt_id = "RCPT/COM/2024/00".$insert_invoice;

         $sqlupt = "UPDATE `tn_invoice`  SET invoiceNo='".$invoiceNo."', isPayment='2' WHERE id = '".$insert_invoice."'";
         $resultupt = $pdodb->query($sqlupt);

         /*$sql2 = "INSERT INTO `tn_accounts` SET uid='".$studentid."', demand_id='".$orderId."', debit='".$amount."', particular='Invoice generated', invoice='".$invoiceNo."', gstNo='".$gstNo."', companyName='".$companyName."', companyAddress='".$companyAddress."', companyState='".$companyState."'";

         $result2 = $pdodb->query($sql2);*/
         
         $sql3 = "INSERT INTO `tn_accounts` SET uid='".$studentid."',orderid='".$orderId."',transaction_id='".$transaction_id."', credit='".$amount."', particular='".$particular."', paymentMode='".$paymentMode."', bankname='".$bankname."', chequeno='".$chequeno."', invoice='".$invoiceNo."', gstNo='".$gstNo."', companyName='".$companyName."', companyAddress='".$companyAddress."', companyState='".$companyState."', date='".$date."'";
         //echo $sql3; exit;
         $result3 = $pdodb->query($sql3);
         
         //$resultuptacnt = $pdodb->query($sqluptacnt);

         if ($result1 == true && $result3 == true) {
            $error_msg = "Payment Successfully Done";
            //email send
            $to = $uemail;
            $subject = "Payment Successfully Completed";
            $messagebody = "<!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 name='viewport' content='width=device-width, initial-scale=1.0' />
                  <meta name='x-apple-disable-message-reformatting' />
                  <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
                  <meta name='color-scheme' content='light dark' />
                  <meta name='supported-color-schemes' content='light dark' />
                  <title></title>
                  <style type='text/css' rel='stylesheet' media='all'>
                     @import url('https://fonts.googleapis.com/css?family=Nunito+Sans:400,700&display=swap');
                     body {
                     width: 100% !important;
                     height: 100%;
                     margin: 0;
                     -webkit-text-size-adjust: none;
                     }
                     a {
                     color: #3869D4;
                     }
                     a img {
                     border: none;
                     }
                     td {
                     word-break: break-word;
                     }
                     .preheader {
                     display: none !important;
                     visibility: hidden;
                     mso-hide: all;
                     font-size: 1px;
                     line-height: 1px;
                     max-height: 0;
                     max-width: 0;
                     opacity: 0;
                     overflow: hidden;
                     }
                     body,
                     td,
                     th {
                     font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
                     }
                     h1 {
                     margin-top: 0;
                     color: #333333;
                     font-size: 22px;
                     font-weight: bold;
                     text-align: left;
                     }
                     h2 {
                     margin-top: 0;
                     color: #333333;
                     font-size: 16px;
                     font-weight: bold;
                     text-align: left;
                     }
                     h3 {
                     margin-top: 0;
                     color: #333333;
                     font-size: 14px;
                     font-weight: bold;
                     text-align: left;
                     }
                     td,
                     th {
                     font-size: 16px;
                     }
                     p,
                     ul,
                     ol,
                     blockquote {
                     margin: .4em 0 1.1875em;
                     font-size: 16px;
                     line-height: 1.625;
                     }
                     p.sub {
                     font-size: 13px;
                     }
                     .align-right {
                     text-align: right;
                     }
                     .align-left {
                     text-align: left;
                     }
                     .align-center {
                     text-align: center;
                     }
                     .u-margin-bottom-none {
                     margin-bottom: 0;
                     }
                     .button {
                     background-color: #3869D4;
                     border-top: 10px solid #3869D4;
                     border-right: 18px solid #3869D4;
                     border-bottom: 10px solid #3869D4;
                     border-left: 18px solid #3869D4;
                     display: inline-block;
                     color: #FFF;
                     text-decoration: none;
                     border-radius: 3px;
                     box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
                     -webkit-text-size-adjust: none;
                     box-sizing: border-box;
                     }
                     .button--green {
                     background-color: #22BC66;
                     border-top: 10px solid #22BC66;
                     border-right: 18px solid #22BC66;
                     border-bottom: 10px solid #22BC66;
                     border-left: 18px solid #22BC66;
                     }
                     .button--red {
                     background-color: #FF6136;
                     border-top: 10px solid #FF6136;
                     border-right: 18px solid #FF6136;
                     border-bottom: 10px solid #FF6136;
                     border-left: 18px solid #FF6136;
                     }
                     @media only screen and (max-width: 500px) {
                     .button {
                     width: 100% !important;
                     text-align: center !important;
                     }
                     }
                     .attributes {
                     margin: 0 0 21px;
                     }
                     .attributes_content {
                     background-color: #F4F4F7;
                     padding: 16px;
                     }
                     .attributes_item {
                     padding: 0;
                     }
                     .related {
                     width: 100%;
                     margin: 0;
                     padding: 25px 0 0 0;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     }
                     .related_item {
                     padding: 10px 0;
                     color: #CBCCCF;
                     font-size: 15px;
                     line-height: 18px;
                     }
                     .related_item-title {
                     display: block;
                     margin: .5em 0 0;
                     }
                     .related_item-thumb {
                     display: block;
                     padding-bottom: 10px;
                     }
                     .related_heading {
                     border-top: 1px solid #CBCCCF;
                     text-align: center;
                     padding: 25px 0 10px;
                     }
                     .discount {
                     width: 100%;
                     margin: 0;
                     padding: 24px;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     background-color: #F4F4F7;
                     border: 2px dashed #CBCCCF;
                     }
                     .discount_heading {
                     text-align: center;
                     }
                     .discount_body {
                     text-align: center;
                     font-size: 15px;
                     }
                     .social {
                     width: auto;
                     }
                     .social td {
                     padding: 0;
                     width: auto;
                     }
                     .social_icon {
                     height: 20px;
                     margin: 0 8px 10px 8px;
                     padding: 0;
                     }
                     .purchase {
                     width: 100%;
                     margin: 0;
                     padding: 35px 0;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     }
                     .purchase_content {
                     width: 100%;
                     margin: 0;
                     padding: 25px 0 0 0;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     }
                     .purchase_item {
                     padding: 10px 0;
                     color: #51545E;
                     font-size: 15px;
                     line-height: 18px;
                     }
                     .purchase_heading {
                     padding-bottom: 8px;
                     border-bottom: 1px solid #EAEAEC;
                     }
                     .purchase_heading p {
                     margin: 0;
                     color: #85878E;
                     font-size: 12px;
                     }
                     .purchase_footer {
                     padding-top: 15px;
                     border-top: 1px solid #EAEAEC;
                     }
                     .purchase_total {
                     margin: 0;
                     text-align: right;
                     font-weight: bold;
                     color: #333333;
                     }
                     .purchase_total--label {
                     padding: 0 15px 0 0;
                     }
                     body {
                     background-color: #F2F4F6;
                     color: #51545E;
                     }
                     p {
                     color: #51545E;
                     }
                     .email-wrapper {
                     width: 100%;
                     margin: 0;
                     padding: 0;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     background-color: #F2F4F6;
                     }
                     .email-content {
                     width: 100%;
                     margin: 0;
                     padding: 0;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     }
                     .email-masthead {
                     padding: 25px 0;
                     text-align: center;
                     }
                     .email-masthead_logo {
                     width: 94px;
                     }
                     .email-masthead_name {
                     font-size: 16px;
                     font-weight: bold;
                     color: #A8AAAF;
                     text-decoration: none;
                     text-shadow: 0 1px 0 white;
                     }
                     .email-body {
                     width: 100%;
                     margin: 0;
                     padding: 0;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     }
                     .email-body_inner {
                     width: 570px;
                     margin: 20px auto;
                     padding: 0;
                     -premailer-width: 570px;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     background-color: #FFFFFF;
                     }
                     .email-footer {
                     width: 570px;
                     margin: 0 auto;
                     padding: 0;
                     -premailer-width: 570px;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     text-align: center;
                     }
                     .email-footer p {
                     color: #A8AAAF;
                     }
                     .body-action {
                     width: 100%;
                     margin: 30px auto;
                     padding: 0;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     text-align: center;
                     }
                     .body-sub {
                     margin-top: 25px;
                     padding-top: 25px;
                     border-top: 1px solid #EAEAEC;
                     }
                     .content-cell {
                     padding: 45px;
                     }
                     @media only screen and (max-width: 600px) {
                     .email-body_inner,
                     .email-footer {
                     width: 100% !important;
                     }
                     }
                     @media (prefers-color-scheme: dark) {
                     body,
                     .email-body,
                     .email-body_inner,
                     .email-content,
                     .email-wrapper,
                     .email-masthead,
                     .email-footer {
                     background-color: #333333 !important;
                     color: #FFF !important;
                     }
                     p,
                     ul,
                     ol,
                     blockquote,
                     h1,
                     h2,
                     h3,
                     span,
                     .purchase_item {
                     color: #FFF !important;
                     }
                     .attributes_content,
                     .discount {
                     background-color: #222 !important;
                     }
                     .email-masthead_name {
                     text-shadow: none !important;
                     }
                     }
                     :root {
                     color-scheme: light dark;
                     supported-color-schemes: light dark;
                     }
                  </style>
               </head>
               <body>
                  <table class='email-wrapper' width='100%' cellpadding='0' cellspacing='0' role='presentation'>                        
                     <tr>
                        <td align='center'>
                           <table class='email-content' width='100%' cellpadding='0' cellspacing='0' role='presentation'>
                              <tr>
                                 <td class='email-body' width='570' cellpadding='0' cellspacing='0'>
                                    <table class='email-body_inner' align='center' width='570' cellpadding='0' cellspacing='0' role='presentation'>
                                       <tr>
                                          <td>
                                             <div style='width: 570px; margin: 0px auto; padding: 20px 30px;'>
                                                 <div style='float: left;'>
                                                    <img src='https://www.trufflenation.questend.com/images/truffle-nation-logo-1.png' width='120px;'>
                                                 </div>
                                                 <div style='float: right;'>
                                                    <img src='https://www.trufflenation.questend.com/images/bake-better-logo.png' width='100px;'>
                                                 </div>
                                              </div>
                                          </td>
                                       </tr>
                                       <tr>
                                          <td class='content-cell'>
                                             <div class='f-fallback'>
                                                <h1>Dear $username!,</h1>
                                                <p>
                                                   A sum of Rupees  $amountinword only (Rs. $amount/-) paid vide $mailmsg has been received as on account payment towards your Program <b>$coursename </b>
                                                </p>                                                      
                                                <table class='body-sub' role='presentation'>
                                                   <tr>
                                                      <td>
                                                         <p class='f-fallback'>Best Wishes,</p>
                                                         <p class='f-fallback'>Team Bake Better</p>
                                                      </td>
                                                   </tr>
                                                </table>
                                             </div>
                                          </td>
                                       </tr>
                                    </table>
                                 </td>
                              </tr>
                              
                           </table>
                        </td>
                     </tr>
                  </table>
               </body>
             </html>";
            $mail = $function->sendMail2($to=$to,$subject=$subject,$messagebody=$messagebody);
         }
      }else {
         $studentName = $orderdata[0]['studentName'];
         $studentAddress = $orderdata[0]['studentAddress'];
         $studentState = $orderdata[0]['studentState'];

         $sql3 = "INSERT INTO `tn_invoice` SET amount='".$amount."',  orderId='".$orderId."', studentName='".$studentName."', uId='".$studentid."', studentAddress='".$studentAddress."', studentState='".$studentState."', isGst='2', isDated='".$date."'";
         $result3 = $pdodb->query($sql3);
         $insert_invoice = $pdodb->lastInsertId();
         $invoiceNo = "TFN/COM/2024/00".$insert_invoice;
         $Rcpt_id = "RCPT/COM/2024/00".$insert_invoice;

         $sqlupt = "UPDATE `tn_invoice` SET invoiceNo='".$invoiceNo."', isPayment='2' WHERE id = '".$insert_invoice."'";
         $resultupt = $pdodb->query($sqlupt);

         /*$sql4 = "INSERT INTO `tn_accounts` SET uid='".$studentid."', demand_id='".$orderId."', debit='".$amount."', particular='Invoice generated', invoice='".$invoiceNo."', studentName='".$studentName."', studentAddress='".$studentAddress."', studentState='".$studentState."'";

         $result4 = $pdodb->query($sql4);*/

         $sql = "INSERT INTO `tn_accounts` SET uid='".$studentid."', orderid='".$orderId."', transaction_id='".$transaction_id."', credit='".$amount."', particular='".$particular."', paymentMode='".$paymentMode."', bankname='".$bankname."', chequeno='".$chequeno."', invoice='".$invoiceNo."', studentName='".$studentName."', studentAddress='".$studentAddress."', studentState='".$studentState."', date='".$date."'";
         //echo $sql2; exit;
         $result = $pdodb->query($sql);
         
         if ($result == true && $resultupt == true) {
            $error_msg = "Payment Successfully Done";
            //email send
            $to = $uemail;
            $subject = "Payment Successfully Completed";
            $messagebody = "<!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 name='viewport' content='width=device-width, initial-scale=1.0' />
                  <meta name='x-apple-disable-message-reformatting' />
                  <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
                  <meta name='color-scheme' content='light dark' />
                  <meta name='supported-color-schemes' content='light dark' />
                  <title></title>
                  <style type='text/css' rel='stylesheet' media='all'>
                     @import url('https://fonts.googleapis.com/css?family=Nunito+Sans:400,700&display=swap');
                     body {
                     width: 100% !important;
                     height: 100%;
                     margin: 0;
                     -webkit-text-size-adjust: none;
                     }
                     a {
                     color: #3869D4;
                     }
                     a img {
                     border: none;
                     }
                     td {
                     word-break: break-word;
                     }
                     .preheader {
                     display: none !important;
                     visibility: hidden;
                     mso-hide: all;
                     font-size: 1px;
                     line-height: 1px;
                     max-height: 0;
                     max-width: 0;
                     opacity: 0;
                     overflow: hidden;
                     }
                     body,
                     td,
                     th {
                     font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
                     }
                     h1 {
                     margin-top: 0;
                     color: #333333;
                     font-size: 22px;
                     font-weight: bold;
                     text-align: left;
                     }
                     h2 {
                     margin-top: 0;
                     color: #333333;
                     font-size: 16px;
                     font-weight: bold;
                     text-align: left;
                     }
                     h3 {
                     margin-top: 0;
                     color: #333333;
                     font-size: 14px;
                     font-weight: bold;
                     text-align: left;
                     }
                     td,
                     th {
                     font-size: 16px;
                     }
                     p,
                     ul,
                     ol,
                     blockquote {
                     margin: .4em 0 1.1875em;
                     font-size: 16px;
                     line-height: 1.625;
                     }
                     p.sub {
                     font-size: 13px;
                     }
                     .align-right {
                     text-align: right;
                     }
                     .align-left {
                     text-align: left;
                     }
                     .align-center {
                     text-align: center;
                     }
                     .u-margin-bottom-none {
                     margin-bottom: 0;
                     }
                     .button {
                     background-color: #3869D4;
                     border-top: 10px solid #3869D4;
                     border-right: 18px solid #3869D4;
                     border-bottom: 10px solid #3869D4;
                     border-left: 18px solid #3869D4;
                     display: inline-block;
                     color: #FFF;
                     text-decoration: none;
                     border-radius: 3px;
                     box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
                     -webkit-text-size-adjust: none;
                     box-sizing: border-box;
                     }
                     .button--green {
                     background-color: #22BC66;
                     border-top: 10px solid #22BC66;
                     border-right: 18px solid #22BC66;
                     border-bottom: 10px solid #22BC66;
                     border-left: 18px solid #22BC66;
                     }
                     .button--red {
                     background-color: #FF6136;
                     border-top: 10px solid #FF6136;
                     border-right: 18px solid #FF6136;
                     border-bottom: 10px solid #FF6136;
                     border-left: 18px solid #FF6136;
                     }
                     @media only screen and (max-width: 500px) {
                     .button {
                     width: 100% !important;
                     text-align: center !important;
                     }
                     }
                     .attributes {
                     margin: 0 0 21px;
                     }
                     .attributes_content {
                     background-color: #F4F4F7;
                     padding: 16px;
                     }
                     .attributes_item {
                     padding: 0;
                     }
                     .related {
                     width: 100%;
                     margin: 0;
                     padding: 25px 0 0 0;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     }
                     .related_item {
                     padding: 10px 0;
                     color: #CBCCCF;
                     font-size: 15px;
                     line-height: 18px;
                     }
                     .related_item-title {
                     display: block;
                     margin: .5em 0 0;
                     }
                     .related_item-thumb {
                     display: block;
                     padding-bottom: 10px;
                     }
                     .related_heading {
                     border-top: 1px solid #CBCCCF;
                     text-align: center;
                     padding: 25px 0 10px;
                     }
                     .discount {
                     width: 100%;
                     margin: 0;
                     padding: 24px;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     background-color: #F4F4F7;
                     border: 2px dashed #CBCCCF;
                     }
                     .discount_heading {
                     text-align: center;
                     }
                     .discount_body {
                     text-align: center;
                     font-size: 15px;
                     }
                     .social {
                     width: auto;
                     }
                     .social td {
                     padding: 0;
                     width: auto;
                     }
                     .social_icon {
                     height: 20px;
                     margin: 0 8px 10px 8px;
                     padding: 0;
                     }
                     .purchase {
                     width: 100%;
                     margin: 0;
                     padding: 35px 0;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     }
                     .purchase_content {
                     width: 100%;
                     margin: 0;
                     padding: 25px 0 0 0;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     }
                     .purchase_item {
                     padding: 10px 0;
                     color: #51545E;
                     font-size: 15px;
                     line-height: 18px;
                     }
                     .purchase_heading {
                     padding-bottom: 8px;
                     border-bottom: 1px solid #EAEAEC;
                     }
                     .purchase_heading p {
                     margin: 0;
                     color: #85878E;
                     font-size: 12px;
                     }
                     .purchase_footer {
                     padding-top: 15px;
                     border-top: 1px solid #EAEAEC;
                     }
                     .purchase_total {
                     margin: 0;
                     text-align: right;
                     font-weight: bold;
                     color: #333333;
                     }
                     .purchase_total--label {
                     padding: 0 15px 0 0;
                     }
                     body {
                     background-color: #F2F4F6;
                     color: #51545E;
                     }
                     p {
                     color: #51545E;
                     }
                     .email-wrapper {
                     width: 100%;
                     margin: 0;
                     padding: 0;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     background-color: #F2F4F6;
                     }
                     .email-content {
                     width: 100%;
                     margin: 0;
                     padding: 0;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     }
                     .email-masthead {
                     padding: 25px 0;
                     text-align: center;
                     }
                     .email-masthead_logo {
                     width: 94px;
                     }
                     .email-masthead_name {
                     font-size: 16px;
                     font-weight: bold;
                     color: #A8AAAF;
                     text-decoration: none;
                     text-shadow: 0 1px 0 white;
                     }
                     .email-body {
                     width: 100%;
                     margin: 0;
                     padding: 0;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     }
                     .email-body_inner {
                     width: 570px;
                     margin: 20px auto;
                     padding: 0;
                     -premailer-width: 570px;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     background-color: #FFFFFF;
                     }
                     .email-footer {
                     width: 570px;
                     margin: 0 auto;
                     padding: 0;
                     -premailer-width: 570px;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     text-align: center;
                     }
                     .email-footer p {
                     color: #A8AAAF;
                     }
                     .body-action {
                     width: 100%;
                     margin: 30px auto;
                     padding: 0;
                     -premailer-width: 100%;
                     -premailer-cellpadding: 0;
                     -premailer-cellspacing: 0;
                     text-align: center;
                     }
                     .body-sub {
                     margin-top: 25px;
                     padding-top: 25px;
                     border-top: 1px solid #EAEAEC;
                     }
                     .content-cell {
                     padding: 45px;
                     }
                     @media only screen and (max-width: 600px) {
                     .email-body_inner,
                     .email-footer {
                     width: 100% !important;
                     }
                     }
                     @media (prefers-color-scheme: dark) {
                     body,
                     .email-body,
                     .email-body_inner,
                     .email-content,
                     .email-wrapper,
                     .email-masthead,
                     .email-footer {
                     background-color: #333333 !important;
                     color: #FFF !important;
                     }
                     p,
                     ul,
                     ol,
                     blockquote,
                     h1,
                     h2,
                     h3,
                     span,
                     .purchase_item {
                     color: #FFF !important;
                     }
                     .attributes_content,
                     .discount {
                     background-color: #222 !important;
                     }
                     .email-masthead_name {
                     text-shadow: none !important;
                     }
                     }
                     :root {
                     color-scheme: light dark;
                     supported-color-schemes: light dark;
                     }
                  </style>
               </head>
               <body>
                  <table class='email-wrapper' width='100%' cellpadding='0' cellspacing='0' role='presentation'>                        
                     <tr>
                        <td align='center'>
                           <table class='email-content' width='100%' cellpadding='0' cellspacing='0' role='presentation'>
                              <tr>
                                 <td class='email-body' width='570' cellpadding='0' cellspacing='0'>
                                    <table class='email-body_inner' align='center' width='570' cellpadding='0' cellspacing='0' role='presentation'>
                                       <tr>
                                          <td>
                                             <div style='width: 570px; margin: 0px auto; padding: 20px 30px;'>
                                                 <div style='float: left;'>
                                                    <img src='https://www.trufflenation.questend.com/images/truffle-nation-logo-1.png' width='120px;'>
                                                 </div>
                                                 <div style='float: right;'>
                                                    <img src='https://www.trufflenation.questend.com/images/bake-better-logo.png' width='100px;'>
                                                 </div>
                                              </div>
                                          </td>
                                       </tr>
                                       <tr>
                                          <td class='content-cell'>
                                             <div class='f-fallback'>
                                                <h1>Dear $username!,</h1>
                                                <p>
                                                   A sum of Rupees  $amountinword only (Rs. $amount/-) paid vide $mailmsg has been received as on account payment towards your Program <b>$coursename </b>
                                                </p>                                                      
                                                <table class='body-sub' role='presentation'>
                                                   <tr>
                                                      <td>
                                                         <p class='f-fallback'>Best Wishes,</p>
                                                         <p class='f-fallback'>Team Bake Better</p>
                                                      </td>
                                                   </tr>
                                                </table>
                                             </div>
                                          </td>
                                       </tr>
                                    </table>
                                 </td>
                              </tr>
                              
                           </table>
                        </td>
                     </tr>
                  </table>
               </body>
             </html>";
            $mail = $function->sendMail2($to=$to,$subject=$subject,$messagebody=$messagebody);
         }
      }
   } 
?>
<!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>INSPINIA | Basic Form</title>
      <?php include_once '../layout/style.php'; ?>
      <style type="text/css">
          .control-label span { color: red; }
      </style>
   </head>
   <body>
      <div id="wrapper">
         <?php $currentPage = 'visit-student-list'; include_once '../layout/side-bar.php'; ?>
         <div id="page-wrapper" class="gray-bg">
            <?php include_once '../layout/header.php'; ?>
            <div class="row wrapper border-bottom white-bg page-heading">
               <div class="col-lg-8">
                  <h2><?=!empty($error_msg)?$error_msg:'';?></h2>
               </div>
            </div>           
            
         </div>         
      </div>
      <?php include_once '../layout/script.php'; ?>      
      
   </body>
</html>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home