Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 25.86 KB | None | 0 0
  1. var cId, ratingAvg, ratingCount, dealerName, dealerStreet, dealerZip, dealerCity, score, sellId, dt;
  2.  
  3. function getDealerScore(ID) {
  4.     $.ajax( {
  5.         type:     'GET',
  6.         url:      'csv.php?customerId=' + ID,
  7.         dataType: 'json',
  8.         success:  function( result ) {
  9.  
  10.  
  11.             //console.log( result );
  12.             if (result !== null) {
  13.                 ratingAvg   = parseFloat(result.RatingRounded);
  14.                 score       = parseFloat(result.ScoreRounded);
  15.                 sellId      = parseFloat(result.SELLID);
  16.             if (parseFloat( ratingAvg ) >= 4.3 && ratingCount >= 25 && parseFloat( score ) >= 4.8) {
  17.                dt = 'top';
  18.                 appendData();
  19.                 showContent('topDealer');
  20.             } else if(parseFloat( ratingAvg ) >= 4.0 && ratingCount >= 10) {
  21.                dt = 'cert';
  22.                 appendData();
  23.                 showContent('certDealer');
  24.             }} else {
  25.                 showError('error-low');
  26.             }
  27.         }
  28.     } );
  29. }
  30. function redirectToDealerLogin() {
  31.     $.when(loadLogoutSite()).done(function (a1) {
  32.         window.location.href = $('#dealerLoginLink').attr('href');
  33.     });
  34.     return false;
  35. }
  36.  
  37. function loadLogoutSite() {
  38.     return $.get("https://accounts.autoscout24.com/logout?client_id=autoscout24&ui_locales=de-DE&wtl=logout&account=autoscout24de&evar68=logout&embedded=1&accdel=0", function (data) {
  39.    });
  40. }
  41.  
  42. function animateScrollTo(elmID, time) {
  43.     time = time || 500;
  44.     if (elmID == null) {
  45.         return false;
  46.     }
  47.     $('html, body').animate({
  48.         scrollTop: $("#" + elmID).offset().top
  49.     }, time);
  50. }
  51.  
  52. function findGetParameter(param, params) {
  53.     params = params || location.search;
  54.     var result = null;
  55.     var items = params.toLowerCase().substr(1).split("&");
  56.  
  57.     Array.prototype.forEach.call(items, function (item) {
  58.         item = item.split('=');
  59.  
  60.         if (item[0] == param) result = item[1];
  61.     });
  62.  
  63.     return result;
  64. }
  65.  
  66. function getCookie(cname) {
  67.     var name = cname + "=";
  68.     var ca = document.cookie.split(';');
  69.     for (var i = 0; i < ca.length; i++) {
  70.        var c = ca[i];
  71.        while (c.charAt(0) == ' ') c = c.substring(1);
  72.        if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
  73.    }
  74.    return "";
  75. }
  76. function getSellId(cookie) {
  77.    cookie = cookie.toLowerCase();
  78.    var sellStart = cookie.search('sellid');
  79.    var sellFrom = cookie.substring(sellStart + 7);
  80.    var sellTo = sellFrom.search('&');
  81.    var res = '';
  82.    if(sellTo === -1) {
  83.        res = sellFrom;
  84.    } else {
  85.        res = sellFrom.substring(0, sellTo);
  86.    }
  87.  
  88.    return res;
  89. }
  90. function AuthorizeBasic(params) {
  91.    var userCookie = getCookie("User");
  92.    params = params || {};
  93.    // if (params.debug) console.log(userCookie);
  94.    if (!userCookie) {
  95.        if (typeof params.required == 'undefined' || params.required) window.location.href = 'https://secure.meinauto.autoscout24.de/Authorize/Basic?url=' + encodeURIComponent(params.returl || window.location.href);
  96.  
  97.        return false;
  98.    } else {
  99.        cId = cId && cId != '' ? cId : findGetParameter('customerid', userCookie);
  100.        return true;
  101.    }
  102. }
  103.  
  104. function appendData() {
  105.    // console.log("appendData()");
  106.    var big = $( '#dc-img-big' );
  107.    var bnr = $( '#dc-img-bnr' );
  108.    var str = '&';
  109.    str    += 'name=' + encodeURIComponent(dealerName);
  110.    str    += '&avg=' + ratingAvg;
  111.    str    += '&cnt=' + ratingCount;
  112.    str    += '&scr=' + score;
  113.  
  114.    big.attr( 'src', big.attr( 'src' ) + str );
  115.    big.parent().attr( 'href', big.parent().attr( 'href' ) + str );
  116.    bnr.attr( 'src', bnr.attr( 'src' ) + str );
  117.    bnr.parent().attr( 'href', bnr.parent().attr( 'href' ) + str );
  118. }
  119. function showError(id) {
  120.    $('.main-dc-section').addClass('sc-hidden');
  121.    $('#' + id).removeClass('sc-hidden');
  122. }
  123.  
  124.  
  125. function sendRequest(){
  126.  
  127.    var cIdInput = $( '#customerid');
  128.  
  129.    if ( cIdInput.length > 0 ) cIdInput.val( cId );
  130.     $.ajax({
  131.         type: 'GET',
  132.         url: 'request.php?cId='+cId,
  133.         dataType: 'json',
  134.         success: function(result) {
  135.             dealerName  = result.company_name;
  136.             dealerCity = result.city;
  137.             dealerStreet = result.street;
  138.             dealerZip = result.zip;
  139.             ratingCount = result.ratings_count;
  140.              //console.log(result);
  141.  
  142.             if ( dealerName ) {
  143.                 getDealerScore(cId);
  144.                 document.getElementById('dealer-name').innerHTML = dealerName;
  145.                 document.getElementById('dealer-street').innerHTML = dealerStreet;
  146.                 document.getElementById('dealer-zip').innerHTML = dealerZip + ' ' + dealerCity;
  147.                 document.getElementById('dealerName').value = dealerName;
  148.                 document.getElementById('dealerAdress').value = dealerStreet + ' ' +  dealerZip + ' ' + dealerCity;
  149.                 document.getElementById('customerID').value = cId;
  150.             } else {
  151.                 // If not a dealer show dealer login msg
  152.                 if (!dealerName) {
  153.                     showError('error-login');
  154.                 } else {
  155.                     showError('error-api');
  156.                 }
  157.             }
  158.         }
  159.     });
  160. }
  161. function showContent(classname) {
  162.     $('.' + classname).removeClass('sc-hidden');
  163. }
  164. function getCInput() {
  165.  
  166.     var cIdInput = $('#customerid');
  167.  
  168.     if (cIdInput.length < 1) return;
  169.  
  170.    var input = cIdInput.val();
  171.  
  172.    if (input) {
  173.        var loc = window.location.origin + window.location.pathname;
  174.        var params = window.location.search.substr(1).split('&');
  175.  
  176.        Array.prototype.forEach.call(params, function (param, key) {
  177.            param = param.split('=');
  178.  
  179.            if (param[0] === 'customerid') params[key] = 'customerid=' + input;
  180.        });
  181.  
  182.        var search = '?' + params.join('&');
  183.  
  184.        window.location = loc + search;
  185.    }
  186. }
  187.  
  188. function dl(e) {
  189.    if (!e.target) return;
  190.  
  191.    var tgt = $(e.target);
  192.    var id = tgt.attr('id');
  193.  
  194.    if (!tgt.hasClass('signup-submit')) return;
  195.  
  196.    var el = id === 'signup-submit-big' ? $('#dc-img-big').parent() : $('#dc-img-bnr').parent();
  197.    var href = el.attr('href');
  198.  
  199.    if (href) window.open(href, 'popUpWindow');
  200. }
  201.  
  202. function writeId() {
  203.  
  204.    if (!cId) return;
  205.  
  206.    $('#company').val(cId);
  207. }
  208.  
  209. $(document).ready(function () {
  210.    //TODO remove
  211.    AuthorizeBasic({required: false});
  212.  
  213.    var cIdGet = findGetParameter('customerid');
  214.    if (cIdGet) cId = cIdGet;
  215.    if (cId) {
  216.        writeId();
  217.        sendRequest();
  218.    } else {
  219.        // Not logged in
  220.        // console.log('user not logged in');
  221.        showError('error-login');
  222.    }
  223.  
  224.    $('#cinput-submit').click(getCInput);
  225.    $('#customerid').keydown(function (e) {
  226.        if (e.keyCode && e.keyCode === 13) getCInput();
  227.    });
  228.    $('#signup-submit-big').click(dl);
  229.    $('#signup-submit-bnr').click(dl);
  230. });
  231.  
  232. $('#submitbtn').click(function (event) {
  233.    event.preventDefault();
  234.    submitForm();
  235. });
  236. function submitForm () {
  237.    document.getElementById('btn').value = 'DOPOST';
  238.    document.getElementById('DType').value = dt;
  239.    document.getElementById('sellID').value = sellId;
  240.    document.getElementById('ratingAvg').value = ratingAvg;
  241.    document.getElementById('score').value = score;
  242.    let sa5 = $('#aufkleberA5Top').val();
  243.    let sa6 = $('#aufkleberA6Top').val();
  244.    let ta4 = $('#tischaufstellerA4Top').val();
  245.    let ta5 = $('#tischaufstellerA5Top').val();
  246.    let not = $('#notizzezellBlockTop').val();
  247.    let sa5c = $('#aufkleberA5Cert').val();
  248.    let sa6c = $('#aufKleberA6Cert').val();
  249.    if (isEmpty(sa5) && isEmpty(sa6) && isEmpty(ta4) && isEmpty(ta5) && isEmpty(not) && isEmpty(sa5c) && isEmpty(sa6c)) {
  250.        showContent('submitter');
  251.    } else {
  252.        //console.log($('#certDealerOrder').serializeArray());
  253.        $.ajax({
  254.            type: "POST",
  255.            url: "BLL/email_api_layer.php",
  256.            data:   $('#certDealerOrder').serializeArray(),
  257.        })
  258.        $('.main-dc-section').addClass('sc-hidden');
  259.        $('#thank-you').removeClass('sc-hidden');
  260.    }
  261. }
  262.  
  263. function isEmpty(val) {
  264.    return val === null || val === '0' || val === 0;
  265. }
  266. function storeEvent() {
  267.    $.ajax({
  268.            type: "POST",
  269.            url: "request.php",
  270.            data: {
  271.                eventType: 'Certified-Dealer-Order',
  272.                eventId: cId,
  273.                stickerA5: stickerA5,
  274.                stickerA6: stickerA6,
  275.                tischaufstellerA4: tischaufstellerA4,
  276.                tischaufstellerA5: tischaufstellerA5,
  277.                notizzettelblock: notizzettelblock,
  278.                isTopDealer: isTopDealer
  279.            },
  280.        }
  281.    )
  282. }
  283.  
  284.  
  285.  
  286. <?php
  287. require_once 'includes/master.php';
  288. require_once 'includes/settings.php';
  289. require_once '../includes/header.php';
  290.  
  291. $rand = rand();
  292. $_SESSION['rand'] = $rand;
  293.  
  294.  
  295. $s_pagename = 'de/vm/testdrive/lp';
  296. $monthNow = date('n');
  297. $yearNow = date('Y');
  298. $request_item = new vin_input();
  299. $live = substr($_SERVER['REMOTE_ADDR'], 0, 3) === '10.' || $_SERVER['REMOTE_ADDR'] === '::1' ? FALSE : TRUE;
  300.  
  301. if (isset($_GET['classified'])) {
  302.    $request_item->vehicle->error = false;
  303.     $request_item->vehicle->id = $_GET['classified'];
  304.     vehicle_manager::load($request_item->vehicle);
  305. }
  306.  
  307. $_SESSION['vin_input'] = $request_item;
  308. ?>
  309.  
  310. <style>
  311.     .content-container {
  312.         background-color: #f4f4f4;
  313.     / / padding: 35 px 35 px;
  314.     }
  315.  
  316.     .subsec {
  317.         background: white;
  318.         padding: 1rem;
  319.         margin-bottom: 0.3rem;
  320.     }
  321.  
  322.     main h2 {
  323.         color: #1e4c7a;
  324.         font-weight: 600;
  325.     }
  326.  
  327.     .arr {
  328.         color: #ff7500;
  329.         font-weight: bold;
  330.     }
  331.     .submitter {
  332.         background: #ffdddc;
  333.         width: 400px;
  334.         margin: 2rem auto;
  335.         border: solid 1px #d91a2a;
  336.         border-radius: 9px;
  337.         padding: 2rem;
  338.         text-align: center;
  339.     }
  340.     .bold {
  341.         font-weight: bold;
  342.     }
  343.  
  344.     .center-text {
  345.         margin-left: auto;
  346.         margin-right: auto;
  347.         text-align: center;
  348.     }
  349.  
  350.     .criteria {
  351.         margin-left: auto;
  352.         margin-right: auto;
  353.     }
  354.  
  355.     .item-container {
  356.         max-width: 61rem;
  357.         margin: 0 auto;
  358.     }
  359.  
  360.     .fitted {
  361.         max-width: 61rem;
  362.     }
  363.  
  364.     .img-preview {
  365.     / / background: rgba(170, 170, 170, 0.5);
  366.         display: inline-block;
  367.         width: 18rem;
  368.         margin: 1rem 1rem;
  369.     }
  370.  
  371.     .prev-img {
  372.         height: 10rem;
  373.     }
  374.  
  375.     .sticker {
  376.         background: url(images/sticker_top.jpg) no-repeat center center;
  377.         background-size: 11rem;
  378.     }
  379.  
  380.     .stickerCert {
  381.         background: url(images/sticker_cert.jpg) no-repeat center center;
  382.         background-size: 11rem;
  383.     }
  384.  
  385.     .tablea4 {
  386.         background: url(images/tischaufstellera4_top.jpg) no-repeat center center;
  387.         background-size: auto 9.5rem;
  388.     }
  389.  
  390.     .tablea5 {
  391.         background: url(images/tischaufstellera5_top.jpg) no-repeat center center;
  392.         background-size: auto 9.5rem;
  393.     }
  394.  
  395.     .notes {
  396.         background: url(images/notizzettelblock_top.jpg) no-repeat center center;
  397.         background-size: auto 8rem;
  398.     }
  399.  
  400.     @media (max-width: 999px) {
  401.         .item-container {
  402.             text-align: center;
  403.         }
  404.  
  405.     }
  406.  
  407. </style>
  408.  
  409.  
  410. <a id="top"></a>
  411. <div class="content-container main-dc-section">
  412.     <div class="subsec">
  413.         <img src="images/LP_bewertungsinitiative_1100x430%5B1%5D.jpg">
  414.  
  415.         <!--TOPDEALER-->
  416.         <p class="sc-font-m margin-top-small center-text fitted bold topDealer sc-hidden">
  417.             Profitieren Sie von Ihrer Top-Händler-Auszeichnung, indem Sie sie in Ihre Kommunikation einbinden. Dafür
  418.             können Sie hier kostenlos
  419.             Werbemittel bestellen oder online herunterladen.
  420.         </p>
  421.         <!--ENDE TOPDEALER-->
  422.  
  423.         <!--CERTDEALER-->
  424.         <p class="sc-font-m margin-top-small center-text fitted bold certDealer sc-hidden">
  425.             Profitieren Sie von Ihrer Händler-Auszeichnung, indem Sie sie in Ihre Kommunikation einbinden. Dafür
  426.             können Sie hier kostenlos
  427.             Werbemittel bestellen oder online herunterladen.
  428.         </p>
  429.  
  430.         <h2 class="sc-font-xl margin-top-medium margin-bottom-small center-text">Materialien für Ihr Autohaus</h2>
  431.         <form id="certDealerOrder">
  432.  
  433.             <!---TOPDEALER-->
  434.             <div class="item-container topDealer sc-hidden">
  435.                 <!--NEW ITEM-->
  436.                 <div class="img-preview">
  437.                     <span class="item-header">Aufkleber A5</span>
  438.                     <select class="sc-input" name="aufkleberA5Top" id="aufkleberA5Top">
  439.                         <option value="0" selected="selected" disabled>Menge auswählen</option>
  440.                         <option value="0">0</option>
  441.                         <option value="5">5</option>
  442.                         <option value="10">10</option>
  443.                         <option value="15">15</option>
  444.                         <option value="20">20</option>
  445.                         <option value="25">25</option>
  446.                         <option value="30">30</option>
  447.                         <option value="35">35</option>
  448.                         <option value="40">40</option>
  449.                         <option value="45">45</option>
  450.                         <option value="50">50</option>
  451.                     </select>
  452.  
  453.                     <div class="prev-img sticker"></div>
  454.                 </div>
  455.  
  456.  
  457.                 <!--NEW ITEM-->
  458.                 <div class="img-preview">
  459.                     <span class="item-header">Aufkleber A6</span>
  460.                     <select class="sc-input" name="aufkleberA6Top" id="aufkleberA6Top">
  461.                         <option value="0" selected="selected" disabled>Menge auswählen</option>
  462.                         <option value="0">0</option>
  463.                         <option value="5">5</option>
  464.                         <option value="10">10</option>
  465.                         <option value="15">15</option>
  466.                         <option value="20">20</option>
  467.                         <option value="25">25</option>
  468.                         <option value="30">30</option>
  469.                     </select>
  470.                     <div class="prev-img sticker"></div>
  471.                 </div>
  472.  
  473.                 <!--NEW ITEM-->
  474.                 <div class="img-preview">
  475.                     <span class="item-header">Tischaufsteller A4</span>
  476.                     <select class="sc-input" name="tischaufstellerA4Top" id="tischaufstellerA4Top">
  477.                         <option value="0" selected="selected" disabled>Menge auswählen</option>
  478.                         <option value="0">0</option>
  479.                         <option value="1">1</option>
  480.                     </select>
  481.                     <div class="prev-img tablea4"></div>
  482.                 </div>
  483.  
  484.                 <!--NEW ITEM-->
  485.                 <div class="img-preview">
  486.                     <span class="item-header">Tischaufsteller A5</span>
  487.                     <select class="sc-input" name="tischaufstellerA5Top" id="tischaufstellerA5Top">
  488.                         <option value="0" selected="selected" disabled>Menge auswählen</option>
  489.                         <option value="0">0</option>
  490.                         <option value="1">1</option>
  491.                         <option value="2">2</option>
  492.                         <option value="3">3</option>
  493.                     </select>
  494.                     <div class="prev-img tablea5"></div>
  495.                 </div>
  496.  
  497.                 <!--NEW ITEM-->
  498.                 <div class="img-preview">
  499.                     <span class="item-header">Notizzettel-Block</span>
  500.                     <select class="sc-input" name="notizzezellBlockTop" id="notizzezellBlockTop">
  501.                         <option value="0" selected="selected" disabled>Menge auswählen</option>
  502.                         <option value="0">0</option>
  503.                         <option value="1">1</option>
  504.                         <option value="2">2</option>
  505.                         <option value="3">3</option>
  506.                         <option value="4">4</option>
  507.                         <option value="5">5</option>
  508.                     </select>
  509.                     <div class="prev-img notes"></div>
  510.                 </div>
  511.             </div>
  512.             <!--ENDE TOPDEALER--->
  513.  
  514.             <!---CERTDEALER-->
  515.             <div class="item-container certDealer sc-hidden">
  516.                 <!--NEW ITEM-->
  517.                 <div class="img-preview">
  518.                     <span class="item-header">Aufkleber A5</span>
  519.                     <select class="sc-input" name="aufkleberA5Cert" id="aufkleberA5Cert">
  520.                         <option value="0" selected="selected" disabled>Menge auswählen</option>
  521.                         <option value="0">0</option>
  522.                         <option value="5">5</option>
  523.                         <option value="10">10</option>
  524.                         <option value="15">15</option>
  525.                         <option value="20">20</option>
  526.                         <option value="25">25</option>
  527.                         <option value="30">30</option>
  528.                         <option value="35">35</option>
  529.                         <option value="40">40</option>
  530.                         <option value="45">45</option>
  531.                         <option value="50">50</option>
  532.                     </select>
  533.                     <div class="prev-img stickerCert"></div>
  534.                 </div>
  535.  
  536.  
  537.                 <!--NEW ITEM-->
  538.                 <div class="img-preview">
  539.                     <span class="item-header">Aufkleber A6</span>
  540.                     <select class="sc-input" name="aufkleberA6Cert" id="aufKleberA6Cert">
  541.                         <option value="0" selected="selected" disabled>Menge auswählen</option>
  542.                         <option value="0">0</option>
  543.                         <option value="5">5</option>
  544.                         <option value="10">10</option>
  545.                         <option value="15">15</option>
  546.                         <option value="20">20</option>
  547.                         <option value="25">25</option>
  548.                         <option value="30">30</option>
  549.                     </select>
  550.                     <div class="prev-img stickerCert"></div>
  551.                 </div>
  552.             </div>
  553.             <!--ENDE CERTDEALER--->
  554.  
  555.             <input type="hidden" name="customerID" id="customerID">
  556.             <input type="hidden" name="sellID" id="sellID">
  557.             <input type="hidden" name="ratingAvg" id="ratingAvg">
  558.             <input type="hidden" name="score" id="score">
  559.             <input type="hidden" name="DType" id="DType">
  560.             <input type="hidden" name="dealerName" id="dealerName">
  561.             <input type="hidden" name="dealerAdress" id="dealerAdress">
  562.             <input type="hidden" name="btn" id="btn">
  563.             <button class="sc-btn-bob sc-block-center margin-top-small margin-bottom-medium"
  564.                    value="Jetzt kostenlos bestellen" id="submitbtn">Jetzt kostenlos bestellen</button>
  565.             <div class="submitter sc-hidden">Sie haben nichts zum Bestellen angewählt.</div>
  566.         </form>
  567.         <p class="sc-font-m fitted center-text">Die Werbemittel werden an folgende Adresse verschickt:</p>
  568.         <p class="sc-font-m fitted center-text" id="dealer-name"></p>
  569.         <p class="sc-font-m fitted center-text" id="dealer-street"></p>
  570.         <p class="sc-font-m fitted center-text margin-bottom-medium" id="dealer-zip"></p>
  571.         <p class="sc-font-m  fitted center-text">
  572.             Ihre hinterlegte Adresse ist nicht mehr aktuell? Dann wenden Sie sich bitte an den
  573.             AutoScout24-Kundenservice
  574.             unter
  575.             <a href="mailto:kundenservice@autoscout24.com">kundenservice@autoscout24.com</a> oder
  576.             <a href="tel:+4989444561000">+49 89 444 56-1000</a>.
  577.         </p>
  578.     </div>
  579.     <div class="subsec center-text">
  580.         <h2 class="sc-font-xl">
  581.             Online-Banner zum Download
  582.         </h2>
  583.         <p class="margin-bottom-medium"> z. B. als Bilder für Fahrzeugbörsen, E-Mail-Abbinder etc.</p>
  584.  
  585.         <div class="bannergalery">
  586.             <a href="dl.php?type=big" onclick="ga('send', 'event', 'dealerCertificates', 'download', 'big-img');">
  587.                 <img id="dc-img-big" src="image.php?type=big">
  588.             </a>
  589.             <button class="sc-btn-bob sc-block-center signup-submit margin-bottom-medium"
  590.                    id="signup-submit-big"
  591.                    onclick="ga('send', 'event', 'dealerCertificates', 'download', 'big-btn');">
  592.                 Jetzt downloaden
  593.             </button>
  594.             <div class="banneronline">
  595.                 <a href="dl.php?type=bnr"
  596.                   onclick="ga('send', 'event', 'dealerCertificates', 'download', 'bnr-img');">
  597.                     <img id="dc-img-bnr" src="image.php?type=bnr">
  598.                 </a>
  599.                 <button class="sc-btn-bob sc-block-center signup-submit"
  600.                        id="signup-submit-bnr"
  601.                        onclick="ga('send', 'event', 'dealerCertificates', 'download', 'bnr-btn');">
  602.                     Jetzt downloaden
  603.                 </button>
  604.             </div>
  605.         </div>
  606.     </div>
  607.     <div class="subsec center-text">
  608.         <h2 class="sc-font-xl margin-bottom-small">Urkunde nachbestellen</h2>
  609.         <p class="sc-font-m">
  610.             <span class="respbreak">Sie möchten die Urkunde nachbestellen? </span>
  611.             <span class="respbreak">Dann wenden Sie sich einfach an Ihren AutoScout24-Kundenservice unter kundenservice@autoscout24.de.</span>
  612.             <span class="respbreak"><button class="sc-btn-bob margin-top-small"
  613.                                            onclick="location.href='mailto:kundenservice@autoscout24.de'">Jetzt E-Mail senden</button></span>
  614.         </p>
  615.     </div>
  616.     <div class="subsec center-text">
  617.         <h2 class="sc-font-xl margin-bottom-small">Pressetext</h2>
  618.         <p class="sc-font-m fitted center-text">
  619.             Nutzen Sie die Chance, um sich mit unser Pressetext-Vorlage in den lokalen Tageszeitungen zu platzieren.
  620.             Einfach Zitat,
  621.             Name und Kontaktdaten einfügen und die Pressemitteilung an die Redaktion Ihrer örtlichen Zeitung schicken.
  622.         </p>
  623.         <form action="dealer_pm.docx" method="post">
  624.             <button class="sc-btn-bob margin-top-small" type="submit">
  625.                 Jetzt downloaden
  626.             </button>
  627.         </form>
  628.  
  629.     </div>
  630.     <div class="subsec">
  631.         <h2 class="sc-font-xl center-text margin-bottom-medium">Das sind die Kriterien für die
  632.             Händlerauszeichnungen.</h2>
  633.         <!--TOPDEALER-->
  634.         <div class="fitted criteria certDealer sc-hidden">
  635.             <p class="sc-font-m margin-bottom-small">Ihr Autohaus erhält eine Händler-Auszeichnung, wenn
  636.                 es<br/><br/>
  637.                 <span class="arr">> </span> seit mindestens 2 Jahren Kunde bei AutoScout24 ist.<br/>
  638.                 <span class="arr">> </span> mindestens 10 Händler-Bewertungen bekommen hat.<br/>
  639.                 <span class="arr">> </span> mindestens einen Bewertungsdurchschnitt von 4,0 Sternen hat.<br/>
  640.             </p>
  641.         </div>
  642.         <!--ENDE TOPDEALER-->
  643.  
  644.         <!--TOPDEALER-->
  645.         <div class="fitted criteria topDealer sc-hidden">
  646.             <p class="sc-font-m margin-bottom-small">Ihr Autohaus erhält eine Händler-Auszeichnung, wenn
  647.                 es<br/><br/>
  648.                 <span class="arr">> </span> seit mindestens 2 Jahren Kunde bei AutoScout24 ist.<br/>
  649.                 <span class="arr">> </span> mindestens 25 Händler-Bewertungen bekommen hat.<br/>
  650.                 <span class="arr">> </span> mindestens einen Bewertungsdurchschnitt von 4,3 Sternen hat.<br/>
  651.                 <span class="arr">> </span> einen Bewertungs-Score von mindestens 4,8 hat.
  652.                 <span style="display: block">&nbsp;&nbsp;&nbsp;Der Bewertungs-Score ist eine statistische Hilfsgröße, die die Anzahl der Bewertungen miteinbezieht.</span>
  653.             </p>
  654.         </div>
  655.         <!--ENDE TOPDEALER-->
  656.     </div>
  657. </div>
  658.  
  659. <div class="sc-grid-row sc-hidden" id="error-login">
  660.     <div class="sc-grid-col-12 padding-medium sc-text-left sc-font-xl">
  661.         Leider sind Sie nicht als Händler angemeldet. Bitte melden Sie sich
  662.         über unseren <a id="dealerLoginLink"
  663.                        href="https://secure.meinauto.autoscout24.de/Authorize/Dealer?url=<?php echo rawurlencode( 'https://' . $_SERVER[ 'HTTP_HOST' ] . $_SERVER[ 'REQUEST_URI' ] ) ?>">Händler-Login</a>
  664.         an.
  665.     </div>
  666. </div>
  667. <div class="sc-grid-row sc-hidden" id="error-low">
  668.     <div class="sc-grid-col-12 padding-medium sc-text-left sc-font-xl">
  669.         Leider haben Sie keine Händlerauszeichnung erhalten. Tipps für viele
  670.         gute Bewertungen finden Sie <a
  671.                href="http://ww2.autoscout24.de/partner-infoportal/b2b-dealerrating">hier</a>.
  672.     </div>
  673. </div>
  674. <div class="sc-grid-row sc-hidden" id="error-api">
  675.     <div class="sc-grid-col-12 padding-medium sc-text-left sc-font-xl">
  676.         Leider können wir gerade das Zertifikat nicht automatisch erstellen.
  677.         Schreiben Sie uns einfach eine E-Mail an <a
  678.                href="mailto:as24-services@autoscout24.de">as24-services@autoscout24.de</a>
  679.         und wir schicken es Ihnen umgehend zu.
  680.     </div>
  681. </div>
  682. <div class="sc-grid-row sc-hidden" id="thank-you">
  683.     <div class="sc-grid-col-12 padding-medium sc-text-left sc-font-xl">
  684.         <p class="sc-font-xxxl" style="text-align: center;">Herzlichen Dank!</p>
  685.         <p>&nbsp;</p>
  686.         <div class="sc-font-xl"
  687.             style="text-align: center; padding-bottom: 30px;">Ihre Angaben
  688.             wurden erfolgreich an AutoScout24 übermittelt. <br />Ihre Werbemittel werden innerhalb der nächsten zwei Wochen verschickt.</div>
  689.     </div>
  690. </div>
  691. <?php
  692. require_once '../includes/footer.php';
  693. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement