<div id="line_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_5"><!-- bloco_c -->
<?php
?>
<TABLE align="center" id="hidden_bloco_5" 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';
           }
?>
   <tr>


    <TD colspan="2" height="20" class="scFormBlock">
     <TABLE style="padding: 0px; spacing: 0px; border-width: 0px;" width="100%" height="100%">
      <TR>
       <TD align="" valign="" class="scFormBlockFont"><?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col) { echo "<table style=\"border-collapse: collapse; height: 100%; width: 100%\"><tr><td style=\"vertical-align: middle; border-width: 0px; padding: 0px 2px 0px 0px\"><img src=\"" . $this->Ini->path_icones . "/" . $this->Ini->Block_img_col . "\" style=\"border: 0px; float: left\" class=\"sc-ui-block-control\"></td><td style=\"border-width: 0px; padding: 0px; width: 100%\" class=\"scFormBlockAlign\">"; } ?>Sales Notes<?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 (!isset($this->nm_new_label['memo']))
    {
        $this->nm_new_label['memo'] = "MEMO";
    }
?>
<?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);
   $memo = $this->memo;
   $sStyleHidden_memo = '';
   if (isset($this->nmgp_cmp_hidden['memo']) && $this->nmgp_cmp_hidden['memo'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['memo']);
       $sStyleHidden_memo = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_memo = 'display: none;';
   $sStyleReadInp_memo = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['memo']) && $this->nmgp_cmp_readonly['memo'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['memo']);
       $sStyleReadLab_memo = '';
       $sStyleReadInp_memo = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['memo']) && $this->nmgp_cmp_hidden['memo'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="memo" value="<?php echo NM_encode_input($memo) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_memo" style="<?php echo $sStyleHidden_memo; ?>;"><span id="id_label_memo"><?php echo $this->nm_new_label['memo']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_memo" style="<?php echo $sStyleHidden_memo; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php
$memo_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($memo));

?>

<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["memo"]) &&  $this->nmgp_cmp_readonly["memo"] == "on") { 

 ?>
<input type=hidden name="memo" value="<?php echo NM_encode_input($memo) . "\">" . $memo_val . ""; ?>
<?php } else { ?>
<span id="id_read_on_memo" class="sc-ui-readonly-memo" style=";<?php echo $sStyleReadLab_memo; ?>"><?php echo NM_encode_input($memo_val); ?></span><span id="id_read_off_memo" style="white-space: nowrap;<?php echo $sStyleReadInp_memo; ?>">
 <textarea  class="sc-js-input scFormObjectOdd" style=";" name="memo" id="id_sc_field_memo" rows=2 cols=50
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}">
<?php echo str_replace(array('\r\n', '\n\r', '\n', '\r'), array("\r\n", "\n\r", "\n", "\r"), $memo); ?>
</textarea>
</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_memo_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_memo_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['yds']))
           {
               $this->nmgp_cmp_readonly['yds'] = 'on';
           }
?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_smemo" style="<?php echo $sStyleHidden_smemo; ?>;"><span id="id_label_smemo"><?php echo $this->nm_new_label['smemo']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_smemo" style="<?php echo $sStyleHidden_smemo; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php
$smemo_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($smemo));

?>

<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["smemo"]) &&  $this->nmgp_cmp_readonly["smemo"] == "on") { 

 ?>
<input type=hidden name="smemo" value="<?php echo NM_encode_input($smemo) . "\">" . $smemo_val . ""; ?>
<?php } else { ?>
<span id="id_read_on_smemo" class="sc-ui-readonly-smemo" style=";<?php echo $sStyleReadLab_smemo; ?>"><?php echo NM_encode_input($smemo_val); ?></span><span id="id_read_off_smemo" style="white-space: nowrap;<?php echo $sStyleReadInp_smemo; ?>">
 <textarea  class="sc-js-input scFormObjectOdd" style=";" name="smemo" id="id_sc_field_smemo" rows=2 cols=50
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}">
<?php echo str_replace(array('\r\n', '\n\r', '\n', '\r'), array("\r\n", "\n\r", "\n", "\r"), $smemo); ?>
</textarea>
</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_smemo_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_smemo_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['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';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['ozlin']))
           {
               $this->nmgp_cmp_readonly['ozlin'] = 'on';
           }
?>
<?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 ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['grammeter2']))
           {
               $this->nmgp_cmp_readonly['grammeter2'] = 'on';
           }
?>
<?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['sprice']))
           {
               $this->nmgp_cmp_readonly['sprice'] = '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>
