<?php

if (!isset($this->NM_ajax_info['param']['buffer_output']) || !$this->NM_ajax_info['param']['buffer_output'])
{
    $sOBContents = ob_get_contents();
    ob_end_clean();
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

<html<?php echo $_SESSION['scriptcase']['reg_conf']['html_dir'] ?>>
<HEAD>
 <TITLE><?php if ('novo' == $this->nmgp_opcao) { echo strip_tags("" . $this->Ini->Nm_lang['lang_othr_frmi_titl'] . " - accountants_acountants"); } else { echo strip_tags("" . $this->Ini->Nm_lang['lang_othr_frmu_titl'] . " - accountants_acountants"); } ?></TITLE>
 <META http-equiv="Content-Type" content="text/html; charset=<?php echo $_SESSION['scriptcase']['charset_html'] ?>" />
 <META http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"/>
 <META http-equiv="Last-Modified" content="<?php echo gmdate("D, d M Y H:i:s"); ?> GMT"/>
 <META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"/>
 <META http-equiv="Cache-Control" content="post-check=0, pre-check=0"/>
 <META http-equiv="Pragma" content="no-cache"/>
 <link rel="shortcut icon" href="../_lib/img/scriptcase__NM__ico__NM__favicon.ico">
<?php
header("X-XSS-Protection: 0");
?>
<?php

if (isset($_SESSION['scriptcase']['device_mobile']) && $_SESSION['scriptcase']['device_mobile'] && $_SESSION['scriptcase']['display_mobile'])
{
?>
 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<?php
}

?>
 <link rel="stylesheet" href="<?php echo $this->Ini->path_prod ?>/third/jquery_plugin/thickbox/thickbox.css" type="text/css" media="screen" />
 <SCRIPT type="text/javascript">
  var sc_pathToTB = '<?php echo $this->Ini->path_prod ?>/third/jquery_plugin/thickbox/';
 </SCRIPT>
 <SCRIPT type="text/javascript">
  var sc_blockCol = '<?php echo $this->Ini->Block_img_col; ?>';
  var sc_blockExp = '<?php echo $this->Ini->Block_img_exp; ?>';
  var sc_ajaxBg = '<?php echo $this->Ini->Color_bg_ajax; ?>';
  var sc_ajaxBordC = '<?php echo $this->Ini->Border_c_ajax; ?>';
  var sc_ajaxBordS = '<?php echo $this->Ini->Border_s_ajax; ?>';
  var sc_ajaxBordW = '<?php echo $this->Ini->Border_w_ajax; ?>';
  var sc_ajaxMsgTime = 2;
  var sc_img_status_ok = '<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Img_status_ok; ?>';
  var sc_img_status_err = '<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Img_status_err; ?>';
  var sc_css_status = '<?php echo $this->Ini->Css_status; ?>';
 </SCRIPT>
        <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery/js/jquery.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery/js/jquery-ui.js"></SCRIPT>
 <link rel="stylesheet" href="<?php echo $this->Ini->path_prod ?>/third/jquery/css/smoothness/jquery-ui.css" type="text/css" media="screen" />
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.iframe-transport.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.fileupload.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery_plugin/malsup-blockui/jquery.blockUI.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery_plugin/thickbox/thickbox-compressed.js"></SCRIPT>
 <style type="text/css">
  #quicksearchph_t {
   position: relative;
  }
  #quicksearchph_t img {
   position: absolute;
   top: 0;
   right: 0;
  }
 </style>
 <style type="text/css">
  .fileinput-button-padding {
   padding: 3px 10px !important;
  }
  .fileinput-button {
   position: relative;
   overflow: hidden;
   float: left;
   margin-right: 4px;
  }
  .fileinput-button input {
   position: absolute;
   top: 0;
   right: 0;
   margin: 0;
   border: solid transparent;
   border-width: 0 0 100px 200px;
   opacity: 0;
   filter: alpha(opacity=0);
   -moz-transform: translate(-300px, 0) scale(4);
   direction: ltr;
   cursor: pointer;
  }
 </style>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.scInput.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.fieldSelection.js"></SCRIPT>
 <?php
 if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['embutida_pdf']))
 {
 ?>
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_form.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_form<?php echo $_SESSION['scriptcase']['reg_conf']['css_dir'] ?>.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_tab.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_tab<?php echo $_SESSION['scriptcase']['reg_conf']['css_dir'] ?>.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/buttons/<?php echo $this->Ini->Str_btn_form . '/' . $this->Ini->Str_btn_form ?>.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_calendar.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_calendar<?php echo $_SESSION['scriptcase']['reg_conf']['css_dir'] ?>.css" />
<?php
   include_once("../_lib/css/" . $this->Ini->str_schema_all . "_tab.php");
 }
?>
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>form_accountants_acountants/form_accountants_acountants_<?php echo strtolower($_SESSION['scriptcase']['reg_conf']['css_dir']) ?>.css" />

<script>
var scFocusFirstErrorField = false;
var scFocusFirstErrorName  = "<?php echo $this->scFormFocusErrorName; ?>";
</script>

<?php
include_once("form_accountants_acountants_sajax_js.php");
?>
<script type="text/javascript">
if (document.getElementById("id_error_display_fixed"))
{
 scCenterFixedElement("id_error_display_fixed");
}
var posDispLeft = 0;
var posDispTop = 0;
var Nm_Proc_Atualiz = false;
function findPos(obj)
{
 var posCurLeft = posCurTop = 0;
 if (obj.offsetParent)
 {
  posCurLeft = obj.offsetLeft
  posCurTop = obj.offsetTop
  while (obj = obj.offsetParent)
  {
   posCurLeft += obj.offsetLeft
   posCurTop += obj.offsetTop
  }
 }
 posDispLeft = posCurLeft - 10;
 posDispTop = posCurTop + 30;
}
var Nav_permite_ret = "<?php if ($this->Nav_permite_ret) { echo 'S'; } else { echo 'N'; } ?>";
var Nav_permite_ava = "<?php if ($this->Nav_permite_ava) { echo 'S'; } else { echo 'N'; } ?>";
var Nav_binicio     = "<?php echo $this->arr_buttons['binicio']['type']; ?>";
var Nav_binicio_off = "<?php echo $this->arr_buttons['binicio_off']['type']; ?>";
var Nav_bavanca     = "<?php echo $this->arr_buttons['bavanca']['type']; ?>";
var Nav_bavanca_off = "<?php echo $this->arr_buttons['bavanca_off']['type']; ?>";
var Nav_bretorna    = "<?php echo $this->arr_buttons['bretorna']['type']; ?>";
var Nav_bretorna_off = "<?php echo $this->arr_buttons['bretorna_off']['type']; ?>";
var Nav_bfinal      = "<?php echo $this->arr_buttons['bfinal']['type']; ?>";
var Nav_bfinal_off  = "<?php echo $this->arr_buttons['bfinal_off']['type']; ?>";
function nav_atualiza(str_ret, str_ava, str_pos)
{
<?php
 if (isset($this->NM_btn_navega) && 'N' == $this->NM_btn_navega)
 {
     echo " return;";
 }
 else
 {
?>
 if ('S' == str_ret)
 {
<?php
    if ($this->nmgp_botoes['first'] == "on")
    {
?>
       $("#sc_b_ini_" + str_pos).show();
       $("#sc_b_ini_off_" + str_pos).hide().prop("disabled", false);
       $("#gbl_sc_b_ini_" + str_pos).show();
       $("#gbl_sc_b_ini_off_" + str_pos).hide();
<?php
    }
    if ($this->nmgp_botoes['back'] == "on")
    {
?>
       $("#sc_b_ret_" + str_pos).show();
       $("#sc_b_ret_off_" + str_pos).hide().prop("disabled", false);
       $("#gbl_sc_b_ret_" + str_pos).show();
       $("#gbl_sc_b_ret_off_" + str_pos).hide();
<?php
    }
?>
 }
 else
 {
<?php
    if ($this->nmgp_botoes['first'] == "on")
    {
?>
       $("#sc_b_ini_" + str_pos).hide();
       $("#sc_b_ini_off_" + str_pos).prop("disabled", true).show();
       $("#gbl_sc_b_ini_" + str_pos).hide();
       $("#gbl_sc_b_ini_off_" + str_pos).show();
<?php
    }
    if ($this->nmgp_botoes['back'] == "on")
    {
?>
       $("#sc_b_ret_" + str_pos).hide();
       $("#sc_b_ret_off_" + str_pos).prop("disabled", true).show();
       $("#gbl_sc_b_ret_" + str_pos).hide();
       $("#gbl_sc_b_ret_off_" + str_pos).show();
<?php
    }
?>
 }
 if ('S' == str_ava)
 {
<?php
    if ($this->nmgp_botoes['last'] == "on")
    {
?>
       $("#sc_b_fim_" + str_pos).show();
       $("#sc_b_fim_off_" + str_pos).hide().prop("disabled", false);
       $("#gbl_sc_b_fim_" + str_pos).show();
       $("#gbl_sc_b_fim_off_" + str_pos).hide();
<?php
    }
    if ($this->nmgp_botoes['forward'] == "on")
    {
?>
       $("#sc_b_avc_" + str_pos).show();
       $("#sc_b_avc_off_" + str_pos).hide().prop("disabled", false);
       $("#gbl_sc_b_avc_" + str_pos).show();
       $("#gbl_sc_b_avc_off_" + str_pos).hide();
<?php
    }
?>
 }
 else
 {
<?php
    if ($this->nmgp_botoes['last'] == "on")
    {
?>
       $("#sc_b_fim_" + str_pos).hide();
       $("#sc_b_fim_off_" + str_pos).prop("disabled", true).show();
       $("#gbl_sc_b_fim_" + str_pos).hide();
       $("#gbl_sc_b_fim_off_" + str_pos).show();
<?php
    }
    if ($this->nmgp_botoes['forward'] == "on")
    {
?>
       $("#sc_b_avc_" + str_pos).hide();
       $("#sc_b_avc_off_" + str_pos).prop("disabled", true).show();
       $("#gbl_sc_b_avc_" + str_pos).hide();
       $("#gbl_sc_b_avc_off_" + str_pos).show();
<?php
    }
?>
 }
<?php
  }
?>
}
function nav_liga_img()
{
 sExt = sImg.substr(sImg.length - 4);
 sImg = sImg.substr(0, sImg.length - 4);
 if ('_off' == sImg.substr(sImg.length - 4))
 {
  sImg = sImg.substr(0, sImg.length - 4);
 }
 sImg += sExt;
}
function nav_desliga_img()
{
 sExt = sImg.substr(sImg.length - 4);
 sImg = sImg.substr(0, sImg.length - 4);
 if ('_off' != sImg.substr(sImg.length - 4))
 {
  sImg += '_off';
 }
 sImg += sExt;
}
function summary_atualiza(reg_ini, reg_qtd, reg_tot)
{
    nm_sumario = "[<?php echo substr($this->Ini->Nm_lang['lang_othr_smry_info'], strpos($this->Ini->Nm_lang['lang_othr_smry_info'], "?final?")) ?>]";
    nm_sumario = nm_sumario.replace("?final?", reg_qtd);
    nm_sumario = nm_sumario.replace("?total?", reg_tot);
    if (reg_qtd < 1) {
        nm_sumario = "";
    }
    if (document.getElementById("sc_b_summary_b")) document.getElementById("sc_b_summary_b").innerHTML = nm_sumario;
}
function navpage_atualiza(str_navpage)
{
    if (document.getElementById("sc_b_navpage_b")) document.getElementById("sc_b_navpage_b").innerHTML = str_navpage;
}
<?php

include_once('form_accountants_acountants_jquery.php');

?>

 var scQSInit = true;
 var scQSPos  = {};
 var Dyn_Ini  = true;
 $(function() {

  scJQElementsAdd('');

  scJQGeneralAdd();

  $('#SC_fast_search_t').keyup(function(e) {
   scQuickSearchKeyUp('t', e);
  });

  $(document).bind('drop dragover', function (e) {
      e.preventDefault();
  });

  var i, iTestWidth, iMaxLabelWidth = 0, $labelList = $(".scUiLabelWidthFix");
  for (i = 0; i < $labelList.length; i++) {
    iTestWidth = $($labelList[i]).width();
    sTestWidth = iTestWidth + "";
    if ("" == iTestWidth) {
      iTestWidth = 0;
    }
    else if ("px" == sTestWidth.substr(sTestWidth.length - 2)) {
      iTestWidth = parseInt(sTestWidth.substr(0, sTestWidth.length - 2));
    }
    iMaxLabelWidth = Math.max(iMaxLabelWidth, iTestWidth);
  }
  if (0 < iMaxLabelWidth) {
    $(".scUiLabelWidthFix").css("width", iMaxLabelWidth + "px");
  }
<?php
if (!$this->NM_ajax_flag && isset($this->NM_non_ajax_info['ajaxJavascript']) && !empty($this->NM_non_ajax_info['ajaxJavascript']))
{
    foreach ($this->NM_non_ajax_info['ajaxJavascript'] as $aFnData)
    {
?>
  <?php echo $aFnData[0]; ?>(<?php echo implode(', ', $aFnData[1]); ?>);

<?php
    }
}
?>
 });

   $(window).on('load', function() {
     scQuickSearchInit(false, '');
     if (document.getElementById('SC_fast_search_t')) {
         scQuickSearchKeyUp('t', null);
     }
     scQSInit = false;
   });
   function scQuickSearchSubmit_t() {
     nm_move('fast_search', 't');
   }

   function scQuickSearchInit(bPosOnly, sPos) {
     if (!bPosOnly) {
       if (document.getElementById('SC_fast_search_t')) {
           if ('' == sPos || 't' == sPos) {
               scQuickSearchSize('SC_fast_search_t', 'SC_fast_search_close_t', 'SC_fast_search_submit_t', 'quicksearchph_t');
           }
       }
     }
   }
   function scQuickSearchSize(sIdInput, sIdClose, sIdSubmit, sPlaceHolder) {
     var oInput = $('#' + sIdInput),
         oClose = $('#' + sIdClose),
         oSubmit = $('#' + sIdSubmit),
         oPlace = $('#' + sPlaceHolder),
         iInputP = parseInt(oInput.css('padding-right')) || 0,
         iInputB = parseInt(oInput.css('border-right-width')) || 0,
         iInputW = oInput.outerWidth(),
         iPlaceW = oPlace.outerWidth(),
         oInputO = oInput.offset(),
         oPlaceO = oPlace.offset(),
         iNewRight;
     iNewRight = (iPlaceW - iInputW) - (oInputO.left - oPlaceO.left) + iInputB + 1;
     oInput.css({
       'height': Math.max(oInput.height(), 16) + 'px',
       'padding-right': iInputP + 16 + <?php echo $this->Ini->Str_qs_image_padding ?> + 'px'
     });
     oClose.css({
       'right': iNewRight + <?php echo $this->Ini->Str_qs_image_padding ?> + 'px',
       'cursor': 'pointer'
     });
     oSubmit.css({
       'right': iNewRight + <?php echo $this->Ini->Str_qs_image_padding ?> + 'px',
       'cursor': 'pointer'
     });
   }
   function scQuickSearchKeyUp(sPos, e) {
     if ('' != scQSInitVal && $('#SC_fast_search_' + sPos).val() == scQSInitVal && scQSInit) {
       $('#SC_fast_search_close_' + sPos).show();
       $('#SC_fast_search_submit_' + sPos).hide();
     }
     else {
       $('#SC_fast_search_close_' + sPos).hide();
       $('#SC_fast_search_submit_' + sPos).show();
     }
     if (null != e) {
       var keyPressed = e.charCode || e.keyCode || e.which;
       if (13 == keyPressed) {
         if ('t' == sPos) scQuickSearchSubmit_t();
       }
     }
   }
 if($(".sc-ui-block-control").length) {
  preloadBlock = new Image();
  preloadBlock.src = "<?php echo $this->Ini->path_icones; ?>/" + sc_blockExp;
 }

 var show_block = {
  
 };

 function toggleBlock(e) {
  var block = e.data.block,
      block_id = $(block).attr("id");
      block_img = $("#" + block_id + " .sc-ui-block-control");

  if (1 >= block.rows.length) {
   return;
  }

  show_block[block_id] = !show_block[block_id];

  if (show_block[block_id]) {
    $(block).css("height", "100%");
    if (block_img.length) block_img.attr("src", changeImgName(block_img.attr("src"), sc_blockCol));
  }
  else {
    $(block).css("height", "");
    if (block_img.length) block_img.attr("src", changeImgName(block_img.attr("src"), sc_blockExp));
  }

  for (var i = 1; i < block.rows.length; i++) {
   if (show_block[block_id])
    $(block.rows[i]).show();
   else
    $(block.rows[i]).hide();
  }

  if (show_block[block_id]) {
  }
 }

 function changeImgName(imgOld, imgNew) {
   var aOld = imgOld.split("/");
   aOld.pop();
   aOld.push(imgNew);
   return aOld.join("/");
 }

