<!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.lblEmailTemplats}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
<link href="{$view_styles}/inner-formlisting.css" rel="stylesheet" type="text/css" />
<link href="{$view_styles}/colorbox.css" rel="stylesheet" type="text/css" />
{include file='CommonCustomStyles.tpl'}
</head>
<body>
<div class="outer_container">
  {include file='CommonTop.tpl'}
  <!--End:Header Container-->
  <!--***********************************************************************START CONTAINER SECTION******************************************************-->
  <div class="content_container">
   <div class="content_wrapper">
   {if $emailHtml}<div class="fixing_right">{include file='ContentLanguageOptions.tpl'}</div>{/if}
    <h2>{$language.lblEmailTemplats}</h2>
    <!--End: Right Block-->
      <!-- Inner Content Container starts-->
      <div class="inner_content_wrapper">
          <div id="common_message" ></div>         
          <div class="clear"></div>
          {form->start name="formEmailTemplate" action="" method="post"}
          <div class="form_listing" > {form->hidden name="emailTempID"}    	  {form->hidden name="emailTempDetID"}       	
            <!--section wrap :: Starts-->
            <div class="section_wrap clearfix">
                <div class="forlisting_fullwidth padding-l-100">
                    <ul>
                        <li class="selection clearfix">
                            <div class="leftside01 mandatory">{$language.lblnewsletterFromName}</div>
                            <div class="rightside01">
                                 {form->textbox name="emailFromName" class="textbox width_50per"  validate="required" error=$language.errFromName}
                            </div>
                        </li>
                        <li class="selection clearfix">
                            <div class="leftside01 mandatory">{$language.lblnewsletterFromEmail}</div>
                            <div class="rightside01">
                                 {assign var="errFromEmail" value=$language.errFromEmail}                  
                                 {assign var="errEnterValidEmailMsg" value=$language.errEnterValidEmailID}                
                                 {form->textbox name="emailFromEmail" class="textbox width_50per" validate="required~*email" error="$errFromEmail~*$errEnterValidEmailMsg"}                                
                            </div>
                        </li>
                        <li class="selection clearfix">
                            <div class="leftside01 mandatory">{$language.lblSubject} </div>
                            <div class="rightside01">
                              {form->textbox name="emailSubject" class="textbox width_50per" validate="required" error=$language.errSubject}
                            </div>
                        </li>
                        <li class="selection clearfix">
                            <div class="leftside01 mandatory">{$language.lblnewsLetterContentHtml}</div>
                            <div class="rightside01">
                              {form->editor  name="emailHtml" rows="20" cols="40" mode="simple" uploads="editor-images/" skin=2 validate="required" error=$language.errEmailBody relative_urls="true"}                                
                            </div>
                        </li>
                        <li class="selection clearfix">
                            <div class="leftside01"> {$language.lblnewsLetterContentText}</div>
                            <div class="rightside01">
                                {form->textarea name="emailText" class="textbox width_80per" rows="5" cols="5"}                
                            </div>
                        </li>
                        <li>
                            <div class="submit-block clearfix ">
                                <span>&nbsp; </span>
                                <div class="leftside01">&nbsp;</div>
                                <div class="rightside01">
                                     {form->submit name="submitEmailTemplate" class="curve-3" value="{$language.lblSave}"} {$language.lblOr}                                    
                                     {html->anchor href="/emailtemplate/" tabindex="1" caption="{$language.lblCancel}"} 
                                </div>	
                            </div>
                        </li>
                    </ul>
                </div>
            </div><!--section wrap :: Ends-->            
         </div>   
         {form-> close}      
          <!--End:From Listing-->
        </div>
        <!--End:Border 3-->
    <!--End: left Block-->
    </div>
  </div>
  <!--***********************************************************************END CONTAINER SECTION******************************************************-->
  <!--End:Content Container-->
  {include file='CommonBottom.tpl'}
</div>
<!--End:Outer Container-->
{include file='CommonJavaScriptBottom.tpl'}
<script type="text/javascript" src="{$common_js}/validate.plugin.js"></script>
<script type="text/javascript" src="{$view_javascript}/emailtemplate.page.js"></script>
{form->editor_script names="emailHtml"}{form->validate_script form="formEmailTemplate"}{html->messages_script id="common_message"}
</body>
</html>