Esempio n. 1
0
<?php

$Mailer = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Mailer\_classes();
$Mailer->To_Customer($_POST);
Esempio n. 2
0
<?php

$Mailer = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Mailer\_classes();
$Mailer->RenderList();
Esempio n. 3
0
 protected function MailerPurchaseDataset($PurchaseID, $SellerID, $CustomerID, $ProductUID)
 {
     $SKTDB = \CmsDev\Sql\db_Skt::connect();
     $SellerQuery = $SKTDB->get_row("SELECT user.*, profile.* FROM users AS user JOIN userprofile as profile ON profile.IDX = user.id WHERE user.id = " . "" . GetSQLValueString($SellerID, 'int'));
     $CustomerQuery = $SKTDB->get_row("SELECT user.*, profile.* FROM users AS user JOIN userprofile as profile ON profile.IDX = user.id WHERE user.id = " . "" . GetSQLValueString($CustomerID, 'int'));
     $PurchaseQuery = $SKTDB->get_row("SELECT * FROM purchase_requests WHERE id = " . "" . GetSQLValueString($PurchaseID, 'int'));
     $ProductQuery = $SKTDB->get_row("SELECT * FROM " . \DB_PREFIX . "products WHERE ProductUID = " . "" . GetSQLValueString($ProductUID, 'int'));
     if ($ProductQuery->Currency == 0) {
         $Currency = '$';
     } else {
         $Currency = 'U$S';
     }
     $Customer_Picture = "/" . $CustomerQuery->ClientAuth_picture;
     if (strpos($CustomerQuery->ClientAuth_picture, 'http') === false) {
         $Customer_Picture = \SITE_SERVER . "/" . $CustomerQuery->ClientAuth_picture;
     }
     $Seller_Picture = "/" . $SellerQuery->ClientAuth_picture;
     if (strpos($SellerQuery->ClientAuth_picture, 'http') === false) {
         $Seller_Picture = \SITE_SERVER . "/" . $SellerQuery->ClientAuth_picture;
     }
     $InstancsParams = array('URL' => \SITE_SERVER, 'ASSETS' => \SITE_SERVER . '/CmsDev/' . \VERSION . '/CRUD/ViewEditElementsAsList/Lists/Mailer/Assets/', 'Template_Logo' => \SERVER_DIR . \SKTURL_TemplateSite . '/assets/img/logo.png', 'Email_Info' => \SKT_SITE_EMAIL, "Template_Product_Quantity" => $PurchaseQuery->Quantity, "Template_Product_Total" => $PurchaseQuery->TotalPrice, "Template_Product_Description" => $this->html($ProductQuery->ProductDescription), "Template_Product_Url" => "/Detail/" . $ProductQuery->ProductUID . "/" . $ProductQuery->URLName . "/", "Template_OrderPurchase" => $PurchaseQuery->OrderPurchase, "Template_Seller_Url" => "/usr/" . $SellerID . "/" . $SellerQuery->CompanyUrl . "/", "Template_Seller_Email" => $SellerQuery->email, "Template_Seller_Company" => $this->html($SellerQuery->Company), "Template_Seller_Phone" => $SellerQuery->Phone, "Template_Seller_Address" => $this->html($SellerQuery->Address), "Template_Seller_Logo" => $Seller_Picture, "Template_Customer_Url" => "/usr/" . $CustomerID . "/" . $CustomerQuery->CompanyUrl . "/", "Template_Customer_Email" => $CustomerQuery->email, "Template_Customer_Company" => $this->html($CustomerQuery->Company), "Template_Customer_Phone" => $CustomerQuery->Phone, "Template_Customer_Address" => $this->html($CustomerQuery->Address), "Template_Customer_Logo" => $Customer_Picture, "Template_Product_Image" => $ProductQuery->ProductImage, "Template_Product_Title" => $this->html($ProductQuery->Title), "Template_Product_Price" => $ProductQuery->Price, "Template_Product_Currency" => $Currency);
     //var_dump($InstancsParams);
     $Mailer = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Mailer\_classes();
     $Mailer->To_Customer($InstancsParams);
     $Mailer->To_Seller($InstancsParams);
 }
Esempio n. 4
0
<?php

$Mailer = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Mailer\_classes();
$Mailer->To_Seller($_POST);