</script>
</HEAD>
<?php
$str_iframe_body = ('F' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe']) ? 'margin: 2px;' : '';
 if (isset($_SESSION['nm_aba_bg_color']))
 {
     $this->Ini->cor_bg_grid = $_SESSION['nm_aba_bg_color'];
     $this->Ini->img_fun_pag = $_SESSION['nm_aba_bg_img'];
 }
if ($GLOBALS["erro_incl"] == 1)
{
    $this->nmgp_opcao = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['opc_ant'] = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['recarga'] = "novo";
}
if (empty($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['recarga']))
{
    $opcao_botoes = $this->nmgp_opcao;
}
else
{
    $opcao_botoes = $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['recarga'];
}
?>
<body class="scFormPage" style="<?php echo $str_iframe_body; ?>">
<?php

if (!isset($this->NM_ajax_info['param']['buffer_output']) || !$this->NM_ajax_info['param']['buffer_output'])
{
    echo $sOBContents;
}

?>
<div id="idJSSpecChar" style="display: none;"></div>
<script type="text/javascript">
function NM_tp_critica(TP)
{
    if (TP == 0 || TP == 1 || TP == 2)
    {
        nmdg_tipo_crit = TP;
    }
}
</script> 
<?php
 include_once("form_accountants_acountants_js0.php");
?>
<script type="text/javascript"> 
 function setLocale(oSel)
 {
  var sLocale = "";
  if (-1 < oSel.selectedIndex)
  {
   sLocale = oSel.options[oSel.selectedIndex].value;
  }
  document.F1.nmgp_idioma_novo.value = sLocale;
 }
 function setSchema(oSel)
 {
  var sLocale = "";
  if (-1 < oSel.selectedIndex)
  {
   sLocale = oSel.options[oSel.selectedIndex].value;
  }
  document.F1.nmgp_schema_f.value = sLocale;
 }
 </script>
<form  name="F1" method="post" 
               action="./" 
               target="_self">
<input type="hidden" name="nmgp_url_saida" value="">
<?php
if ('novo' == $this->nmgp_opcao || 'incluir' == $this->nmgp_opcao)
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['insert_validation'] = md5(time() . rand(1, 99999));
?>
<input type="hidden" name="nmgp_ins_valid" value="<?php echo $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['insert_validation']; ?>">
<?php
}
?>
<input type="hidden" name="nm_form_submit" value="1">
<input type="hidden" name="nmgp_idioma_novo" value="">
<input type="hidden" name="nmgp_schema_f" value="">
<input type="hidden" name="nmgp_opcao" value="">
<input type="hidden" name="nmgp_ancora" value="">
<input type="hidden" name="nmgp_num_form" value="<?php  echo $this->form_encode_input($nmgp_num_form); ?>">
<input type="hidden" name="nmgp_parms" value="">
<input type="hidden" name="script_case_init" value="<?php  echo $this->form_encode_input($this->Ini->sc_page); ?>">
<input type="hidden" name="script_case_session" value="<?php  echo $this->form_encode_input(session_id()); ?>">
<input type="hidden" name="NM_cancel_return_new" value="<?php echo $this->NM_cancel_return_new ?>">
<input type="hidden" name="csrf_token" value="<?php echo $this->scCsrfGetToken() ?>" />
<input type="hidden" name="_sc_force_mobile" id="sc-id-mobile-control" value="" />
<?php
$_SESSION['scriptcase']['error_span_title']['form_accountants_acountants'] = $this->Ini->Error_icon_span;
$_SESSION['scriptcase']['error_icon_title']['form_accountants_acountants'] = '' != $this->Ini->Err_ico_title ? $this->Ini->path_icones . '/' . $this->Ini->Err_ico_title : '';
?>
<div style="display: none; position: absolute; z-index: 1000" id="id_error_display_table_frame">
<table class="scFormErrorTable">
<tr><?php if ($this->Ini->Error_icon_span && '' != $this->Ini->Err_ico_title) { ?><td style="padding: 0px" rowspan="2"><img src="<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Err_ico_title; ?>" style="border-width: 0px" align="top"></td><?php } ?><td class="scFormErrorTitle"><table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormErrorTitleFont" style="padding: 0px; vertical-align: top; width: 100%"><?php if (!$this->Ini->Error_icon_span && '' != $this->Ini->Err_ico_title) { ?><img src="<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Err_ico_title; ?>" style="border-width: 0px" align="top">&nbsp;<?php } ?><?php echo $this->Ini->Nm_lang['lang_errm_errt'] ?></td><td style="padding: 0px; vertical-align: top"><?php echo nmButtonOutput($this->arr_buttons, "berrm_clse", "scAjaxHideErrorDisplay('table')", "scAjaxHideErrorDisplay('table')", "", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
</td></tr></table></td></tr>
<tr><td class="scFormErrorMessage"><span id="id_error_display_table_text"></span></td></tr>
</table>
</div>
<div style="display: none; position: absolute; z-index: 1000" id="id_message_display_frame">
 <table class="scFormMessageTable" id="id_message_display_content" style="width: 100%">
  <tr id="id_message_display_title_line">
   <td class="scFormMessageTitle" style="height: 20px"><?php
