Blame | Letzte Änderung | Log anzeigen | RSS feed
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><style>body {text-align:center;}.list td {border-top:1px solid #666;border-right:1px solid #666;}.rank {background-color:#f00;}.rank1 {background-color:#fc0;}.rank2,.rank3,.rank4 {background-color:#0f0;}</style><link rel="stylesheet" type="text/css" href="../styles/styles.php" /></head><body><div style="text-align:center;float:left;"><script type="text/javascript">function setCheckbox(chkid,select) {if(select.value!="none") {document.getElementById(chkid).checked = "checked";}else{document.getElementById(chkid).checked = "";}}</script>{if $smarty.post.mode==""}<fieldset style="padding:20px;"><legend><h2>Kontobewegungen importieren</h2></legend><form method="get" action="{$self}" name="config_form"><div style="float:left;margin-right:20px;"><legend><b>Konfiguration:</b></legend><select name="config" onchange="return document.forms.config_form.submit();">{html_options options=$configs selected=$cfg_sel}</select></div></form>{if $config_ready==1 and $smarty.get.config}<div style="clear:both;float:none;padding-top:20px;text-align:left;"><form enctype="multipart/form-data" name="import" method="post" action=""><legend><b>zu importierende Datei:</b></legend><input type="file" name="datei" /><input type="hidden" name="mode" value="import" /><br /><br /><input type="submit" value="Datei hochladen" /></fieldset></form></div>{/if}{/if}{if $data}<form name="best_zuordnung" action="{$SCRIPTNAME}" method="post"><table style="background-color:#fff;margin:10px;" class="list" border="0" cellspacing="0" cellpadding="2"><tr><th style="text-align:left;" colspan="3">Überweisungsdaten / Kontoauszug</th><th style="background-color:#ccc;"> </th><th style="text-align:left;">Bestelldaten</th></tr><tr><th>Datum</th><th>Betrag</th>{if $data[fid].Name}<th>Name</th>{/if}<th>Verwendungstext</th><th style="background-color:#ccc;">Zuordnung</th><th style="text-align:left;">Bestellung, Datum, Betrag, Kunde</th></tr>{section name=fid loop=$data}{if $data[fid].ueberw_betrag}<tr id="tr_{$smarty.section.fid.index}" class="tr_hl"><td style="vertical-align:top;text-align:right;">{$data[fid].datum}<input type="hidden" name="row[{$smarty.section.fid.index}][datum]" value="{$data[fid].datum}" /></td><td style="vertical-align:top;text-align:right;">{if $data[fid].ueberw_betrag}{$data[fid].ueberw_betrag|money_format|replace:" ":" "}{/if}<input type="hidden" name="row[{$smarty.section.fid.index}][betrag]" value="{$data[fid].ueberw_betrag|money_format}" /></td>{if $data[fid].name}<td style="vertical-align:top;text-align:right;">{$data[fid].name|replace:" ":" "}<input type="hidden" name="row[{$smarty.section.fid.index}][name]" value="{$data[fid].name|money_format}" /></td>{/if}<td style="vertical-align:top;text-align:left;">{$data[fid].text|replace:"\"":""}<input type="hidden" name="row[{$smarty.section.fid.index}][text]" value="{$data[fid].text}" /></td><td class="rank{$data[fid].hr}" style="vertical-align:middle;text-align:center;"><input id="chk_{$smarty.section.fid.index}" type="checkbox" name="row[{$smarty.section.fid.index}][chk]" {if $data[fid].hr>=2}checked="checked"{/if} /></td><td style="vertical-align:middle;text-align:left;width:30%;">{assign var=cnt value=0}{section loop=$data[fid].best name=bid}{if $data[fid].best[bid].rank==$data[fid].hr}{assign var=cnt value=$cnt+1}{/if}{/section}{if $cnt>1}<select onblur="document.getElementById('tr_{$smarty.section.fid.index}').style.backgroundColor='#fff';" onfocus="document.getElementById('tr_{$smarty.section.fid.index}').style.backgroundColor='#ccc';" onchange="setCheckbox('chk_{$smarty.section.fid.index}',this);"name="row[{$smarty.section.fid.index}][bestellung]" style="width:100%;"><option value="none" selected="selected">Keine Auswahl</option>{assign var=highestrank value=0}{section loop=$data[fid].best name=bid}{if $data[fid].best[bid].rank==$data[fid].hr}<option value="{$data[fid].best[bid].bestID}###{$data[fid].best[bid].name}">{$data[fid].best[bid].bestID}{$data[fid].best[bid].erstellt_am}{if $data[fid].best[bid].ueberw_betrag>0}{$data[fid].best[bid].ueberw_betrag|money_format}{/if}{$data[fid].best[bid].name}</option>{/if}{/section}</select>{elseif $cnt==1}{section loop=$data[fid].best name=bid}{if $data[fid].best[bid].rank==$data[fid].hr}<input type="hidden" name="row[{$smarty.section.fid.index}][bestellung]" value="{$data[fid].best[bid].bestID}###{$data[fid].best[bid].name}" /><a href="/Warenwirtschaft/bestellungen_neu.php?Bestellung={$data[fid].best[bid].bestID}" target="_blank">{$data[fid].best[bid].bestID}</a>{$data[fid].best[bid].erstellt_am}{if $data[fid].best[bid].ueberw_betrag>0}{$data[fid].best[bid].ueberw_betrag|money_format}{/if}{$data[fid].best[bid].name}{/if}{/section}{elseif $cnt==0}Keine Übereinstimmung{/if}</td></tr>{/if}{/section}</table><input type="hidden" name="mode" value="save" /><p style="margin:10px;text-align:left;"><input type="submit" value="Zuordnungen speichern" /></p></form>{/if}</div><div style="float:left;margin-left:20px;">{if $protocols}<fieldset style="padding:20px;"><legend><h2>Protokolle einsehen:</h2></legend>{$protocols}</fieldset>{/if}</div></body></html>