<div id="globalcss">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{openzc:define.HEADING_TITLE/}</title>
{openzc:include filename="system/common/css.tpl"/}
</head>
<body>
<div class="container mb-5">
  <div class="block-title subtitle is-4 is-spaced mt-6 px-5 is-hidden-mobile">{openzc:define.HEADING_TITLE/}</div>
  <div class="columns mx-0">
    {openzc:include filename="system/account/account_nav.tpl"/}
    <div class="column ">
		<article class="message is-light">
			<div class="message-header"><p>{openzc:define.HEADING_TITLE/}</p></div>
			<div class="message-body px-4">
		{openzc:msg name="newsletter"/}
		<div class="notification is-info is-light subtitle is-6">
			{openzc:php}$description=str_replace("<br /><br />","<br />",MY_NOTIFICATIONS_DESCRIPTION);{/openzc:php}
			{openzc:var name="$description"/}
		</div>
      	<form action="{openzc:link name='FILENAME_ACCOUNT_NOTIFICATIONS'/}" method="post">
			<input type="hidden" name="securityToken" value="{openzc:field.securityToken/}">
            <input type="hidden" name="action" value="process">
			
			<div class="field">
				<label class="label"><i class="fa fa-caret-right"></i> {openzc:define.GLOBAL_NOTIFICATIONS_TITLE/}</label>
				<div class="control subtitle is-6">
					{openzc:if $global->fields['global_product_notifications'] == '1'}
					<label class="checkbox">
						<input type="checkbox" name="product_global" value="1" checked="">
					  	{openzc:define.GLOBAL_NOTIFICATIONS_DESCRIPTION/}
					</label>
					{else}
					<label class="checkbox">
						<input type="checkbox" name="product_global" value="1" >
					  	{openzc:define.GLOBAL_NOTIFICATIONS_DESCRIPTION/}
					</label>
					{/openzc:if}
				</div>
			</div>
			{openzc:if $flag_global_notifications != '1'}
			<div class="field mt-5">
				<label class="label"><i class="fa fa-caret-right"></i> {openzc:define.NOTIFICATIONS_TITLE/}</label>
				<div class="control">
					{openzc:if $flag_products_check}
					{openzc:php}$exist=str_replace("<br /><br />","<br />",NOTIFICATIONS_DESCRIPTION);{/openzc:php}
					<p class="subtitle is-6">{openzc:var name="$exist"/}</p>
					
					{openzc:var name="notificationsArray"}
					<label class="checkbox">
						<input type="checkbox" name="notify[]" value="[field:products_id/]" checked="checked">
					  	[field:products_name/]
					</label><br/>
					{/openzc:var}
					{else}
					{openzc:php}$no_exist=str_replace("<br /><br />","<br />",NOTIFICATIONS_NON_EXISTING);{/openzc:php}
					<p class="subtitle is-6"> {openzc:var name="$no_exist"/} </p>
					{/openzc:if}
				</div>
			</div>
			{/openzc:if}
			<div class="field level is-mobile mt-5">
				<div class="control level-left">
					<button class="button is-link is-outlined"><i class="far fa-check-circle"></i>&nbsp;&nbsp;{openzc:define.BUTTON_SUBMIT_ALT/}</button>
				</div>
				<p class="level-right"><a class="button " href="{openzc:link name='FILENAME_ACCOUNT'/}"><i class="fas fa-reply"></i>&nbsp;&nbsp;{openzc:define.BUTTON_BACK_ALT/}</a></p>
			</div>
		</form>
			</div>
		</article>
    </div>
  </div>
</div>
</body>
{openzc:include filename="system/common/js.tpl"/}
</html>
</div>