if ('' != $this->Ini->Msg_ico_title) {
?>
<img src="<?php echo $this->Ini->path_icones . '/' . $this->Ini->Msg_ico_title; ?>" style="border-width: 0px; vertical-align: middle">&nbsp;<?php
}
?>
<?php echo nmButtonOutput($this->arr_buttons, "bmessageclose", "_scAjaxMessageBtnClose()", "_scAjaxMessageBtnClose()", "id_message_display_close_icon", "", "", "float: right", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
<span id="id_message_display_title" style="vertical-align: middle"></span></td>
  </tr>
  <tr>
   <td class="scFormMessageMessage"><?php
if ('' != $this->Ini->Msg_ico_body) {
?>
<img id="id_message_display_body_icon" src="<?php echo $this->Ini->path_icones . '/' . $this->Ini->Msg_ico_body; ?>" style="border-width: 0px; vertical-align: middle">&nbsp;<?php
}
?>
<span id="id_message_display_text"></span><div id="id_message_display_buttond" style="display: none; text-align: center"><br /><input id="id_message_display_buttone" type="button" class="scButton_default" value="Ok" onClick="_scAjaxMessageBtnClick()" ></div></td>
  </tr>
 </table>
</div>
<script type="text/javascript">
var scMsgDefTitle = "<?php echo $this->Ini->Nm_lang['lang_usr_lang_othr_msgs_titl']; ?>";
var scMsgDefButton = "Ok";
var scMsgDefClick = "close";
var scMsgDefScInit = "<?php echo $this->Ini->page; ?>";
</script>
<table id="main_table_form"  align="center" cellpadding=0 cellspacing=0 >
 <tr>
  <td>
  <div class="scFormBorder">
   <table width='100%' cellspacing=0 cellpadding=0>
<?php
  if (!$this->Embutida_call && (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['mostra_cab']) || $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['mostra_cab'] != "N") && (!$_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard'] || !$_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['compact_mode'] || $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['maximized']))
  {
?>
<tr><td>
<style>
#lin1_col1 { padding-left:9px; padding-top:7px;  height:27px; overflow:hidden; text-align:left;}			 
#lin1_col2 { padding-right:9px; padding-top:7px; height:27px; text-align:right; overflow:hidden;   font-size:12px; font-weight:normal;}
</style>

<div style="width: 100%">
 <div class="scFormHeader" style="height:11px; display: block; border-width:0px; "></div>
 <div style="height:37px; border-width:0px 0px 1px 0px;  border-style: dashed; border-color:#ddd; display: block">
 	<table style="width:100%; border-collapse:collapse; padding:0;">
    	<tr>
        	<td id="lin1_col1" class="scFormHeaderFont"><span><?php if ($this->nmgp_opcao == "novo") { echo "" . $this->Ini->Nm_lang['lang_othr_frmi_titl'] . " - accountants_acountants"; } else { echo "" . $this->Ini->Nm_lang['lang_othr_frmu_titl'] . " - accountants_acountants"; } ?></span></td>
            <td id="lin1_col2" class="scFormHeaderFont"><span><?php echo date($this->dateDefaultFormat()); ?></span></td>
        </tr>
    </table>		 
 </div>
</div>
</td></tr>
<?php
  }
?>
<tr><td>
<?php
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "R")
{
?>
    <table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormToolbar" style="padding: 0px; spacing: 0px">
    <table style="border-collapse: collapse; border-width: 0px; width: 100%">
    <tr> 
     <td nowrap align="left" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "R")
{
    $NM_btn = false;
      if ($this->nmgp_botoes['qsearch'] == "on" && $opcao_botoes != "novo")
      {
          $OPC_cmp = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['fast_search'][0] : "";
          $OPC_arg = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['fast_search'][1] : "";
          $OPC_dat = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['fast_search'][2] : "";
?> 
           <script type="text/javascript">var change_fast_t = "";</script>
          <input type="hidden" name="nmgp_fast_search_t" value="SC_all_Cmp">
          <input type="hidden" name="nmgp_cond_fast_search_t" value="qp">
          <script type="text/javascript">var scQSInitVal = "<?php echo $OPC_dat ?>";</script>
          <span id="quicksearchph_t">
           <input type="text" id="SC_fast_search_t" class="scFormToolbarInput" style="vertical-align: middle" name="nmgp_arg_fast_search_t" value="<?php echo $this->form_encode_input($OPC_dat) ?>" size="10" onChange="change_fast_t = 'CH';" alt="{maxLength: 255}" placeholder="<?php echo $this->Ini->Nm_lang['lang_othr_qk_watermark'] ?>">
           <img style="position: absolute; display: none; height: 16px; width: 16px" id="SC_fast_search_close_t" src="<?php echo $this->Ini->path_botoes ?>/<?php echo $this->Ini->Img_qs_clean; ?>" onclick="document.getElementById('SC_fast_search_t').value = ''; nm_move('fast_search', 't');">
           <img style="position: absolute; display: none; height: 16px; width: 16px" id="SC_fast_search_submit_t" src="<?php echo $this->Ini->path_botoes ?>/<?php echo $this->Ini->Img_qs_search; ?>" onclick="scQuickSearchSubmit_t();">
          </span>
<?php 
      }
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['new'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bnovo", "nm_move ('novo');", "nm_move ('novo');", "sc_b_new_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!$this->Embutida_call || $this->sc_evento == "novo" || $this->sc_evento == "insert" || $this->sc_evento == "incluir")) {
        $sCondStyle = ($this->nmgp_botoes['insert'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bincluir", "nm_atualiza ('incluir');", "nm_atualiza ('incluir');", "sc_b_ins_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!$this->Embutida_call || $this->sc_evento == "novo" || $this->sc_evento == "insert" || $this->sc_evento == "incluir")) {
        $sCondStyle = ($this->nmgp_botoes['insert'] == "on" && $this->nmgp_botoes['cancel'] == "on") && ($this->nm_flag_saida_novo != "S" || $this->nmgp_botoes['exit'] != "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bcancelar", "" . $this->NM_cancel_insert_new . " document.F5.submit();", "" . $this->NM_cancel_insert_new . " document.F5.submit();", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['update'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "balterar", "nm_atualiza ('alterar');", "nm_atualiza ('alterar');", "sc_b_upd_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['delete'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bexcluir", "nm_atualiza ('excluir');", "nm_atualiza ('excluir');", "sc_b_del_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ('' != $this->url_webhelp) {
        $sCondStyle = '';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bhelp", "window.open('" . $this->url_webhelp. "', '', 'resizable, scrollbars'); ", "window.open('" . $this->url_webhelp. "', '', 'resizable, scrollbars'); ", "", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (isset($_SESSION['scriptcase']['nm_sc_retorno']) && !empty($_SESSION['scriptcase']['nm_sc_retorno']) && ($nm_apl_dependente != 1 || $this->nm_Start_new) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "R") && (!$this->Embutida_call) && ((!isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard']) || !$_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard']))) {
        $sCondStyle = (($this->nm_flag_saida_novo == "S" || ($this->nm_Start_new && !$this->aba_iframe)) && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] == "R") && (!$this->Embutida_call) && ((!isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard']) || !$_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard']))) {
        $sCondStyle = ($this->nm_flag_saida_novo == "S" && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call) && ((!isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard']) || !$_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard'] || (isset($this->is_calendar_app) && $this->is_calendar_app)))) {
        $sCondStyle = (isset($_SESSION['scriptcase']['nm_sc_retorno']) && !empty($_SESSION['scriptcase']['nm_sc_retorno']) && $nm_apl_dependente != 1 && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "R" && !$this->aba_iframe && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bsair", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call) && ((!isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard']) || !$_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard'] || (isset($this->is_calendar_app) && $this->is_calendar_app)))) {
        $sCondStyle = (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "F" && $this->nmgp_botoes['exit'] == "on") && ($nm_apl_dependente == 1 && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call) && ((!isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard']) || !$_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard'] || (isset($this->is_calendar_app) && $this->is_calendar_app)))) {
        $sCondStyle = (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "F" && $this->nmgp_botoes['exit'] == "on") && ($nm_apl_dependente != 1 || $this->nmgp_botoes['exit'] != "on") && ((!$this->aba_iframe || $this->is_calendar_app) && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bsair", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "R")
{
?>
   </td></tr> 
   </table> 
   </td></tr></table> 
<?php
}
?>
<?php
if (!$NM_btn && isset($NM_ult_sep))
{
    echo "    <script language=\"javascript\">";
    echo "      document.getElementById('" .  $NM_ult_sep . "').style.display='none';";
    echo "    </script>";
}
unset($NM_ult_sep);
?>
<?php if ('novo' != $this->nmgp_opcao || $this->Embutida_form) { ?><script>nav_atualiza(Nav_permite_ret, Nav_permite_ava, 't');</script><?php } ?>
</td></tr> 
<tr><td>
<?php
       echo "<div id=\"sc-ui-empty-form\" class=\"scFormPageText\" style=\"padding: 10px; text-align: center; font-weight: bold" . ($this->nmgp_form_empty ? '' : '; display: none') . "\">";
       echo $this->Ini->Nm_lang['lang_errm_empt'];
       echo "</div>";
  if ($this->nmgp_form_empty)
  {
       if (!empty($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['where_filter']))
       {
           $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['empty_filter'] = true;
       }
  }
  else
  {
?>
<?php $sc_hidden_no = 1; $sc_hidden_yes = 0; ?>
   <a name="bloco_0"></a>
   <table width="100%" height="100%" cellpadding="0" cellspacing=0><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_0"><!-- bloco_c -->
<?php
?>
<TABLE align="center" id="hidden_bloco_0" class="scFormTable" width="100%" style="height: 100%;"><?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['sn']))
           {
               $this->nmgp_cmp_readonly['sn'] = 'on';
           }
?>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


   <?php
    if (!isset($this->nm_new_label['sn']))
    {
        $this->nm_new_label['sn'] = "المسلسل";
    }
?>
<?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);
   $sn = $this->sn;
   $sStyleHidden_sn = '';
   if (isset($this->nmgp_cmp_hidden['sn']) && $this->nmgp_cmp_hidden['sn'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['sn']);
       $sStyleHidden_sn = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_sn = 'display: none;';
   $sStyleReadInp_sn = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["sn"]) &&  $this->nmgp_cmp_readonly["sn"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['sn']);
       $sStyleReadLab_sn = '';
       $sStyleReadInp_sn = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['sn']) && $this->nmgp_cmp_hidden['sn'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="sn" value="<?php echo $this->form_encode_input($sn) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>
<?php if ((isset($this->Embutida_form) && $this->Embutida_form) || ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir")) { ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_sn_label" id="hidden_field_label_sn" style="<?php echo $sStyleHidden_sn; ?>"><span id="id_label_sn"><?php echo $this->nm_new_label['sn']; ?></span></TD>
    <TD class="scFormDataOdd css_sn_line" id="hidden_field_data_sn" style="<?php echo $sStyleHidden_sn; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOdd css_sn_line" style="vertical-align: top;padding: 0px"><span id="id_read_on_sn" class="css_sn_line" style="<?php echo $sStyleReadLab_sn; ?>"><?php echo $this->form_encode_input($this->sn); ?></span><span id="id_read_off_sn" style="<?php echo $sStyleReadInp_sn; ?>"><input type="hidden" name="sn" value="<?php echo $this->form_encode_input($sn) . "\">"?><span id="id_ajax_label_sn"><?php echo nl2br($sn); ?></span>
</span></span></td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_sn_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_sn_text"></span></td></tr></table></td></tr></table></TD>
   <?php }
      else
      {
         $sc_hidden_no--;
      }
?>
<?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 (!isset($this->nm_new_label['approved_on_month']))
   {
       $this->nm_new_label['approved_on_month'] = "معتمد في شهر";
   }
   $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);
   $approved_on_month = $this->approved_on_month;
   $sStyleHidden_approved_on_month = '';
   if (isset($this->nmgp_cmp_hidden['approved_on_month']) && $this->nmgp_cmp_hidden['approved_on_month'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['approved_on_month']);
       $sStyleHidden_approved_on_month = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_approved_on_month = 'display: none;';
   $sStyleReadInp_approved_on_month = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['approved_on_month']) && $this->nmgp_cmp_readonly['approved_on_month'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['approved_on_month']);
       $sStyleReadLab_approved_on_month = '';
       $sStyleReadInp_approved_on_month = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['approved_on_month']) && $this->nmgp_cmp_hidden['approved_on_month'] == 'off') { $sc_hidden_yes++; ?>
<input type=hidden name="approved_on_month" value="<?php echo $this->form_encode_input($this->approved_on_month) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_approved_on_month_label" id="hidden_field_label_approved_on_month" style="<?php echo $sStyleHidden_approved_on_month; ?>"><span id="id_label_approved_on_month"><?php echo $this->nm_new_label['approved_on_month']; ?></span></TD>
    <TD class="scFormDataOdd css_approved_on_month_line" id="hidden_field_data_approved_on_month" style="<?php echo $sStyleHidden_approved_on_month; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_approved_on_month_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["approved_on_month"]) &&  $this->nmgp_cmp_readonly["approved_on_month"] == "on") { 

$approved_on_month_look = "";
 if ($this->approved_on_month == "يناير") { $approved_on_month_look .= "يناير" ;} 
 if ($this->approved_on_month == "فبراير") { $approved_on_month_look .= "فبراير" ;} 
 if ($this->approved_on_month == "مارس") { $approved_on_month_look .= "مارس" ;} 
 if ($this->approved_on_month == "ابريل") { $approved_on_month_look .= "ابريل" ;} 
 if ($this->approved_on_month == "مايو") { $approved_on_month_look .= "مايو" ;} 
 if ($this->approved_on_month == "يونيو") { $approved_on_month_look .= "يونيو" ;} 
 if ($this->approved_on_month == "يوليو") { $approved_on_month_look .= "يوليو" ;} 
 if ($this->approved_on_month == "اغسطس") { $approved_on_month_look .= "اغسطس" ;} 
 if ($this->approved_on_month == "سبتمبر") { $approved_on_month_look .= "سبتمبر" ;} 
 if ($this->approved_on_month == "اكتوبر") { $approved_on_month_look .= "اكتوبر" ;} 
 if ($this->approved_on_month == "نوفمبر") { $approved_on_month_look .= "نوفمبر" ;} 
 if ($this->approved_on_month == "ديسمبر") { $approved_on_month_look .= "ديسمبر" ;} 
 if (empty($approved_on_month_look)) { $approved_on_month_look = $this->approved_on_month; }
?>
<input type="hidden" name="approved_on_month" value="<?php echo $this->form_encode_input($approved_on_month) . "\">" . $approved_on_month_look . ""; ?>
<?php } else { ?>
<?php

$approved_on_month_look = "";
 if ($this->approved_on_month == "يناير") { $approved_on_month_look .= "يناير" ;} 
 if ($this->approved_on_month == "فبراير") { $approved_on_month_look .= "فبراير" ;} 
 if ($this->approved_on_month == "مارس") { $approved_on_month_look .= "مارس" ;} 
 if ($this->approved_on_month == "ابريل") { $approved_on_month_look .= "ابريل" ;} 
 if ($this->approved_on_month == "مايو") { $approved_on_month_look .= "مايو" ;} 
 if ($this->approved_on_month == "يونيو") { $approved_on_month_look .= "يونيو" ;} 
 if ($this->approved_on_month == "يوليو") { $approved_on_month_look .= "يوليو" ;} 
 if ($this->approved_on_month == "اغسطس") { $approved_on_month_look .= "اغسطس" ;} 
 if ($this->approved_on_month == "سبتمبر") { $approved_on_month_look .= "سبتمبر" ;} 
 if ($this->approved_on_month == "اكتوبر") { $approved_on_month_look .= "اكتوبر" ;} 
 if ($this->approved_on_month == "نوفمبر") { $approved_on_month_look .= "نوفمبر" ;} 
 if ($this->approved_on_month == "ديسمبر") { $approved_on_month_look .= "ديسمبر" ;} 
 if (empty($approved_on_month_look)) { $approved_on_month_look = $this->approved_on_month; }
?>
<span id="id_read_on_approved_on_month" class="css_approved_on_month_line"  style="<?php echo $sStyleReadLab_approved_on_month; ?>"><?php echo $this->form_encode_input($approved_on_month_look); ?></span><span id="id_read_off_approved_on_month" style="<?php echo $sStyleReadInp_approved_on_month; ?>">
 <span id="idAjaxSelect_approved_on_month"><select class="sc-js-input scFormObjectOdd css_approved_on_month_obj" style="" id="id_sc_field_approved_on_month" name="approved_on_month" size="1" alt="{type: 'select', enterTab: false}">
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_approved_on_month'][] = ''; ?>
 <option value="">الرجاء اختيار الشهر</option>
 <option  value="يناير" <?php  if ($this->approved_on_month == "يناير") { echo " selected" ;} ?>>يناير</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_approved_on_month'][] = 'يناير'; ?>
 <option  value="فبراير" <?php  if ($this->approved_on_month == "فبراير") { echo " selected" ;} ?>>فبراير</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_approved_on_month'][] = 'فبراير'; ?>
 <option  value="مارس" <?php  if ($this->approved_on_month == "مارس") { echo " selected" ;} ?>>مارس</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_approved_on_month'][] = 'مارس'; ?>
 <option  value="ابريل" <?php  if ($this->approved_on_month == "ابريل") { echo " selected" ;} ?>>ابريل</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_approved_on_month'][] = 'ابريل'; ?>
 <option  value="مايو" <?php  if ($this->approved_on_month == "مايو") { echo " selected" ;} ?>>مايو</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_approved_on_month'][] = 'مايو'; ?>
 <option  value="يونيو" <?php  if ($this->approved_on_month == "يونيو") { echo " selected" ;} ?>>يونيو</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_approved_on_month'][] = 'يونيو'; ?>
 <option  value="يوليو" <?php  if ($this->approved_on_month == "يوليو") { echo " selected" ;} ?>>يوليو</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_approved_on_month'][] = 'يوليو'; ?>
 <option  value="اغسطس" <?php  if ($this->approved_on_month == "اغسطس") { echo " selected" ;} ?>>اغسطس</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_approved_on_month'][] = 'اغسطس'; ?>
 <option  value="سبتمبر" <?php  if ($this->approved_on_month == "سبتمبر") { echo " selected" ;} ?>>سبتمبر</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_approved_on_month'][] = 'سبتمبر'; ?>
 <option  value="اكتوبر" <?php  if ($this->approved_on_month == "اكتوبر") { echo " selected" ;} ?>>اكتوبر</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_approved_on_month'][] = 'اكتوبر'; ?>
 <option  value="نوفمبر" <?php  if ($this->approved_on_month == "نوفمبر") { echo " selected" ;} ?>>نوفمبر</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_approved_on_month'][] = 'نوفمبر'; ?>
 <option  value="ديسمبر" <?php  if ($this->approved_on_month == "ديسمبر") { echo " selected" ;} ?>>ديسمبر</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_approved_on_month'][] = 'ديسمبر'; ?>
 </select></span>
</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_approved_on_month_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_approved_on_month_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 (!isset($this->nm_new_label['transection_order']))
    {
        $this->nm_new_label['transection_order'] = "Transection Order";
    }
?>
<?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);
   $transection_order = $this->transection_order;
   $sStyleHidden_transection_order = '';
   if (isset($this->nmgp_cmp_hidden['transection_order']) && $this->nmgp_cmp_hidden['transection_order'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['transection_order']);
       $sStyleHidden_transection_order = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_transection_order = 'display: none;';
   $sStyleReadInp_transection_order = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['transection_order']) && $this->nmgp_cmp_readonly['transection_order'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['transection_order']);
       $sStyleReadLab_transection_order = '';
       $sStyleReadInp_transection_order = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['transection_order']) && $this->nmgp_cmp_hidden['transection_order'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="transection_order" value="<?php echo $this->form_encode_input($transection_order) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_transection_order_label" id="hidden_field_label_transection_order" style="<?php echo $sStyleHidden_transection_order; ?>"><span id="id_label_transection_order"><?php echo $this->nm_new_label['transection_order']; ?></span></TD>
    <TD class="scFormDataOdd css_transection_order_line" id="hidden_field_data_transection_order" style="<?php echo $sStyleHidden_transection_order; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_transection_order_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["transection_order"]) &&  $this->nmgp_cmp_readonly["transection_order"] == "on") { 

 ?>
<input type="hidden" name="transection_order" value="<?php echo $this->form_encode_input($transection_order) . "\">" . $transection_order . ""; ?>
<?php } else { ?>
<span id="id_read_on_transection_order" class="sc-ui-readonly-transection_order css_transection_order_line" style="<?php echo $sStyleReadLab_transection_order; ?>"><?php echo $this->form_encode_input($this->transection_order); ?></span><span id="id_read_off_transection_order" style="white-space: nowrap;<?php echo $sStyleReadInp_transection_order; ?>">
 <input class="sc-js-input scFormObjectOdd css_transection_order_obj" style="" id="id_sc_field_transection_order" type=text name="transection_order" value="<?php echo $this->form_encode_input($transection_order) ?>"
 size=20 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', 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_transection_order_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_transection_order_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 (!isset($this->nm_new_label['transection_date']))
    {
        $this->nm_new_label['transection_date'] = "تاريخ اجراء العملية";
    }
?>
<?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);
   $transection_date = $this->transection_date;
   $sStyleHidden_transection_date = '';
   if (isset($this->nmgp_cmp_hidden['transection_date']) && $this->nmgp_cmp_hidden['transection_date'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['transection_date']);
       $sStyleHidden_transection_date = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_transection_date = 'display: none;';
   $sStyleReadInp_transection_date = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['transection_date']) && $this->nmgp_cmp_readonly['transection_date'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['transection_date']);
       $sStyleReadLab_transection_date = '';
       $sStyleReadInp_transection_date = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['transection_date']) && $this->nmgp_cmp_hidden['transection_date'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="transection_date" value="<?php echo $this->form_encode_input($transection_date) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_transection_date_label" id="hidden_field_label_transection_date" style="<?php echo $sStyleHidden_transection_date; ?>"><span id="id_label_transection_date"><?php echo $this->nm_new_label['transection_date']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['php_cmp_required']['transection_date']) || $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['php_cmp_required']['transection_date'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd css_transection_date_line" id="hidden_field_data_transection_date" style="<?php echo $sStyleHidden_transection_date; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_transection_date_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["transection_date"]) &&  $this->nmgp_cmp_readonly["transection_date"] == "on") { 

 ?>
<input type="hidden" name="transection_date" value="<?php echo $this->form_encode_input($transection_date) . "\">" . $transection_date . ""; ?>
<?php } else { ?>
<span id="id_read_on_transection_date" class="sc-ui-readonly-transection_date css_transection_date_line" style="<?php echo $sStyleReadLab_transection_date; ?>"><?php echo $this->form_encode_input($transection_date); ?></span><span id="id_read_off_transection_date" style="white-space: nowrap;<?php echo $sStyleReadInp_transection_date; ?>">
 <input class="sc-js-input scFormObjectOdd css_transection_date_obj" style="" id="id_sc_field_transection_date" type=text name="transection_date" value="<?php echo $this->form_encode_input($transection_date) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['transection_date']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['transection_date']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ><?php
$tmp_form_data = $this->field_config['transection_date']['date_format'];
$tmp_form_data = str_replace('aaaa', 'yyyy', $tmp_form_data);
$tmp_form_data = str_replace('dd'  , $this->Ini->Nm_lang['lang_othr_date_days'], $tmp_form_data);
$tmp_form_data = str_replace('mm'  , $this->Ini->Nm_lang['lang_othr_date_mnth'], $tmp_form_data);
$tmp_form_data = str_replace('yyyy', $this->Ini->Nm_lang['lang_othr_date_year'], $tmp_form_data);
$tmp_form_data = str_replace('hh'  , $this->Ini->Nm_lang['lang_othr_date_hour'], $tmp_form_data);
$tmp_form_data = str_replace('ii'  , $this->Ini->Nm_lang['lang_othr_date_mint'], $tmp_form_data);
$tmp_form_data = str_replace('ss'  , $this->Ini->Nm_lang['lang_othr_date_scnd'], $tmp_form_data);
$tmp_form_data = str_replace(';'   , ' '                                       , $tmp_form_data);
?>
</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_transection_date_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_transection_date_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 (!isset($this->nm_new_label['income_outcome']))
   {
       $this->nm_new_label['income_outcome'] = "مصروفات / ايرادات";
   }
   $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);
   $income_outcome = $this->income_outcome;
   $sStyleHidden_income_outcome = '';
   if (isset($this->nmgp_cmp_hidden['income_outcome']) && $this->nmgp_cmp_hidden['income_outcome'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['income_outcome']);
       $sStyleHidden_income_outcome = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_income_outcome = 'display: none;';
   $sStyleReadInp_income_outcome = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['income_outcome']) && $this->nmgp_cmp_readonly['income_outcome'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['income_outcome']);
       $sStyleReadLab_income_outcome = '';
       $sStyleReadInp_income_outcome = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['income_outcome']) && $this->nmgp_cmp_hidden['income_outcome'] == 'off') { $sc_hidden_yes++; ?>
<input type=hidden name="income_outcome" value="<?php echo $this->form_encode_input($this->income_outcome) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_income_outcome_label" id="hidden_field_label_income_outcome" style="<?php echo $sStyleHidden_income_outcome; ?>"><span id="id_label_income_outcome"><?php echo $this->nm_new_label['income_outcome']; ?></span></TD>
    <TD class="scFormDataOdd css_income_outcome_line" id="hidden_field_data_income_outcome" style="<?php echo $sStyleHidden_income_outcome; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_income_outcome_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["income_outcome"]) &&  $this->nmgp_cmp_readonly["income_outcome"] == "on") { 

$income_outcome_look = "";
 if ($this->income_outcome == "ايرادات") { $income_outcome_look .= "ايرادات" ;} 
 if ($this->income_outcome == "مصروفات") { $income_outcome_look .= "مصروفات" ;} 
 if (empty($income_outcome_look)) { $income_outcome_look = $this->income_outcome; }
?>
<input type="hidden" name="income_outcome" value="<?php echo $this->form_encode_input($income_outcome) . "\">" . $income_outcome_look . ""; ?>
<?php } else { ?>
<?php

$income_outcome_look = "";
 if ($this->income_outcome == "ايرادات") { $income_outcome_look .= "ايرادات" ;} 
 if ($this->income_outcome == "مصروفات") { $income_outcome_look .= "مصروفات" ;} 
 if (empty($income_outcome_look)) { $income_outcome_look = $this->income_outcome; }
?>
<span id="id_read_on_income_outcome" class="css_income_outcome_line"  style="<?php echo $sStyleReadLab_income_outcome; ?>"><?php echo $this->form_encode_input($income_outcome_look); ?></span><span id="id_read_off_income_outcome" style="<?php echo $sStyleReadInp_income_outcome; ?>">
 <span id="idAjaxSelect_income_outcome"><select class="sc-js-input scFormObjectOdd css_income_outcome_obj" style="" id="id_sc_field_income_outcome" name="income_outcome" size="1" alt="{type: 'select', enterTab: false}">
 <option  value="ايرادات" <?php  if ($this->income_outcome == "ايرادات") { echo " selected" ;} ?>>ايرادات</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_income_outcome'][] = 'ايرادات'; ?>
 <option  value="مصروفات" <?php  if ($this->income_outcome == "مصروفات") { echo " selected" ;} ?>>مصروفات</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_income_outcome'][] = 'مصروفات'; ?>
 </select></span>
</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_income_outcome_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_income_outcome_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 (!isset($this->nm_new_label['income_outcome_type']))
   {
       $this->nm_new_label['income_outcome_type'] = "نوع الصرف / الايراد";
   }
   $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);
   $income_outcome_type = $this->income_outcome_type;
   $sStyleHidden_income_outcome_type = '';
   if (isset($this->nmgp_cmp_hidden['income_outcome_type']) && $this->nmgp_cmp_hidden['income_outcome_type'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['income_outcome_type']);
       $sStyleHidden_income_outcome_type = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_income_outcome_type = 'display: none;';
   $sStyleReadInp_income_outcome_type = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['income_outcome_type']) && $this->nmgp_cmp_readonly['income_outcome_type'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['income_outcome_type']);
       $sStyleReadLab_income_outcome_type = '';
       $sStyleReadInp_income_outcome_type = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['income_outcome_type']) && $this->nmgp_cmp_hidden['income_outcome_type'] == 'off') { $sc_hidden_yes++; ?>
<input type=hidden name="income_outcome_type" value="<?php echo $this->form_encode_input($this->income_outcome_type) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_income_outcome_type_label" id="hidden_field_label_income_outcome_type" style="<?php echo $sStyleHidden_income_outcome_type; ?>"><span id="id_label_income_outcome_type"><?php echo $this->nm_new_label['income_outcome_type']; ?></span></TD>
    <TD class="scFormDataOdd css_income_outcome_type_line" id="hidden_field_data_income_outcome_type" style="<?php echo $sStyleHidden_income_outcome_type; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_income_outcome_type_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["income_outcome_type"]) &&  $this->nmgp_cmp_readonly["income_outcome_type"] == "on") { 
 
$nmgp_def_dados = "" ; 
if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_income_outcome_type']))
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_income_outcome_type'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_income_outcome_type']); 
}
else
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_income_outcome_type'] = array(); 
}
   if (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_ibase))
   { 
       $GLOBALS["NM_ERRO_IBASE"] = 1;  
   } 
   $nm_nao_carga = false;
   $nmgp_def_dados = "" ; 
   if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_income_outcome_type']))
   {
       $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_income_outcome_type'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_income_outcome_type']); 
   }
   else
   {
       $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_income_outcome_type'] = array(); 
    }

   $old_value_sn = $this->sn;
   $old_value_transection_date = $this->transection_date;
   $old_value_check_number = $this->check_number;
   $old_value_payment_voucher = $this->payment_voucher;
   $old_value_receipt_voucher = $this->receipt_voucher;
   $old_value_amount = $this->amount;
   $old_value_depit = $this->depit;
   $old_value_creditor = $this->creditor;
   $old_value_bank_balance = $this->bank_balance;
   $this->nm_tira_formatacao();
   $this->nm_converte_datas(false);


   $unformatted_value_sn = $this->sn;
   $unformatted_value_transection_date = $this->transection_date;
   $unformatted_value_check_number = $this->check_number;
   $unformatted_value_payment_voucher = $this->payment_voucher;
   $unformatted_value_receipt_voucher = $this->receipt_voucher;
   $unformatted_value_amount = $this->amount;
   $unformatted_value_depit = $this->depit;
   $unformatted_value_creditor = $this->creditor;
   $unformatted_value_bank_balance = $this->bank_balance;

   $nm_comando = "SELECT income_outcome_type FROM accountants_income_outcome WHERE income_outcome = '$this->income_outcome'";

   $this->sn = $old_value_sn;
   $this->transection_date = $old_value_transection_date;
   $this->check_number = $old_value_check_number;
   $this->payment_voucher = $old_value_payment_voucher;
   $this->receipt_voucher = $old_value_receipt_voucher;
   $this->amount = $old_value_amount;
   $this->depit = $old_value_depit;
   $this->creditor = $old_value_creditor;
   $this->bank_balance = $old_value_bank_balance;

   $_SESSION['scriptcase']['sc_sql_ult_comando'] = $nm_comando; 
   $_SESSION['scriptcase']['sc_sql_ult_conexao'] = ''; 
   if ($nm_comando != "" && $rs = $this->Db->Execute($nm_comando)) 
   {
       while (!$rs->EOF) 
       { 
              $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_income_outcome_type'][] = $rs->fields[0];
              $nmgp_def_dados .= $rs->fields[0] . "?#?" ; 
              $nmgp_def_dados .= $rs->fields[0] . "?#?N?@?" ; 
              $rs->MoveNext() ; 
       } 
       $rs->Close() ; 
   } 
   elseif ($GLOBALS["NM_ERRO_IBASE"] != 1 && $nm_comando != "")  
   {  
       $this->Erro->mensagem(__FILE__, __LINE__, "banco", $this->Ini->Nm_lang['lang_errm_dber'], $this->Db->ErrorMsg()); 
       exit; 
   } 
   $GLOBALS["NM_ERRO_IBASE"] = 0; 
   $x = 0; 
   $income_outcome_type_look = ""; 
   $todox = str_replace("?#?@?#?", "?#?@ ?#?", trim($nmgp_def_dados)) ; 
   $todo  = explode("?@?", $todox) ; 
   while (!empty($todo[$x])) 
   {
          $cadaselect = explode("?#?", $todo[$x]) ; 
          if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; 
          if (isset($this->Embutida_ronly) && $this->Embutida_ronly && isset($this->income_outcome_type_1))
          {
              foreach ($this->income_outcome_type_1 as $tmp_income_outcome_type)
              {
                  if (trim($tmp_income_outcome_type) === trim($cadaselect[1])) { $income_outcome_type_look .= $cadaselect[0] . '__SC_BREAK_LINE__'; }
              }
          }
          elseif (trim($this->income_outcome_type) === trim($cadaselect[1])) { $income_outcome_type_look .= $cadaselect[0]; } 
          $x++; 
   }

