
<?php echo $header; ?>

<?php		if (substr(VERSION, 0, 1) == '1') { ?>

<div id="content">
<?php if ($error_warning) { ?>
<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>

<style>
input.bouton{
  cursor: pointer;
	text-decoration: none;
	color: #FFF;
	display: inline-block;
	padding: 5px 15px 5px 15px;
	background: #003A88;
	-webkit-border-radius: 10px 10px 10px 10px;
	-moz-border-radius: 10px 10px 10px 10px;
	-khtml-border-radius: 10px 10px 10px 10px;
	border-radius: 10px 10px 10px 10px;
}
</style>

<div class="box">
  <div class="left"></div>
  <div class="right"></div>

  <div class="heading">
    <h1><img src="view/image/payment.png" alt="" />&nbsp;&nbsp;<?php echo $heading_title; ?></h1>
    <div class="buttons"><a onclick="$('#form').submit();" class="button"><span><?php echo $button_save; ?></span></a><a onclick="location = '<?php echo $cancel; ?>';" class="button"><span><?php echo $button_cancel; ?></span></a></div>
  </div>
  <div class="content">
    <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
      <table class="form">
        <tr>
          <td><span class="required">*</span> <?php echo $entry_cfg_site; ?></td>
          <td>
          <?php echo $text_cadre_cfg; ?><br>
          <textarea name="payplugh_cfg_site" cols="135" rows="15"><?php echo $payplugh_cfg_site; ?></textarea>
          
          <form action="<?php echo $action_cfg; ?>" method="post" enctype="multipart/form-data" id="form_cfg">
                
                <p><?php echo $text_entrez_cfg; ?></p>
                <?php echo $text_email_cfg; ?>
                <input type="text" name="email_cfg" id="email_cfg"><br><br>
                <?php echo $text_mdp_cfg; ?>
                <input type="password" name="password" id="password"><br><br>
                <input type="submit" value="<?php echo $text_charge_cfg; ?>" class="bouton" id="cfg_Button" />
                <br><?php echo $text_infos_cfg; ?>
                
          </form>
          
            <?php if ($error_cfg_site) { ?>
            <span class="error"><?php echo '<br>'.$error_cfg_site; ?></span>
            <?php } ?></td>
        </tr>
        <tr>
          <td><span class="required">*</span> <?php echo $entry_montant_mini; ?></td>
          <?php if ($payplugh_montant_mini == '') { $payplugh_montant_mini = '1'; }?>
          <td><input type="text" name="payplugh_montant_mini" value="<?php echo $payplugh_montant_mini; ?>" />
          <i><?php echo $text_montant_mini; ?><b><?php if(isset($amount_min)) {echo $amount_min;} else {echo 'nd';} ?></b></i>
            <?php if ($error_montant_mini) { ?>
            <span class="error"><?php echo $error_montant_mini; ?></span>
            <?php } ?></td>
        </tr>
        <tr>
          <td><span class="required">*</span> <?php echo $entry_montant_maxi; ?></td>
          <?php if ($payplugh_montant_maxi == '') { $payplugh_montant_maxi = '1000'; }?>
          <td><input type="text" name="payplugh_montant_maxi" value="<?php echo $payplugh_montant_maxi; ?>" />
          <i><?php echo $text_montant_maxi; ?><b><?php if(isset($amount_max)){echo $amount_max;} else {echo 'nd';} ?></b></i>
            <?php if ($error_montant_maxi) { ?>
            <span class="error"><?php echo $error_montant_maxi; ?></span>
            <?php } ?></td>
        </tr>
        
        <input type="hidden" name="payplugh_order_test_id" value="0">

        <tr>
          <td><?php echo $entry_order_status; ?></td>
          <?php if ($payplugh_order_status_id == '') { $payplugh_order_status_id = '1'; }?>
          <td><select name="payplugh_order_status_id">
              <?php foreach ($order_statuses as $order_status) { ?>
              <?php if ($order_status['order_status_id'] == $payplugh_order_status_id) { ?>
              <option value="<?php echo $order_status['order_status_id']; ?>" selected="selected"><?php echo $order_status['name']; ?></option>
              <?php } else { ?>
              <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
              <?php } ?>
              <?php } ?>
            </select></td>
        </tr>
        <tr>
          <td><?php echo $entry_geo_zone; ?></td>
          <td><select name="payplugh_geo_zone_id">
              <option value="0"><?php echo $text_all_zones; ?></option>
              <?php foreach ($geo_zones as $geo_zone) { ?>
              <?php if ($geo_zone['geo_zone_id'] == $payplugh_geo_zone_id) { ?>
              <option value="<?php echo $geo_zone['geo_zone_id']; ?>" selected="selected"><?php echo $geo_zone['name']; ?></option>
              <?php } else { ?>
              <option value="<?php echo $geo_zone['geo_zone_id']; ?>"><?php echo $geo_zone['name']; ?></option>
              <?php } ?>
              <?php } ?>
            </select></td>
        </tr>
        <tr>
          <td><?php echo $entry_status; ?></td>
          <td><select name="payplugh_status">
              <?php if (($payplugh_status)xor($payplugh_status == '')) { ?>
              <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
              <option value="0"><?php echo $text_disabled; ?></option>
              <?php } else { ?>
              <option value="1"><?php echo $text_enabled; ?></option>
              <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
              <?php } ?>
            </select></td>
        </tr>
        <tr>
          <td><?php echo $entry_sort_order; ?></td>
          <?php if ($payplugh_sort_order == '') { $payplugh_sort_order = '1'; }?>
          <td><input type="text" name="payplugh_sort_order" value="<?php echo $payplugh_sort_order; ?>" size="1" /></td>
        </tr>
      </table>
    </form>
  <div class="div2">&nbsp;&nbsp;&nbsp;R&eacute;alis&eacute; et Propuls&eacute; Par <a href="http://www.hosteco.fr" target="_blank"><b>Hosteco.fr</b></a> &copy; 2013-2014 Tous droits r&eacute;serv&eacute;s, agr&eacute;&eacute; PayPlug.</div>
   </div>
 </div>
</div>
		
<?php	}  ?>

<?php  echo $footer; ?>
