Example #1
0
    }
}
$arr = range(0, count($backFileArr) - 1);
shuffle($arr);
if (is_file($_SERVER['DOCUMENT_ROOT'] . '/user_upload/' . $backFileArr[$arr[0]]['bildFile'])) {
    $bg = '/user_upload/' . $backFileArr[$arr[0]]['bildFile'];
} else {
    $bg = '';
}
if (empty($cms['cms_ownFields']['_showCTAHead']) || $cms['cms_ownFields']['_showCTAHead'] == 1) {
    $bgm = 'berge_header_weiss.png';
} else {
    $bgm = 'berge_header.png';
}
require_once $_SERVER['DOCUMENT_ROOT'] . '/admin/inc/klassen/order.inc.php';
$orderObj = new cmsOrderModul();
$countItems = $orderObj->countItemBasket();
$langMenu = $cmsObj->buildLanguageMenu($cms['cms_siteID']);
?>
 
<?php 
if ($cms['cms_siteLayID'] == 6) {
    ?>

	 <link href="<?php 
    echo SITE_URL;
    echo VCMS_ABS_PATH_TEMPLATE;
    ?>
css/bootstrap.min.css" rel="stylesheet">
	 <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,400italic,300italic,600,600italic,700,700italic&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
	 <link href="<?php 
Example #2
0
            $siteId = $_POST['siteid'];
            $fileId = $_POST['fileId'];
            $dropId = $_POST['dropid'];
            $target = $_POST['target'];
            if ($type == 'site') {
                $_SESSION['basket'][$siteId][$siteId . '-' . $siteId] = array('id' => $siteId, 'target' => $target, 'type' => $type, 'itemkey' => $siteId . '-' . $siteId);
            } elseif ($type == 'dropdown') {
                $_SESSION['basket'][$siteId][$siteId . '-' . $dropId] = array('id' => $dropId, 'target' => $target, 'type' => $type, 'dropdown' => $dropId, 'itemkey' => $siteId . '-' . $dropId);
            } else {
                $_SESSION['basket'][$siteId][$siteId . '-' . $fileId] = array('id' => $fileId, 'target' => $target, 'type' => $type, 'fileid' => $fileId, 'itemkey' => $siteId . '-' . $fileId);
            }
            $orders = new cmsOrderModul();
            echo $orders->countItemBasket();
            break;
        case 'deleteItem':
            $itemKey = $_POST['itemkey'];
            $siteIdArr = explode('-', $_POST['siteid']);
            foreach ($_SESSION['basket'][$siteIdArr[0]] as $key => $value) {
                if ($key == $itemKey) {
                    unset($_SESSION['basket'][$siteIdArr[0]][$itemKey]);
                }
            }
            $orders = new cmsOrderModul();
            echo $orders->countItemBasket();
            break;
        case 'listOrderItems':
            $orders = new cmsOrderModul();
            echo $orders->buildBasket();
            break;
    }
}
Example #3
0
File: ajax.php Project: satson/2gm
     echo $orders->buildBasket();
     break;
 case 'basketSettingWin':
     $orders = new cmsOrderModul();
     echo $orders->listTabBasket();
     break;
 case 'addBasketTab':
     $orders = new cmsOrderModul();
     echo $orders->addTabBasket();
     break;
 case 'addNewTab':
     $orders = new cmsOrderModul();
     $orders->saveNewTab();
     break;
 case 'deleteTab':
     $orders = new cmsOrderModul();
     $orders->deleteTab();
     break;
 case 'getCategoryByTypeFiles':
     $curBilderClassObj = new cmsBilder();
     $idType = mysql_escape_string($_POST['_type']);
     $curBilderClassObj->getCategoryByTypeFiles($idType);
     break;
 case 'timeSettingWin':
     $hash = new cmsTimeModul();
     echo $hash->listHash();
     break;
 case 'addHashForm':
     $hash = new cmsTimeModul();
     echo $hash->addHashForm();
     break;