?>
<input type="hidden" name="income_outcome_type" value="<?php echo $this->form_encode_input($income_outcome_type) . "\">" . $income_outcome_type_look . ""; ?>
<?php } else { ?>
<?php
   $todo = $this->Form_lookup_income_outcome_type();
   $x = 0 ; 
   $income_outcome_type_look = ""; 
   while (!empty($todo[$x])) 
   {
          $cadaselect = explode("?#?", $todo[$x]) ; 
          if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; 
          if (isset($this->Embutida_ronly) && $this->Embutida_ronly && isset($this->income_outcome_type_1))
          {
              foreach ($this->income_outcome_type_1 as $tmp_income_outcome_type)
              {
                  if (trim($tmp_income_outcome_type) === trim($cadaselect[1])) { $income_outcome_type_look .= $cadaselect[0] . '__SC_BREAK_LINE__'; }
              }
          }
          elseif (trim($this->income_outcome_type) === trim($cadaselect[1])) { $income_outcome_type_look .= $cadaselect[0]; } 
          $x++; 
   }
          if (empty($income_outcome_type_look))
          {
              $income_outcome_type_look = $this->income_outcome_type;
          }
   $x = 0; 
   echo "<span id=\"id_read_on_income_outcome_type\" class=\"css_income_outcome_type_line\" style=\"" .  $sStyleReadLab_income_outcome_type . "\">" . $this->form_encode_input($income_outcome_type_look) . "</span><span id=\"id_read_off_income_outcome_type\" style=\"" . $sStyleReadInp_income_outcome_type . "\">";
   echo " <span id=\"idAjaxSelect_income_outcome_type\"><select class=\"sc-js-input scFormObjectOdd css_income_outcome_type_obj\" style=\"\" id=\"id_sc_field_income_outcome_type\" name=\"income_outcome_type\" size=\"1\" alt=\"{type: 'select', enterTab: false}\">" ; 
   echo "\r" ; 
   while (!empty($todo[$x]) && !$nm_nao_carga) 
   {
          $cadaselect = explode("?#?", $todo[$x]) ; 
          if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; 
          echo "  <option value=\"$cadaselect[1]\"" ; 
          if (trim($this->income_outcome_type) === trim($cadaselect[1])) 
          {
              echo " selected" ; 
          }
          if (strtoupper($cadaselect[2]) == "S") 
          {
              if (empty($this->income_outcome_type)) 
              {
                  echo " selected" ;
              } 
           } 
          echo ">$cadaselect[0] </option>" ; 
          echo "\r" ; 
          $x++ ; 
   }  ; 
   echo " </select></span>" ; 
   echo "\r" ; 
   echo "</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_income_outcome_type_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_income_outcome_type_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 (!isset($this->nm_new_label['details_from_menu']))
   {
       $this->nm_new_label['details_from_menu'] = "تفاصيل البيان";
   }
   $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);
   $details_from_menu = $this->details_from_menu;
   $sStyleHidden_details_from_menu = '';
   if (isset($this->nmgp_cmp_hidden['details_from_menu']) && $this->nmgp_cmp_hidden['details_from_menu'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['details_from_menu']);
       $sStyleHidden_details_from_menu = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_details_from_menu = 'display: none;';
   $sStyleReadInp_details_from_menu = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['details_from_menu']) && $this->nmgp_cmp_readonly['details_from_menu'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['details_from_menu']);
       $sStyleReadLab_details_from_menu = '';
       $sStyleReadInp_details_from_menu = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['details_from_menu']) && $this->nmgp_cmp_hidden['details_from_menu'] == 'off') { $sc_hidden_yes++; ?>
<input type=hidden name="details_from_menu" value="<?php echo $this->form_encode_input($this->details_from_menu) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_details_from_menu_label" id="hidden_field_label_details_from_menu" style="<?php echo $sStyleHidden_details_from_menu; ?>"><span id="id_label_details_from_menu"><?php echo $this->nm_new_label['details_from_menu']; ?></span></TD>
    <TD class="scFormDataOdd css_details_from_menu_line" id="hidden_field_data_details_from_menu" style="<?php echo $sStyleHidden_details_from_menu; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_details_from_menu_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["details_from_menu"]) &&  $this->nmgp_cmp_readonly["details_from_menu"] == "on") { 
 
$nmgp_def_dados = "" ; 
if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_details_from_menu']))
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_details_from_menu'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_details_from_menu']); 
}
else
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_details_from_menu'] = array(); 
}
   if (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_ibase))
   { 
       $GLOBALS["NM_ERRO_IBASE"] = 1;  
   } 
   $nm_nao_carga = false;
   $nmgp_def_dados = "" ; 
   if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_details_from_menu']))
   {
       $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_details_from_menu'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_details_from_menu']); 
   }
   else
   {
       $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_details_from_menu'] = array(); 
    }

   $old_value_sn = $this->sn;
   $old_value_transection_date = $this->transection_date;
   $old_value_check_number = $this->check_number;
   $old_value_payment_voucher = $this->payment_voucher;
   $old_value_receipt_voucher = $this->receipt_voucher;
   $old_value_amount = $this->amount;
   $old_value_depit = $this->depit;
   $old_value_creditor = $this->creditor;
   $old_value_bank_balance = $this->bank_balance;
   $this->nm_tira_formatacao();
   $this->nm_converte_datas(false);


   $unformatted_value_sn = $this->sn;
   $unformatted_value_transection_date = $this->transection_date;
   $unformatted_value_check_number = $this->check_number;
   $unformatted_value_payment_voucher = $this->payment_voucher;
   $unformatted_value_receipt_voucher = $this->receipt_voucher;
   $unformatted_value_amount = $this->amount;
   $unformatted_value_depit = $this->depit;
   $unformatted_value_creditor = $this->creditor;
   $unformatted_value_bank_balance = $this->bank_balance;

   $nm_comando = "SELECT details_from_menu FROM accountants_income_outcome_type WHERE income_outcome_type = '$this->income_outcome_type'";

   $this->sn = $old_value_sn;
   $this->transection_date = $old_value_transection_date;
   $this->check_number = $old_value_check_number;
   $this->payment_voucher = $old_value_payment_voucher;
   $this->receipt_voucher = $old_value_receipt_voucher;
   $this->amount = $old_value_amount;
   $this->depit = $old_value_depit;
   $this->creditor = $old_value_creditor;
   $this->bank_balance = $old_value_bank_balance;

   $_SESSION['scriptcase']['sc_sql_ult_comando'] = $nm_comando; 
   $_SESSION['scriptcase']['sc_sql_ult_conexao'] = ''; 
   if ($nm_comando != "" && $rs = $this->Db->Execute($nm_comando)) 
   {
       while (!$rs->EOF) 
       { 
              $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_details_from_menu'][] = $rs->fields[0];
              $nmgp_def_dados .= $rs->fields[0] . "?#?" ; 
              $nmgp_def_dados .= $rs->fields[0] . "?#?N?@?" ; 
              $rs->MoveNext() ; 
       } 
       $rs->Close() ; 
   } 
   elseif ($GLOBALS["NM_ERRO_IBASE"] != 1 && $nm_comando != "")  
   {  
       $this->Erro->mensagem(__FILE__, __LINE__, "banco", $this->Ini->Nm_lang['lang_errm_dber'], $this->Db->ErrorMsg()); 
       exit; 
   } 
   $GLOBALS["NM_ERRO_IBASE"] = 0; 
   $x = 0; 
   $details_from_menu_look = ""; 
   $todox = str_replace("?#?@?#?", "?#?@ ?#?", trim($nmgp_def_dados)) ; 
   $todo  = explode("?@?", $todox) ; 
   while (!empty($todo[$x])) 
   {
          $cadaselect = explode("?#?", $todo[$x]) ; 
          if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; 
          if (isset($this->Embutida_ronly) && $this->Embutida_ronly && isset($this->details_from_menu_1))
          {
              foreach ($this->details_from_menu_1 as $tmp_details_from_menu)
              {
                  if (trim($tmp_details_from_menu) === trim($cadaselect[1])) { $details_from_menu_look .= $cadaselect[0] . '__SC_BREAK_LINE__'; }
              }
          }
          elseif (trim($this->details_from_menu) === trim($cadaselect[1])) { $details_from_menu_look .= $cadaselect[0]; } 
          $x++; 
   }

