<div id="line_form_form5" 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['id2']))
           {
               $this->nmgp_cmp_readonly['id2'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['date']))
           {
               $this->nmgp_cmp_readonly['date'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['sprice']))
           {
               $this->nmgp_cmp_readonly['sprice'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['yds']))
           {
               $this->nmgp_cmp_readonly['yds'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['lbs']))
           {
               $this->nmgp_cmp_readonly['lbs'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['dye']))
           {
               $this->nmgp_cmp_readonly['dye'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['gc']))
           {
               $this->nmgp_cmp_readonly['gc'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['fc']))
           {
               $this->nmgp_cmp_readonly['fc'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['gshort']))
           {
               $this->nmgp_cmp_readonly['gshort'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['ytdd']))
           {
               $this->nmgp_cmp_readonly['ytdd'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['ytdy']))
           {
               $this->nmgp_cmp_readonly['ytdy'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['mtdd']))
           {
               $this->nmgp_cmp_readonly['mtdd'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['mtdy']))
           {
               $this->nmgp_cmp_readonly['mtdy'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['histy']))
           {
               $this->nmgp_cmp_readonly['histy'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['histd']))
           {
               $this->nmgp_cmp_readonly['histd'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['update']))
           {
               $this->nmgp_cmp_readonly['update'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['avprice']))
           {
               $this->nmgp_cmp_readonly['avprice'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['lastyry']))
           {
               $this->nmgp_cmp_readonly['lastyry'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['lastyrd']))
           {
               $this->nmgp_cmp_readonly['lastyrd'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['dyeleft']))
           {
               $this->nmgp_cmp_readonly['dyeleft'] = 'on';
           }
?>
   <tr>


    <TD colspan="8" 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\">"; } ?>Physicals<?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col) { echo "</td></tr></table>"; } ?></TD>
       
      </TR>
     </TABLE>
    </TD>

   </tr>
<?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['ozlin']))
           {
               $this->nmgp_cmp_readonly['ozlin'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['ozsquare']))
    {
        $this->nm_new_label['ozsquare'] = "OZ PER SQUARE";
    }
