<?php /* Smarty version 2.6.28, created on 2017-03-13 18:08:27
         compiled from /home/solusito/public_html/templates/eco-net-v3-5/clientareadetails.tpl */ ?>
<script type="text/javascript" src="includes/jscript/statesdropdown.js"></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']['clientareanavdetails']; ?>
</h2>
		</div><!-- .bigheader -->

<?php if ($this->_tpl_vars['successful']): ?>
	<div class="notice notice-success">
		<div class="inside">
			<p><?php echo $this->_tpl_vars['LANG']['changessavedsuccessfully']; ?>
</p>
		</div>
	</div>
<?php endif; ?>

<?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=details">
  <input type="hidden" name="save" value="true" />
  
  		<div class="feildset">
		
			<div class="col2">
			
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareafirstname']; ?>
:</span>						
						<?php if (in_array ( 'firstname' , $this->_tpl_vars['uneditablefields'] )): ?><?php echo $this->_tpl_vars['clientfirstname']; ?>
<?php else: ?><input type="text" name="firstname" value="<?php echo $this->_tpl_vars['clientfirstname']; ?>
" autofocus="autofocus" /><?php endif; ?>
					</label>
				</div>
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareaemail']; ?>
:</span>						
						<?php if (in_array ( 'email' , $this->_tpl_vars['uneditablefields'] )): ?><?php echo $this->_tpl_vars['clientemail']; ?>
<?php else: ?><input type="text" name="email" value="<?php echo $this->_tpl_vars['clientemail']; ?>
" /><?php endif; ?>
					</label>
				</div>
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareacountry']; ?>
:</span>						
						<?php if (in_array ( 'country' , $this->_tpl_vars['uneditablefields'] )): ?><?php echo $this->_tpl_vars['clientcountry']; ?>
<?php else: ?><?php echo $this->_tpl_vars['clientcountriesdropdown']; ?>
<?php endif; ?>
					</label>
				</div>				
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareaaddress1']; ?>
:</span>						
						<?php if (in_array ( 'address1' , $this->_tpl_vars['uneditablefields'] )): ?><?php echo $this->_tpl_vars['clientaddress1']; ?>
<?php else: ?><input type="text" name="address1" value="<?php echo $this->_tpl_vars['clientaddress1']; ?>
" /><?php endif; ?>
					</label>
				</div>
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareacity']; ?>
:</span>						
						<?php if (in_array ( 'city' , $this->_tpl_vars['uneditablefields'] )): ?><?php echo $this->_tpl_vars['clientcity']; ?>
<?php else: ?><input type="text" name="city" value="<?php echo $this->_tpl_vars['clientcity']; ?>
" /><?php endif; ?>
					</label>
				</div>				
				
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareapostcode']; ?>
:</span>						
						<?php if (in_array ( 'postcode' , $this->_tpl_vars['uneditablefields'] )): ?><?php echo $this->_tpl_vars['clientpostcode']; ?>
<?php else: ?><input type="text" name="postcode" value="<?php echo $this->_tpl_vars['clientpostcode']; ?>
" /><?php endif; ?>
					</label>
				</div>																										
			
			</div><!-- .col2 --> 
			
			
			<div class="col2 nomarginright">

				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientarealastname']; ?>
:</span>						
						<?php if (in_array ( 'lastname' , $this->_tpl_vars['uneditablefields'] )): ?><?php echo $this->_tpl_vars['clientlastname']; ?>
<?php else: ?><input type="text" name="lastname" value="<?php echo $this->_tpl_vars['clientlastname']; ?>
" size="25" /><?php endif; ?>
					</label>
				</div>
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareacompanyname']; ?>
:</span>						
						<?php if (in_array ( 'companyname' , $this->_tpl_vars['uneditablefields'] )): ?><?php echo $this->_tpl_vars['clientcompanyname']; ?>