?>
<input type="hidden" name="details_from_menu" value="<?php echo $this->form_encode_input($details_from_menu) . "\">" . $details_from_menu_look . ""; ?>
<?php } else { ?>
<?php
   $todo = $this->Form_lookup_details_from_menu();
   $x = 0 ; 
   $details_from_menu_look = ""; 
   while (!empty($todo[$x])) 
   {
          $cadaselect = explode("?#?", $todo[$x]) ; 
          if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; 
          if (isset($this->Embutida_ronly) && $this->Embutida_ronly && isset($this->details_from_menu_1))
          {
              foreach ($this->details_from_menu_1 as $tmp_details_from_menu)
              {
                  if (trim($tmp_details_from_menu) === trim($cadaselect[1])) { $details_from_menu_look .= $cadaselect[0] . '__SC_BREAK_LINE__'; }
              }
          }
          elseif (trim($this->details_from_menu) === trim($cadaselect[1])) { $details_from_menu_look .= $cadaselect[0]; } 
          $x++; 
   }
          if (empty($details_from_menu_look))
          {
              $details_from_menu_look = $this->details_from_menu;
          }
   $x = 0; 
   echo "<span id=\"id_read_on_details_from_menu\" class=\"css_details_from_menu_line\" style=\"" .  $sStyleReadLab_details_from_menu . "\">" . $this->form_encode_input($details_from_menu_look) . "</span><span id=\"id_read_off_details_from_menu\" style=\"" . $sStyleReadInp_details_from_menu . "\">";
   echo " <span id=\"idAjaxSelect_details_from_menu\"><select class=\"sc-js-input scFormObjectOdd css_details_from_menu_obj\" style=\"\" id=\"id_sc_field_details_from_menu\" name=\"details_from_menu\" size=\"1\" alt=\"{type: 'select', enterTab: false}\">" ; 
   echo "\r" ; 
   while (!empty($todo[$x]) && !$nm_nao_carga) 
   {
          $cadaselect = explode("?#?", $todo[$x]) ; 
          if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; 
          echo "  <option value=\"$cadaselect[1]\"" ; 
          if (trim($this->details_from_menu) === trim($cadaselect[1])) 
          {
              echo " selected" ; 
          }
          if (strtoupper($cadaselect[2]) == "S") 
          {
              if (empty($this->details_from_menu)) 
              {
                  echo " selected" ;
              } 
           } 
          echo ">$cadaselect[0] </option>" ; 
          echo "\r" ; 
          $x++ ; 
   }  ; 
   echo " </select></span>" ; 
   echo "\r" ; 
   echo "</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_details_from_menu_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_details_from_menu_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 (!isset($this->nm_new_label['description']))
    {
        $this->nm_new_label['description'] = "الوصف";
    }
?>
<?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);
   $description = $this->description;
   $sStyleHidden_description = '';
   if (isset($this->nmgp_cmp_hidden['description']) && $this->nmgp_cmp_hidden['description'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['description']);
       $sStyleHidden_description = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_description = 'display: none;';
   $sStyleReadInp_description = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['description']) && $this->nmgp_cmp_readonly['description'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['description']);
       $sStyleReadLab_description = '';
       $sStyleReadInp_description = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['description']) && $this->nmgp_cmp_hidden['description'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="description" value="<?php echo $this->form_encode_input($description) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_description_label" id="hidden_field_label_description" style="<?php echo $sStyleHidden_description; ?>"><span id="id_label_description"><?php echo $this->nm_new_label['description']; ?></span></TD>
    <TD class="scFormDataOdd css_description_line" id="hidden_field_data_description" style="<?php echo $sStyleHidden_description; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_description_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["description"]) &&  $this->nmgp_cmp_readonly["description"] == "on") { 

 ?>
<input type="hidden" name="description" value="<?php echo $this->form_encode_input($description) . "\">" . $description . ""; ?>
<?php } else { ?>
<span id="id_read_on_description" class="sc-ui-readonly-description css_description_line" style="<?php echo $sStyleReadLab_description; ?>"><?php echo $this->form_encode_input($this->description); ?></span><span id="id_read_off_description" style="white-space: nowrap;<?php echo $sStyleReadInp_description; ?>">
 <input class="sc-js-input scFormObjectOdd css_description_obj" style="" id="id_sc_field_description" type=text name="description" value="<?php echo $this->form_encode_input($description) ?>"
 size=50 maxlength=200 alt="{datatype: 'text', maxLength: 200, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', 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_description_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_description_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 (!isset($this->nm_new_label['appartment_shop']))
   {
       $this->nm_new_label['appartment_shop'] = "Appartment Shop";
   }
   $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);
   $appartment_shop = $this->appartment_shop;
   $sStyleHidden_appartment_shop = '';
   if (isset($this->nmgp_cmp_hidden['appartment_shop']) && $this->nmgp_cmp_hidden['appartment_shop'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['appartment_shop']);
       $sStyleHidden_appartment_shop = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_appartment_shop = 'display: none;';
   $sStyleReadInp_appartment_shop = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['appartment_shop']) && $this->nmgp_cmp_readonly['appartment_shop'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['appartment_shop']);
       $sStyleReadLab_appartment_shop = '';
       $sStyleReadInp_appartment_shop = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['appartment_shop']) && $this->nmgp_cmp_hidden['appartment_shop'] == 'off') { $sc_hidden_yes++; ?>
<input type=hidden name="appartment_shop" value="<?php echo $this->form_encode_input($this->appartment_shop) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_appartment_shop_label" id="hidden_field_label_appartment_shop" style="<?php echo $sStyleHidden_appartment_shop; ?>"><span id="id_label_appartment_shop"><?php echo $this->nm_new_label['appartment_shop']; ?></span></TD>
    <TD class="scFormDataOdd css_appartment_shop_line" id="hidden_field_data_appartment_shop" style="<?php echo $sStyleHidden_appartment_shop; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_appartment_shop_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["appartment_shop"]) &&  $this->nmgp_cmp_readonly["appartment_shop"] == "on") { 
 
$nmgp_def_dados = "" ; 
if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_appartment_shop']))
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_appartment_shop'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_appartment_shop']); 
}
else
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_appartment_shop'] = array(); 
}
   if (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_ibase))
   { 
       $GLOBALS["NM_ERRO_IBASE"] = 1;  
   } 
   $nm_nao_carga = false;
   $nmgp_def_dados = "" ; 
   if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_appartment_shop']))
   {
       $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_appartment_shop'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_appartment_shop']); 
   }
   else
   {
       $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_appartment_shop'] = array(); 
    }

   $old_value_sn = $this->sn;
   $old_value_transection_date = $this->transection_date;
   $old_value_check_number = $this->check_number;
   $old_value_payment_voucher = $this->payment_voucher;
   $old_value_receipt_voucher = $this->receipt_voucher;
   $old_value_amount = $this->amount;
   $old_value_depit = $this->depit;
   $old_value_creditor = $this->creditor;
   $old_value_bank_balance = $this->bank_balance;
   $this->nm_tira_formatacao();
   $this->nm_converte_datas(false);


   $unformatted_value_sn = $this->sn;
   $unformatted_value_transection_date = $this->transection_date;
   $unformatted_value_check_number = $this->check_number;
   $unformatted_value_payment_voucher = $this->payment_voucher;
   $unformatted_value_receipt_voucher = $this->receipt_voucher;
   $unformatted_value_amount = $this->amount;
   $unformatted_value_depit = $this->depit;
   $unformatted_value_creditor = $this->creditor;
   $unformatted_value_bank_balance = $this->bank_balance;

   $nm_comando = "SELECT appartments_shops_name, appartments_shops_name  FROM accountant_appartments_shops  ORDER BY appartments_shops_name";

   $this->sn = $old_value_sn;
   $this->transection_date = $old_value_transection_date;
   $this->check_number = $old_value_check_number;
   $this->payment_voucher = $old_value_payment_voucher;
   $this->receipt_voucher = $old_value_receipt_voucher;
   $this->amount = $old_value_amount;
   $this->depit = $old_value_depit;
   $this->creditor = $old_value_creditor;
   $this->bank_balance = $old_value_bank_balance;

   $_SESSION['scriptcase']['sc_sql_ult_comando'] = $nm_comando; 
   $_SESSION['scriptcase']['sc_sql_ult_conexao'] = ''; 
   if ($nm_comando != "" && $rs = $this->Db->Execute($nm_comando)) 
   {
       while (!$rs->EOF) 
       { 
              $nmgp_def_dados .= $rs->fields[1] . "?#?" ; 
              $nmgp_def_dados .= $rs->fields[0] . "?#?N?@?" ; 
              $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_appartment_shop'][] = $rs->fields[0];
              $rs->MoveNext() ; 
       } 
       $rs->Close() ; 
   } 
   elseif ($GLOBALS["NM_ERRO_IBASE"] != 1 && $nm_comando != "")  
   {  
       $this->Erro->mensagem(__FILE__, __LINE__, "banco", $this->Ini->Nm_lang['lang_errm_dber'], $this->Db->ErrorMsg()); 
       exit; 
   } 
   $GLOBALS["NM_ERRO_IBASE"] = 0; 
   $x = 0; 
   $appartment_shop_look = ""; 
   $todox = str_replace("?#?@?#?", "?#?@ ?#?", trim($nmgp_def_dados)) ; 
   $todo  = explode("?@?", $todox) ; 
   while (!empty($todo[$x])) 
   {
          $cadaselect = explode("?#?", $todo[$x]) ; 
          if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; 
          if (isset($this->Embutida_ronly) && $this->Embutida_ronly && isset($this->appartment_shop_1))
          {
              foreach ($this->appartment_shop_1 as $tmp_appartment_shop)
              {
                  if (trim($tmp_appartment_shop) === trim($cadaselect[1])) { $appartment_shop_look .= $cadaselect[0] . '__SC_BREAK_LINE__'; }
              }
          }
          elseif (trim($this->appartment_shop) === trim($cadaselect[1])) { $appartment_shop_look .= $cadaselect[0]; } 
          $x++; 
   }

