<link rel="stylesheet" href="<?php echo DOMAIN ?>/jquery_file_upload/css/style.css">
<link rel="stylesheet" href="<?php echo DOMAIN ?>/jquery_file_upload/css/jquery.fileupload.css">
<input type="hidden" class="file_url" value="<?php echo DOMAIN ?>/ajax/upload_single_image" />
<div class="error-main"></div>
<?php

if($templateType == 'edit')
{
    ?>

    <?php
}
?>

<style type="text/css">
    .mail_table td
    {
        padding : 3px;
    }
</style>





    <div class="form-group input-container">
        <label for="Name" class=" form-control-label">Email to be send to</label>
        <select class="form-control" name="email_to">
            <option value="Custom Emails">Custom Emails</option>
            <option value="All Emails">All Emails</option>
            <option value="Last 3 Days">Users Registered in last 3 days</option>
            <option value="Item Ordered Status">Users With Items ordered Status</option>
            <option value="Shipped Status">Users With Shipped Status</option>
        </select>
        <div class="error-input"></div>
    </div>

    <div class="form-group input-container">
        <label for="Name" class=" form-control-label">To <small>* Seperate emails using comma (,)</small></label>
        <input type="text" name="to" id="to" placeholder="To" class="form-control" value="<?php if(isset($data['cl_to'])){echo $data['cl_to'];}?>" />
        <div class="error-input"></div>
    </div>

    <div clas="form-group input-container">
        <label for="Name" class=" form-control-label">Template <small>* </small></label>
        <select class="form-control" id="template">
            <option value="">General Template</option>
            <option value="Promocode">Promocode Template</option>
            <option value="Promo">Promo Template</option>
        </select>
    </div>

    <div class="form-group input-container">
        <label for="Name" class=" form-control-label">Subject</label>
        <input type="text" name="subject" id="subject" placeholder="Subject" class="form-control" value="<?php if(isset($data['cl_subject'])){echo $data['cl_subject'];}?>" />
        <div class="error-input"></div>
    </div>


    <div class="form-group input-container">
        <label for="Description" class=" form-control-label">Body</label>
        <textarea style="height:150px" id="body" name="body" placeholder="Body" class="form-control" value="<?php if(isset($data['cl_body'])){echo $data['cl_body'];}?>"><table cellpadding="3" style="width: 100%;" border="0" class="mail_table">
    <tr>
        <td>
            
        </td>
    </tr>
    <tr>
        <td>
           
        </td>
    </tr>
    <tr>
        <td>
            
        </td>
    </tr>
    <tr>
        <td>
            
        </td>
    </tr>
</table></textarea>
        <div class="error-input"></div>
    </div>
   
    <div class="form-group input-container">
      <button type="submit" class="track-btn pull-right">Send Email</button>

    </div>


  <!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
<script src="<?php echo DOMAIN ?>/jquery_file_upload/js/jquery.iframe-transport.js"></script>
<!-- The basic File Upload plugin -->
<script src="<?php echo DOMAIN ?>/jquery_file_upload/js/jquery.fileupload.js"></script>