?>
<?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);
   $ozsquare = $this->ozsquare;
   $sStyleHidden_ozsquare = '';
   if (isset($this->nmgp_cmp_hidden['ozsquare']) && $this->nmgp_cmp_hidden['ozsquare'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['ozsquare']);
       $sStyleHidden_ozsquare = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_ozsquare = 'display: none;';
   $sStyleReadInp_ozsquare = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['ozsquare']) && $this->nmgp_cmp_readonly['ozsquare'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['ozsquare']);
       $sStyleReadLab_ozsquare = '';
       $sStyleReadInp_ozsquare = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['ozsquare']) && $this->nmgp_cmp_hidden['ozsquare'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="ozsquare" value="<?php echo NM_encode_input($ozsquare) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_ozsquare" style="<?php echo $sStyleHidden_ozsquare; ?>;"><span id="id_label_ozsquare"><?php echo $this->nm_new_label['ozsquare']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_ozsquare" style="<?php echo $sStyleHidden_ozsquare; ?>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" && isset($this->nmgp_cmp_readonly["ozsquare"]) &&  $this->nmgp_cmp_readonly["ozsquare"] == "on") { 

 ?>
<input type=hidden name="ozsquare" value="<?php echo NM_encode_input($ozsquare) . "\">" . $ozsquare . ""; ?>
<?php } else { ?>
<span id="id_read_on_ozsquare" class="sc-ui-readonly-ozsquare" style=";<?php echo $sStyleReadLab_ozsquare; ?>"><?php echo NM_encode_input($this->ozsquare); ?></span><span id="id_read_off_ozsquare" style="white-space: nowrap;<?php echo $sStyleReadInp_ozsquare; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_ozsquare" type=text name="ozsquare" value="<?php echo NM_encode_input($ozsquare) ?>"
 size=5 alt="{datatype: 'decimal', maxLength: 5, precision: 1, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['ozsquare']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['ozsquare']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['ozsquare']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, 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_ozsquare_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ozsquare_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['ozlin']))
    {
        $this->nm_new_label['ozlin'] = "OZ PER LIN YARD";
    }
?>
<?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);
   $ozlin = $this->ozlin;
   $sStyleHidden_ozlin = '';
   if (isset($this->nmgp_cmp_hidden['ozlin']) && $this->nmgp_cmp_hidden['ozlin'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['ozlin']);
       $sStyleHidden_ozlin = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_ozlin = 'display: none;';
   $sStyleReadInp_ozlin = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["ozlin"]) &&  $this->nmgp_cmp_readonly["ozlin"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['ozlin']);
       $sStyleReadLab_ozlin = '';
       $sStyleReadInp_ozlin = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['ozlin']) && $this->nmgp_cmp_hidden['ozlin'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="ozlin" value="<?php echo NM_encode_input($ozlin) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_ozlin" style="<?php echo $sStyleHidden_ozlin; ?>;"><span id="id_label_ozlin"><?php echo $this->nm_new_label['ozlin']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_ozlin" style="<?php echo $sStyleHidden_ozlin; ?>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["ozlin"]) &&  $this->nmgp_cmp_readonly["ozlin"] == "on")) { 

 ?>
<input type=hidden name="ozlin" value="<?php echo NM_encode_input($ozlin) . "\"><span id=\"id_ajax_label_ozlin\">" . $ozlin . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_ozlin" class="sc-ui-readonly-ozlin" style=";<?php echo $sStyleReadLab_ozlin; ?>"><?php echo NM_encode_input($this->ozlin); ?></span><span id="id_read_off_ozlin" style="white-space: nowrap;<?php echo $sStyleReadInp_ozlin; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_ozlin" type=text name="ozlin" value="<?php echo NM_encode_input($ozlin) ?>"
 size=5 alt="{datatype: 'decimal', maxLength: 5, precision: 1, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['ozlin']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['ozlin']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['ozlin']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, 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_ozlin_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ozlin_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['sqlb']))
    {
        $this->nm_new_label['sqlb'] = "SQ YARDS PER LB";
    }
?>
<?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);
   $sqlb = $this->sqlb;
   $sStyleHidden_sqlb = '';
   if (isset($this->nmgp_cmp_hidden['sqlb']) && $this->nmgp_cmp_hidden['sqlb'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['sqlb']);
       $sStyleHidden_sqlb = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_sqlb = 'display: none;';
   $sStyleReadInp_sqlb = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['sqlb']) && $this->nmgp_cmp_readonly['sqlb'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['sqlb']);
       $sStyleReadLab_sqlb = '';
       $sStyleReadInp_sqlb = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['sqlb']) && $this->nmgp_cmp_hidden['sqlb'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="sqlb" value="<?php echo NM_encode_input($sqlb) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_sqlb" style="<?php echo $sStyleHidden_sqlb; ?>;"><span id="id_label_sqlb"><?php echo $this->nm_new_label['sqlb']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_sqlb" style="<?php echo $sStyleHidden_sqlb; ?>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" && isset($this->nmgp_cmp_readonly["sqlb"]) &&  $this->nmgp_cmp_readonly["sqlb"] == "on") { 

 ?>
<input type=hidden name="sqlb" value="<?php echo NM_encode_input($sqlb) . "\">" . $sqlb . ""; ?>
<?php } else { ?>
<span id="id_read_on_sqlb" class="sc-ui-readonly-sqlb" style=";<?php echo $sStyleReadLab_sqlb; ?>"><?php echo NM_encode_input($this->sqlb); ?></span><span id="id_read_off_sqlb" style="white-space: nowrap;<?php echo $sStyleReadInp_sqlb; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_sqlb" type=text name="sqlb" value="<?php echo NM_encode_input($sqlb) ?>"
 size=5 alt="{datatype: 'decimal', maxLength: 5, precision: 1, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['sqlb']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['sqlb']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['sqlb']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, 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_sqlb_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_sqlb_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['cpi']))
    {
        $this->nm_new_label['cpi'] = "CPI";
    }
?>
<?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);
   $cpi = $this->cpi;
   $sStyleHidden_cpi = '';
   if (isset($this->nmgp_cmp_hidden['cpi']) && $this->nmgp_cmp_hidden['cpi'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cpi']);
       $sStyleHidden_cpi = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cpi = 'display: none;';
   $sStyleReadInp_cpi = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['cpi']) && $this->nmgp_cmp_readonly['cpi'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cpi']);
       $sStyleReadLab_cpi = '';
       $sStyleReadInp_cpi = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cpi']) && $this->nmgp_cmp_hidden['cpi'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cpi" value="<?php echo NM_encode_input($cpi) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cpi" style="<?php echo $sStyleHidden_cpi; ?>;"><span id="id_label_cpi"><?php echo $this->nm_new_label['cpi']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cpi" style="<?php echo $sStyleHidden_cpi; ?>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" && isset($this->nmgp_cmp_readonly["cpi"]) &&  $this->nmgp_cmp_readonly["cpi"] == "on") { 

 ?>
<input type=hidden name="cpi" value="<?php echo NM_encode_input($cpi) . "\">" . $cpi . ""; ?>
<?php } else { ?>
<span id="id_read_on_cpi" class="sc-ui-readonly-cpi" style=";<?php echo $sStyleReadLab_cpi; ?>"><?php echo NM_encode_input($this->cpi); ?></span><span id="id_read_off_cpi" style="white-space: nowrap;<?php echo $sStyleReadInp_cpi; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_cpi" type=text name="cpi" value="<?php echo NM_encode_input($cpi) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, allowedChars: '', lettersCase: '', enterTab: false, 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_cpi_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cpi_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['meterkilo']))
           {
               $this->nmgp_cmp_readonly['meterkilo'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['meter2kilo']))
           {
               $this->nmgp_cmp_readonly['meter2kilo'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['grammeter']))
           {
               $this->nmgp_cmp_readonly['grammeter'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['wpi']))
    {
        $this->nm_new_label['wpi'] = "WPI";
    }
?>
<?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);
   $wpi = $this->wpi;
   $sStyleHidden_wpi = '';
   if (isset($this->nmgp_cmp_hidden['wpi']) && $this->nmgp_cmp_hidden['wpi'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['wpi']);
       $sStyleHidden_wpi = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_wpi = 'display: none;';
   $sStyleReadInp_wpi = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['wpi']) && $this->nmgp_cmp_readonly['wpi'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['wpi']);
       $sStyleReadLab_wpi = '';
       $sStyleReadInp_wpi = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['wpi']) && $this->nmgp_cmp_hidden['wpi'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="wpi" value="<?php echo NM_encode_input($wpi) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_wpi" style="<?php echo $sStyleHidden_wpi; ?>;"><span id="id_label_wpi"><?php echo $this->nm_new_label['wpi']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_wpi" style="<?php echo $sStyleHidden_wpi; ?>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" && isset($this->nmgp_cmp_readonly["wpi"]) &&  $this->nmgp_cmp_readonly["wpi"] == "on") { 

 ?>
<input type=hidden name="wpi" value="<?php echo NM_encode_input($wpi) . "\">" . $wpi . ""; ?>
<?php } else { ?>
<span id="id_read_on_wpi" class="sc-ui-readonly-wpi" style=";<?php echo $sStyleReadLab_wpi; ?>"><?php echo NM_encode_input($this->wpi); ?></span><span id="id_read_off_wpi" style="white-space: nowrap;<?php echo $sStyleReadInp_wpi; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_wpi" type=text name="wpi" value="<?php echo NM_encode_input($wpi) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, allowedChars: '', lettersCase: '', enterTab: false, 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_wpi_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_wpi_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['finwt']))
    {
        $this->nm_new_label['finwt'] = "LIN YARDS PER LB";
    }
?>
<?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);
   $finwt = $this->finwt;
   $sStyleHidden_finwt = '';
   if (isset($this->nmgp_cmp_hidden['finwt']) && $this->nmgp_cmp_hidden['finwt'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['finwt']);
       $sStyleHidden_finwt = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_finwt = 'display: none;';
   $sStyleReadInp_finwt = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['finwt']) && $this->nmgp_cmp_readonly['finwt'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['finwt']);
       $sStyleReadLab_finwt = '';
       $sStyleReadInp_finwt = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['finwt']) && $this->nmgp_cmp_hidden['finwt'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="finwt" value="<?php echo NM_encode_input($finwt) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_finwt" style="<?php echo $sStyleHidden_finwt; ?>;"><span id="id_label_finwt"><?php echo $this->nm_new_label['finwt']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_finwt" style="<?php echo $sStyleHidden_finwt; ?>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" && isset($this->nmgp_cmp_readonly["finwt"]) &&  $this->nmgp_cmp_readonly["finwt"] == "on") { 

 ?>
<input type=hidden name="finwt" value="<?php echo NM_encode_input($finwt) . "\">" . $finwt . ""; ?>
<?php } else { ?>
<span id="id_read_on_finwt" class="sc-ui-readonly-finwt" style=";<?php echo $sStyleReadLab_finwt; ?>"><?php echo NM_encode_input($this->finwt); ?></span><span id="id_read_off_finwt" style="white-space: nowrap;<?php echo $sStyleReadInp_finwt; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_finwt" type=text name="finwt" value="<?php echo NM_encode_input($finwt) ?>"
 size=9 maxlength=9 alt="{datatype: 'text', maxLength: 9, allowedChars: '', lettersCase: '', enterTab: false, 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_finwt_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_finwt_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['meterkilo']))
    {
        $this->nm_new_label['meterkilo'] = "METERS PER KILO";
    }
?>
<?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);
   $meterkilo = $this->meterkilo;
   $sStyleHidden_meterkilo = '';
   if (isset($this->nmgp_cmp_hidden['meterkilo']) && $this->nmgp_cmp_hidden['meterkilo'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['meterkilo']);
       $sStyleHidden_meterkilo = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_meterkilo = 'display: none;';
   $sStyleReadInp_meterkilo = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["meterkilo"]) &&  $this->nmgp_cmp_readonly["meterkilo"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['meterkilo']);
       $sStyleReadLab_meterkilo = '';
       $sStyleReadInp_meterkilo = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['meterkilo']) && $this->nmgp_cmp_hidden['meterkilo'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="meterkilo" value="<?php echo NM_encode_input($meterkilo) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_meterkilo" style="<?php echo $sStyleHidden_meterkilo; ?>;"><span id="id_label_meterkilo"><?php echo $this->nm_new_label['meterkilo']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_meterkilo" style="<?php echo $sStyleHidden_meterkilo; ?>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["meterkilo"]) &&  $this->nmgp_cmp_readonly["meterkilo"] == "on")) { 

 ?>
<input type=hidden name="meterkilo" value="<?php echo NM_encode_input($meterkilo) . "\"><span id=\"id_ajax_label_meterkilo\">" . $meterkilo . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_meterkilo" class="sc-ui-readonly-meterkilo" style=";<?php echo $sStyleReadLab_meterkilo; ?>"><?php echo NM_encode_input($this->meterkilo); ?></span><span id="id_read_off_meterkilo" style="white-space: nowrap;<?php echo $sStyleReadInp_meterkilo; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_meterkilo" type=text name="meterkilo" value="<?php echo NM_encode_input($meterkilo) ?>"
 size=5 alt="{datatype: 'decimal', maxLength: 5, precision: 1, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['meterkilo']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['meterkilo']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['meterkilo']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, 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_meterkilo_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_meterkilo_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['meter2kilo']))
    {
        $this->nm_new_label['meter2kilo'] = "SQ METERS PER KILO";
    }
?>
<?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);
   $meter2kilo = $this->meter2kilo;
   $sStyleHidden_meter2kilo = '';
   if (isset($this->nmgp_cmp_hidden['meter2kilo']) && $this->nmgp_cmp_hidden['meter2kilo'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['meter2kilo']);
       $sStyleHidden_meter2kilo = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_meter2kilo = 'display: none;';
   $sStyleReadInp_meter2kilo = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["meter2kilo"]) &&  $this->nmgp_cmp_readonly["meter2kilo"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['meter2kilo']);
       $sStyleReadLab_meter2kilo = '';
       $sStyleReadInp_meter2kilo = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['meter2kilo']) && $this->nmgp_cmp_hidden['meter2kilo'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="meter2kilo" value="<?php echo NM_encode_input($meter2kilo) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_meter2kilo" style="<?php echo $sStyleHidden_meter2kilo; ?>;"><span id="id_label_meter2kilo"><?php echo $this->nm_new_label['meter2kilo']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_meter2kilo" style="<?php echo $sStyleHidden_meter2kilo; ?>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["meter2kilo"]) &&  $this->nmgp_cmp_readonly["meter2kilo"] == "on")) { 

 ?>
<input type=hidden name="meter2kilo" value="<?php echo NM_encode_input($meter2kilo) . "\"><span id=\"id_ajax_label_meter2kilo\">" . $meter2kilo . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_meter2kilo" class="sc-ui-readonly-meter2kilo" style=";<?php echo $sStyleReadLab_meter2kilo; ?>"><?php echo NM_encode_input($this->meter2kilo); ?></span><span id="id_read_off_meter2kilo" style="white-space: nowrap;<?php echo $sStyleReadInp_meter2kilo; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_meter2kilo" type=text name="meter2kilo" value="<?php echo NM_encode_input($meter2kilo) ?>"
 size=5 alt="{datatype: 'decimal', maxLength: 5, precision: 1, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['meter2kilo']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['meter2kilo']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['meter2kilo']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, 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_meter2kilo_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_meter2kilo_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['grammeter2']))
           {
               $this->nmgp_cmp_readonly['grammeter2'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['grammeter']))
    {
        $this->nm_new_label['grammeter'] = "GRAMS PER METER";
    }
?>
<?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);
   $grammeter = $this->grammeter;
   $sStyleHidden_grammeter = '';
   if (isset($this->nmgp_cmp_hidden['grammeter']) && $this->nmgp_cmp_hidden['grammeter'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['grammeter']);
       $sStyleHidden_grammeter = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_grammeter = 'display: none;';
   $sStyleReadInp_grammeter = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["grammeter"]) &&  $this->nmgp_cmp_readonly["grammeter"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['grammeter']);
       $sStyleReadLab_grammeter = '';
       $sStyleReadInp_grammeter = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['grammeter']) && $this->nmgp_cmp_hidden['grammeter'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="grammeter" value="<?php echo NM_encode_input($grammeter) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_grammeter" style="<?php echo $sStyleHidden_grammeter; ?>;"><span id="id_label_grammeter"><?php echo $this->nm_new_label['grammeter']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_grammeter" style="<?php echo $sStyleHidden_grammeter; ?>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["grammeter"]) &&  $this->nmgp_cmp_readonly["grammeter"] == "on")) { 

 ?>
<input type=hidden name="grammeter" value="<?php echo NM_encode_input($grammeter) . "\"><span id=\"id_ajax_label_grammeter\">" . $grammeter . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_grammeter" class="sc-ui-readonly-grammeter" style=";<?php echo $sStyleReadLab_grammeter; ?>"><?php echo NM_encode_input($this->grammeter); ?></span><span id="id_read_off_grammeter" style="white-space: nowrap;<?php echo $sStyleReadInp_grammeter; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_grammeter" type=text name="grammeter" value="<?php echo NM_encode_input($grammeter) ?>"
 size=7 alt="{datatype: 'decimal', maxLength: 7, precision: 1, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['grammeter']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['grammeter']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['grammeter']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, 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_grammeter_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_grammeter_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['grammeter2']))
    {
        $this->nm_new_label['grammeter2'] = "GRAMS PER SQ METER";
    }
?>
<?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);
   $grammeter2 = $this->grammeter2;
   $sStyleHidden_grammeter2 = '';
   if (isset($this->nmgp_cmp_hidden['grammeter2']) && $this->nmgp_cmp_hidden['grammeter2'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['grammeter2']);
       $sStyleHidden_grammeter2 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_grammeter2 = 'display: none;';
   $sStyleReadInp_grammeter2 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["grammeter2"]) &&  $this->nmgp_cmp_readonly["grammeter2"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['grammeter2']);
       $sStyleReadLab_grammeter2 = '';
       $sStyleReadInp_grammeter2 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['grammeter2']) && $this->nmgp_cmp_hidden['grammeter2'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="grammeter2" value="<?php echo NM_encode_input($grammeter2) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_grammeter2" style="<?php echo $sStyleHidden_grammeter2; ?>;"><span id="id_label_grammeter2"><?php echo $this->nm_new_label['grammeter2']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_grammeter2" style="<?php echo $sStyleHidden_grammeter2; ?>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["grammeter2"]) &&  $this->nmgp_cmp_readonly["grammeter2"] == "on")) { 

 ?>
<input type=hidden name="grammeter2" value="<?php echo NM_encode_input($grammeter2) . "\"><span id=\"id_ajax_label_grammeter2\">" . $grammeter2 . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_grammeter2" class="sc-ui-readonly-grammeter2" style=";<?php echo $sStyleReadLab_grammeter2; ?>"><?php echo NM_encode_input($this->grammeter2); ?></span><span id="id_read_off_grammeter2" style="white-space: nowrap;<?php echo $sStyleReadInp_grammeter2; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_grammeter2" type=text name="grammeter2" value="<?php echo NM_encode_input($grammeter2) ?>"
 size=7 alt="{datatype: 'decimal', maxLength: 7, precision: 1, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['grammeter2']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['grammeter2']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['grammeter2']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, 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_grammeter2_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_grammeter2_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['stdputup']))
    {
        $this->nm_new_label['stdputup'] = "STDPUTUP";
    }
?>
<?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);
   $stdputup = $this->stdputup;
   $sStyleHidden_stdputup = '';
   if (isset($this->nmgp_cmp_hidden['stdputup']) && $this->nmgp_cmp_hidden['stdputup'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['stdputup']);
       $sStyleHidden_stdputup = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_stdputup = 'display: none;';
   $sStyleReadInp_stdputup = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['stdputup']) && $this->nmgp_cmp_readonly['stdputup'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['stdputup']);
       $sStyleReadLab_stdputup = '';
       $sStyleReadInp_stdputup = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['stdputup']) && $this->nmgp_cmp_hidden['stdputup'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="stdputup" value="<?php echo NM_encode_input($stdputup) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_stdputup" style="<?php echo $sStyleHidden_stdputup; ?>;"><span id="id_label_stdputup"><?php echo $this->nm_new_label['stdputup']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_stdputup" style="<?php echo $sStyleHidden_stdputup; ?>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" && isset($this->nmgp_cmp_readonly["stdputup"]) &&  $this->nmgp_cmp_readonly["stdputup"] == "on") { 

 ?>
<input type=hidden name="stdputup" value="<?php echo NM_encode_input($stdputup) . "\">" . $stdputup . ""; ?>
<?php } else { ?>
<span id="id_read_on_stdputup" class="sc-ui-readonly-stdputup" style=";<?php echo $sStyleReadLab_stdputup; ?>"><?php echo NM_encode_input($this->stdputup); ?></span><span id="id_read_off_stdputup" style="white-space: nowrap;<?php echo $sStyleReadInp_stdputup; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_stdputup" type=text name="stdputup" value="<?php echo NM_encode_input($stdputup) ?>"
 size=20 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: '', lettersCase: '', enterTab: false, 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_stdputup_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_stdputup_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['stdtube']))
    {
        $this->nm_new_label['stdtube'] = "STDTUBE";
    }