?>
<input type="hidden" name="appartment_shop" value="<?php echo $this->form_encode_input($appartment_shop) . "\">" . $appartment_shop_look . ""; ?>
<?php } else { ?>
<?php
   $todo = $this->Form_lookup_appartment_shop();
   $x = 0 ; 
   $appartment_shop_look = ""; 
   while (!empty($todo[$x])) 
   {
          $cadaselect = explode("?#?", $todo[$x]) ; 
          if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; 
          if (isset($this->Embutida_ronly) && $this->Embutida_ronly && isset($this->appartment_shop_1))
          {
              foreach ($this->appartment_shop_1 as $tmp_appartment_shop)
              {
                  if (trim($tmp_appartment_shop) === trim($cadaselect[1])) { $appartment_shop_look .= $cadaselect[0] . '__SC_BREAK_LINE__'; }
              }
          }
          elseif (trim($this->appartment_shop) === trim($cadaselect[1])) { $appartment_shop_look .= $cadaselect[0]; } 
          $x++; 
   }
          if (empty($appartment_shop_look))
          {
              $appartment_shop_look = $this->appartment_shop;
          }
   $x = 0; 
   echo "<span id=\"id_read_on_appartment_shop\" class=\"css_appartment_shop_line\" style=\"" .  $sStyleReadLab_appartment_shop . "\">" . $this->form_encode_input($appartment_shop_look) . "</span><span id=\"id_read_off_appartment_shop\" style=\"" . $sStyleReadInp_appartment_shop . "\">";
   echo " <span id=\"idAjaxSelect_appartment_shop\"><select class=\"sc-js-input scFormObjectOdd css_appartment_shop_obj\" style=\"\" id=\"id_sc_field_appartment_shop\" name=\"appartment_shop\" size=\"1\" alt=\"{type: 'select', enterTab: false}\">" ; 
   echo "\r" ; 
   $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_appartment_shop'][] = ''; 
   echo "  <option value=\"\">الرجاء اختيار الشقة او المحل ان وجد</option>" ; 
   while (!empty($todo[$x]) && !$nm_nao_carga) 
   {
          $cadaselect = explode("?#?", $todo[$x]) ; 
          if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; 
          echo "  <option value=\"$cadaselect[1]\"" ; 
          if (trim($this->appartment_shop) === trim($cadaselect[1])) 
          {
              echo " selected" ; 
          }
          if (strtoupper($cadaselect[2]) == "S") 
          {
              if (empty($this->appartment_shop)) 
              {
                  echo " selected" ;
              } 
           } 
          echo ">$cadaselect[0] </option>" ; 
          echo "\r" ; 
          $x++ ; 
   }  ; 
   echo " </select></span>" ; 
   echo "\r" ; 
   echo "</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_appartment_shop_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_appartment_shop_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 (!isset($this->nm_new_label['for_month']))
   {
       $this->nm_new_label['for_month'] = "عن شهر";
   }
   $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);
   $for_month = $this->for_month;
   $sStyleHidden_for_month = '';
   if (isset($this->nmgp_cmp_hidden['for_month']) && $this->nmgp_cmp_hidden['for_month'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['for_month']);
       $sStyleHidden_for_month = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_for_month = 'display: none;';
   $sStyleReadInp_for_month = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['for_month']) && $this->nmgp_cmp_readonly['for_month'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['for_month']);
       $sStyleReadLab_for_month = '';
       $sStyleReadInp_for_month = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['for_month']) && $this->nmgp_cmp_hidden['for_month'] == 'off') { $sc_hidden_yes++; ?>
<input type=hidden name="for_month" value="<?php echo $this->form_encode_input($this->for_month) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_for_month_label" id="hidden_field_label_for_month" style="<?php echo $sStyleHidden_for_month; ?>"><span id="id_label_for_month"><?php echo $this->nm_new_label['for_month']; ?></span></TD>
    <TD class="scFormDataOdd css_for_month_line" id="hidden_field_data_for_month" style="<?php echo $sStyleHidden_for_month; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_for_month_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["for_month"]) &&  $this->nmgp_cmp_readonly["for_month"] == "on") { 

$for_month_look = "";
 if ($this->for_month == "يناير") { $for_month_look .= "يناير" ;} 
 if ($this->for_month == "فبراير") { $for_month_look .= "فبراير" ;} 
 if ($this->for_month == "مارس") { $for_month_look .= "مارس" ;} 
 if ($this->for_month == "ابريل") { $for_month_look .= "ابريل" ;} 
 if ($this->for_month == "مايو") { $for_month_look .= "مايو" ;} 
 if ($this->for_month == "يونيو") { $for_month_look .= "يونيو" ;} 
 if ($this->for_month == "يوليو") { $for_month_look .= "يوليو" ;} 
 if ($this->for_month == "اغسطس") { $for_month_look .= "اغسطس" ;} 
 if ($this->for_month == "سبتمبر") { $for_month_look .= "سبتمبر" ;} 
 if ($this->for_month == "اكتوبر") { $for_month_look .= "اكتوبر" ;} 
 if ($this->for_month == "نوفمبر") { $for_month_look .= "نوفمبر" ;} 
 if ($this->for_month == "ديسمبر") { $for_month_look .= "ديسمبر" ;} 
 if (empty($for_month_look)) { $for_month_look = $this->for_month; }
?>
<input type="hidden" name="for_month" value="<?php echo $this->form_encode_input($for_month) . "\">" . $for_month_look . ""; ?>
<?php } else { ?>
<?php

$for_month_look = "";
 if ($this->for_month == "يناير") { $for_month_look .= "يناير" ;} 
 if ($this->for_month == "فبراير") { $for_month_look .= "فبراير" ;} 
 if ($this->for_month == "مارس") { $for_month_look .= "مارس" ;} 
 if ($this->for_month == "ابريل") { $for_month_look .= "ابريل" ;} 
 if ($this->for_month == "مايو") { $for_month_look .= "مايو" ;} 
 if ($this->for_month == "يونيو") { $for_month_look .= "يونيو" ;} 
 if ($this->for_month == "يوليو") { $for_month_look .= "يوليو" ;} 
 if ($this->for_month == "اغسطس") { $for_month_look .= "اغسطس" ;} 
 if ($this->for_month == "سبتمبر") { $for_month_look .= "سبتمبر" ;} 
 if ($this->for_month == "اكتوبر") { $for_month_look .= "اكتوبر" ;} 
 if ($this->for_month == "نوفمبر") { $for_month_look .= "نوفمبر" ;} 
 if ($this->for_month == "ديسمبر") { $for_month_look .= "ديسمبر" ;} 
 if (empty($for_month_look)) { $for_month_look = $this->for_month; }
?>
<span id="id_read_on_for_month" class="css_for_month_line"  style="<?php echo $sStyleReadLab_for_month; ?>"><?php echo $this->form_encode_input($for_month_look); ?></span><span id="id_read_off_for_month" style="<?php echo $sStyleReadInp_for_month; ?>">
 <span id="idAjaxSelect_for_month"><select class="sc-js-input scFormObjectOdd css_for_month_obj" style="" id="id_sc_field_for_month" name="for_month" size="1" alt="{type: 'select', enterTab: false}">
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_month'][] = ''; ?>
 <option value="">الرجاء اختيار الشهر</option>
 <option  value="يناير" <?php  if ($this->for_month == "يناير") { echo " selected" ;} ?>>يناير</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_month'][] = 'يناير'; ?>
 <option  value="فبراير" <?php  if ($this->for_month == "فبراير") { echo " selected" ;} ?>>فبراير</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_month'][] = 'فبراير'; ?>
 <option  value="مارس" <?php  if ($this->for_month == "مارس") { echo " selected" ;} ?>>مارس</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_month'][] = 'مارس'; ?>
 <option  value="ابريل" <?php  if ($this->for_month == "ابريل") { echo " selected" ;} ?>>ابريل</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_month'][] = 'ابريل'; ?>
 <option  value="مايو" <?php  if ($this->for_month == "مايو") { echo " selected" ;} ?>>مايو</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_month'][] = 'مايو'; ?>
 <option  value="يونيو" <?php  if ($this->for_month == "يونيو") { echo " selected" ;} ?>>يونيو</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_month'][] = 'يونيو'; ?>
 <option  value="يوليو" <?php  if ($this->for_month == "يوليو") { echo " selected" ;} ?>>يوليو</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_month'][] = 'يوليو'; ?>
 <option  value="اغسطس" <?php  if ($this->for_month == "اغسطس") { echo " selected" ;} ?>>اغسطس</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_month'][] = 'اغسطس'; ?>
 <option  value="سبتمبر" <?php  if ($this->for_month == "سبتمبر") { echo " selected" ;} ?>>سبتمبر</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_month'][] = 'سبتمبر'; ?>
 <option  value="اكتوبر" <?php  if ($this->for_month == "اكتوبر") { echo " selected" ;} ?>>اكتوبر</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_month'][] = 'اكتوبر'; ?>
 <option  value="نوفمبر" <?php  if ($this->for_month == "نوفمبر") { echo " selected" ;} ?>>نوفمبر</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_month'][] = 'نوفمبر'; ?>
 <option  value="ديسمبر" <?php  if ($this->for_month == "ديسمبر") { echo " selected" ;} ?>>ديسمبر</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_month'][] = 'ديسمبر'; ?>
 </select></span>
</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_for_month_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_for_month_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 (!isset($this->nm_new_label['for_year']))
   {
       $this->nm_new_label['for_year'] = "عن سنة";
   }
   $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);
   $for_year = $this->for_year;
   $sStyleHidden_for_year = '';
   if (isset($this->nmgp_cmp_hidden['for_year']) && $this->nmgp_cmp_hidden['for_year'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['for_year']);
       $sStyleHidden_for_year = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_for_year = 'display: none;';
   $sStyleReadInp_for_year = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['for_year']) && $this->nmgp_cmp_readonly['for_year'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['for_year']);
       $sStyleReadLab_for_year = '';
       $sStyleReadInp_for_year = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['for_year']) && $this->nmgp_cmp_hidden['for_year'] == 'off') { $sc_hidden_yes++; ?>
<input type=hidden name="for_year" value="<?php echo $this->form_encode_input($this->for_year) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_for_year_label" id="hidden_field_label_for_year" style="<?php echo $sStyleHidden_for_year; ?>"><span id="id_label_for_year"><?php echo $this->nm_new_label['for_year']; ?></span></TD>
    <TD class="scFormDataOdd css_for_year_line" id="hidden_field_data_for_year" style="<?php echo $sStyleHidden_for_year; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOdd css_for_year_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["for_year"]) &&  $this->nmgp_cmp_readonly["for_year"] == "on") { 

$for_year_look = "";
 if ($this->for_year == "2017") { $for_year_look .= "2017" ;} 
 if ($this->for_year == "2016") { $for_year_look .= "2016" ;} 
 if ($this->for_year == "2018") { $for_year_look .= "2018" ;} 
 if (empty($for_year_look)) { $for_year_look = $this->for_year; }
?>
<input type="hidden" name="for_year" value="<?php echo $this->form_encode_input($for_year) . "\">" . $for_year_look . ""; ?>
<?php } else { ?>
<?php

$for_year_look = "";
 if ($this->for_year == "2017") { $for_year_look .= "2017" ;} 
 if ($this->for_year == "2016") { $for_year_look .= "2016" ;} 
 if ($this->for_year == "2018") { $for_year_look .= "2018" ;} 
 if (empty($for_year_look)) { $for_year_look = $this->for_year; }
?>
<span id="id_read_on_for_year" class="css_for_year_line"  style="<?php echo $sStyleReadLab_for_year; ?>"><?php echo $this->form_encode_input($for_year_look); ?></span><span id="id_read_off_for_year" style="<?php echo $sStyleReadInp_for_year; ?>">
 <span id="idAjaxSelect_for_year"><select class="sc-js-input scFormObjectOdd css_for_year_obj" style="" id="id_sc_field_for_year" name="for_year" size="1" alt="{type: 'select', enterTab: false}">
 <option  value="2017" <?php  if ($this->for_year == "2017") { echo " selected" ;} ?><?php  if (empty($this->for_year)) { echo " selected" ;} ?>>2017</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_year'][] = '2017'; ?>
 <option  value="2016" <?php  if ($this->for_year == "2016") { echo " selected" ;} ?>>2016</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_year'][] = '2016'; ?>
 <option  value="2018" <?php  if ($this->for_year == "2018") { echo " selected" ;} ?>>2018</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_for_year'][] = '2018'; ?>
 </select></span>
</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_for_year_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_for_year_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 (!isset($this->nm_new_label['payment_method']))
   {
       $this->nm_new_label['payment_method'] = "طريقة الدفع";
   }
   $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);
   $payment_method = $this->payment_method;
   $sStyleHidden_payment_method = '';
   if (isset($this->nmgp_cmp_hidden['payment_method']) && $this->nmgp_cmp_hidden['payment_method'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['payment_method']);
       $sStyleHidden_payment_method = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_payment_method = 'display: none;';
   $sStyleReadInp_payment_method = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['payment_method']) && $this->nmgp_cmp_readonly['payment_method'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['payment_method']);
       $sStyleReadLab_payment_method = '';
       $sStyleReadInp_payment_method = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['payment_method']) && $this->nmgp_cmp_hidden['payment_method'] == 'off') { $sc_hidden_yes++; ?>
<input type=hidden name="payment_method" value="<?php echo $this->form_encode_input($this->payment_method) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_payment_method_label" id="hidden_field_label_payment_method" style="<?php echo $sStyleHidden_payment_method; ?>"><span id="id_label_payment_method"><?php echo $this->nm_new_label['payment_method']; ?></span></TD>
    <TD class="scFormDataOdd css_payment_method_line" id="hidden_field_data_payment_method" style="<?php echo $sStyleHidden_payment_method; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_payment_method_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["payment_method"]) &&  $this->nmgp_cmp_readonly["payment_method"] == "on") { 

$payment_method_look = "";
 if ($this->payment_method == "شيك") { $payment_method_look .= "شيك" ;} 
 if ($this->payment_method == "نقدا") { $payment_method_look .= "نقدا" ;} 
 if ($this->payment_method == "تحويلات بنكية") { $payment_method_look .= "تحويلات بنكية" ;} 
 if ($this->payment_method == "ايداع بنكي") { $payment_method_look .= "ايداع بنكي" ;} 
 if (empty($payment_method_look)) { $payment_method_look = $this->payment_method; }
?>
<input type="hidden" name="payment_method" value="<?php echo $this->form_encode_input($payment_method) . "\">" . $payment_method_look . ""; ?>
<?php } else { ?>
<?php

$payment_method_look = "";
 if ($this->payment_method == "شيك") { $payment_method_look .= "شيك" ;} 
 if ($this->payment_method == "نقدا") { $payment_method_look .= "نقدا" ;} 
 if ($this->payment_method == "تحويلات بنكية") { $payment_method_look .= "تحويلات بنكية" ;} 
 if ($this->payment_method == "ايداع بنكي") { $payment_method_look .= "ايداع بنكي" ;} 
 if (empty($payment_method_look)) { $payment_method_look = $this->payment_method; }
?>
<span id="id_read_on_payment_method" class="css_payment_method_line"  style="<?php echo $sStyleReadLab_payment_method; ?>"><?php echo $this->form_encode_input($payment_method_look); ?></span><span id="id_read_off_payment_method" style="<?php echo $sStyleReadInp_payment_method; ?>">
 <span id="idAjaxSelect_payment_method"><select class="sc-js-input scFormObjectOdd css_payment_method_obj" style="" id="id_sc_field_payment_method" name="payment_method" size="1" alt="{type: 'select', enterTab: false}">
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_payment_method'][] = ''; ?>
 <option value="">الرجاء اختيار طريقة الدفع</option>
 <option  value="شيك" <?php  if ($this->payment_method == "شيك") { echo " selected" ;} ?>>شيك</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_payment_method'][] = 'شيك'; ?>
 <option  value="نقدا" <?php  if ($this->payment_method == "نقدا") { echo " selected" ;} ?>>نقدا</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_payment_method'][] = 'نقدا'; ?>
 <option  value="تحويلات بنكية" <?php  if ($this->payment_method == "تحويلات بنكية") { echo " selected" ;} ?>>تحويلات بنكية</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_payment_method'][] = 'تحويلات بنكية'; ?>
 <option  value="ايداع بنكي" <?php  if ($this->payment_method == "ايداع بنكي") { echo " selected" ;} ?>>ايداع بنكي</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['Lookup_payment_method'][] = 'ايداع بنكي'; ?>
 </select></span>
</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_payment_method_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_payment_method_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 (!isset($this->nm_new_label['check_number']))
    {
        $this->nm_new_label['check_number'] = "رقم الشيك";
    }
?>
<?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);
   $check_number = $this->check_number;
   $sStyleHidden_check_number = '';
   if (isset($this->nmgp_cmp_hidden['check_number']) && $this->nmgp_cmp_hidden['check_number'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['check_number']);
       $sStyleHidden_check_number = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_check_number = 'display: none;';
   $sStyleReadInp_check_number = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['check_number']) && $this->nmgp_cmp_readonly['check_number'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['check_number']);
       $sStyleReadLab_check_number = '';
       $sStyleReadInp_check_number = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['check_number']) && $this->nmgp_cmp_hidden['check_number'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="check_number" value="<?php echo $this->form_encode_input($check_number) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_check_number_label" id="hidden_field_label_check_number" style="<?php echo $sStyleHidden_check_number; ?>"><span id="id_label_check_number"><?php echo $this->nm_new_label['check_number']; ?></span></TD>
    <TD class="scFormDataOdd css_check_number_line" id="hidden_field_data_check_number" style="<?php echo $sStyleHidden_check_number; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOdd css_check_number_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["check_number"]) &&  $this->nmgp_cmp_readonly["check_number"] == "on") { 

 ?>
<input type="hidden" name="check_number" value="<?php echo $this->form_encode_input($check_number) . "\">" . $check_number . ""; ?>
<?php } else { ?>
<span id="id_read_on_check_number" class="sc-ui-readonly-check_number css_check_number_line" style="<?php echo $sStyleReadLab_check_number; ?>"><?php echo $this->form_encode_input($this->check_number); ?></span><span id="id_read_off_check_number" style="white-space: nowrap;<?php echo $sStyleReadInp_check_number; ?>">
 <input class="sc-js-input scFormObjectOdd css_check_number_obj" style="" id="id_sc_field_check_number" type=text name="check_number" value="<?php echo $this->form_encode_input($check_number) ?>"
 size=11 alt="{datatype: 'mask', maskList: '999999999', 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_check_number_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_check_number_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 (!isset($this->nm_new_label['payment_voucher']))
    {
        $this->nm_new_label['payment_voucher'] = "رقم سند الصرف";
    }
?>
<?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);
   $payment_voucher = $this->payment_voucher;
   $sStyleHidden_payment_voucher = '';
   if (isset($this->nmgp_cmp_hidden['payment_voucher']) && $this->nmgp_cmp_hidden['payment_voucher'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['payment_voucher']);
       $sStyleHidden_payment_voucher = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_payment_voucher = 'display: none;';
   $sStyleReadInp_payment_voucher = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['payment_voucher']) && $this->nmgp_cmp_readonly['payment_voucher'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['payment_voucher']);
       $sStyleReadLab_payment_voucher = '';
       $sStyleReadInp_payment_voucher = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['payment_voucher']) && $this->nmgp_cmp_hidden['payment_voucher'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="payment_voucher" value="<?php echo $this->form_encode_input($payment_voucher) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_payment_voucher_label" id="hidden_field_label_payment_voucher" style="<?php echo $sStyleHidden_payment_voucher; ?>"><span id="id_label_payment_voucher"><?php echo $this->nm_new_label['payment_voucher']; ?></span></TD>
    <TD class="scFormDataOdd css_payment_voucher_line" id="hidden_field_data_payment_voucher" style="<?php echo $sStyleHidden_payment_voucher; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOdd css_payment_voucher_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["payment_voucher"]) &&  $this->nmgp_cmp_readonly["payment_voucher"] == "on") { 

 ?>
<input type="hidden" name="payment_voucher" value="<?php echo $this->form_encode_input($payment_voucher) . "\">" . $payment_voucher . ""; ?>
<?php } else { ?>
<span id="id_read_on_payment_voucher" class="sc-ui-readonly-payment_voucher css_payment_voucher_line" style="<?php echo $sStyleReadLab_payment_voucher; ?>"><?php echo $this->form_encode_input($this->payment_voucher); ?></span><span id="id_read_off_payment_voucher" style="white-space: nowrap;<?php echo $sStyleReadInp_payment_voucher; ?>">
 <input class="sc-js-input scFormObjectOdd css_payment_voucher_obj" style="" id="id_sc_field_payment_voucher" type=text name="payment_voucher" value="<?php echo $this->form_encode_input($payment_voucher) ?>"
 size=11 alt="{datatype: 'mask', maskList: '999999999', 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_payment_voucher_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_payment_voucher_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 (!isset($this->nm_new_label['receipt_voucher']))
    {
        $this->nm_new_label['receipt_voucher'] = "رقم سند القبض";
    }
?>
<?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);
   $receipt_voucher = $this->receipt_voucher;
   $sStyleHidden_receipt_voucher = '';
   if (isset($this->nmgp_cmp_hidden['receipt_voucher']) && $this->nmgp_cmp_hidden['receipt_voucher'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['receipt_voucher']);
       $sStyleHidden_receipt_voucher = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_receipt_voucher = 'display: none;';
   $sStyleReadInp_receipt_voucher = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['receipt_voucher']) && $this->nmgp_cmp_readonly['receipt_voucher'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['receipt_voucher']);
       $sStyleReadLab_receipt_voucher = '';
       $sStyleReadInp_receipt_voucher = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['receipt_voucher']) && $this->nmgp_cmp_hidden['receipt_voucher'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="receipt_voucher" value="<?php echo $this->form_encode_input($receipt_voucher) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_receipt_voucher_label" id="hidden_field_label_receipt_voucher" style="<?php echo $sStyleHidden_receipt_voucher; ?>"><span id="id_label_receipt_voucher"><?php echo $this->nm_new_label['receipt_voucher']; ?></span></TD>
    <TD class="scFormDataOdd css_receipt_voucher_line" id="hidden_field_data_receipt_voucher" style="<?php echo $sStyleHidden_receipt_voucher; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOdd css_receipt_voucher_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["receipt_voucher"]) &&  $this->nmgp_cmp_readonly["receipt_voucher"] == "on") { 

 ?>
<input type="hidden" name="receipt_voucher" value="<?php echo $this->form_encode_input($receipt_voucher) . "\">" . $receipt_voucher . ""; ?>
<?php } else { ?>
<span id="id_read_on_receipt_voucher" class="sc-ui-readonly-receipt_voucher css_receipt_voucher_line" style="<?php echo $sStyleReadLab_receipt_voucher; ?>"><?php echo $this->form_encode_input($this->receipt_voucher); ?></span><span id="id_read_off_receipt_voucher" style="white-space: nowrap;<?php echo $sStyleReadInp_receipt_voucher; ?>">
 <input class="sc-js-input scFormObjectOdd css_receipt_voucher_obj" style="" id="id_sc_field_receipt_voucher" type=text name="receipt_voucher" value="<?php echo $this->form_encode_input($receipt_voucher) ?>"
 size=11 alt="{datatype: 'mask', maskList: '999999999', 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_receipt_voucher_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_receipt_voucher_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 (!isset($this->nm_new_label['amount']))
    {
        $this->nm_new_label['amount'] = "المبلغ";
    }
?>
<?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);
   $amount = $this->amount;
   $sStyleHidden_amount = '';
   if (isset($this->nmgp_cmp_hidden['amount']) && $this->nmgp_cmp_hidden['amount'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['amount']);
       $sStyleHidden_amount = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_amount = 'display: none;';
   $sStyleReadInp_amount = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['amount']) && $this->nmgp_cmp_readonly['amount'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['amount']);
       $sStyleReadLab_amount = '';
       $sStyleReadInp_amount = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['amount']) && $this->nmgp_cmp_hidden['amount'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="amount" value="<?php echo $this->form_encode_input($amount) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_amount_label" id="hidden_field_label_amount" style="<?php echo $sStyleHidden_amount; ?>"><span id="id_label_amount"><?php echo $this->nm_new_label['amount']; ?></span></TD>
    <TD class="scFormDataOdd css_amount_line" id="hidden_field_data_amount" style="<?php echo $sStyleHidden_amount; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOdd css_amount_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["amount"]) &&  $this->nmgp_cmp_readonly["amount"] == "on") { 

 ?>
<input type="hidden" name="amount" value="<?php echo $this->form_encode_input($amount) . "\">" . $amount . ""; ?>
<?php } else { ?>
<span id="id_read_on_amount" class="sc-ui-readonly-amount css_amount_line" style="<?php echo $sStyleReadLab_amount; ?>"><?php echo $this->form_encode_input($this->amount); ?></span><span id="id_read_off_amount" style="white-space: nowrap;<?php echo $sStyleReadInp_amount; ?>">
 <input class="sc-js-input scFormObjectOdd css_amount_obj" style="" id="id_sc_field_amount" type=text name="amount" value="<?php echo $this->form_encode_input($amount) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['amount']['symbol_dec']); ?>', thousandsSep: '', thousandsFormat: <?php echo $this->field_config['amount']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, 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_amount_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_amount_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 (!isset($this->nm_new_label['depit']))
    {
        $this->nm_new_label['depit'] = "Depit";
    }
?>
<?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);
   $depit = $this->depit;
   $sStyleHidden_depit = '';
   if (isset($this->nmgp_cmp_hidden['depit']) && $this->nmgp_cmp_hidden['depit'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['depit']);
       $sStyleHidden_depit = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_depit = 'display: none;';
   $sStyleReadInp_depit = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['depit']) && $this->nmgp_cmp_readonly['depit'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['depit']);
       $sStyleReadLab_depit = '';
       $sStyleReadInp_depit = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['depit']) && $this->nmgp_cmp_hidden['depit'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="depit" value="<?php echo $this->form_encode_input($depit) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_depit_label" id="hidden_field_label_depit" style="<?php echo $sStyleHidden_depit; ?>"><span id="id_label_depit"><?php echo $this->nm_new_label['depit']; ?></span></TD>
    <TD class="scFormDataOdd css_depit_line" id="hidden_field_data_depit" style="<?php echo $sStyleHidden_depit; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOdd css_depit_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["depit"]) &&  $this->nmgp_cmp_readonly["depit"] == "on") { 

 ?>
<input type="hidden" name="depit" value="<?php echo $this->form_encode_input($depit) . "\">" . $depit . ""; ?>
<?php } else { ?>
<span id="id_read_on_depit" class="sc-ui-readonly-depit css_depit_line" style="<?php echo $sStyleReadLab_depit; ?>"><?php echo $this->form_encode_input($this->depit); ?></span><span id="id_read_off_depit" style="white-space: nowrap;<?php echo $sStyleReadInp_depit; ?>">
 <input class="sc-js-input scFormObjectOdd css_depit_obj" style="" id="id_sc_field_depit" type=text name="depit" value="<?php echo $this->form_encode_input($depit) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['depit']['symbol_dec']); ?>', thousandsSep: '', thousandsFormat: <?php echo $this->field_config['depit']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, 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_depit_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_depit_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 (!isset($this->nm_new_label['creditor']))
    {
        $this->nm_new_label['creditor'] = "Creditor";
    }
?>
<?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);
   $creditor = $this->creditor;
   $sStyleHidden_creditor = '';
   if (isset($this->nmgp_cmp_hidden['creditor']) && $this->nmgp_cmp_hidden['creditor'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['creditor']);
       $sStyleHidden_creditor = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_creditor = 'display: none;';
   $sStyleReadInp_creditor = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['creditor']) && $this->nmgp_cmp_readonly['creditor'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['creditor']);
       $sStyleReadLab_creditor = '';
       $sStyleReadInp_creditor = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['creditor']) && $this->nmgp_cmp_hidden['creditor'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="creditor" value="<?php echo $this->form_encode_input($creditor) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_creditor_label" id="hidden_field_label_creditor" style="<?php echo $sStyleHidden_creditor; ?>"><span id="id_label_creditor"><?php echo $this->nm_new_label['creditor']; ?></span></TD>
    <TD class="scFormDataOdd css_creditor_line" id="hidden_field_data_creditor" style="<?php echo $sStyleHidden_creditor; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOdd css_creditor_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["creditor"]) &&  $this->nmgp_cmp_readonly["creditor"] == "on") { 

 ?>
<input type="hidden" name="creditor" value="<?php echo $this->form_encode_input($creditor) . "\">" . $creditor . ""; ?>
<?php } else { ?>
<span id="id_read_on_creditor" class="sc-ui-readonly-creditor css_creditor_line" style="<?php echo $sStyleReadLab_creditor; ?>"><?php echo $this->form_encode_input($this->creditor); ?></span><span id="id_read_off_creditor" style="white-space: nowrap;<?php echo $sStyleReadInp_creditor; ?>">
 <input class="sc-js-input scFormObjectOdd css_creditor_obj" style="" id="id_sc_field_creditor" type=text name="creditor" value="<?php echo $this->form_encode_input($creditor) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['creditor']['symbol_dec']); ?>', thousandsSep: '', thousandsFormat: <?php echo $this->field_config['creditor']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, 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_creditor_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_creditor_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 (!isset($this->nm_new_label['remarks']))
    {
        $this->nm_new_label['remarks'] = "ملاحظات";
    }
?>
<?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);
   $remarks = $this->remarks;
   $sStyleHidden_remarks = '';
   if (isset($this->nmgp_cmp_hidden['remarks']) && $this->nmgp_cmp_hidden['remarks'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['remarks']);
       $sStyleHidden_remarks = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_remarks = 'display: none;';
   $sStyleReadInp_remarks = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['remarks']) && $this->nmgp_cmp_readonly['remarks'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['remarks']);
       $sStyleReadLab_remarks = '';
       $sStyleReadInp_remarks = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['remarks']) && $this->nmgp_cmp_hidden['remarks'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="remarks" value="<?php echo $this->form_encode_input($remarks) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_remarks_label" id="hidden_field_label_remarks" style="<?php echo $sStyleHidden_remarks; ?>"><span id="id_label_remarks"><?php echo $this->nm_new_label['remarks']; ?></span></TD>
    <TD class="scFormDataOdd css_remarks_line" id="hidden_field_data_remarks" style="<?php echo $sStyleHidden_remarks; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_remarks_line" style="vertical-align: top;padding: 0px">
<?php
$remarks_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($remarks));