Example #4
0
 public function sendKontaktformularSysNow($orderBody = null)
 {
     // Für Empfehlungsmanager Empfehler
     // *************************************************************************
     $curEmpfehlerData = '';
     if (isset($_SESSION['VCMS_EMPFEHLER_URL_SET_ON_CMS_TO_KONTAKT']) && !empty($_SESSION['VCMS_EMPFEHLER_URL_SET_ON_CMS_TO_KONTAKT'])) {
         $curEmpfehlerData = $this->getEmpfehlerDataByEmpfehlerUrlMM($_SESSION['VCMS_EMPFEHLER_URL_SET_ON_CMS_TO_KONTAKT']);
     }
     // *************************************************************************
     $mailTextKunde = '';
     $mailText = 'Neue Kontaktformular Anfrage:<br />';
     $mailText .= '--------------------------------------------------------------<br /><br />';
     $curHomepageLangSend = 'Deutsch';
     if (isset($_POST['VCMS_POST_LANG']) && !empty($_POST['VCMS_POST_LANG'])) {
         $curHomepageLangSend = $this->getHomepageLangTextByLangKurzUrl($_POST['VCMS_POST_LANG']);
     }
     $mailText .= 'Sender Homepage Sprache: ' . $curHomepageLangSend . '<br /><br />';
     // Für Empfehlungsmanager Empfehler
     // *************************************************************************
     if (isset($curEmpfehlerData) && is_array($curEmpfehlerData)) {
         $mailText .= '***************************************************************<br />';
         $mailText .= 'Diese Anfrage kommt über einen Empfehler:<br />';
         $mailText .= $curEmpfehlerData['empfVorname'] . ' ' . $curEmpfehlerData['empfNachname'] . '<br />';
         $mailText .= '***************************************************************<br /><br />';
     }
     // *************************************************************************
     $mailTextKunde .= '<table width="600" border="0" cellspacing="0" cellpadding="5">';
     $mailText .= '<table width="600" border="0" cellspacing="0" cellpadding="5">';
     $jsonArr = $this->buildKontaktFormArrByJson($_POST['_dataArr'][0]['value']);
     $this->mailTo = $jsonArr['AbsenderMail'];
     unset($_POST['_dataArr'][9], $_POST['_dataArr'][8]);
     $friendEmail = '';
     if ($_POST['_dataArr']['0']['value'] == 6) {
         $mailTextKunde = '<table width="600" border="0" cellspacing="0" cellpadding="5">';
         $mailText = '<table width="600" border="0" cellspacing="0" cellpadding="5">';
         $this->betreff = 'Dein Freund sendet dir Informationen aus der Wildkogel-Arena';
         $friendEmail = $_POST['_dataArr'][6]['value'];
         unset($_POST['_dataArr'][1], $_POST['_dataArr'][2], $_POST['_dataArr'][3], $_POST['_dataArr'][5], $_POST['_dataArr'][6]);
     }
     $n = 0;
     foreach ($_POST['_dataArr'] as $value) {
         if ($value['name'] != 'vCmsKontaktformLiveHolderSysIdHFrm' && $value['name'] != 'vCmsKontaktformLiveHolderSysEHFrm') {
             $curData = $this->getKontaktformFieldAllData($jsonArr, $value);
             $explode = explode(';', $curData['Label']);
             if (count($explode) == 2) {
                 $label = $explode[$n];
                 $n++;
             } else {
                 $label = $curData['Label'];
             }
             if ($value['name'] == 'Newsletter' && $value['value'] == 'on') {
                 $value['value'] = 'Ja';
             } elseif ($value['name'] == 'Newsletter') {
                 $value['value'] = 'Nein';
             }
             if ($label != '') {
                 $mailTextKunde .= '<tr>';
                 $mailTextKunde .= '<td valign="top" width="140">' . $label . ': </td><td>' . nl2br($value['value']) . '</td>';
                 $mailTextKunde .= '</tr>';
                 $mailText .= '<tr>';
                 $mailText .= '<td valign="top" width="140">' . $label . ': </td><td>' . nl2br($value['value']) . '</td>';
                 $mailText .= '</tr>';
             }
             if ($value['name'] == $jsonArr['FieldMail']) {
                 $this->mailSender = $value['value'];
             }
             if ($value['name'] == $jsonArr['FieldFirstName']) {
                 $this->vornameSender = $value['value'];
             }
             if ($value['name'] == $jsonArr['FieldLastName']) {
                 $this->nachnameSender = $value['value'];
             }
         }
     }
     $mailTextKunde .= '</table>';
     $mailText .= '</table>';
     if ($orderBody != null) {
         require_once '../../admin/inc/klassen/order.inc.php';
         $order = new cmsOrderModul();
         $mailText .= $order->getOrderToEmail();
         $name = mysql_escape_string($_POST['_dataArr'][2]['value']);
         $order->saveOrderTab($name);
     }
     $sendOk = $this->sendMailInhaltNowMM($mailText, $curEmpfehlerData);
     if ($friendEmail != '') {
         $sendOk = $this->sendMailInhaltNowMM($mailText, $curEmpfehlerData, $friendEmail);
     }
     if (isset($jsonArr['BestaetigungMailAktiv']) && $jsonArr['BestaetigungMailAktiv'] == 'on') {
         $sendOkBest = $this->sendMailInhaltBestaetigungKundeNowMM($mailTextKunde, $jsonArr);
     }
     if ($jsonArr['Redirect']) {
         $idSite = $jsonArr['Redirect'];
         $lang = mysql_escape_string($_POST['VCMS_POST_LANG']);
         $sqlLangText = 'SELECT langID FROM vsprachen WHERE langKurzName = "' . $this->dbDecode($lang) . '" LIMIT 1';
         $sqlLangErg = $this->dbAbfragen($sqlLangText);
         $rowLang = mysql_fetch_array($sqlLangErg, MYSQL_ASSOC);
         $idLang = $rowLang['langID'];
         if ($idLang != 1) {
             $query = mysql_query("SELECT seitlaTextUrl FROM  vseitelang WHERE seitID = '{$idSite}' AND langID = '{$idLang}' ");
             $row = mysql_fetch_array($query);
             if ($row['seitlaTextUrl'] != '') {
                 $jsonArr['Redirect'] = '/' . $lang . '/' . $row['seitlaTextUrl'];
             } else {
                 return $sendOk;
             }
         } else {
             $query = mysql_query("SELECT seitTextUrl FROM  vseiten WHERE seitID = '{$idSite}'");
             "SELECT seitTextUrl FROM  vseiten WHERE seitID = '{$idSite}'";
             $row = mysql_fetch_array($query);
             $jsonArr['Redirect'] = '/' . $lang . '/' . $row['seitTextUrl'];
         }
         unset($_SESSION['basket'], $_SESSION['comment']);
         return $jsonArr['Redirect'];
     }
     return $sendOk;
 }