<script>
    jQuery(document).ready(function(){
        jQuery('#template').change(function(){
            var template = jQuery(this).val();
            var templateHtml = '';
            if(template == 'Promocode')
            {
                templateHtml = '<table style="width: 100%;max-width: 400px;margin: 0 auto" class="mail_table"><tbody><tr><td align="center" style="padding-top: 15px;text-align:center"><img src="https://www.axo.lv/images/logo.png" /></td></tr>';
                templateHtml+= '<tr><td  align="center" style="color:#1F2535;font-size: 16px;padding-top: 50px;text-align:center;font-weight:bold">Laiks iepirkties par īpaši zemām cenām!</td></tr>';
                templateHtml+= '<tr><td align="center" style="color: #1F2535;font-size: 16px;padding-top: 80px;padding-bottom: 15px;text-align:center">Izmanto atlaižu kodu</td></tr>';
                templateHtml+= '<tr><td align="center" style="font-weight: bold;background-color: #F4F6F7;color: #FCA32B;font-size: 26px;padding-top: 30px;padding-bottom: 30px;text-align:center"></td></tr>';
                templateHtml+= '<tr><td align="center" style="color: #1F2535;font-size: 16px;line-height: 26px;text-align: center;padding-top: 15px;text-align:center"></td></tr>';
                templateHtml+= '<tr><td align="center" style="font-weight: bold; color: #1F2535;font-size: 18px;line-height: 22px;padding-top: 80px;text-align:center">Paldies, ka izvēlējāties axo.lv!</td></tr>';
                templateHtml+= '<tr><td align="center" style="padding-top: 40px;text-align:center"><img src="https://www.axo.lv/images/logo.png" /></td></tr>';
                templateHtml+= '<tr><td  align="center" style=" color: #676F82;font-size: 15px;line-height: 19px;padding-top: 30px;text-align:center">Part of the axo Group © SIA axo 2017 - 2024</td></tr></tbody>';
                templateHtml+= '</table>';

                
            }
            if(template == 'Promo')
            {
                templateHtml+= '<style type="text/css">.rollover:hover .rollover-first { max-height:0px!important; display:none!important; } .rollover:hover .rollover-second { max-height:none!important; display:block!important; } .rollover span { font-size:0px; } u + .body img ~ div div { display:none; } #outlook a { padding:0; } span.MsoHyperlink,span.MsoHyperlinkFollowed { color:inherit; mso-style-priority:99; } a.es-button { mso-style-priority:100!important; text-decoration:none!important; } a[x-apple-data-detectors] { color:inherit!important; text-decoration:none!important; font-size:inherit!important; font-family:inherit!important; font-weight:inherit!important; line-height:inherit!important; } .es-desk-hidden { display:none; float:left; overflow:hidden; width:0; max-height:0; line-height:0; mso-hide:all; } .es-button-border:hover > a.es-button { color:#ffffff!important; } @media only screen and (max-width:600px) {.es-m-p0r { padding-right:0px!important } .es-m-p25t { padding-top:25px!important } .es-m-p15t { padding-top:15px!important } .es-m-p20b { padding-bottom:20px!important } .es-m-p5t { padding-top:5px!important } .es-m-p10t { padding-top:10px!important } .es-m-p25b { padding-bottom:25px!important } *[class="gmail-fix"] { display:none!important } p, a { line-height:150%!important } h1, h1 a { line-height:120%!important } h2, h2 a { line-height:120%!important } h3, h3 a { line-height:120%!important } h4, h4 a { line-height:120%!important } h5, h5 a { line-height:120%!important } h6, h6 a { line-height:120%!important } h1 { font-size:36px!important; text-align:left } h2 { font-size:26px!important; text-align:left } h3 { font-size:20px!important; text-align:left } h4 { font-size:24px!important; text-align:left } h5 { font-size:20px!important; text-align:left } h6 { font-size:16px!important; text-align:left } .es-header-body h1 a, .es-content-body h1 a, .es-footer-body h1 a { font-size:36px!important } .es-header-body h2 a, .es-content-body h2 a, .es-footer-body h2 a { font-size:26px!important } .es-header-body h3 a, .es-content-body h3 a, .es-footer-body h3 a { font-size:20px!important } .es-header-body h4 a, .es-content-body h4 a, .es-footer-body h4 a { font-size:24px!important } .es-header-body h5 a, .es-content-body h5 a, .es-footer-body h5 a { font-size:20px!important } .es-header-body h6 a, .es-content-body h6 a, .es-footer-body h6 a { font-size:16px!important } .es-menu td a { font-size:12px!important } .es-header-body p, .es-header-body a { font-size:14px!important } .es-content-body p, .es-content-body a { font-size:14px!important } .es-footer-body p, .es-footer-body a { font-size:14px!important } .es-infoblock p, .es-infoblock a { font-size:12px!important }';
                templateHtml+= '.es-m-txt-c, .es-m-txt-c h1, .es-m-txt-c h2, .es-m-txt-c h3, .es-m-txt-c h4, .es-m-txt-c h5, .es-m-txt-c h6 { text-align:center!important } .es-m-txt-r, .es-m-txt-r h1, .es-m-txt-r h2, .es-m-txt-r h3, .es-m-txt-r h4, .es-m-txt-r h5, .es-m-txt-r h6 { text-align:right!important } .es-m-txt-j, .es-m-txt-j h1, .es-m-txt-j h2, .es-m-txt-j h3, .es-m-txt-j h4, .es-m-txt-j h5, .es-m-txt-j h6 { text-align:justify!important } .es-m-txt-l, .es-m-txt-l h1, .es-m-txt-l h2, .es-m-txt-l h3, .es-m-txt-l h4, .es-m-txt-l h5, .es-m-txt-l h6 { text-align:left!important } .es-m-txt-r img, .es-m-txt-c img, .es-m-txt-l img { display:inline!important } .es-m-txt-r .rollover:hover .rollover-second, .es-m-txt-c .rollover:hover .rollover-second, .es-m-txt-l .rollover:hover .rollover-second { display:inline!important } .es-m-txt-r .rollover span, .es-m-txt-c .rollover span, .es-m-txt-l .rollover span { line-height:0!important; font-size:0!important }';
                templateHtml+= '.es-spacer { display:inline-table } a.es-button, button.es-button { font-size:20px!important; line-height:120%!important } a.es-button, button.es-button, .es-button-border { display:inline-block!important } .es-m-fw, .es-m-fw.es-fw, .es-m-fw .es-button { display:block!important } .es-m-il, .es-m-il .es-button, .es-social, .es-social td, .es-menu { display:inline-block!important } .es-adaptive table, .es-left, .es-right { width:100%!important } .es-content table, .es-header table, .es-footer table, .es-content, .es-footer, .es-header { width:100%!important; max-width:600px!important } .adapt-img { width:100%!important; height:auto!important } .es-mobile-hidden, .es-hidden { display:none!important } .es-desk-hidden { width:auto!important; overflow:visible!important; float:none!important; max-height:inherit!important; line-height:inherit!important } tr.es-desk-hidden { display:table-row!important }';
                templateHtml+= 'table.es-desk-hidden { display:table!important } td.es-desk-menu-hidden { display:table-cell!important } .es-menu td { width:1%!important } table.es-table-not-adapt, .esd-block-html table { width:auto!important } .es-social td { padding-bottom:10px } .h-auto { height:auto!important } .img-4608 { width:60px!important } a.es-button.es-button-5669 { font-size:18px!important } .img-2277 { width:224px!important } .img-3490 { width:60px!important } .img-4773 { width:60px!important } .es-text-1546, .es-text-1546 p, .es-text-1546 a, .es-text-1546 h1, .es-text-1546 h2, .es-text-1546 h3, .es-text-1546 h4, .es-text-1546 h5, .es-text-1546 h6, .es-text-1546 ul, .es-text-1546 ol, .es-text-1546 li, .es-text-1546 span, .es-text-1546 sup, .es-text-1546 sub, .es-text-1546 u, .es-text-1546 b, .es-text-1546 strong, .es-text-1546 em, .es-text-1546 i { font-size:24px!important }';
                templateHtml+= '.es-text-6978, .es-text-6978 p, .es-text-6978 a, .es-text-6978 h1, .es-text-6978 h2, .es-text-6978 h3, .es-text-6978 h4, .es-text-6978 h5, .es-text-6978 h6, .es-text-6978 ul, .es-text-6978 ol, .es-text-6978 li, .es-text-6978 span, .es-text-6978 sup, .es-text-6978 sub, .es-text-6978 u, .es-text-6978 b, .es-text-6978 strong, .es-text-6978 em, .es-text-6978 i { font-size:16px!important } .es-text-4496, .es-text-4496 p, .es-text-4496 a, .es-text-4496 h1, .es-text-4496 h2, .es-text-4496 h3, .es-text-4496 h4, .es-text-4496 h5, .es-text-4496 h6, .es-text-4496 ul, .es-text-4496 ol, .es-text-4496 li, .es-text-4496 span, .es-text-4496 sup, .es-text-4496 sub, .es-text-4496 u, .es-text-4496 b, .es-text-4496 strong, .es-text-4496 em, .es-text-4496 i { font-size:15px!important }';
                templateHtml+= '.es-text-3211, .es-text-3211 p, .es-text-3211 a, .es-text-3211 h1, .es-text-3211 h2, .es-text-3211 h3, .es-text-3211 h4, .es-text-3211 h5, .es-text-3211 h6, .es-text-3211 ul, .es-text-3211 ol, .es-text-3211 li, .es-text-3211 span, .es-text-3211 sup, .es-text-3211 sub, .es-text-3211 u, .es-text-3211 b, .es-text-3211 strong, .es-text-3211 em, .es-text-3211 i { font-size:24px!important } .es-text-8707, .es-text-8707 p, .es-text-8707 a, .es-text-8707 h1, .es-text-8707 h2, .es-text-8707 h3, .es-text-8707 h4, .es-text-8707 h5, .es-text-8707 h6, .es-text-8707 ul, .es-text-8707 ol, .es-text-8707 li, .es-text-8707 span, .es-text-8707 sup, .es-text-8707 sub, .es-text-8707 u, .es-text-8707 b, .es-text-8707 strong, .es-text-8707 em, .es-text-8707 i { font-size:28px!important } } @media screen and (max-width:384px) {.mail-message-content { width:414px!important } }</style>';
                
                templateHtml+= '<table class="es-wrapper" width="100%" cellspacing="0" cellpadding="0" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;padding:0;Margin:0;width:100%;height:100%;background-repeat:repeat;background-position:center top;background-color:#FAFAFA"><tr>';
                templateHtml+= '<td valign="top" style="padding:0;Margin:0"><table cellpadding="0" cellspacing="0" class="es-header" align="center" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;width:100%;table-layout:fixed !important;background-color:transparent;background-repeat:repeat;background-position:center top"><tr><td align="center" style="padding:0;Margin:0"><table bgcolor="#ffffff" class="es-header-body" align="center" cellpadding="0" cellspacing="0" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:transparent;width:600px"><tr>';
                templateHtml+= '<td align="left" bgcolor="#ffffff" style="Margin:0;padding-top:10px;padding-right:20px;padding-bottom:10px;padding-left:20px;background-color:#ffffff"><table cellpadding="0" cellspacing="0" width="100%" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td class="es-m-p0r" valign="top" align="center" style="padding:0;Margin:0;width:560px"><table cellpadding="0" cellspacing="0" width="100%" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td align="center" class="es-m-p25t" style="padding:0;Margin:0;font-size:0"><img src="https://eipxyii.stripocdn.email/content/guids/CABINET_2d2464483543296fde333e109fb1cb7a31431252eccb646cc14a4c3a9655fc06/images/logo.png" alt="" width="224" class="img-2277" style="display:block;font-size:14px;border:0;outline:none;text-decoration:none"></td> </tr></table></td></tr></table>';
                templateHtml+= '</td></tr></table></td></tr></table> <table cellpadding="0" cellspacing="0" class="es-content" align="center" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;width:100%;table-layout:fixed !important"><tr><td align="center" style="padding:0;Margin:0"><table bgcolor="#ffffff" class="es-content-body" align="center" cellpadding="0" cellspacing="0" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:#FFFFFF;width:600px"><tr><td align="left" bgcolor="#ffffff" style="Margin:0;padding-right:20px;padding-bottom:10px;padding-left:20px;padding-top:20px;background-color:#ffffff"><table cellpadding="0" cellspacing="0" width="100%" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr>';
                templateHtml+= '<td align="center" valign="top" style="padding:0;Margin:0;width:560px"><table cellpadding="0" cellspacing="0" width="100%" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td align="center" class="es-m-txt-c es-text-4496 es-m-p20b es-m-p15t" style="padding:0;Margin:0;padding-bottom:10px;padding-top:20px"><h3 style="Margin:0;font-family:arial, "helvetica neue", helvetica, sans-serif;mso-line-height-rule:exactly;letter-spacing:0;font-size:20px;font-style:normal;font-weight:bold;line-height:20px;color:#333333">LIELISKS PIEDĀVĀJUMS TIEŠI TEV!​​​</h3> </td></tr><tr>';
                templateHtml+= '<td align="center" class="es-m-txt-c es-text-1546 es-m-p5t es-m-p20b" style="padding:0;Margin:0;padding-bottom:10px"><h1 style="Margin:0;font-family:arial, "helvetica neue", helvetica, sans-serif;mso-line-height-rule:exactly;letter-spacing:0;font-size:48px;font-style:normal;font-weight:bold;line-height:48px;color:#333333"><u>IZBAUDI 15% ​​ATLAIDI​</u></h1></td></tr></table></td></tr></table></td></tr> <tr><td class="es-m-p5t" align="left" bgcolor="#ffffff" style="Margin:0;padding-top:10px;padding-right:20px;padding-bottom:10px;padding-left:20px;background-color:#ffffff"><table cellpadding="0" cellspacing="0" width="100%" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr>';
                templateHtml+= '<td align="center" valign="top" style="padding:0;Margin:0;width:560px"><table cellpadding="0" cellspacing="0" width="100%" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:separate;border-spacing:0px;border-left:2px dashed #cccccc;border-right:2px dashed #cccccc;border-top:2px dashed #cccccc;border-bottom:2px dashed #cccccc;border-radius:5px" role="presentation"><tr><td align="center" class="es-m-txt-c es-text-3211 es-m-p10t" style="padding:0;Margin:0;padding-right:20px;padding-left:20px;padding-top:20px"><h2 style="Margin:0;font-family:arial, "helvetica neue", helvetica, sans-serif;mso-line-height-rule:exactly;letter-spacing:0;font-size:26px;font-style:normal;font-weight:bold;line-height:31px;color:#333333">Tavs atlaižu kods</h2> </td></tr><tr>';
                templateHtml+= '<td align="center" class="es-m-txt-c es-text-8707 es-m-p25b" style="Margin:0;padding-top:10px;padding-right:20px;padding-left:20px;padding-bottom:20px"><h1 style="Margin:0;font-family:arial, "helvetica neue", helvetica, sans-serif;mso-line-height-rule:exactly;letter-spacing:0;font-size:46px;font-style:normal;font-weight:bold;line-height:55px;color:#3f795c"><strong><a target="_blank" style="mso-line-height-rule:exactly;text-decoration:none;color:#3f795c;font-size:46px" href="https://axo.lv/">FGH-123</a></strong></h1></td></tr></table></td></tr></table></td></tr> <tr><td align="left" bgcolor="#ffffff" style="padding:0;Margin:0;padding-right:20px;padding-bottom:10px;padding-left:20px;background-color:#ffffff"><table cellpadding="0" cellspacing="0" width="100%" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr>';
                templateHtml+= '<td align="center" valign="top" style="padding:0;Margin:0;width:560px"><table cellpadding="0" cellspacing="0" width="100%" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:separate;border-spacing:0px;border-radius:5px" role="presentation"><tr>';
                templateHtml+= '<td align="center" class="es-m-p5t es-m-p25b" style="padding:0;Margin:0;padding-top:10px;padding-bottom:10px"><span class="es-button-border" style="border-style:solid;border-color:#2CB543;background:#3f795c;border-width:0px;display:inline-block;border-radius:6px;width:auto"><a href="https://axo.lv/" class="es-button es-button-5669"  style="padding: 20px;color: white;display: block;text-decoration: none;">IEPĒRCIES JAU TAGAD</a> </span></td></tr></table></td></tr></table></td></tr> <tr>';
                templateHtml+= '<td align="left" bgcolor="#ffffff" style="padding:0;Margin:0;padding-right:20px;padding-left:20px;padding-top:20px;background-color:#ffffff"><table cellpadding="0" cellspacing="0" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td align="left" style="padding:0;Margin:0;width:560px"><table cellpadding="0" cellspacing="0" width="100%" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td align="left" class="es-text-6978" style="padding:0;Margin:0"><h3 style="Margin:0;font-family:arial, "helvetica neue", helvetica, sans-serif;mso-line-height-rule:exactly;letter-spacing:0;font-size:16px;font-style:normal;font-weight:bold;line-height:24px;color:#333333" align="center" class="es-m-txt-c">Tev - kā mūsu uzticamam klientam, esam sarūpējuši atlaidi jebkurai precei no mūsu plašā klāsta.​​​​</h3> </td></tr></table>';
                templateHtml+= '</td></tr></table></td></tr> <tr><td align="left" bgcolor="#ffffff" style="padding:0;Margin:0;padding-right:20px;padding-left:20px;padding-top:20px;background-color:#ffffff"><table cellpadding="0" cellspacing="0" width="100%" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td align="center" valign="top" style="padding:0;Margin:0;width:560px"><table cellpadding="0" cellspacing="0" width="100%" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td align="center" class="es-m-txt-c" style="Margin:0;padding-right:20px;padding-left:20px;padding-top:15px;padding-bottom:5px"><h2 style="Margin:0;font-family:arial, "helvetica neue", helvetica, sans-serif;mso-line-height-rule:exactly;letter-spacing:0;font-size:26px;font-style:normal;font-weight:bold;line-height:31px;color:#333333">Kā varu pielietot atlaidi?</h2></td>';
                templateHtml+= '</tr> </table></td></tr></table></td></tr> <tr><td align="left" bgcolor="#ffffff" style="padding:20px;Margin:0;background-color:#ffffff"> <!--[if mso]><table style="width:560px" cellpadding="0" cellspacing="0"><tr><td style="width:194px" valign="top"><![endif]--><table cellpadding="0" cellspacing="0" class="es-left" align="left" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;float:left"><tr><td class="es-m-p0r es-m-p20b" align="center" style="padding:0;Margin:0;width:174px"><table cellpadding="0" cellspacing="0" width="100%" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr>';
                templateHtml+= '<td align="center" style="padding:0;Margin:0;font-size:0px"><img src="https://eipxyii.stripocdn.email/content/guids/CABINET_2d2464483543296fde333e109fb1cb7a31431252eccb646cc14a4c3a9655fc06/images/image_srG.png" alt="" style="display:block;font-size:14px;border:0;outline:none;text-decoration:none" width="45" class="img-4773 adapt-img"></td> </tr><tr><td align="center" style="padding:0;Margin:0;padding-top:10px;padding-bottom:10px"><p style="Margin:0;mso-line-height-rule:exactly;font-family:arial, "helvetica neue", helvetica, sans-serif;line-height:21px;letter-spacing:0;color:#333333;font-size:14px">Izvēlies sev visk​​ārotāko preci.</p></td></tr></table></td><td class="es-hidden" style="padding:0;Margin:0;width:20px"></td></tr></table> <!--[if mso]></td>';
                templateHtml+= '<td style="width:173px" valign="top"><![endif]--><table cellpadding="0" cellspacing="0" class="es-left" align="left" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;float:left"><tr><td class="es-m-p20b" align="center" style="padding:0;Margin:0;width:173px"><table cellpadding="0" cellspacing="0" width="100%" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td align="center" style="padding:0;Margin:0;font-size:0px"><img src="https://eipxyii.stripocdn.email/content/guids/CABINET_2d2464483543296fde333e109fb1cb7a31431252eccb646cc14a4c3a9655fc06/images/image_X8M.png" alt="" style="display:block;font-size:14px;border:0;outline:none;text-decoration:none" width="45" class="img-3490"></td></tr> <tr>';
                templateHtml+= '<td align="center" style="padding:0;Margin:0;padding-top:10px;padding-bottom:10px"><p style="Margin:0;mso-line-height-rule:exactly;font-family:arial, "helvetica neue", helvetica, sans-serif;line-height:21px;letter-spacing:0;color:#333333;font-size:14px">Pie pasūtījuma noformēšan​​as, ievadi atlaižu kodu.</p></td></tr></table></td></tr></table> <!--[if mso]></td><td style="width:20px"></td><td style="width:173px" valign="top"><![endif]--><table cellpadding="0" cellspacing="0" class="es-right" align="right" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;float:right"><tr><td align="center" style="padding:0;Margin:0;width:173px"><table cellpadding="0" cellspacing="0" width="100%" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr>';
                templateHtml+= '<td align="center" style="padding:0;Margin:0;font-size:0px"><img src="https://eipxyii.stripocdn.email/content/guids/CABINET_2d2464483543296fde333e109fb1cb7a31431252eccb646cc14a4c3a9655fc06/images/image_uZN.png" alt="" style="display:block;font-size:14px;border:0;outline:none;text-decoration:none" width="45" class="img-4608"></td></tr> <tr><td align="center" style="padding:0;Margin:0;padding-top:10px;padding-bottom:10px"><p style="Margin:0;mso-line-height-rule:exactly;font-family:arial, "helvetica neue", helvetica, sans-serif;line-height:21px;letter-spacing:0;color:#333333;font-size:14px">Sagaidi savu pasūtījumu. Paldies!</p></td></tr></table></td></tr></table> <!--[if mso]></td></tr></table><![endif]--></td></tr></table></td></tr></table>';
                templateHtml+= '<table cellpadding="0" cellspacing="0" class="es-footer" align="center" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;width:100%;table-layout:fixed !important;background-color:transparent;background-repeat:repeat;background-position:center top"><tr><td align="center" style="padding:0;Margin:0"><table class="es-footer-body" align="center" cellpadding="0" cellspacing="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:transparent;width:640px" role="none"><tr><td align="left" bgcolor="#ffffff" style="padding:20px;Margin:0;background-color:#ffffff;border-radius:0"><table cellpadding="0" cellspacing="0" width="100%" role="none" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr>';
                templateHtml+= '<td align="left" style="padding:0;Margin:0;width:600px"><table cellpadding="0" cellspacing="0" width="100%" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td align="center" style="padding:0;Margin:0;padding-bottom:35px"><p style="Margin:0;mso-line-height-rule:exactly;font-family:arial, "helvetica neue", helvetica, sans-serif;line-height:18px;letter-spacing:0;color:#333333;font-size:12px">© 2021-2024 AX BALTIC GROUP</p> <p style="Margin:0;mso-line-height-rule:exactly;font-family:arial, "helvetica neue", helvetica, sans-serif;line-height:18px;letter-spacing:0;color:#333333;font-size:12px">AXO.LV | AXO.LT | AXO.EE</p><p style="Margin:0;mso-line-height-rule:exactly;font-family:arial, "helvetica neue", helvetica, sans-serif;line-height:18px;letter-spacing:0;color:#333333;font-size:12px">Tārgales iela 12, Ventspils, LV-3602, Latvija.​​​​</p></td></tr> <tr>';
                templateHtml+= '<td style="padding:0;Margin:0"><table cellpadding="0" cellspacing="0" width="100%" class="es-menu" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr class="links"><td align="center" valign="top" width="33.33%" style="Margin:0;border:0;padding-top:5px;padding-bottom:5px;padding-right:5px;padding-left:5px"><a target="_blank" href="https://axo.lv/" style="mso-line-height-rule:exactly;text-decoration:none;font-family:arial, "helvetica neue", helvetica, sans-serif;display:block;color:#999999;font-size:12px">Iepērcies pie mums</a></td>';
                templateHtml+= '<td align="center" valign="top" width="33.33%" style="Margin:0;border:0;padding-top:5px;padding-bottom:5px;padding-right:5px;padding-left:5px;border-left:1px solid #cccccc"><a target="_blank" href="https://axo.lv/Privatuma-politika" style="mso-line-height-rule:exactly;text-decoration:none;font-family:arial, "helvetica neue", helvetica, sans-serif;display:block;color:#999999;font-size:12px">Privātuma politika</a></td><td align="center" valign="top" width="33.33%" style="Margin:0;border:0;padding-top:5px;padding-bottom:5px;padding-right:5px;padding-left:5px;border-left:1px solid #cccccc"><a target="_blank" href="https://axo.lv/priksanas-noteikumi" style="mso-line-height-rule:exactly;text-decoration:none;font-family:arial, "helvetica neue", helvetica, sans-serif;display:block;color:#999999;font-size:12px">Pirkšanas noteikumi</a></td></tr></table></td></tr></table></td></tr></table></td></tr> </table></td></tr></table></td></tr></table>';
                
            }
            else
            {
                templateHtml+= '<table cellpadding="3" style="width: 100%;" border="0" class="mail_table"><tr><td></td></tr>';
                templateHtml+= '<tr><td></td></tr><tr><td></td></tr><tr><td></td></tr></table>';
            }

            CKEDITOR.instances['body'].setData(templateHtml);
        });
    })
    </script>