?>

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

 ?>
<input type="hidden" name="remarks" value="<?php echo $this->form_encode_input($remarks) . "\">" . $remarks_val . ""; ?>
<?php } else { ?>
<span id="id_read_on_remarks" class="sc-ui-readonly-remarks css_remarks_line" style="<?php echo $sStyleReadLab_remarks; ?>"><?php echo $this->form_encode_input($remarks_val); ?></span><span id="id_read_off_remarks" style="white-space: nowrap;<?php echo $sStyleReadInp_remarks; ?>">
 <textarea  class="sc-js-input scFormObjectOdd css_remarks_obj" style="white-space: pre-wrap;" name="remarks" id="id_sc_field_remarks" rows="2" cols="50"
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" >
<?php echo $remarks; ?>
</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_remarks_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_remarks_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 (!isset($this->nm_new_label['bank_balance']))
    {
        $this->nm_new_label['bank_balance'] = "حركة البنك";
    }
?>
<?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);
   $bank_balance = $this->bank_balance;
   $sStyleHidden_bank_balance = '';
   if (isset($this->nmgp_cmp_hidden['bank_balance']) && $this->nmgp_cmp_hidden['bank_balance'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['bank_balance']);
       $sStyleHidden_bank_balance = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_bank_balance = 'display: none;';
   $sStyleReadInp_bank_balance = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['bank_balance']) && $this->nmgp_cmp_readonly['bank_balance'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['bank_balance']);
       $sStyleReadLab_bank_balance = '';
       $sStyleReadInp_bank_balance = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['bank_balance']) && $this->nmgp_cmp_hidden['bank_balance'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="bank_balance" value="<?php echo $this->form_encode_input($bank_balance) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix css_bank_balance_label" id="hidden_field_label_bank_balance" style="<?php echo $sStyleHidden_bank_balance; ?>"><span id="id_label_bank_balance"><?php echo $this->nm_new_label['bank_balance']; ?></span></TD>
    <TD class="scFormDataOdd css_bank_balance_line" id="hidden_field_data_bank_balance" style="<?php echo $sStyleHidden_bank_balance; ?>"><table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOdd css_bank_balance_line" style="vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["bank_balance"]) &&  $this->nmgp_cmp_readonly["bank_balance"] == "on") { 

 ?>
<input type="hidden" name="bank_balance" value="<?php echo $this->form_encode_input($bank_balance) . "\">" . $bank_balance . ""; ?>
<?php } else { ?>
<span id="id_read_on_bank_balance" class="sc-ui-readonly-bank_balance css_bank_balance_line" style="<?php echo $sStyleReadLab_bank_balance; ?>"><?php echo $this->form_encode_input($this->bank_balance); ?></span><span id="id_read_off_bank_balance" style="white-space: nowrap;<?php echo $sStyleReadInp_bank_balance; ?>">
 <input class="sc-js-input scFormObjectOdd css_bank_balance_obj" style="" id="id_sc_field_bank_balance" type=text name="bank_balance" value="<?php echo $this->form_encode_input($bank_balance) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['bank_balance']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['bank_balance']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['bank_balance']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, 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_bank_balance_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_bank_balance_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 -->
<?php
  }
