<div id="orders_orders_form_form4" style='display: none; width: 1px; height: 0px; overflow: scroll'>
<?php $sc_hidden_no = 1; $sc_hidden_yes = 0; ?>
   <a name="bloco_0"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_8"><!-- bloco_c -->
<?php
?>
<TABLE align="center" id="hidden_bloco_8" class="scFormTable" width="100%" style="height: 100%;"><?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['order']))
           {
               $this->nmgp_cmp_readonly['order'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['adate']))
           {
               $this->nmgp_cmp_readonly['adate'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['edate']))
           {
               $this->nmgp_cmp_readonly['edate'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['quantity']))
           {
               $this->nmgp_cmp_readonly['quantity'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['amount']))
           {
               $this->nmgp_cmp_readonly['amount'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['shipped']))
           {
               $this->nmgp_cmp_readonly['shipped'] = 'on';
           }
?>
   <tr>


    <TD colspan="2" height="20" class="scFormBlock">
     <TABLE style="padding: 0px; spacing: 0px; border-width: 0px;" width="100%" height="100%">
      <TR>
       <TD align="" valign="" class="scFormBlockFont"><?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col) { echo "<table style=\"border-collapse: collapse; height: 100%; width: 100%\"><tr><td style=\"vertical-align: middle; border-width: 0px; padding: 0px 2px 0px 0px\"><img src=\"" . $this->Ini->path_icones . "/" . $this->Ini->Block_img_col . "\" style=\"border: 0px; float: left\" class=\"sc-ui-block-control\"></td><td style=\"border-width: 0px; padding: 0px; width: 100%\" class=\"scFormBlockAlign\">"; } ?>Status Info<?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col) { echo "</td></tr></table>"; } ?></TD>
       
      </TR>
     </TABLE>
    </TD>

   </tr>
