<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <h1><?php echo $heading_title; ?></h1>
  <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="customer">
	<?php if($customername==''){ ?>
		<h2><?php echo $entry_new; ?></h2>
    <div class="content">		
		<div ><a href="<?php echo $customercreate; ?>"  class="button"><span><?php echo $button_create; ?></span></a>&nbsp;&nbsp;&nbsp;<?php echo $entry_create; ?></div>	
        <?php if ($error_customer_email_exist) { ?>
			<span class="error"><?php echo $error_customer_email_exist; ?></span>
        <?php } ?>	
	</div>
	<h2><?php echo $entry_or; ?></h2><br><br>
    <h2><?php echo $entry_email; ?></h2>
    <div class="content">
      <table class="form">
        <tr>
          <td><span class="required">*</span> <?php echo $entry_customer; ?></td>
          <td><input type="customer_email" name="customer_email" value="<?php echo $customer_email; ?>" />
            <?php if ($error_customer_email) { ?>
            <span class="error"><?php echo $error_customer_email; ?></span>
            <?php } ?>
		  </td>
        </tr>		
        <tr>
          <td><span class="required">*</span><?php echo $entry_customername; ?></td>
          <td><div>customername</div></td>
        </tr>
      </table>
    </div>
	<?php }else { ?>	
    <div class="content">
      <table class="form">
        <tr>
         <td><span class="required">*</span><?php echo $entry_customername; ?></td>
         <td><div><?php echo $customername; ?> </div></td> 
       </tr>
      </table>
	  <h2><?php echo $entry_transfer_payments; ?></h2>
      <table class="form">
        <tr>
         <td><span class="required">*</span> <?php echo $entry_amount; ?></td>
         <td><div><input type="amount" name="amount" value="<?php echo $amount; ?>" /> </div> 
            <?php if ($error_balance) { ?>
            <span class="error"><?php echo $error_balance; ?></span>
            <?php } ?>
		</td>
       </tr>
      </table>
	</div>	
	<?php } ?>
	 <div class="buttons">
      <div class="left"><a href="<?php echo $back; ?>" class="button"><span><?php echo $button_back; ?></span></a></div>
      <div class="right"><a onclick="$('#customer').submit();" class="button"><span><?php echo $button_continue; ?></span></a></div>
    </div>
  </form>
  <?php echo $content_bottom; ?></div>
<?php echo $footer; ?>