<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$language.lblAdmin} : {$language.lblEmailQueuePreview}</title>
{include file='CommonCustomStyles.tpl'}
<link href="{$view_styles}/popup.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="{$common_js}/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="{$common_js}/jquery-migrate-1.4.1.js"></script>
</head>
<body>
<div class="popup-block">
<div class="email_pop_outer">
  	<div class="email_pop_inner">
    <div id="common_message"></div>
    {assign var='id' value=$mailDetails.mailQueueID}
    {assign var='newsletterID' value=$mailDetails.referringID}
    {if ($mailDetails.totalEmailCount == $mailDetails.totalRemainingCount) && ($mailDetails.mailType=='NEWSLETTER_EMAIL')}
    {html->anchor priv_href="newsletter/new/" href="newsletter/edit/id/$newsletterID/ref/queue/" caption="<span class='edit'> {$language.lblEdit} </span>"  class="action-link linkbtnt01 edit_item fixing_right edit-btn-spc" onclick="parent.$.fn.colorbox.close();" target="_top"}
    {/if}
    <div class="email-preview inner-top-spc">
     <ul class="emial-bx">
      <li class="column clearfix">
        <span class="col1">{$language.lblSubject}</span>
        <span class="col2">:</span>
        <span class="col3">{$mailDetails.mailSubject}</span>
      </li> 
      <li class="column clearfix">
        <span class="col1">{$language.lblnewsletterFromName}</span>
        <span class="col2">:</span>
        <span class="col3">{$mailDetails.mailFromName}</span>
      </li> 
      <li class="content clearfix">
        <div class="default-style">
         {$mailDetails.mailContent|unescape:"html"}
        </div>
      </li>     
     </ul>    
    </div>
   </div>
</div>
</div>
{form->validate_script form="frmProducttypeAdd"}
</body>
</html>
