<?php /* Smarty version 2.6.28, created on 2017-04-05 01:30:54
         compiled from /home/solusito/public_html/templates/eco-net-v3-5/clientareaaddcontact.tpl */ ?>
<script type="text/javascript" src="includes/jscript/statesdropdown.js"></script>
<script type="text/javascript" src="includes/jscript/pwstrength.js"></script>
<script language="JavaScript" type="text/javascript">
<?php echo '
jQuery(document).ready(function(){
    jQuery("#subaccount").click(function () {
        if (jQuery("#subaccount:checked").val()!=null) {
            jQuery(".subaccountfields").show();
        } else {
            jQuery(".subaccountfields").hide();
        }
    });
});
'; ?>

</script>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template'])."/clientareadetailslinks.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

		<div class="bigheader">
			<h2><?php echo $this->_tpl_vars['LANG']['clientareanavaddcontact']; ?>
</h2>
		</div><!-- .bigheader -->

<?php if ($this->_tpl_vars['errormessage']): ?>
	<div class="notice notice-error">
		<div class="inside">
			<p><?php echo $this->_tpl_vars['errormessage']; ?>
</p>
		</div>
	</div>
<?php endif; ?>

<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>
?action=addcontact">
  <input type="hidden" name="submit" value="true" />
  
  		<div class="feildset">
		
			<div class="col2">
			
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareafirstname']; ?>
: (<?php echo $this->_tpl_vars['LANG']['required']; ?>
)</span>
						<input name="firstname" value="<?php echo $this->_tpl_vars['contactfirstname']; ?>
" placeholder="<?php echo $this->_tpl_vars['LANG']['addcontact_firstname']; ?>
" type="text" tabindex="1" requred="required" autofocus="autofocus" />
					</label>
				</div>
			
			
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareaemail']; ?>
: (<?php echo $this->_tpl_vars['LANG']['required']; ?>
)</span>
						<input name="email" value="<?php echo $this->_tpl_vars['contactemail']; ?>
" placeholder="<?php echo $this->_tpl_vars['LANG']['addcontact_email']; ?>
" type="email" tabindex="3" requred="required" />
					</label>
				</div>	
				
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareacountry']; ?>
: (<?php echo $this->_tpl_vars['LANG']['required']; ?>
)</span>
						
						<?php echo $this->_tpl_vars['countriesdropdown']; ?>

					</label>
				</div>							

				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareaaddress1']; ?>
: (<?php echo $this->_tpl_vars['LANG']['required']; ?>
)</span>
						<input name="address1" value="<?php echo $this->_tpl_vars['contactaddress1']; ?>
" placeholder="<?php echo $this->_tpl_vars['LANG']['addcontact_address1']; ?>
" type="text" tabindex="5" requred="required" />
					</label>
				</div>				

				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareacity']; ?>
: (<?php echo $this->_tpl_vars['LANG']['required']; ?>
)</span>
						<input name="city" value="<?php echo $this->_tpl_vars['contactcity']; ?>
" placeholder="<?php echo $this->_tpl_vars['LANG']['addcontact_city']; ?>
" type="text" tabindex="7" requred="required" />
					</label>
				</div>	
				
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareapostcode']; ?>
: (<?php echo $this->_tpl_vars['LANG']['required']; ?>
)</span>
						<input name="postcode" value="<?php echo $this->_tpl_vars['contactpostcode']; ?>
" placeholder="<?php echo $this->_tpl_vars['LANG']['addcontact_postcode']; ?>
" type="text" tabindex="9" requred="required" />
					</label>
				</div>							
												
			
			
			</div><!-- .col2 -->
			
			
			<div class="col2 nomarginright">
			
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientarealastname']; ?>
: (<?php echo $this->_tpl_vars['LANG']['required']; ?>
)</span>
						<input name="lastname" value="<?php echo $this->_tpl_vars['contactlastname']; ?>
" placeholder="<?php echo $this->_tpl_vars['LANG']['addcontact_lastname']; ?>
" type="text" tabindex="2" requred="required" />
					</label>
				</div>			
			
			
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareacompanyname']; ?>
:</span>
						<input name="companyname" value="<?php echo $this->_tpl_vars['contactcompanyname']; ?>