<?php else: ?><input type="text" name="companyname" value="<?php echo $this->_tpl_vars['clientcompanyname']; ?>
" /><?php endif; ?>
					</label>
				</div>
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareaaddress2']; ?>
:</span>						
						<?php if (in_array ( 'address2' , $this->_tpl_vars['uneditablefields'] )): ?><?php echo $this->_tpl_vars['clientaddress2']; ?>
<?php else: ?><input type="text" name="address2" value="<?php echo $this->_tpl_vars['clientaddress2']; ?>
" /><?php endif; ?>
					</label>
				</div>
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareastate']; ?>
:</span>						
						<?php if (in_array ( 'state' , $this->_tpl_vars['uneditablefields'] )): ?><?php echo $this->_tpl_vars['clientstate']; ?>
<?php else: ?><input type="text" name="state" value="<?php echo $this->_tpl_vars['clientstate']; ?>
" /><?php endif; ?>
					</label>
				</div>									

				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['clientareaphonenumber']; ?>
:</span>						
						<?php if (in_array ( 'phonenumber' , $this->_tpl_vars['uneditablefields'] )): ?><?php echo $this->_tpl_vars['clientphonenumber']; ?>
<?php else: ?><input type="text" name="phonenumber" value="<?php echo $this->_tpl_vars['clientphonenumber']; ?>
" /><?php endif; ?>
					</label>
				</div>											
			
			</div><!-- .col2 -->
			
			<div class="clear">&nbsp;</div>
			
			
		</div>
  

 		<div class="feildset">
		
			<div class="col1">
			
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['paymentmethod']; ?>
:</span>						
						<select name="paymentmethod">
                <option value="none"><?php echo $this->_tpl_vars['LANG']['paymentmethoddefault']; ?>
</option>
<?php $_from = $this->_tpl_vars['paymentmethods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['method']):
?>
                <option value="<?php echo $this->_tpl_vars['method']['sysname']; ?>
"<?php if ($this->_tpl_vars['method']['sysname'] == $this->_tpl_vars['defaultpaymentmethod']): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['method']['name']; ?>
</option>
<?php endforeach; endif; unset($_from); ?>
              </select>
					</label>
				</div>
				
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['defaultbillingcontact']; ?>
:</span>						
						<select name="billingcid">
                <option value="0"><?php echo $this->_tpl_vars['LANG']['usedefaultcontact']; ?>
</option>
<?php $_from = $this->_tpl_vars['contacts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['contact']):
?>
                <option value="<?php echo $this->_tpl_vars['contact']['id']; ?>
"<?php if ($this->_tpl_vars['contact']['id'] == $this->_tpl_vars['billingcid']): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['contact']['name']; ?>
</option>
<?php endforeach; endif; unset($_from); ?>
              </select>
					</label>
				</div>
				
				
				<?php if ($this->_tpl_vars['emailoptoutenabled']): ?>
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['LANG']['emailoptout']; ?>
:</span>						
						<input type="checkbox" value="1" name="emailoptout" id="emailoptout" <?php if ($this->_tpl_vars['emailoptout']): ?> checked<?php endif; ?> /> <?php echo $this->_tpl_vars['LANG']['emailoptoutdesc']; ?>

					</label>
				</div>	
				<?php endif; ?>										
			
			
			</div>
			
		</div>	


 <?php if ($this->_tpl_vars['customfields']): ?>

 		<div class="feildset">
		
			<div class="col1">
			
			<?php $_from = $this->_tpl_vars['customfields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['customfield']):
?>
				<div>
					<label>
						<span><?php echo $this->_tpl_vars['customfield']['name']; ?>
:</span>						
						<?php echo $this->_tpl_vars['customfield']['input']; ?>
 <?php echo $this->_tpl_vars['customfield']['required']; ?>
 <?php echo $this->_tpl_vars['customfield']['description']; ?>

					</label>
				</div>			
			 <?php endforeach; endif; unset($_from); ?>
			 
			</div>
			
		</div>

  <?php endif; ?>
  
  <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>
</form>