<!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.lblNewsLetterEmailTemplates}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
<link href="{$view_styles}/inner-formlisting.css"rel="stylesheet" type="text/css" media="screen" />
<link href="{$view_styles}/right-menu.css" rel="stylesheet" type="text/css" />
<link href="{$view_styles}/jquery-ui-1.8.19.custom.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="{$view_styles}/ui.daterangepicker.css" />
<link href="{$view_styles}/colorbox.css" rel="stylesheet" type="text/css" />
<link href="{$view_styles}/newsletter-add.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/manage-product.css" />
{include file='CommonCustomStyles.tpl'}
</head><body>
<div class="outer_container">
  {include file='CommonTop.tpl'}
  <!--End:Header Container-->
  <!--**********************************START CONTAINER SECTION******************************************************-->
  <div class="content_container2"> 
  <div class="right-sidebar">
      <div class="side_wrapper">
        {include file="NewsLetterRightBlock.tpl"}
      </div>
    </div>       
    <!--End: Right Block-->
    <div class="left_wrapper">
     <div class="content_wrapper"> 
	  <div class="strict_fixing_right">
	   {include file='ContentLanguageOptions.tpl'}
	   </div>
       <h2>{$language.lblNewsLetterEmailTemplates}</h2>
       <div id="common_message"></div>
	  
       <div class="inner_content_wrapper">
        {form->start name="formNewsletter" action="" method="post"}         
         <div class="form_listing form_listing03">{form->hidden name="newsletterID"}            
            {form->hidden name="newsLetterDetailsID"}            
            {form->hidden name="mailQueueID"}        	
        	  <ul>
                <li class="clearfix">
                  <div class="leftside01 mandatory">{$language.lblTemplateName} </div>
                   <div class="rightside01">
                    {form->textbox tabindex="1" name="nlTemplateName" class="textbox"  maxlength ="50" validate="required" error=$language.errTemplateName}
                   </div>
                   </li>
				   <li class="clearfix">
               	   <div class="leftside01 mandatory">{$language.lblMailTemplates}</div>
                   <div class="rightside01">
					{assign var="id" value=$tempDetails.nlTemplateID|default:''}
			        {form->editor name="nlTemplateContent" rows="20" cols="40" mode="advanced" skin=2 uploads="editor-images/" validate="required" error=$language.errEmailTemplate}				
                    {*form->radio tabindex="1" name="mailTemplates" class="mailTemplates" value="Yes" options=$options*}
                   </div>
                   </li>
				    <li class="selection clearfix">    
                      <div class="leftside01 mandatory status">{$language.lblPreviewImage}</div>                     
                        <div class="rightside01">
					     <span tabindex="1" style="outline:none;">
					     {form->upload_image
						 name="nlTemplatePreview"
						 path= "uploads/newsletter/"
						 file= $nlTemplatePreview
						 validate="required"
						 error=$language.errValidImage
						 size_caption=$language.lblMaximumFileSize
						 types_caption=$language.lblFileTypes
						 delete_button="no"} 
					    </span>					  
                     </div>                               
                    </li> 
				    <li class="selection clearfix">    
                                <div class="leftside01 mandatory status">{$language.lblTemplateType}</div>
                                <div class="rightside01">
                                <div id="perioddiv">
								{if $templateType|default:'' eq ''}
									{assign var="templateType" value="static"}
									{/if}
                                    {form->radio tabindex="1" name="templateType" class="customradio" options="static->"|cat:$language.lblStatic|cat:"~*product->"|cat:$language.lblProduct}								
                                </div>
                                </div>                               
                    </li>					
				    <li class="selection clearfix">    
                                <div class="leftside01 mandatory status">{$language.lblStatus}</div>
                                <div class="rightside01">
                                <div id="perioddiv">
								{if $nltDefault=='Yes'}
								{form->radio tabindex="1" name="nltStatus" class="customradio" options="Active->"|cat:$language.lblActive} 
								{else}
                                    {if $nltStatus==''}
                                    {assign var="nltStatus" value="Active"}
                                    {/if}
                                    {form->radio tabindex="1" name="nltStatus" class="customradio" options="Active->"|cat:$language.lblActive|cat:"~*Inactive->"|cat:$language.lblInactive} 
							   {/if}									
                                </div>
                                </div>                               
                    </li>
                    <li>
                    <div class="submit-block clearfix textto_center"> 
                    <span class="line"></span>
              				{if $nlTemplateID>0} 
                              {assign var="link" value="/newsletter/emailtemplates/"} 
                              {assign var="buttonText" value="{$language.lblUpdate}"}{else}
							  {assign var="link" value="/newsletter/emailtemplates/"}
                              {assign var="buttonText" value="{$language.lblSave}"} 
                            {/if}                   
                  {form->submit name="submitTemplate" tabindex="1" id="submit" class="curve-3" value=$buttonText}                 
                  {$language.lblOr}
                  {html->anchor href=$link id="cancel" tabindex="1" caption="{$language.lblCancel}" name="cancelTemplateAdd"} 
                </div>
               </li>
            </ul>
        </div>
        </div>
          <!--End:From Listing-->
           </div>          
           </div>
          </div>
         </div>
        {form->close}
		</div>
        <!--End:Border 3-->
      </div>
    <!--End: left Block-->
    <div class="clear"></div>
  </div>
  <!--****************************************************END CONTAINER SECTION*******************************************-->
  <!--End:Content Container-->
  {include file='CommonBottom.tpl'} 
</div>
<!--End:Outer Container-->
<script type="text/javascript">
    var msgTestMailSent 		 = "{$language.msgTestMailSent}";
    var errEnterValidEmail 		 = "{$language.errEnterValidEmail}";
	var errFromEmail 			 = "{$language.errFromEmail}";
    var errTestMailSendingFailed = "{$language.errTestMailSendingFailed}";
    var errEmailBody         	 = "{$language.errEmailBody}";
    var returnUrl   			 = "{$returnUrl}";
	var preview   				 = "{$language.lblPreview}";
	var lblSend   				 = "{$language.lblSend}";
	var lblSave   				 = "{$language.lblSave}";
	var lblSelectSubscriber		 = "{$language.lblSelectSubscriber}";
</script>
{include file='CommonJavaScriptBottom.tpl'}
<script type="text/javascript" src="{$view_javascript}/jquery.multiselect.widget.js"></script> 
<script type="text/javascript" src="{$common_js}/validate.plugin.js"></script>
<script type="text/javascript" src="{$view_javascript}/newsletter.page.js"></script>
<script type="text/javascript" src="{$view_javascript}/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="{$view_javascript}/jquery.colorbox.js"></script>
<script type="text/javascript" src="{$common_js}/uploadImage.plugin.js"></script>
{form->editor_script names="nlTemplateContent"}
{form->validate_script form="formNewsletter"}
{html->messages_script id="common_message"}
<script type="text/javascript">
$(document).ready(function(){
	$('#mailTemplates').click(function(){
});
});
</script>
</body>
</html>