<?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>	  
		
	  <td valign="top"><b><?php echo $orc_status; ?></b></td>
	  <td>
	  <?php if ($orcamento_status == 1) { ?>
	  <label>
	  <input type="radio" name="orcamento_status" value="1" id="ativaST_1" checked="checked"/>
	  Ativo</label>
	  <label>
	  <input type="radio" name="orcamento_status" value="0" id="ativaST_0"/>
	  Inativo</label>
	  <?php } else { ?>
	  <label>
	  <input type="radio" name="orcamento_status" value="1" id="ativaST_1"/>
	  Ativo</label>
	  <label>
	  <input type="radio" name="orcamento_status" value="0" id="ativaST_0" checked="checked"/>
	  Inativo</label>
	  <?php } ?>
	  <br />
      </p>
	  </td>
	  
      <tr>
        <td><?php echo $tppgto_iniciado; ?></td>
        <td><select name="orcamento_status_iniciado">
          <?php foreach ($order_statuses as $order_status) { ?>
          <?php if ($order_status['order_status_id'] == $orcamento_status_iniciado) { ?>
          <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 $tppgto_Baixa; ?></td>
        <td><select name="orcamento_status_baixa">
          <?php foreach ($order_statuses as $order_status) { ?>
          <?php if ($order_status['order_status_id'] == $orcamento_status_baixa) { ?>
          <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 $tppgto_cancelado; ?></td>
        <td><select name="orcamento_status_cancelado">
          <?php foreach ($order_statuses as $order_status) { ?>
          <?php if ($order_status['order_status_id'] == $orcamento_status_cancelado) { ?>
          <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 $instrucoes_orcamento; ?></td>
        <td><textarea  rows="7" cols="80" id ="orcamento_instrucoes" name="orcamento_instrucoes" /><?php echo $orcamento_instrucoes; ?></textarea></td>
      </tr>  

      <tr>
	    <td><?php echo $desc_pgto; ?></td>
        <td>
			<input type="text" name="orcamento_descricao" id="orcamento_descricao" size="60" value="<?php echo $orcamento_descricao; ?>"/>
			<?php if ($error_orcamento_descricao) { ?>
			<span class="error"><?php echo $error_orcamento_descricao; ?></span>
			<?php  } ?>				
		</td>
      </tr> 
	  
    </table>

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