<?php $sStyleHidden_detail_dumb = ('' == $sStyleHidden_detail) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_detail_dumb" style="<?php echo $sStyleHidden_detail_dumb; ?>"></TD>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['open']))
           {
               $this->nmgp_cmp_readonly['open'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['shipped']))
    {
        $this->nm_new_label['shipped'] = "SHIPPED";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $shipped = $this->shipped;
   $sStyleHidden_shipped = '';
   if (isset($this->nmgp_cmp_hidden['shipped']) && $this->nmgp_cmp_hidden['shipped'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['shipped']);
       $sStyleHidden_shipped = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_shipped = 'display: none;';
   $sStyleReadInp_shipped = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["shipped"]) &&  $this->nmgp_cmp_readonly["shipped"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['shipped']);
       $sStyleReadLab_shipped = '';
       $sStyleReadInp_shipped = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['shipped']) && $this->nmgp_cmp_hidden['shipped'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="shipped" value="<?php echo NM_encode_input($shipped) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_shipped" style="<?php echo $sStyleHidden_shipped; ?>;"><span id="id_label_shipped"><?php echo $this->nm_new_label['shipped']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_shipped" style="<?php echo $sStyleHidden_shipped; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["shipped"]) &&  $this->nmgp_cmp_readonly["shipped"] == "on")) { 

 ?>
<input type=hidden name="shipped" value="<?php echo NM_encode_input($shipped) . "\"><span id=\"id_ajax_label_shipped\">" . $shipped . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_shipped" class="sc-ui-readonly-shipped" style=";<?php echo $sStyleReadLab_shipped; ?>"><?php echo NM_encode_input($this->shipped); ?></span><span id="id_read_off_shipped" style="white-space: nowrap;<?php echo $sStyleReadInp_shipped; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_shipped" type=text name="shipped" value="<?php echo NM_encode_input($shipped) ?>"
 size=11 alt="{datatype: 'integer', maxLength: 11, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['shipped']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['shipped']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_shipped_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_shipped_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


<?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 2; ?>" >&nbsp;</TD>

<?php } 
?> 
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['dye']))
           {
               $this->nmgp_cmp_readonly['dye'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['open']))
    {
        $this->nm_new_label['open'] = "OPEN";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $open = $this->open;
   $sStyleHidden_open = '';
   if (isset($this->nmgp_cmp_hidden['open']) && $this->nmgp_cmp_hidden['open'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['open']);
       $sStyleHidden_open = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_open = 'display: none;';
   $sStyleReadInp_open = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["open"]) &&  $this->nmgp_cmp_readonly["open"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['open']);
       $sStyleReadLab_open = '';
       $sStyleReadInp_open = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['open']) && $this->nmgp_cmp_hidden['open'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="open" value="<?php echo NM_encode_input($open) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_open" style="<?php echo $sStyleHidden_open; ?>;"><span id="id_label_open"><?php echo $this->nm_new_label['open']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_open" style="<?php echo $sStyleHidden_open; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["open"]) &&  $this->nmgp_cmp_readonly["open"] == "on")) { 

 ?>
<input type=hidden name="open" value="<?php echo NM_encode_input($open) . "\"><span id=\"id_ajax_label_open\">" . $open . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_open" class="sc-ui-readonly-open" style=";<?php echo $sStyleReadLab_open; ?>"><?php echo NM_encode_input($this->open); ?></span><span id="id_read_off_open" style="white-space: nowrap;<?php echo $sStyleReadInp_open; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_open" type=text name="open" value="<?php echo NM_encode_input($open) ?>"
 size=11 alt="{datatype: 'integer', maxLength: 11, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['open']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['open']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_open_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_open_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


<?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 2; ?>" >&nbsp;</TD>

<?php } 
?> 
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['released']))
           {
               $this->nmgp_cmp_readonly['released'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['dye']))
    {
        $this->nm_new_label['dye'] = "DYE";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $dye = $this->dye;
   $sStyleHidden_dye = '';
   if (isset($this->nmgp_cmp_hidden['dye']) && $this->nmgp_cmp_hidden['dye'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['dye']);
       $sStyleHidden_dye = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_dye = 'display: none;';
   $sStyleReadInp_dye = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["dye"]) &&  $this->nmgp_cmp_readonly["dye"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['dye']);
       $sStyleReadLab_dye = '';
       $sStyleReadInp_dye = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['dye']) && $this->nmgp_cmp_hidden['dye'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="dye" value="<?php echo NM_encode_input($dye) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_dye" style="<?php echo $sStyleHidden_dye; ?>;"><span id="id_label_dye"><?php echo $this->nm_new_label['dye']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_dye" style="<?php echo $sStyleHidden_dye; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["dye"]) &&  $this->nmgp_cmp_readonly["dye"] == "on")) { 

 ?>
<input type=hidden name="dye" value="<?php echo NM_encode_input($dye) . "\"><span id=\"id_ajax_label_dye\">" . $dye . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_dye" class="sc-ui-readonly-dye" style=";<?php echo $sStyleReadLab_dye; ?>"><?php echo NM_encode_input($this->dye); ?></span><span id="id_read_off_dye" style="white-space: nowrap;<?php echo $sStyleReadInp_dye; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_dye" type=text name="dye" value="<?php echo NM_encode_input($dye) ?>"
 size=11 alt="{datatype: 'integer', maxLength: 11, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['dye']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['dye']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_dye_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_dye_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


<?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 2; ?>" >&nbsp;</TD>

<?php } 
?> 
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['value']))
           {
               $this->nmgp_cmp_readonly['value'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['released']))
    {
        $this->nm_new_label['released'] = "RELEASED";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $released = $this->released;
   $sStyleHidden_released = '';
   if (isset($this->nmgp_cmp_hidden['released']) && $this->nmgp_cmp_hidden['released'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['released']);
       $sStyleHidden_released = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_released = 'display: none;';
   $sStyleReadInp_released = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["released"]) &&  $this->nmgp_cmp_readonly["released"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['released']);
       $sStyleReadLab_released = '';
       $sStyleReadInp_released = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['released']) && $this->nmgp_cmp_hidden['released'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="released" value="<?php echo NM_encode_input($released) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_released" style="<?php echo $sStyleHidden_released; ?>;"><span id="id_label_released"><?php echo $this->nm_new_label['released']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_released" style="<?php echo $sStyleHidden_released; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["released"]) &&  $this->nmgp_cmp_readonly["released"] == "on")) { 

 ?>
<input type=hidden name="released" value="<?php echo NM_encode_input($released) . "\"><span id=\"id_ajax_label_released\">" . $released . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_released" class="sc-ui-readonly-released" style=";<?php echo $sStyleReadLab_released; ?>"><?php echo NM_encode_input($this->released); ?></span><span id="id_read_off_released" style="white-space: nowrap;<?php echo $sStyleReadInp_released; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_released" type=text name="released" value="<?php echo NM_encode_input($released) ?>"
 size=11 alt="{datatype: 'integer', maxLength: 11, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['released']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['released']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_released_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_released_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


<?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 2; ?>" >&nbsp;</TD>

<?php } 
?> 
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['fgi']))
           {
               $this->nmgp_cmp_readonly['fgi'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['value']))
    {
        $this->nm_new_label['value'] = "VALUE";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $value = $this->value;
   $sStyleHidden_value = '';
   if (isset($this->nmgp_cmp_hidden['value']) && $this->nmgp_cmp_hidden['value'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['value']);
       $sStyleHidden_value = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_value = 'display: none;';
   $sStyleReadInp_value = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["value"]) &&  $this->nmgp_cmp_readonly["value"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['value']);
       $sStyleReadLab_value = '';
       $sStyleReadInp_value = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['value']) && $this->nmgp_cmp_hidden['value'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="value" value="<?php echo NM_encode_input($value) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_value" style="<?php echo $sStyleHidden_value; ?>;"><span id="id_label_value"><?php echo $this->nm_new_label['value']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_value" style="<?php echo $sStyleHidden_value; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["value"]) &&  $this->nmgp_cmp_readonly["value"] == "on")) { 

 ?>
<input type=hidden name="value" value="<?php echo NM_encode_input($value) . "\"><span id=\"id_ajax_label_value\">" . $value . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_value" class="sc-ui-readonly-value" style=";<?php echo $sStyleReadLab_value; ?>"><?php echo NM_encode_input($this->value); ?></span><span id="id_read_off_value" style="white-space: nowrap;<?php echo $sStyleReadInp_value; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_value" type=text name="value" value="<?php echo NM_encode_input($value) ?>"
 size=11 alt="{datatype: 'decimal', maxLength: 11, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['value']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['value']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['value']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_value_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_value_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


<?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 2; ?>" >&nbsp;</TD>

<?php } 
?> 
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


   <?php
    if (!isset($this->nm_new_label['fgi']))
    {
        $this->nm_new_label['fgi'] = "FGI";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $fgi = $this->fgi;
   $sStyleHidden_fgi = '';
   if (isset($this->nmgp_cmp_hidden['fgi']) && $this->nmgp_cmp_hidden['fgi'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['fgi']);
       $sStyleHidden_fgi = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_fgi = 'display: none;';
   $sStyleReadInp_fgi = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["fgi"]) &&  $this->nmgp_cmp_readonly["fgi"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['fgi']);
       $sStyleReadLab_fgi = '';
       $sStyleReadInp_fgi = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['fgi']) && $this->nmgp_cmp_hidden['fgi'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="fgi" value="<?php echo NM_encode_input($fgi) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_fgi" style="<?php echo $sStyleHidden_fgi; ?>;"><span id="id_label_fgi"><?php echo $this->nm_new_label['fgi']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_fgi" style="<?php echo $sStyleHidden_fgi; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["fgi"]) &&  $this->nmgp_cmp_readonly["fgi"] == "on")) { 

 ?>
<input type=hidden name="fgi" value="<?php echo NM_encode_input($fgi) . "\"><span id=\"id_ajax_label_fgi\">" . $fgi . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_fgi" class="sc-ui-readonly-fgi" style=";<?php echo $sStyleReadLab_fgi; ?>"><?php echo NM_encode_input($this->fgi); ?></span><span id="id_read_off_fgi" style="white-space: nowrap;<?php echo $sStyleReadInp_fgi; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_fgi" type=text name="fgi" value="<?php echo NM_encode_input($fgi) ?>"
 size=11 alt="{datatype: 'integer', maxLength: 11, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['fgi']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['fgi']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_fgi_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fgi_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


<?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 2; ?>" >&nbsp;</TD>

<?php } 
?> 
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['dday']))
           {
               $this->nmgp_cmp_readonly['dday'] = 'on';
           }
?>


   </td></tr></table>
   </tr>
</TABLE></div><!-- bloco_f -->
   </div>