?>
<?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);
   $stdtube = $this->stdtube;
   $sStyleHidden_stdtube = '';
   if (isset($this->nmgp_cmp_hidden['stdtube']) && $this->nmgp_cmp_hidden['stdtube'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['stdtube']);
       $sStyleHidden_stdtube = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_stdtube = 'display: none;';
   $sStyleReadInp_stdtube = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['stdtube']) && $this->nmgp_cmp_readonly['stdtube'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['stdtube']);
       $sStyleReadLab_stdtube = '';
       $sStyleReadInp_stdtube = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['stdtube']) && $this->nmgp_cmp_hidden['stdtube'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="stdtube" value="<?php echo NM_encode_input($stdtube) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_stdtube" style="<?php echo $sStyleHidden_stdtube; ?>;"><span id="id_label_stdtube"><?php echo $this->nm_new_label['stdtube']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_stdtube" style="<?php echo $sStyleHidden_stdtube; ?>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" && isset($this->nmgp_cmp_readonly["stdtube"]) &&  $this->nmgp_cmp_readonly["stdtube"] == "on") { 

 ?>
<input type=hidden name="stdtube" value="<?php echo NM_encode_input($stdtube) . "\">" . $stdtube . ""; ?>
<?php } else { ?>
<span id="id_read_on_stdtube" class="sc-ui-readonly-stdtube" style=";<?php echo $sStyleReadLab_stdtube; ?>"><?php echo NM_encode_input($this->stdtube); ?></span><span id="id_read_off_stdtube" style="white-space: nowrap;<?php echo $sStyleReadInp_stdtube; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_stdtube" type=text name="stdtube" value="<?php echo NM_encode_input($stdtube) ?>"
 size=10 maxlength=10 alt="{datatype: 'text', maxLength: 10, allowedChars: '', lettersCase: '', enterTab: false, 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_stdtube_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_stdtube_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['conv2']))
           {
               $this->nmgp_cmp_readonly['conv2'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['conv3']))
           {
               $this->nmgp_cmp_readonly['conv3'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['stdcost']))
           {
               $this->nmgp_cmp_readonly['stdcost'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['avcost']))
           {
               $this->nmgp_cmp_readonly['avcost'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['lbbo']))
           {
               $this->nmgp_cmp_readonly['lbbo'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['bo']))
           {
               $this->nmgp_cmp_readonly['bo'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['samples']))
           {
               $this->nmgp_cmp_readonly['samples'] = 'on';
           }
?>


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