<?php

echo $header; ?>
<div id="content">
  <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>
  <?php if ($error_warning) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <div class="box">
    <div class="heading">
	  <h1><img src="controller/module/replicacao-futura/logo-futura.png" width="20" height="20" style="margin-right:8px;"/><?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><b><?php echo $text_Grlconf; ?></b></td>
		<td>&nbsp;</td>
      </tr>	  
		
		
      <tr>
        <td><?php echo $entry_order_status; ?></td>
        <td><select name="select_order_status_id">
          <?php foreach ($order_statuses as $order_status) { ?>
          <?php if ($order_status['order_status_id'] == $select_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_order_status_pagseguro; ?></td>
        <td><select name="select_order_status_pagseguro_id">
          <?php foreach ($order_statuses as $order_status) { ?>
          <?php if ($order_status['order_status_id'] == $select_order_status_pagseguro_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_order_status_mercadopago; ?></td>
        <td><select name="select_order_status_mercadopago_id">
          <?php foreach ($order_statuses as $order_status) { ?>
          <?php if ($order_status['order_status_id'] == $select_order_status_mercadopago_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_order_status_cielo; ?></td>
        <td><select name="select_order_status_cielo_id">
          <?php foreach ($order_statuses as $order_status) { ?>
          <?php if ($order_status['order_status_id'] == $select_order_status_cielo_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_order_status_erede; ?></td>
        <td><select name="select_order_status_erede_id">
          <?php foreach ($order_statuses as $order_status) { ?>
          <?php if ($order_status['order_status_id'] == $select_order_status_erede_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_order_status_BCash; ?></td>
        <td><select name="select_order_status_bcash_id">
          <?php foreach ($order_statuses as $order_status) { ?>
          <?php if ($order_status['order_status_id'] == $select_order_status_bcash_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_order_status_Paypal; ?></td>
	  <td><select name="select_order_status_paypal_id">
		<?php foreach ($order_statuses as $order_status) { ?>
		<?php if ($order_status['order_status_id'] == $select_order_status_paypal_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_order_status_padrao; ?></td>
	  <td><select name="select_order_status_padrao_id">
		<?php foreach ($order_statuses as $order_status) { ?>
		<?php if ($order_status['order_status_id'] == $select_order_status_padrao_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_order_status_cancel; ?></td>
        <td><select name="select_order_status_canc_id">
          <?php foreach ($order_statuses as $order_status_canc) { ?>
          <?php if ($order_status_canc['order_status_id'] == $select_order_status_canc_id) { ?>
          <option value="<?php echo $order_status_canc['order_status_id']; ?>" selected="selected"><?php echo $order_status_canc['name']; ?></option>
          <?php } else { ?>
          <option value="<?php echo $order_status_canc['order_status_id']; ?>"><?php echo $order_status_canc['name']; ?></option>
          <?php } ?>
          <?php } ?>
        </select></td>
      </tr>
	  
      <tr>
        <td><?php echo $language_default; ?></td>
        <td><select name="select_language_default">
          <?php foreach ($languages as $language) { ?>
          <?php if ($language['language_id'] == $select_language_default) { ?>
          <option value="<?php echo $language['language_id']; ?>" selected="selected"><?php echo $language['name']; ?></option>
          <?php } else { ?>
          <option value="<?php echo $language['language_id']; ?>"><?php echo $language['name']; ?></option>
          <?php } ?>
          <?php } ?>
        </select></td>
      </tr>	    
	  
      <tr>
        <td><?php echo $store_default; ?></td>
        <td><select name="select_store_default">
		  <option value="0" selected="selected">Padrao</option>
          <?php foreach ($stores as $store) { ?>
          <?php if ($store['store_id'] == $select_store_default) { ?>
          <option value="<?php echo $store['store_id']; ?>" selected="selected"><?php echo $store['name']; ?></option>
          <?php } else { ?>
          <option value="<?php echo $store['store_id']; ?>"><?php echo $store['name']; ?></option>
          <?php } ?>
          <?php } ?>
        </select></td>
      </tr>	 
	  
      <tr>
        <td><?php echo $unidade_peso_kg; ?></td>
        <td><select name="select_peso">
          <?php foreach ($weight_classes as $weight_class) { ?>
          <?php if ($weight_class['weight_class_id'] == $select_peso) { ?>
          <option value="<?php echo $weight_class['weight_class_id']; ?>" selected="selected"><?php echo $weight_class['title']; ?></option>
          <?php } else { ?>
          <option value="<?php echo $weight_class['weight_class_id']; ?>"><?php echo $weight_class['title']; ?></option>
          <?php } ?>
          <?php } ?>
        </select></td>
      </tr>	  
	  
      <tr>
        <td><?php echo $unidade_cm; ?></td>
        <td><select name="select_comprimento">
          <?php foreach ($length_classes as $length_class) { ?>
          <?php if ($length_class['length_class_id'] == $select_comprimento) { ?>
          <option value="<?php echo $length_class['length_class_id']; ?>" selected="selected"><?php echo $length_class['title']; ?></option>
          <?php } else { ?>
          <option value="<?php echo $length_class['length_class_id']; ?>"><?php echo $length_class['title']; ?></option>
          <?php } ?>
          <?php } ?>
        </select></td>
      </tr> 
	  
    </table>

	<table class="form">
	  <tr>
	    <td> <b><?php echo $text_ftpconf; ?></b> </td>
		<td>&nbsp;</td>
	  </tr>
	  
	  <tr>
	    <td><?php echo $text_ServerFTP; ?></td>		
		<td>
			<input name="futura_serverftp" type="text" id="futura_serverftp" value="<?php echo $futura_serverftp; ?>" />	
	        <?php if ($error_serverftp) { ?>
	        <span class="error"><?php echo $error_serverftp; ?></span>
	        <?php  } ?>		
		</td>		
	  </tr>
	  
	  <tr>
	    <td><?php echo $text_UserFTP; ?></td>		
		<td>
			<input name="futura_userftp" type="text" id="futura_userftp" value="<?php echo $futura_userftp; ?>" />
	         <?php if ($error_userftp) { ?>
	         <span class="error"><?php echo $error_userftp; ?></span>
	         <?php  } ?>
		</td>		
	  </tr>
	  
	  <tr>
	    <td><?php echo $text_senhaFTP; ?></td>		
		<td>
			<input name="futura_senhaftp" type="password" id="futura_senhaftp" value="<?php echo $futura_senhaftp; ?>" />
	         <?php if ($error_senhaftp) { ?>
	         <span class="error"><?php echo $error_senhaftp; ?></span>
	         <?php  } ?>
		</td>		
	  </tr>
	  
	  <tr>
	    <td><?php echo $text_PortaFTP; ?></td>		
		<td>
			<input name="futura_portaftp" type="text" id="futura_portaftp" value="<?php echo $futura_portaftp; ?>" />
		</td>		
	  </tr>
	  
	  <tr>
	    <td><?php echo $text_diretorioftp; ?></td>		
		<td>
			<input name="futura_diretorioftp" type="text" id="futura_diretorioftp" value="<?php echo $futura_diretorioftp; ?>" />
		</td>		
	  </tr>
	
	</table>

</table>
 
</form>
</div>
</div>
<script type="text/javascript">
<!--
$.tabs('.tabs a'); 
//-->
</script>
<?php echo $footer; ?>
