<div id="custbill_form_form6" 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_7"><!-- bloco_c -->
<?php
?>
<TABLE align="center" id="hidden_bloco_7" class="scFormTable" width="100%" style="height: 100%;"><?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['updated']))
           {
               $this->nmgp_cmp_readonly['updated'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['tdate']))
           {
               $this->nmgp_cmp_readonly['tdate'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['mtd']))
           {
               $this->nmgp_cmp_readonly['mtd'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['qtd']))
           {
               $this->nmgp_cmp_readonly['qtd'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['ytd']))
           {
               $this->nmgp_cmp_readonly['ytd'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['jan']))
           {
               $this->nmgp_cmp_readonly['jan'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['feb']))
           {
               $this->nmgp_cmp_readonly['feb'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['mar']))
           {
               $this->nmgp_cmp_readonly['mar'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['apr']))
           {
               $this->nmgp_cmp_readonly['apr'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['may']))
           {
               $this->nmgp_cmp_readonly['may'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['jun']))
           {
               $this->nmgp_cmp_readonly['jun'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['jul']))
           {
               $this->nmgp_cmp_readonly['jul'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['aug']))
           {
               $this->nmgp_cmp_readonly['aug'] = 'on';
           }
?>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_orders" style="<?php echo $sStyleHidden_orders; ?>;"><span id="id_label_orders"><?php echo $this->nm_new_label['orders']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_orders" style="<?php echo $sStyleHidden_orders; ?>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]['custbill_orders_grid']['embutida_form']       = true;
 $_SESSION['sc_session'][$this->Ini->sc_page]['custbill_orders_grid']['embutida_form_parms'] = "var_bcode?#?" . $this->nmgp_dados_form['bcode'] . "?@?";
 $parms_lig_cons = "&nmgp_parms=var_bcode*scin" . $this->nmgp_dados_form['bcode'] . "*scout";
 $sDetailSrc = ('novo' == $this->nmgp_opcao) ? 'custbill_form_empty.htm' : $this->Ini->link_custbill_orders_grid_cons . '?script_case_init=' . NM_encode_input($this->Ini->sc_page) . '&script_case_session=' . session_id() . '&script_case_detail=Y' . $parms_lig_cons;
?>
<iframe border="0" id="nmsc_iframe_liga_custbill_orders_grid"  marginWidth="0" marginHeight="0" frameborder="0" valign="top" height="100" width="100%" name="nmsc_iframe_liga_custbill_orders_grid"  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_orders_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_orders_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>
