
<!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}: {if $customerRuleID|default:''}{$language.lblConditionsEdit}{else}{$language.lblConditionsAdd} {/if}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
<link href="{$view_styles}/jqueryui.plugin.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 rel="stylesheet" type="text/css" href="{$view_styles}/colorbox.css" media="screen" />
<link rel="stylesheet" href="{$view_styles}/chosen.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/add-edit.css" />
{include file='CommonCustomStyles.tpl'}
{literal}
<style type="text/css">
textarea#bannerContent{
	display:none!important;
	}
.fileuploader_edit_section {display:none !important;}
</style>
{/literal}
</head><body>
<div class="outer_container">
{if $enableSavedGroup neq '1'}
  {include file='CommonTop.tpl'}
{/if}
  <!--End:Header Container-->
  <!--****************************************************END HEADER CONTAINER*********************************************-->
  <div class="content_container">
    <div class="content_wrapper add-new-formlisting">
    <div class="fixing_right"></div>
    <h2>{if $customerRuleID|default:''}{$language.lblConditionsEdit}{else}{$language.lblConditionsAdd} {/if}</h2>
	{form->start name="formCustomerRule" action="" method="post" class="form-horizontal"}   
     <div class="section_wrap clearfix ">	
            <!--start: left pane -->
            <div class="left-pane clearfix">
                <div class="form_listing">
                    <ul>
                        <li class="clearfix">
                            <div class="leftside01 mandatory">{$language.lblName} </div>
                            <div class="rightside01">
                  			{form->textbox  name="customerRuleName" maxlength="100"  class="textbox" validate="required" error=$language.errName tabindex="1"}
                            </div>
                        </li>
                         <li class="clearfix">
                            <div class="leftside01">{$language.lblStatus}</div>
                            <div class="rightside01">
                                {form->radio name="status" class="customradio" options="A->{$language.lblActive}~*I->{$language.lblInactive}" value="{if $status|default:''}{$status}{else}A{/if}" tabindex="1"}   
								
                            </div>
                        </li>
                       
                    </ul>
                </div>
            </div>
            <!--end: left pane -->
            <!--start: right pane -->
          																
            <!--end: right pane -->
            <div class="clearfix"></div>
  			{include file='WidgetTabConditions.tpl'}													
        </div><!--section wrap :: Ends-->
        <div class="submit-block clearfix textto_center"> 
        <span>&nbsp; </span>
					{form->submit name="submitRule" tabindex="1" id="submitRule" class="curve-3 {if $enableSavedGroup eq '1'}popupRuleClose{/if}"  value="{$language.lblSave}"}
                        <span class="font11">
                        {$language.lblOr}
                        {html->anchor href="newsletter/listrule/" class="{if $enableSavedGroup eq '1'}popupRuleClose{/if}" name="cancelRule" tabindex="1"  caption="{$language.lblCancel}"}
                        </span>		
       
        </div>
  </div>																	
  </div>													
  {form->close}
  <!--End:Content Container-->
  {include file='CommonBottom.tpl'}
</div>


{form->rootpath_script}
{form->basepath_script}
<!--End:Outer Container-->
{include file='CommonJavaScriptBottom.tpl'}
<script type="text/javascript" src="{$common_js}/validate.plugin.js"></script>
<script type="text/javascript" src="{$common_js}/jquery.ui.plugin.js"></script> 
<script type="text/javascript" src="{$view_javascript}/jquery-ui-timepicker-addon.js"></script> 
<script type="text/javascript" src="{$view_javascript}/custom-radiobutton.js"></script>
<script type="text/javascript" src="{$view_javascript}/newsletterrule.page.js"></script>
<script type="text/javascript" src="{$view_javascript}/jquery.colorbox.js"></script> 

{form->validate_script form="formCustomerRule"} 
<script>
{literal}
$(document).ready(function(){
	$(document).on("click",'.popupPicker', function (e) {		
	e.preventDefault();
	$(".modal-dialog").addClass("modal-lg");
	var frameSrc = $(this).attr("href");
	var titlePopup = $(this).attr("popuptitle");
	$("#generateCatalogLink").colorbox({iframe:true, width:"80%", height:"80%"});

	});
 $(function(){
	 $("#perioddiv input").customInput('');
});	
	

});
	{/literal}
</script>
</body>
</html>
