<div id="greige_grstyle2_form_form2" 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_2"><!-- bloco_c -->
<?php
?>
<TABLE align="center" id="hidden_bloco_2" class="scFormTable" width="100%" style="height: 100%;"><?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['lbs_rack']))
           {
               $this->nmgp_cmp_readonly['lbs_rack'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['racks_lb']))
           {
               $this->nmgp_cmp_readonly['racks_lb'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['bot_weight']))
           {
               $this->nmgp_cmp_readonly['bot_weight'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['bot_percen']))
           {
               $this->nmgp_cmp_readonly['bot_percen'] = 'on';
           }
?>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_td" style="<?php echo $sStyleHidden_td; ?>;"><span id="id_label_td"><?php echo $this->nm_new_label['td']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['td']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['td'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_td" style="<?php echo $sStyleHidden_td; ?>;"><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["td"]) &&  $this->nmgp_cmp_readonly["td"] == "on") { 

 ?>
<input type=hidden name="td" value="<?php echo NM_encode_input($td) . "\">" . $td . ""; ?>
<?php } else { ?>
<span id="id_read_on_td" class="sc-ui-readonly-td" style=";<?php echo $sStyleReadLab_td; ?>"><?php echo NM_encode_input($this->td); ?></span><span id="id_read_off_td" style="white-space: nowrap;<?php echo $sStyleReadInp_td; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_td" type=text name="td" value="<?php echo NM_encode_input($td) ?>"
 size=6 alt="{datatype: 'integer', maxLength: 6, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['td']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['td']['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_td_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_td_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_top_yarn" style="<?php echo $sStyleHidden_top_yarn; ?>;"><span id="id_label_top_yarn"><?php echo $this->nm_new_label['top_yarn']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['top_yarn']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['top_yarn'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_top_yarn" style="<?php echo $sStyleHidden_top_yarn; ?>;"><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["top_yarn"]) &&  $this->nmgp_cmp_readonly["top_yarn"] == "on") { 

 ?>
<input type=hidden name="top_yarn" value="<?php echo NM_encode_input($top_yarn) . "\">" . $top_yarn . ""; ?>
<?php } else { ?>
<span id="id_read_on_top_yarn" class="sc-ui-readonly-top_yarn" style=";<?php echo $sStyleReadLab_top_yarn; ?>"><?php echo NM_encode_input($this->top_yarn); ?></span><span id="id_read_off_top_yarn" style="white-space: nowrap;<?php echo $sStyleReadInp_top_yarn; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_top_yarn" type=text name="top_yarn" value="<?php echo NM_encode_input($top_yarn) ?>"
 size=20 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: '', lettersCase: '', 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_top_yarn_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_top_yarn_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_top_ends" style="<?php echo $sStyleHidden_top_ends; ?>;"><span id="id_label_top_ends"><?php echo $this->nm_new_label['top_ends']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['top_ends']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['top_ends'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_top_ends" style="<?php echo $sStyleHidden_top_ends; ?>;"><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["top_ends"]) &&  $this->nmgp_cmp_readonly["top_ends"] == "on") { 

 ?>
<input type=hidden name="top_ends" value="<?php echo NM_encode_input($top_ends) . "\">" . $top_ends . ""; ?>
<?php } else { ?>
<span id="id_read_on_top_ends" class="sc-ui-readonly-top_ends" style=";<?php echo $sStyleReadLab_top_ends; ?>"><?php echo NM_encode_input($this->top_ends); ?></span><span id="id_read_off_top_ends" style="white-space: nowrap;<?php echo $sStyleReadInp_top_ends; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_top_ends" type=text name="top_ends" value="<?php echo NM_encode_input($top_ends) ?>"
 size=6 alt="{datatype: 'integer', maxLength: 6, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['top_ends']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['top_ends']['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_top_ends_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_top_ends_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['top_weight']))
           {
               $this->nmgp_cmp_readonly['top_weight'] = 'on';
           }
?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_top_patter" style="<?php echo $sStyleHidden_top_patter; ?>;"><span id="id_label_top_patter"><?php echo $this->nm_new_label['top_patter']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['top_patter']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['top_patter'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_top_patter" style="<?php echo $sStyleHidden_top_patter; ?>;"><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["top_patter"]) &&  $this->nmgp_cmp_readonly["top_patter"] == "on") { 

 ?>
<input type=hidden name="top_patter" value="<?php echo NM_encode_input($top_patter) . "\">" . $top_patter . ""; ?>
<?php } else { ?>
<span id="id_read_on_top_patter" class="sc-ui-readonly-top_patter" style=";<?php echo $sStyleReadLab_top_patter; ?>"><?php echo NM_encode_input($this->top_patter); ?></span><span id="id_read_off_top_patter" style="white-space: nowrap;<?php echo $sStyleReadInp_top_patter; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_top_patter" type=text name="top_patter" value="<?php echo NM_encode_input($top_patter) ?>"
 size=38 maxlength=38 alt="{datatype: 'text', maxLength: 38, allowedChars: '', lettersCase: '', 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_top_patter_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_top_patter_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_top_thread" style="<?php echo $sStyleHidden_top_thread; ?>;"><span id="id_label_top_thread"><?php echo $this->nm_new_label['top_thread']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['top_thread']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['top_thread'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_top_thread" style="<?php echo $sStyleHidden_top_thread; ?>;"><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["top_thread"]) &&  $this->nmgp_cmp_readonly["top_thread"] == "on") { 

 ?>
<input type=hidden name="top_thread" value="<?php echo NM_encode_input($top_thread) . "\">" . $top_thread . ""; ?>
<?php } else { ?>
<span id="id_read_on_top_thread" class="sc-ui-readonly-top_thread" style=";<?php echo $sStyleReadLab_top_thread; ?>"><?php echo NM_encode_input($this->top_thread); ?></span><span id="id_read_off_top_thread" style="white-space: nowrap;<?php echo $sStyleReadInp_top_thread; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_top_thread" type=text name="top_thread" value="<?php echo NM_encode_input($top_thread) ?>"
 size=15 maxlength=15 alt="{datatype: 'text', maxLength: 15, allowedChars: '', lettersCase: '', 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_top_thread_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_top_thread_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_top_runnrs" style="<?php echo $sStyleHidden_top_runnrs; ?>;"><span id="id_label_top_runnrs"><?php echo $this->nm_new_label['top_runnrs']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['top_runnrs']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['top_runnrs'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_top_runnrs" style="<?php echo $sStyleHidden_top_runnrs; ?>;"><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["top_runnrs"]) &&  $this->nmgp_cmp_readonly["top_runnrs"] == "on") { 

 ?>
<input type=hidden name="top_runnrs" value="<?php echo NM_encode_input($top_runnrs) . "\">" . $top_runnrs . ""; ?>
<?php } else { ?>
<span id="id_read_on_top_runnrs" class="sc-ui-readonly-top_runnrs" style=";<?php echo $sStyleReadLab_top_runnrs; ?>"><?php echo NM_encode_input($this->top_runnrs); ?></span><span id="id_read_off_top_runnrs" style="white-space: nowrap;<?php echo $sStyleReadInp_top_runnrs; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_top_runnrs" type=text name="top_runnrs" value="<?php echo NM_encode_input($top_runnrs) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['top_runnrs']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['top_runnrs']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['top_runnrs']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, 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_top_runnrs_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_top_runnrs_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['top_percen']))
           {
               $this->nmgp_cmp_readonly['top_percen'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l3_weight']))
           {
               $this->nmgp_cmp_readonly['l3_weight'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l3_percen']))
           {
               $this->nmgp_cmp_readonly['l3_percen'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4d']))
           {
               $this->nmgp_cmp_readonly['l4d'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_yarn']))
           {
               $this->nmgp_cmp_readonly['l4_yarn'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_patter']))
           {
               $this->nmgp_cmp_readonly['l4_patter'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_thread']))
           {
               $this->nmgp_cmp_readonly['l4_thread'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_runnrs']))
           {
               $this->nmgp_cmp_readonly['l4_runnrs'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_weight']))
           {
               $this->nmgp_cmp_readonly['l4_weight'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_percen']))
           {
               $this->nmgp_cmp_readonly['l4_percen'] = 'on';
           }
?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_top_weight" style="<?php echo $sStyleHidden_top_weight; ?>;"><span id="id_label_top_weight"><?php echo $this->nm_new_label['top_weight']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_top_weight" style="<?php echo $sStyleHidden_top_weight; ?>;"><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["top_weight"]) &&  $this->nmgp_cmp_readonly["top_weight"] == "on")) { 

 ?>
<input type=hidden name="top_weight" value="<?php echo NM_encode_input($top_weight) . "\"><span id=\"id_ajax_label_top_weight\">" . $top_weight . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_top_weight" class="sc-ui-readonly-top_weight" style=";<?php echo $sStyleReadLab_top_weight; ?>"><?php echo NM_encode_input($this->top_weight); ?></span><span id="id_read_off_top_weight" style="white-space: nowrap;<?php echo $sStyleReadInp_top_weight; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_top_weight" type=text name="top_weight" value="<?php echo NM_encode_input($top_weight) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 4, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['top_weight']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['top_weight']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['top_weight']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, 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_top_weight_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_top_weight_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_top_percen" style="<?php echo $sStyleHidden_top_percen; ?>;"><span id="id_label_top_percen"><?php echo $this->nm_new_label['top_percen']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_top_percen" style="<?php echo $sStyleHidden_top_percen; ?>;"><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["top_percen"]) &&  $this->nmgp_cmp_readonly["top_percen"] == "on")) { 

 ?>
<input type=hidden name="top_percen" value="<?php echo NM_encode_input($top_percen) . "\"><span id=\"id_ajax_label_top_percen\">" . $top_percen . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_top_percen" class="sc-ui-readonly-top_percen" style=";<?php echo $sStyleReadLab_top_percen; ?>"><?php echo NM_encode_input($this->top_percen); ?></span><span id="id_read_off_top_percen" style="white-space: nowrap;<?php echo $sStyleReadInp_top_percen; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_top_percen" type=text name="top_percen" value="<?php echo NM_encode_input($top_percen) ?>"
 size=6 alt="{datatype: 'decimal', maxLength: 6, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['top_percen']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['top_percen']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['top_percen']['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_top_percen_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_top_percen_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


    <TD class="scFormDataOdd" colspan="2" >&nbsp;</TD>

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


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

<?php } ?>
   </td></tr></table>
   </tr>
</TABLE></div><!-- bloco_f -->
   </div>