?>
</td></tr>
<tr><td class="scFormPageText">
<span class="scFormRequiredOddColor">* <?php echo $this->Ini->Nm_lang['lang_othr_reqr']; ?></span>
</td></tr> 
<tr><td>
<?php
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "R")
{
?>
    <table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormToolbar" style="padding: 0px; spacing: 0px">
    <table style="border-collapse: collapse; border-width: 0px; width: 100%">
    <tr> 
     <td nowrap align="left" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "R")
{
    $NM_btn = false;
      if ($opcao_botoes != "novo" && $this->nmgp_botoes['goto'] == "on")
      {
        $sCondStyle = '';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "birpara", " nm_navpage(document.F1.nmgp_rec_b.value, 'P');document.F1.nmgp_rec_b.value = ''", " nm_navpage(document.F1.nmgp_rec_b.value, 'P');document.F1.nmgp_rec_b.value = ''", "brec_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
?> 
   <input type="text" class="scFormToolbarInput" name="nmgp_rec_b" value="" style="width:25px;vertical-align: middle;"/> 
<?php 
      }
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['first'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "binicio", "nm_move ('inicio');", "nm_move ('inicio');", "sc_b_ini_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['first'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "binicio_off", "nm_move ('inicio');", "nm_move ('inicio');", "sc_b_ini_off_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['back'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bretorna", "nm_move ('retorna');", "nm_move ('retorna');", "sc_b_ret_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['back'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bretorna_off", "nm_move ('retorna');", "nm_move ('retorna');", "sc_b_ret_off_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
if ($opcao_botoes != "novo" && $this->nmgp_botoes['navpage'] == "on")
{
?> 
     <span nowrap id="sc_b_navpage_b" class="scFormToolbarPadding"></span> 
<?php 
}
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['forward'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bavanca", "nm_move ('avanca');", "nm_move ('avanca');", "sc_b_avc_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['forward'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bavanca_off", "nm_move ('avanca');", "nm_move ('avanca');", "sc_b_avc_off_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['last'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bfinal", "nm_move ('final');", "nm_move ('final');", "sc_b_fim_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['last'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bfinal_off", "nm_move ('final');", "nm_move ('final');", "sc_b_fim_off_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
if ($opcao_botoes != "novo" && $this->nmgp_botoes['summary'] == "on")
{
?> 
     <span nowrap id="sc_b_summary_b" class="scFormToolbarPadding"></span> 
<?php 
}
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "R")
{
?>
   </td></tr> 
   </table> 
   </td></tr></table> 
<?php
}
?>
<?php
if (!$NM_btn && isset($NM_ult_sep))
{
    echo "    <script language=\"javascript\">";
    echo "      document.getElementById('" .  $NM_ult_sep . "').style.display='none';";
    echo "    </script>";
}
unset($NM_ult_sep);
?>
<?php if ('novo' != $this->nmgp_opcao || $this->Embutida_form) { ?><script>nav_atualiza(Nav_permite_ret, Nav_permite_ava, 'b');</script><?php } ?>
<?php if (('novo' != $this->nmgp_opcao || $this->Embutida_form) && !$this->nmgp_form_empty && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "F") { if ('parcial' == $this->form_paginacao) {?><script>summary_atualiza(<?php echo ($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['reg_start'] + 1). ", " . $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['reg_qtd'] . ", " . ($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['total'] + 1)?>);</script><?php }} ?>
<?php if (('novo' != $this->nmgp_opcao || $this->Embutida_form) && !$this->nmgp_form_empty && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "F") { if ('total' == $this->form_paginacao) {?><script>summary_atualiza(1, <?php echo $this->sc_max_reg . ", " . $this->sc_max_reg?>);</script><?php }} ?>
<?php if (('novo' != $this->nmgp_opcao || $this->Embutida_form) && !$this->nmgp_form_empty && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['run_iframe'] != "F") { ?><script>navpage_atualiza('<?php echo $this->SC_nav_page ?>');</script><?php } ?>
</td></tr> 
</table> 
</div> 
</td> 
</tr> 
</table> 

<div id="id_debug_window" style="display: none; position: absolute; left: 50px; top: 50px"><table class="scFormMessageTable">
<tr><td class="scFormMessageTitle"><?php echo nmButtonOutput($this->arr_buttons, "berrm_clse", "scAjaxHideDebug()", "scAjaxHideDebug()", "", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "");?>
&nbsp;&nbsp;Output</td></tr>
<tr><td class="scFormMessageMessage" style="padding: 0px; vertical-align: top"><div style="padding: 2px; height: 200px; width: 350px; overflow: auto" id="id_debug_text"></div></td></tr>
</table></div>

</form> 
<script> 
<?php
  $nm_sc_blocos_da_pag = array(0);

  foreach ($this->Ini->nm_hidden_blocos as $bloco => $hidden)
  {
      if ($hidden == "off" && in_array($bloco, $nm_sc_blocos_da_pag))
      {
          echo "document.getElementById('hidden_bloco_" . $bloco . "').style.display = 'none';";
          if (isset($nm_sc_blocos_aba[$bloco]))
          {
               echo "document.getElementById('id_tabs_" . $nm_sc_blocos_aba[$bloco] . "_" . $bloco . "').style.display = 'none';";
          }
      }
  }
?>
</script> 
<script>
<?php
if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['masterValue']))
{
    if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard']) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard']) {
?>
var dbParentFrame = $(parent.document).find("[name='<?php echo $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['parent_widget']; ?>']");
if (dbParentFrame && dbParentFrame[0] && dbParentFrame[0].contentWindow.scAjaxDetailValue)
{
<?php
        foreach ($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['masterValue'] as $cmp_master => $val_master)
        {
?>
    dbParentFrame[0].contentWindow.scAjaxDetailValue('<?php echo $cmp_master ?>', '<?php echo $val_master ?>');
<?php
        }
        unset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['masterValue']);
?>
}
<?php
    }
    else {
?>
if (parent && parent.scAjaxDetailValue)
{
<?php
        foreach ($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['masterValue'] as $cmp_master => $val_master)
        {
?>
    parent.scAjaxDetailValue('<?php echo $cmp_master ?>', '<?php echo $val_master ?>');
<?php
        }
        unset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['masterValue']);
?>
}
<?php
    }
}
?>
function updateHeaderFooter(sFldName, sFldValue)
{
  if (sFldValue[0] && sFldValue[0]["value"])
  {
    sFldValue = sFldValue[0]["value"];
  }
}
</script>
<?php
if (isset($_POST['master_nav']) && 'on' == $_POST['master_nav'])
{
    if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard']) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard']) {
?>
<script>
 var dbParentFrame = $(parent.document).find("[name='<?php echo $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['parent_widget']; ?>']");
 dbParentFrame[0].contentWindow.scAjaxDetailStatus("form_accountants_acountants");
</script>
<?php
    }
    else {
        $sTamanhoIframe = isset($_POST['sc_ifr_height']) && '' != $_POST['sc_ifr_height'] ? '"' . $_POST['sc_ifr_height'] . '"' : '$(document).innerHeight()';
?>
<script>
 parent.scAjaxDetailStatus("form_accountants_acountants");
 parent.scAjaxDetailHeight("form_accountants_acountants", <?php echo $sTamanhoIframe; ?>);
</script>
<?php
    }
}
elseif (isset($_GET['script_case_detail']) && 'Y' == $_GET['script_case_detail'])
{
    if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard']) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['dashboard_info']['under_dashboard']) {
    }
    else {
    $sTamanhoIframe = isset($_GET['sc_ifr_height']) && '' != $_GET['sc_ifr_height'] ? '"' . $_GET['sc_ifr_height'] . '"' : '$(document).innerHeight()';
?>
<script>
 if (0 == <?php echo $sTamanhoIframe; ?>) {
  setTimeout(function() {
   parent.scAjaxDetailHeight("form_accountants_acountants", <?php echo $sTamanhoIframe; ?>);
  }, 100);
 }
 else {
  parent.scAjaxDetailHeight("form_accountants_acountants", <?php echo $sTamanhoIframe; ?>);
 }
</script>
<?php
    }
}
?>
<?php
if (isset($this->NM_ajax_info['displayMsg']) && $this->NM_ajax_info['displayMsg'])
{
?>
<script type="text/javascript">
_scAjaxShowMessage(scMsgDefTitle, "<?php echo $this->NM_ajax_info['displayMsgTxt']; ?>", false, sc_ajaxMsgTime, false, "Ok", 0, 0, 0, 0, "", "", "", false, true);
</script>
<?php
}
?>
<?php
if ('' != $this->scFormFocusErrorName)
{
?>
<script>
scAjaxFocusError();
</script>
<?php
}
?>
<script>
bLigEditLookupCall = <?php if ($this->lig_edit_lookup_call) { ?>true<?php } else { ?>false<?php } ?>;
function scLigEditLookupCall()
{
<?php
if ($this->lig_edit_lookup && isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['sc_modal']) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_accountants_acountants']['sc_modal'])
{
?>
  parent.<?php echo $this->lig_edit_lookup_cb; ?>(<?php echo $this->lig_edit_lookup_row; ?>);
<?php
}
elseif ($this->lig_edit_lookup)
{
?>
  opener.<?php echo $this->lig_edit_lookup_cb; ?>(<?php echo $this->lig_edit_lookup_row; ?>);
<?php
}
?>
}
if (bLigEditLookupCall)
{
  scLigEditLookupCall();
}
<?php
if (isset($this->redir_modal) && !empty($this->redir_modal))
{
    echo $this->redir_modal;
}
?>
</script>
<script type="text/javascript">
$(function() {
 $("#sc-id-mobile-in").mouseover(function() {
  $(this).css("cursor", "pointer");
 }).click(function() {
  scMobileDisplayControl("in");
 });
 $("#sc-id-mobile-out").mouseover(function() {
  $(this).css("cursor", "pointer");
 }).click(function() {
  scMobileDisplayControl("out");
 });
});
function scMobileDisplayControl(sOption) {
 $("#sc-id-mobile-control").val(sOption);
 nm_atualiza("recarga_mobile");
}
</script>
<?php
       if (isset($_SESSION['scriptcase']['device_mobile']) && $_SESSION['scriptcase']['device_mobile'])
       {
?>
<span id="sc-id-mobile-in"><?php echo $this->Ini->Nm_lang['lang_version_mobile']; ?></span>
<?php
       }
?>
</body> 
</html> 
