<?php /* Smarty version 2.6.6, created on 2023-09-27 17:47:33
         compiled from report_fm_rem_naga.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'popup_init', 'report_fm_rem_naga.tpl', 1, false),array('function', 'counter', 'report_fm_rem_naga.tpl', 118, false),array('modifier', 'count_characters', 'report_fm_rem_naga.tpl', 147, false),array('modifier', 'cat', 'report_fm_rem_naga.tpl', 147, false),array('modifier', 'date_format', 'report_fm_rem_naga.tpl', 151, false),array('modifier', 'number_format', 'report_fm_rem_naga.tpl', 167, false),)), $this); ?>
<?php echo smarty_function_popup_init(array('src' => "overlib/overlib.js"), $this);?>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "reportHeader.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="report_filter">

<?php if ($this->_tpl_vars['columnCount'] > 0): ?>
		
		<form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>
" onSubmit="return dateFormat('datefrom:dateuntil');">
		<table id="report_filter_table" class="report_filter_table"><tr>
        <tr id="report_filter_table_input">
		<td><?php echo $this->_tpl_vars['filter_betrTxt']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_betrVal']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_stufe_2Txt']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_stufe_2Val']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_stufe_5Txt']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_stufe_5Val']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_mahnstTxt']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_mahnstVal']; ?>
</td>
        <td><input type=submit class="pme-filter" value="<?php echo $this->_tpl_vars['Query']; ?>
"></td>
        </tr><tr>
		<td><?php echo $this->_tpl_vars['filter_k_nameTxt']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_k_nameVal']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_wochTxt']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_wochVal']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_reklTxt']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_reklVal']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_WiedervorlTxt']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_WiedervorlVal']; ?>
</td>
		<td><input type=button onClick="clearCache();" class="pme-filter" value="<?php echo $this->_tpl_vars['Reset']; ?>
"></td>
        </tr><tr>
        <td><?php echo $this->_tpl_vars['filter_datefromTxt']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_datefromVal']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_dateuntilTxt']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_dateuntilVal']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_Mahnen_entTxt']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_Mahnen_entVal']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_rechgutTxt']; ?>
</td>
		<td><?php echo $this->_tpl_vars['filter_rechgutVal']; ?>
</td>
		</tr>
		</table>
		</form>

<?php endif; ?>

</div>




<?php echo $this->_tpl_vars['form_begin']; ?>


	<!--<hr>-->

	<div id="report_content" class="report_content">

<?php if ($this->_tpl_vars['columnCount'] > 0): ?>

<?php 
	global $phpme;
	while ($phpme->assign_rows()) {
 ?>
				<?php if ($this->_tpl_vars['rows_count'] == 1): ?>
			<div id="report_content_header" class="report_content_header">
				<table id="report_content_header_table" class="report_content_header_table">
					<tr>
						<td>&nbsp;</td>
						<td><?php echo $this->_tpl_vars['BetriebTxt2']; ?>
</td>
						<td><?php echo $this->_tpl_vars['Stufe2Txt2']; ?>
</td>
						<td><?php echo $this->_tpl_vars['KNAMETxt2']; ?>
</td>
						<td><?php echo $this->_tpl_vars['Stufe5Txt2']; ?>
</td>
						<td><?php echo $this->_tpl_vars['REDATTxt2']; ?>
</td>
						
						<td><?php echo $this->_tpl_vars['O500_HW2BUCHGBETRTxt2']; ?>
</td>
						<td style="text-align: center;"><?php echo $this->_tpl_vars['FLDATTxt2']; ?>
</td>
						<td><?php echo $this->_tpl_vars['O500_MAHNSTUFETxt2']; ?>
</td>
						<td><?php echo $this->_tpl_vars['O500_HW2BETR_OFFENTxt2']; ?>
</td>
						<td><?php echo $this->_tpl_vars['BemerkungTxt2']; ?>
</td>
						<td><?php echo $this->_tpl_vars['WiedervorlageTxt2']; ?>
</td>
						<td><?php echo $this->_tpl_vars['Bemerkung_2Txt2']; ?>
</td>
						<td><?php echo $this->_tpl_vars['shipment_dateTxt2']; ?>
</td>
						<td style="text-align: left;" ><?php echo $this->_tpl_vars['BearbeitetTxt2']; ?>
</td>
						<td><?php echo $this->_tpl_vars['MahnenTxt2']; ?>
</td>
						<td style="width: 10px;">&nbsp;</td>
					</tr>
				</table>
				<?php if (strlen ( $this->_tpl_vars['sortInfo'] ) > 0): ?>
						<?php echo $this->_tpl_vars['sortInfo']; ?>

				<?php endif; ?>
			</div>
			<div id="report_content_table" class="report_content_table">
				<table id="report_content_table_table" class="report_content_table_table">

		<?php endif; ?>

                
                <?php if ($this->_tpl_vars['rows_count'] == 1): ?>
                <?php $this->assign('ALLGroup', $this->_tpl_vars['rows']['ALL']); ?>
                                <?php echo smarty_function_counter(array('name' => 'ALLGroup_counter','start' => 0,'print' => false,'assign' => 'ALLGroup_counter'), $this);?>


                                <?php $this->assign('ALLGroup_SUMer', 0); ?>

        <?php endif; ?>
        <?php if ($this->_tpl_vars['ALLGroup_counter'] == 0): ?>
                <?php $this->assign('ALLGroup', $this->_tpl_vars['rows']['ALL']); ?>
        <?php endif; ?>

                <?php echo smarty_function_counter(array('name' => 'ALLGroup_counter','print' => false), $this);?>


                <?php $this->assign('ALLGroup_SUMer', ($this->_tpl_vars['ALLGroup_SUMer']+$this->_tpl_vars['rows']['O500_HW2BETR_OFFEN'])); ?>


        <?php if ($this->_tpl_vars['ALLGroup'] != $this->_tpl_vars['rows_next']['ALL']): ?>
                                <?php $this->assign('ALLGroup_COUNT', $this->_tpl_vars['ALLGroup_counter']); ?>
                <?php echo smarty_function_counter(array('name' => 'ALLGroup_counter','start' => 0,'print' => false,'assign' => 'ALLGroup_counter'), $this);?>


        <?php endif; ?>


		                <?php if (((is_array($_tmp=$this->_tpl_vars['rows']['FAGNR'])) ? $this->_run_mod_handler('count_characters', true, $_tmp) : smarty_modifier_count_characters($_tmp)) == 6 && ((is_array($_tmp=$this->_tpl_vars['rows']['O500_BELEGNR1'])) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['rows']['OPDAT']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['rows']['OPDAT'])) == $this->_tpl_vars['thisrec']): ?>
                        <tr bgcolor=#99CCFF>
                <?php elseif (((is_array($_tmp=$this->_tpl_vars['rows']['FAGNR'])) ? $this->_run_mod_handler('count_characters', true, $_tmp) : smarty_modifier_count_characters($_tmp)) == 7 && ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['rows']['FAGNR'])) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['rows']['O500_BELEGNR1']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['rows']['O500_BELEGNR1'])))) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['rows']['OPDAT']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['rows']['OPDAT'])) == $this->_tpl_vars['thisrec']): ?>
                        <tr bgcolor=#99CCFF>
                <?php elseif (( $this->_tpl_vars['rows']['User'] == $_SESSION['userid'] && ((is_array($_tmp=$this->_tpl_vars['rows']['Aenderungsdatum'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d.%m.%Y') : smarty_modifier_date_format($_tmp, '%d.%m.%Y')) == ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d.%m.%Y') : smarty_modifier_date_format($_tmp, '%d.%m.%Y')) ) || ( $this->_tpl_vars['rows']['User_2'] == $_SESSION['userid'] && ((is_array($_tmp=$this->_tpl_vars['rows']['Aenderungsdatum_u2'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d.%m.%Y') : smarty_modifier_date_format($_tmp, '%d.%m.%Y')) == ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d.%m.%Y') : smarty_modifier_date_format($_tmp, '%d.%m.%Y')) )): ?>
                        <tr bgcolor=#99CCFF>                 <?php elseif ($this->_tpl_vars['rows_count'] % 2 == 0): ?>
                        <tr bgcolor=#E8EEFF>
                <?php else: ?>
                        <tr>
                <?php endif; ?>

                        <td nowrap>
                        <?php echo $this->_tpl_vars['rows']['link_change']; ?>

                        </td>
                        <td><?php echo $this->_tpl_vars['rows']['Betrieb']; ?>
</td>
                <td><?php echo $this->_tpl_vars['rows']['Stufe2']; ?>
</td>
                <td><?php echo $this->_tpl_vars['rows']['KNAME']; ?>
</td>
                <td><?php echo $this->_tpl_vars['rows']['Stufe5']; ?>
</td>
                <td style="text-align: right;"><?php echo ((is_array($_tmp=$this->_tpl_vars['rows']['REDAT'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d.%m.%Y') : smarty_modifier_date_format($_tmp, '%d.%m.%Y')); ?>
</td>
                <td style="text-align: right;"><?php echo ((is_array($_tmp=$this->_tpl_vars['rows']['O500_HW2BUCHGBETR'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2, ",", ".") : number_format($_tmp, 2, ",", ".")); ?>
</td>
                <td style="text-align: center;"><?php echo ((is_array($_tmp=$this->_tpl_vars['rows']['FLDAT'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d.%m.%Y') : smarty_modifier_date_format($_tmp, '%d.%m.%Y')); ?>
</td>
                <td><?php echo $this->_tpl_vars['rows']['O500_MAHNSTUFE']; ?>
</td>
                <td style="text-align: right;"><?php echo ((is_array($_tmp=$this->_tpl_vars['rows']['O500_HW2BETR_OFFEN'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2, ",", ".") : number_format($_tmp, 2, ",", ".")); ?>
</td>
                <td><?php echo $this->_tpl_vars['rows']['Bemerkung']; ?>
</td>
                <td><?php if ($this->_tpl_vars['rows']['Wiedervorlage'] != '0000-00-00'):  echo ((is_array($_tmp=$this->_tpl_vars['rows']['Wiedervorlage'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d.%m.%Y') : smarty_modifier_date_format($_tmp, '%d.%m.%Y'));  endif; ?></td>
                <td><?php echo $this->_tpl_vars['rows']['Bemerkung_2']; ?>
</td>
				<td><?php if ($this->_tpl_vars['rows']['shipment_date'] != '0000-00-00'):  echo ((is_array($_tmp=$this->_tpl_vars['rows']['shipment_date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d.%m.%Y') : smarty_modifier_date_format($_tmp, '%d.%m.%Y'));  endif; ?></td>
                <td style="text-align: left;" ><?php echo $this->_tpl_vars['rows']['Bearbeitet']; ?>
</td>
                <td><?php echo $this->_tpl_vars['rows']['Mahnen']; ?>
</td>

                        </tr>

		

				<?php if (! $this->_tpl_vars['rows_next']): ?>

			</table>
            </div>
			</div>
			<div id="report_gesamt_berechnung" class="report_gesamt_berechung">


		<tr><td colspan=<?php echo $this->_tpl_vars['columnCount']; ?>
>
		<?php echo $this->_tpl_vars['grandTotal']; ?>

		<?php echo $this->_tpl_vars['O500_HW2BETR_OFFENTxt']; ?>
 = <?php echo ((is_array($_tmp=$this->_tpl_vars['ALLGroup_SUM'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2, ",", ".") : number_format($_tmp, 2, ",", ".")); ?>


		</td></tr>

			</div>
		<?php endif; ?>

<?php 
        }
 ?>

        <?php if ($this->_tpl_vars['rows_count'] == 0): ?>
                <h1>Keine Datensätze ausgewählt.</h1>
        <?php endif; ?>

<?php else: ?>
        <?php unset($this->_sections['html']);
$this->_sections['html']['name'] = 'html';
$this->_sections['html']['loop'] = is_array($_loop=$this->_tpl_vars['form_hidden']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['html']['show'] = true;
$this->_sections['html']['max'] = $this->_sections['html']['loop'];
$this->_sections['html']['step'] = 1;
$this->_sections['html']['start'] = $this->_sections['html']['step'] > 0 ? 0 : $this->_sections['html']['loop']-1;
if ($this->_sections['html']['show']) {
    $this->_sections['html']['total'] = $this->_sections['html']['loop'];
    if ($this->_sections['html']['total'] == 0)
        $this->_sections['html']['show'] = false;
} else
    $this->_sections['html']['total'] = 0;
if ($this->_sections['html']['show']):

            for ($this->_sections['html']['index'] = $this->_sections['html']['start'], $this->_sections['html']['iteration'] = 1;
                 $this->_sections['html']['iteration'] <= $this->_sections['html']['total'];
                 $this->_sections['html']['index'] += $this->_sections['html']['step'], $this->_sections['html']['iteration']++):
$this->_sections['html']['rownum'] = $this->_sections['html']['iteration'];
$this->_sections['html']['index_prev'] = $this->_sections['html']['index'] - $this->_sections['html']['step'];
$this->_sections['html']['index_next'] = $this->_sections['html']['index'] + $this->_sections['html']['step'];
$this->_sections['html']['first']      = ($this->_sections['html']['iteration'] == 1);
$this->_sections['html']['last']       = ($this->_sections['html']['iteration'] == $this->_sections['html']['total']);
?>
                <?php echo $this->_tpl_vars['form_hidden'][$this->_sections['html']['index']]; ?>

        <?php endfor; endif; ?>
        <table class="report_content_formular_table" cellspacing="0px">
                <tr style="background-Color: #E8EEFF;">
                        <td><?php echo $this->_tpl_vars['BetriebTxt']; ?>
:</td>
                        <td><?php echo $this->_tpl_vars['BetriebVal']; ?>
</td>

                        <td><?php echo $this->_tpl_vars['FTYPETxt']; ?>
:</td>
                        <td><?php echo $this->_tpl_vars['FTYPEVal']; ?>
</td>

                        <td><?php echo $this->_tpl_vars['Faell_TageTxt']; ?>
</td>
                        <td><input class="pme-input--1" type="text" disabled name="Faell_Tage" value="<?php echo $this->_tpl_vars['rows']['Faell_Tage']; ?>
"  size="10" maxlength="10"></td>

                        <td><?php echo $this->_tpl_vars['FLDATTxt']; ?>
:</td>
                        <td><input class="pme-input--1" type="text" disabled name="FLDAT" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['rows']['FLDAT'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d.%m.%Y') : smarty_modifier_date_format($_tmp, '%d.%m.%Y')); ?>
"  size="10" maxlength="10"></input></td>

                        <td><?php echo $this->_tpl_vars['ZA_1Txt']; ?>
:</td>
                        <td><?php echo $this->_tpl_vars['ZA_1Val']; ?>
</td>


                </tr>
                <tr style="background-Color: #E8EEFF;">
                        <td><?php echo $this->_tpl_vars['Stufe2Txt']; ?>
:</td>
                        <td><?php echo $this->_tpl_vars['Stufe2Val']; ?>
</td>

                        <td><?php echo $this->_tpl_vars['FAGNRTxt']; ?>
:</td>
                        <td><?php echo $this->_tpl_vars['FAGNRVal']; ?>
</td>

                        <td><?php echo $this->_tpl_vars['REDATTxt']; ?>
:</td>
                        <td><input class="pme-input--1" type="text" disabled name="REDAT" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['rows']['REDAT'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d.%m.%Y') : smarty_modifier_date_format($_tmp, '%d.%m.%Y')); ?>
"  size="10" maxlength="10"></input></td>

                        <td><?php echo $this->_tpl_vars['WochenTxt']; ?>
:</td>
                        <td><?php echo $this->_tpl_vars['WochenVal']; ?>
</td>

                        <td><?php echo $this->_tpl_vars['ZA_2Txt']; ?>
:</td>
                        <td><?php echo $this->_tpl_vars['ZA_2Val']; ?>
</td>

                </tr>
                <tr style="background-Color: #E8EEFF;">
                        <td><?php echo $this->_tpl_vars['Stufe5Txt']; ?>
:</td>
                        <td><?php echo $this->_tpl_vars['Stufe5Val']; ?>
</td>

                        <td><?php echo $this->_tpl_vars['O500_HW2BUCHGBETRTxt']; ?>
:</td>
		            <td><input class="pme-input--1" type="text" disabled name="O500_HW2BUCHGBETR" value=<?php echo ((is_array($_tmp=$this->_tpl_vars['rows']['O500_HW2BUCHGBETR'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2, ",", ".") : number_format($_tmp, 2, ",", ".")); ?>
 size="11" maxlength="11"></input></td>

                        <td>&nbsp;</td>
                        <td>&nbsp;</td>

                        <td>&nbsp;</td>
                        <td>&nbsp;</td>

                        <td><?php echo $this->_tpl_vars['ZA_3Txt']; ?>
:</td>
                        <td><?php echo $this->_tpl_vars['ZA_3Val']; ?>
</td>

                </tr>

                <tr style="background-Color: #E8EEFF;">
                        <td><?php echo $this->_tpl_vars['KNDNRTxt']; ?>
:</td>
                        <td><?php echo $this->_tpl_vars['KNDNRVal']; ?>
</td>

                        <td><?php echo $this->_tpl_vars['KNAMETxt']; ?>
:</td>
                        <td colspan="3"><?php echo $this->_tpl_vars['KNAMEVal']; ?>
</td>

                        <td><?php echo $this->_tpl_vars['customer_number_leasingTxt']; ?>
:</td>
                        <td><?php echo $this->_tpl_vars['customer_number_leasingVal']; ?>
</td>

                        <td><?php echo $this->_tpl_vars['customer_name_leasingTxt']; ?>
:</td>
                        <td><?php echo $this->_tpl_vars['customer_name_leasingVal']; ?>
</td>
                </tr>

                <tr style="background-Color: #E8EEFF;">
                        <td><?php echo $this->_tpl_vars['O500_BELEGNR1Txt']; ?>
</td>
                        <td><?php echo $this->_tpl_vars['O500_BELEGNR1Val']; ?>
</td>

                        <td><?php echo $this->_tpl_vars['KstraTxt']; ?>
</td>
                        <td colspan="3"><?php echo $this->_tpl_vars['KstraVal']; ?>
</td>

                        <td><?php echo $this->_tpl_vars['LKSTRATxt']; ?>
</td>
                        <td><?php echo $this->_tpl_vars['LKSTRAVal']; ?>
</td>

                        <td>&nbsp;</td>
                        <td>&nbsp;</td>

                </tr>
                <tr style="background-Color: #E8EEFF;">
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>

                        <td><?php echo $this->_tpl_vars['KdplzTxt']; ?>
</td>
                        <td colspan="3"><?php echo $this->_tpl_vars['KdplzVal']; ?>
</td>

                        <td width="6%"><?php echo $this->_tpl_vars['LKDPLZTxt']; ?>
</td>
                        <td><?php echo $this->_tpl_vars['LKDPLZVal']; ?>
</td>

                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                </tr>
                <tr style="background-Color: #E8EEFF;">
                        <td><b><?php echo $this->_tpl_vars['ReklamationTxt']; ?>
</b></td>
				<td><SELECT class="pme-input--1" type="text" name="Reklamation" size="1" maxlength="1">
                                  <option value='N'>Nein</option>
                                  <option value='J' <?php if ($this->_tpl_vars['rows']['Reklamation'] == 'J'): ?> selected <?php endif; ?> >Ja</option>
                              </SELECT>
		</td>
                        <td><?php echo $this->_tpl_vars['KdortTxt']; ?>
</td>
                        <td colspan="3"><?php echo $this->_tpl_vars['KdortVal']; ?>
</td>
                        <td width="6%"><?php echo $this->_tpl_vars['LKDORTTxt']; ?>
</td>
                        <td><?php echo $this->_tpl_vars['LKDORTVal']; ?>
</td>

                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                </tr>
                <tr style="background-Color: #E8EEFF;">
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>

                        <td><?php echo $this->_tpl_vars['KtelfTxt']; ?>
</td>
                        <td colspan="3"><?php echo $this->_tpl_vars['KtelfVal']; ?>
</td>

                        <td><?php echo $this->_tpl_vars['LKTELFTxt']; ?>
</td>
                        <td><?php echo $this->_tpl_vars['LKTELFVal']; ?>
</td>

                        <td colspan="2"></td>
                </tr>
                <tr>

                        <td><?php echo $this->_tpl_vars['O500_MAHNSTUFETxt']; ?>
:</td>
                        <td colspan="5"><?php echo $this->_tpl_vars['O500_MAHNSTUFEVal']; ?>
</td>

                        <td>&nbsp;</td>
                        <td>&nbsp;</td>


                        <td style="background-Color: #E8EEFF;"><?php echo $this->_tpl_vars['shipment_dateTxt']; ?>
</td>
                        <td style="background-Color: #E8EEFF;">
						<input class="pme-input--1" type="text" disabled name="shipment_date" value="<?php if ($this->_tpl_vars['rows']['shipment_date'] != '0000-00-00'):  echo ((is_array($_tmp=$this->_tpl_vars['rows']['shipment_date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d.%m.%Y') : smarty_modifier_date_format($_tmp, '%d.%m.%Y'));  endif; ?>"  size="10" maxlength="10"></input>
						</td>
                </tr>

                <tr>

                        <td><?php echo $this->_tpl_vars['BemerkungTxt']; ?>
:</td>
                        <td colspan="5"><textarea class="pme-input--1" <?php if ($_SESSION['group_name'] == ABTEILUNG): ?> disabled <?php endif; ?> name="Bemerkung" rows="5" cols="50" wrap="virtual"><?php echo $this->_tpl_vars['rows']['Bemerkung']; ?>
</textarea></td>

                        <td><?php echo $this->_tpl_vars['Aenderungsdatum_u2Txt']; ?>
:<br><?php echo $this->_tpl_vars['User_2Txt']; ?>
:</td>
                        <td><input class="pme-input--1" type="text" disabled name="Aenderungsdatum_u2" value="<?php if ($this->_tpl_vars['rows']['Aenderungsdatum_u2'] != '0000-00-00'):  echo ((is_array($_tmp=$this->_tpl_vars['rows']['Aenderungsdatum_u2'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d.%m.%Y') : smarty_modifier_date_format($_tmp, '%d.%m.%Y'));  endif; ?>"  size="10" maxlength="10"><br><input class="pme-input--1" disabled type="text" name="User_2" value="<?php echo $this->_tpl_vars['rows']['User_2']; ?>
"  size="30" maxlength="30"></td>

                        <td style="background-Color: #E8EEFF;"></td>
                        <td style="background-Color: #E8EEFF;"></td>
                </tr>
                <tr>
                        <td><?php echo $this->_tpl_vars['Next_MAHNSTUFETxt']; ?>
:</td>
                        <td colspan="7"><?php echo $this->_tpl_vars['Next_MAHNSTUFEVal']; ?>
</td>

                        <td colspan="2" rowspan="3" style="background-Color: #E8EEFF;"><?php echo $this->_tpl_vars['text1Txt']; ?>
:<br/>
						<?php echo $this->_tpl_vars['text1Val']; ?>
<br/>
						<?php echo $this->_tpl_vars['text2Val']; ?>

						
						</td>
                </tr>
                <tr>

                        <td><?php echo $this->_tpl_vars['MahnenTxt']; ?>
:</td>
                        <td colspan="7">	<select class="pme-input--1" type="text" name="Mahnen" size="1" maxlength="1">
                        				<option value="N">Nein</option>
                        				<option value="J" <?php if ($this->_tpl_vars['rows']['Mahnen'] == 'J'): ?> selected <?php endif; ?> >Ja</option>
                        			</select>
                        </td>

				</tr>
                <tr>

                        <td><?php echo $this->_tpl_vars['Bemerkung_2Txt']; ?>
:</td>
                        <td colspan="5"><textarea class="pme-input--1" <?php if ($_SESSION['group_name'] == FIBU): ?> disabled <?php endif; ?> name="Bemerkung_2" rows="5" cols="50" wrap="virtual"><?php echo $this->_tpl_vars['rows']['Bemerkung_2']; ?>
</textarea></td>

		            <td><?php echo $this->_tpl_vars['AenderungsdatumTxt']; ?>
:<br><?php echo $this->_tpl_vars['UserTxt']; ?>
:</td>
                        <td><input class="pme-input--1" type="text" disabled name="Aenderungsdatum" value="<?php if ($this->_tpl_vars['rows']['Aenderungsdatum'] != '0000-00-00'):  echo ((is_array($_tmp=$this->_tpl_vars['rows']['Aenderungsdatum'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d.%m.%Y') : smarty_modifier_date_format($_tmp, '%d.%m.%Y'));  endif; ?>"  size="10" maxlength="10"><br><input class="pme-input--1" disabled type="text" name="User" value="<?php echo $this->_tpl_vars['rows']['User']; ?>
"  size="30" maxlength="30"></td>


                </tr>

                <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>

                        <td>&nbsp;</td>
                        <td>&nbsp;</td>

                        <td>&nbsp;</td>
                        <td>&nbsp;</td>

                        <td style="border-top: 1px solid #45458D;"><?php echo $this->_tpl_vars['WiedervorlageTxt']; ?>
:</td>
                        <td style="border-top: 1px solid #45458D;"><input class="pme-input--1" date="date" type="text" name="Wiedervorlage" value="<?php if ($this->_tpl_vars['rows']['Wiedervorlage'] != '0000-00-00'):  echo ((is_array($_tmp=$this->_tpl_vars['rows']['Wiedervorlage'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%d.%m.%Y') : smarty_modifier_date_format($_tmp, '%d.%m.%Y'));  endif; ?>"  size="10" maxlength="10"><image src="images/dynCalendar.gif" name='calendar' onclick="startCalendar(this,'Wiedervorlage','up');"></td>

                        <td style="background-Color: #E8EEFF; border-top: 1px solid #45458D;"><?php echo $this->_tpl_vars['O500_HW2BETR_OFFENTxt']; ?>
</td>
                        <td style="background-Color: #E8EEFF; border-top: 1px solid #45458D;"</td><input class="pme-input--1" type="text" disabled name="O500_HW2BETR_OFFEN" value=<?php echo ((is_array($_tmp=$this->_tpl_vars['rows']['O500_HW2BETR_OFFEN'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2, ",", ".") : number_format($_tmp, 2, ",", ".")); ?>
 size="11" maxlength="11"></input></td>

                </tr>

                <tr style="display: none;">
                        <td><?php echo $this->_tpl_vars['OPDATTxt']; ?>
</td>
                        <td><?php echo $this->_tpl_vars['OPDATVal']; ?>
</td>
                        <td><?php echo $this->_tpl_vars['FLDAT_oriTxt']; ?>
:</td>
                        <td><?php echo $this->_tpl_vars['FLDAT_oriVal']; ?>
</td>
                        <td><input class="pme-input--1" type="text" name="Bearbeitet" value='J'  size="1" maxlength="1"></td>
                        <td><input class="pme-input--1" type="hidden" name="User_2" value="<?php if ($_SESSION['group_name'] == FIBU):  echo $_SESSION['userid'];  else:  echo $this->_tpl_vars['rows']['User_2'];  endif; ?>"  size="30" maxlength="30"></td>
                        <td><input class="pme-input--1" type="hidden" name="User" value="<?php if ($_SESSION['group_name'] == ABTEILUNG):  echo $_SESSION['userid'];  else:  echo $this->_tpl_vars['rows']['User'];  endif; ?>"  size="30" maxlength="30"></td>
                        <td><input class="pme-input--1" type="text" name="Aenderungsdatum_u2" value="<?php if ($_SESSION['group_name'] == FIBU):  echo ((is_array($_tmp=$this->_tpl_vars['curdate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d'));  else:  echo $this->_tpl_vars['rows']['Aenderungsdatum_u2'];  endif; ?>"  size="10" maxlength="10"></td>
                        <td><input class="pme-input--1" type="text" name="Aenderungsdatum" value="<?php if ($_SESSION['group_name'] == ABTEILUNG):  echo ((is_array($_tmp=$this->_tpl_vars['curdate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d'));  else:  echo $this->_tpl_vars['rows']['Aenderungsdatum'];  endif; ?>"  size="10" maxlength="10"></td>
                        <td><?php if ($_SESSION['group_name'] == ABTEILUNG): ?><textarea type="hidden" class="pme-input--1" name="Bemerkung" rows="5" cols="50" wrap="virtual"><?php echo $this->_tpl_vars['rows']['Bemerkung']; ?>
</textarea><?php endif; ?></td>
                        <td><?php if ($_SESSION['group_name'] == FIBU): ?><textarea type="hidden" class="pme-input--1" name="Bemerkung_2" rows="5" cols="50" wrap="virtual"><?php echo $this->_tpl_vars['rows']['Bemerkung_2']; ?>
</textarea><?php endif; ?></td>
                </tr>



        </table>
        </div>

                <?php endif; ?>




<?php if ($this->_tpl_vars['columnCount'] > 0): ?>
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "listButtons.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php else: ?>
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "recordButtons.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php endif; ?>



<?php echo $this->_tpl_vars['form_end']; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "reportFooter.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