" placeholder="<?php echo $this->_tpl_vars['LANG']['addcontact_company']; ?>
" type="text" tabindex="4" />
					</label>
				</div>
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareaphonenumber']; ?>
: (<?php echo $this->_tpl_vars['LANG']['required']; ?>
)</span>
						<input name="phonenumber" value="<?php echo $this->_tpl_vars['contactphonenumber']; ?>
" placeholder="<?php echo $this->_tpl_vars['LANG']['addcontact_phone']; ?>
" type="tel" tabindex="6" requred="required" />
					</label>
				</div>							

				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareaaddress2']; ?>
: (<?php echo $this->_tpl_vars['LANG']['required']; ?>
)</span>
						<input name="address2" value="<?php echo $this->_tpl_vars['contactaddress2']; ?>
" placeholder="<?php echo $this->_tpl_vars['LANG']['addcontact_address2']; ?>
" type="text" tabindex="8" requred="required" />
					</label>
				</div>
				

				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareastate']; ?>
: (<?php echo $this->_tpl_vars['LANG']['required']; ?>
)</span>
						<input name="state" value="<?php echo $this->_tpl_vars['contactstate']; ?>
" placeholder="<?php echo $this->_tpl_vars['LANG']['addcontact_state']; ?>
" type="text" tabindex="10" requred="required" />
					</label>
				</div>
																								
			
			</div><!-- .col2 -->
			
			<div class="clear">&nbsp;</div>
			
			<div class="col1">
			
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['subaccountactivate']; ?>
:</span>
						<input type="checkbox" name="subaccount" id="subaccount"<?php if ($this->_tpl_vars['subaccount']): ?> checked<?php endif; ?> /> <label for="subaccount"><?php echo $this->_tpl_vars['LANG']['subaccountactivatedesc']; ?>
</label>
					</label>
				</div>
				
				
				
				
				<div class="subaccountfields"<?php if (! $this->_tpl_vars['subaccount']): ?> style="display:none;"<?php endif; ?>>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareapassword']; ?>
:</span>
						<input type="password" name="password" id="newpw" />
					</label>
				</div>
				
				<div class="subaccountfields"<?php if (! $this->_tpl_vars['subaccount']): ?> style="display:none;"<?php endif; ?>>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareaconfirmpassword']; ?>
:</span>
						<input type="password" name="password2" />
					</label>
				</div>
				
				
				<div class="subaccountfields"<?php if (! $this->_tpl_vars['subaccount']): ?> style="display:none;"<?php endif; ?>>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['subaccountpermissions']; ?>
:</span>
						<input type="checkbox" name="permissions[]" id="permprofile" value="profile"<?php if (in_array ( 'profile' , $this->_tpl_vars['permissions'] )): ?> checked<?php endif; ?> /> <label for="permprofile"><?php echo $this->_tpl_vars['LANG']['subaccountpermsprofile']; ?>
