<?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 valign="top"><b><?php echo "Status:"; ?></b></td>
		  <td>
		  <?php if ($descontoporpagamento_status == 1) { ?>
		  <label>
		  <input type="radio" name="descontoporpagamento_status" value="1" id="ativaST_1" checked="checked"/>
		  Ativo</label>
		  <label>
		  <input type="radio" name="descontoporpagamento_status" value="0" id="ativaST_0"/>
		  Inativo</label>
		  <?php } else { ?>
		  <label>
		  <input type="radio" name="descontoporpagamento_status" value="1" id="ativaST_1"/>
		  Ativo</label>
		  <label>
		  <input type="radio" name="descontoporpagamento_status" value="0" id="ativaST_0" checked="checked"/>
		  Inativo</label>
		  <?php } ?>
		  <br />
		  </p>
		  </td>		
	  <tr>
	
	  <tr>
        <td><b><?php echo $text_Grlconf; ?></b></td>
		<td>&nbsp;</td>
      </tr>	  
	  <?php foreach($tipos_pagamento as $key => $value){?>
		  <tr>
			<td><?php echo $tipos_pagamento[$key] . ' (%):'; ?></td>		
			<td>
			    <?php $varvalor = 'descontopagamento_' . $tipos_pagamento[$key]; ?>
				<input type="text" name="<?php echo 'descontopagamento_' . $tipos_pagamento[$key]; ?>" id="<?php echo 'descontopagamento_' . $tipos_pagamento[$key]; ?>" value="<?php echo $$varvalor ?>" />
			</td>		
		  </tr>	
	  <?php } ?>
	
	</table>
 
</form>
</div>
</div>
<script type="text/javascript">
<!--
$.tabs('.tabs a'); 
//-->
</script>
<?php echo $footer; ?>
