<div id="line_dyeorder_grid_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['id2']))
           {
               $this->nmgp_cmp_readonly['id2'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['p_o_number']))
           {
               $this->nmgp_cmp_readonly['p_o_number'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['status']))
           {
               $this->nmgp_cmp_readonly['status'] = '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['cost_lb_d']))
           {
               $this->nmgp_cmp_readonly['cost_lb_d'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['dye_cost']))
           {
               $this->nmgp_cmp_readonly['dye_cost'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['gr_lbs_o']))
           {
               $this->nmgp_cmp_readonly['gr_lbs_o'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['gr_lbs_d']))
           {
               $this->nmgp_cmp_readonly['gr_lbs_d'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['gr_lbs_op']))
           {
               $this->nmgp_cmp_readonly['gr_lbs_op'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['fin_lbs']))
           {
               $this->nmgp_cmp_readonly['fin_lbs'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['work_loss']))
           {
               $this->nmgp_cmp_readonly['work_loss'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['cost_lb_g']))
           {
               $this->nmgp_cmp_readonly['cost_lb_g'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['yards_recd']))
           {
               $this->nmgp_cmp_readonly['yards_recd'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['cost_lb_t']))
           {
               $this->nmgp_cmp_readonly['cost_lb_t'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['gr_yield']))
           {
               $this->nmgp_cmp_readonly['gr_yield'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['cost_yd_t']))
           {
               $this->nmgp_cmp_readonly['cost_yd_t'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['gr_value']))
           {
               $this->nmgp_cmp_readonly['gr_value'] = 'on';
           }
?>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_receivers" style="<?php echo $sStyleHidden_receivers; ?>;"><span id="id_label_receivers"><?php echo $this->nm_new_label['receivers']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_receivers" style="<?php echo $sStyleHidden_receivers; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td width="100%" class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['embutida_proc']  = false;
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['embutida_form']  = true;
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['embutida_call']  = true;
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['embutida_multi'] = false;
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['embutida_liga_form_insert'] = 'on';
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['embutida_liga_form_update'] = 'on';
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['embutida_liga_form_delete'] = 'on';
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['embutida_liga_form_btn_nav'] = 'off';
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['embutida_liga_grid_edit'] = 'on';
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['embutida_liga_grid_edit_link'] = 'on';
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['embutida_liga_qtd_reg'] = '10';
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['embutida_liga_tp_pag'] = 'parcial';
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['embutida_parms'] = "NM_btn_insert?#?S?@?NM_btn_update?#?S?@?NM_btn_delete?#?S?@?NM_btn_navega?#?N?@?";
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['foreign_key']['p_o_number'] = $this->nmgp_dados_form['p_o_number'];
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['where_filter'] = "P_O_NUMBER = '" . $this->nmgp_dados_form['p_o_number'] . "'";
 $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['where_detal']  = "P_O_NUMBER = '" . $this->nmgp_dados_form['p_o_number'] . "'";
 if ($_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['total'] < 0)
 {
     $_SESSION['sc_session'][$this->Ini->sc_page]['dye_fgtemp_form']['where_filter'] = "1 <> 1";
 }
 $sDetailSrc = ('novo' == $this->nmgp_opcao) ? 'line_dyeorder_grid_empty.htm' : $this->Ini->link_dye_fgtemp_form_edit . '?script_case_init=' . NM_encode_input($this->Ini->sc_page . '&script_case_session=' . session_id() . '&script_case_detail=Y');
?>
<iframe border="0" id="nmsc_iframe_liga_dye_fgtemp_form"  marginWidth="0" marginHeight="0" frameborder="0" valign="top" height="100" width="100%" name="nmsc_iframe_liga_dye_fgtemp_form"  scrolling="auto" src="<?php echo $sDetailSrc; ?>"></iframe>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_receivers_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_receivers_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 } 
?> 


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