</label><br />
<input type="checkbox" name="permissions[]" id="permcontacts" value="contacts"<?php if (in_array ( 'contacts' , $this->_tpl_vars['permissions'] )): ?> checked<?php endif; ?> /> <label for="permcontacts"><?php echo $this->_tpl_vars['LANG']['subaccountpermscontacts']; ?>
</label><br />
<input type="checkbox" name="permissions[]" id="permproducts" value="products"<?php if (in_array ( 'products' , $this->_tpl_vars['permissions'] )): ?> checked<?php endif; ?> /> <label for="permproducts"><?php echo $this->_tpl_vars['LANG']['subaccountpermsproducts']; ?>
</label><br />
<input type="checkbox" name="permissions[]" id="permmanageproducts" value="manageproducts"<?php if (in_array ( 'manageproducts' , $this->_tpl_vars['permissions'] )): ?> checked<?php endif; ?> /> <label for="permmanageproducts"><?php echo $this->_tpl_vars['LANG']['subaccountpermsmanageproducts']; ?>
</label><br />
<input type="checkbox" name="permissions[]" id="permdomains" value="domains"<?php if (in_array ( 'domains' , $this->_tpl_vars['permissions'] )): ?> checked<?php endif; ?> /> <label for="permdomains"><?php echo $this->_tpl_vars['LANG']['subaccountpermsdomains']; ?>
</label><br />
<input type="checkbox" name="permissions[]" id="permmanagedomains" value="managedomains"<?php if (in_array ( 'managedomains' , $this->_tpl_vars['permissions'] )): ?> checked<?php endif; ?> /> <label for="permmanagedomains"><?php echo $this->_tpl_vars['LANG']['subaccountpermsmanagedomains']; ?>
</label><br />
<input type="checkbox" name="permissions[]" id="perminvoices" value="invoices"<?php if (in_array ( 'invoices' , $this->_tpl_vars['permissions'] )): ?> checked<?php endif; ?> /> <label for="perminvoices"><?php echo $this->_tpl_vars['LANG']['subaccountpermsinvoices']; ?>
</label><br />
<input type="checkbox" name="permissions[]" id="permtickets" value="tickets"<?php if (in_array ( 'tickets' , $this->_tpl_vars['permissions'] )): ?> checked<?php endif; ?> /> <label for="permtickets"><?php echo $this->_tpl_vars['LANG']['subaccountpermstickets']; ?>
</label><br />
<input type="checkbox" name="permissions[]" id="permaffiliates" value="affiliates"<?php if (in_array ( 'affiliates' , $this->_tpl_vars['permissions'] )): ?> checked<?php endif; ?> /> <label for="permaffiliates"><?php echo $this->_tpl_vars['LANG']['subaccountpermsaffiliates']; ?>
</label><br />
<input type="checkbox" name="permissions[]" id="permemails" value="emails"<?php if (in_array ( 'emails' , $this->_tpl_vars['permissions'] )): ?> checked<?php endif; ?> /> <label for="permemails"><?php echo $this->_tpl_vars['LANG']['subaccountpermsemails']; ?>
</label><br />
<input type="checkbox" name="permissions[]" id="permorders" value="orders"<?php if (in_array ( 'orders' , $this->_tpl_vars['permissions'] )): ?> checked<?php endif; ?> /> <label for="permorders"><?php echo $this->_tpl_vars['LANG']['subaccountpermsorders']; ?>
</label>
					</label>
				</div>
				
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareacontactsemails']; ?>
:</span>
						<input type="checkbox" name="generalemails" id="generalemails" value="1"<?php if ($this->_tpl_vars['generalemails']): ?> checked<?php endif; ?> />
              <label for="generalemails"><?php echo $this->_tpl_vars['LANG']['clientareacontactsemailsgeneral']; ?>
</label><br />
              <input type="checkbox" name="productemails" id="productemails" value="1"<?php if ($this->_tpl_vars['productemails']): ?> checked<?php endif; ?> />
              <label for="productemails"><?php echo $this->_tpl_vars['LANG']['clientareacontactsemailsproduct']; ?>
</label><br />
              <input type="checkbox" name="domainemails" id="domainemails" value="1"<?php if ($this->_tpl_vars['domainemails']): ?> checked<?php endif; ?> />
              <label for="domainemails"><?php echo $this->_tpl_vars['LANG']['clientareacontactsemailsdomain']; ?>
</label><br />
              <input type="checkbox" name="invoiceemails" id="invoiceemails" value="1"<?php if ($this->_tpl_vars['invoiceemails']): ?> checked<?php endif; ?> />
              <label for="invoiceemails"><?php echo $this->_tpl_vars['LANG']['clientareacontactsemailsinvoice']; ?>
</label><br />
              <input type="checkbox" name="supportemails" id="supportemails" value="1"<?php if ($this->_tpl_vars['supportemails']): ?> checked<?php endif; ?> />
              <label for="supportemails"><?php echo $this->_tpl_vars['LANG']['clientareacontactsemailssupport']; ?>
</label>
					</label>
				</div>	
				
				<div style="height: 20px;"></div>															
							
			
  <p class="center">
    <input type="submit" value="<?php echo $this->_tpl_vars['LANG']['clientareasavechanges']; ?>
" class="button1 color2" />
    <input type="reset" value="<?php echo $this->_tpl_vars['LANG']['clientareacancel']; ?>
" class="button1 color1" />
  </p>				
			
			</div>		
			
		</div>    
  
</form>