| 1 |
lars |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
|
2 |
|
|
|
3 |
<html>
|
|
|
4 |
<head>
|
|
|
5 |
<style>
|
|
|
6 |
body {
|
|
|
7 |
text-align:center;
|
|
|
8 |
}
|
|
|
9 |
.list td {
|
|
|
10 |
border-top:1px solid #666;
|
|
|
11 |
border-right:1px solid #666;
|
|
|
12 |
|
|
|
13 |
}
|
|
|
14 |
.rank {
|
|
|
15 |
background-color:#f00;
|
|
|
16 |
}
|
|
|
17 |
.rank1 {
|
|
|
18 |
background-color:#fc0;
|
|
|
19 |
}
|
|
|
20 |
.rank2,.rank3,.rank4 {
|
|
|
21 |
background-color:#0f0;
|
|
|
22 |
}
|
|
|
23 |
|
|
|
24 |
</style>
|
|
|
25 |
<link rel="stylesheet" type="text/css" href="../styles/styles.php" />
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
</head>
|
|
|
29 |
<body>
|
|
|
30 |
|
|
|
31 |
<div style="text-align:center;float:left;">
|
|
|
32 |
<script type="text/javascript">
|
|
|
33 |
function setCheckbox(chkid,select) {
|
|
|
34 |
if(select.value!="none") {
|
|
|
35 |
document.getElementById(chkid).checked = "checked";
|
|
|
36 |
}else{
|
|
|
37 |
document.getElementById(chkid).checked = "";
|
|
|
38 |
}
|
|
|
39 |
}
|
|
|
40 |
</script>
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
{if $smarty.post.mode==""}
|
|
|
44 |
<fieldset style="padding:20px;">
|
|
|
45 |
<legend><h2>Kontobewegungen importieren</h2></legend>
|
|
|
46 |
<form method="get" action="{$self}" name="config_form">
|
|
|
47 |
|
|
|
48 |
<div style="float:left;margin-right:20px;">
|
|
|
49 |
<legend><b>Konfiguration:</b></legend>
|
|
|
50 |
<select name="config" onchange="return document.forms.config_form.submit();">
|
|
|
51 |
{html_options options=$configs selected=$cfg_sel}
|
|
|
52 |
</select>
|
|
|
53 |
</div>
|
|
|
54 |
</form>
|
|
|
55 |
{if $config_ready==1 and $smarty.get.config}
|
|
|
56 |
<div style="clear:both;float:none;padding-top:20px;text-align:left;">
|
|
|
57 |
<form enctype="multipart/form-data" name="import" method="post" action="">
|
|
|
58 |
<legend><b>zu importierende Datei:</b></legend>
|
|
|
59 |
|
|
|
60 |
<input type="file" name="datei" />
|
|
|
61 |
<input type="hidden" name="mode" value="import" />
|
|
|
62 |
<br /><br />
|
|
|
63 |
<input type="submit" value="Datei hochladen" />
|
|
|
64 |
|
|
|
65 |
</fieldset>
|
|
|
66 |
</form>
|
|
|
67 |
</div>
|
|
|
68 |
{/if}
|
|
|
69 |
{/if}
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
{if $data}
|
|
|
73 |
<form name="best_zuordnung" action="{$SCRIPTNAME}" method="post">
|
|
|
74 |
|
|
|
75 |
<table style="background-color:#fff;margin:10px;" class="list" border="0" cellspacing="0" cellpadding="2">
|
|
|
76 |
<tr>
|
|
|
77 |
<th style="text-align:left;" colspan="3">Überweisungsdaten / Kontoauszug</th>
|
|
|
78 |
<th style="background-color:#ccc;"> </th>
|
|
|
79 |
<th style="text-align:left;">Bestelldaten</th>
|
|
|
80 |
</tr>
|
|
|
81 |
<tr>
|
|
|
82 |
<th>Datum</th>
|
|
|
83 |
<th>Betrag</th>
|
|
|
84 |
{if $data[fid].Name}
|
|
|
85 |
<th>Name</th>
|
|
|
86 |
{/if}
|
|
|
87 |
<th>Verwendungstext</th>
|
|
|
88 |
<th style="background-color:#ccc;">Zuordnung</th>
|
|
|
89 |
<th style="text-align:left;">Bestellung, Datum, Betrag, Kunde</th>
|
|
|
90 |
</tr>
|
|
|
91 |
{section name=fid loop=$data}
|
|
|
92 |
{if $data[fid].ueberw_betrag}
|
|
|
93 |
<tr id="tr_{$smarty.section.fid.index}" class="tr_hl">
|
|
|
94 |
<td style="vertical-align:top;text-align:right;">
|
|
|
95 |
{$data[fid].datum}
|
|
|
96 |
<input type="hidden" name="row[{$smarty.section.fid.index}][datum]" value="{$data[fid].datum}" />
|
|
|
97 |
</td>
|
|
|
98 |
<td style="vertical-align:top;text-align:right;">
|
|
|
99 |
{if $data[fid].ueberw_betrag}
|
|
|
100 |
{$data[fid].ueberw_betrag|money_format|replace:" ":" "}
|
|
|
101 |
{/if}
|
|
|
102 |
<input type="hidden" name="row[{$smarty.section.fid.index}][betrag]" value="{$data[fid].ueberw_betrag|money_format}" />
|
|
|
103 |
</td>
|
|
|
104 |
{if $data[fid].name}
|
|
|
105 |
<td style="vertical-align:top;text-align:right;">
|
|
|
106 |
{$data[fid].name|replace:" ":" "}
|
|
|
107 |
<input type="hidden" name="row[{$smarty.section.fid.index}][name]" value="{$data[fid].name|money_format}" />
|
|
|
108 |
</td>
|
|
|
109 |
{/if}
|
|
|
110 |
|
|
|
111 |
<td style="vertical-align:top;text-align:left;">
|
|
|
112 |
{$data[fid].text|replace:"\"":""}
|
|
|
113 |
<input type="hidden" name="row[{$smarty.section.fid.index}][text]" value="{$data[fid].text}" />
|
|
|
114 |
</td>
|
|
|
115 |
<td class="rank{$data[fid].hr}" style="vertical-align:middle;text-align:center;">
|
|
|
116 |
<input id="chk_{$smarty.section.fid.index}" type="checkbox" name="row[{$smarty.section.fid.index}][chk]" {if $data[fid].hr>=2}checked="checked"{/if} />
|
|
|
117 |
</td>
|
|
|
118 |
<td style="vertical-align:middle;text-align:left;width:30%;">
|
|
|
119 |
|
|
|
120 |
{assign var=cnt value=0}
|
|
|
121 |
{section loop=$data[fid].best name=bid}
|
|
|
122 |
{if $data[fid].best[bid].rank==$data[fid].hr}
|
|
|
123 |
{assign var=cnt value=$cnt+1}
|
|
|
124 |
{/if}
|
|
|
125 |
{/section}
|
|
|
126 |
{if $cnt>1}
|
|
|
127 |
|
|
|
128 |
<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);"
|
|
|
129 |
name="row[{$smarty.section.fid.index}][bestellung]" style="width:100%;">
|
|
|
130 |
<option value="none" selected="selected">Keine Auswahl</option>
|
|
|
131 |
{assign var=highestrank value=0}
|
|
|
132 |
{section loop=$data[fid].best name=bid}
|
|
|
133 |
|
|
|
134 |
{if $data[fid].best[bid].rank==$data[fid].hr}
|
|
|
135 |
|
|
|
136 |
<option value="{$data[fid].best[bid].bestID}###{$data[fid].best[bid].name}">
|
|
|
137 |
|
|
|
138 |
{$data[fid].best[bid].bestID}
|
|
|
139 |
{$data[fid].best[bid].erstellt_am}
|
|
|
140 |
{if $data[fid].best[bid].ueberw_betrag>0}{$data[fid].best[bid].ueberw_betrag|money_format}{/if}
|
|
|
141 |
{$data[fid].best[bid].name}
|
|
|
142 |
</option>
|
|
|
143 |
|
|
|
144 |
{/if}
|
|
|
145 |
{/section}
|
|
|
146 |
</select>
|
|
|
147 |
{elseif $cnt==1}
|
|
|
148 |
{section loop=$data[fid].best name=bid}
|
|
|
149 |
{if $data[fid].best[bid].rank==$data[fid].hr}
|
|
|
150 |
<input type="hidden" name="row[{$smarty.section.fid.index}][bestellung]" value="{$data[fid].best[bid].bestID}###{$data[fid].best[bid].name}" />
|
|
|
151 |
<a href="/Warenwirtschaft/bestellungen_neu.php?Bestellung={$data[fid].best[bid].bestID}" target="_blank">{$data[fid].best[bid].bestID}</a>
|
|
|
152 |
{$data[fid].best[bid].erstellt_am}
|
|
|
153 |
{if $data[fid].best[bid].ueberw_betrag>0}{$data[fid].best[bid].ueberw_betrag|money_format}{/if}
|
|
|
154 |
{$data[fid].best[bid].name}
|
|
|
155 |
{/if}
|
|
|
156 |
{/section}
|
|
|
157 |
|
|
|
158 |
{elseif $cnt==0}
|
|
|
159 |
Keine Übereinstimmung
|
|
|
160 |
{/if}
|
|
|
161 |
|
|
|
162 |
|
|
|
163 |
</td>
|
|
|
164 |
</tr>
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
{/if}
|
|
|
168 |
{/section}
|
|
|
169 |
|
|
|
170 |
</table>
|
|
|
171 |
<input type="hidden" name="mode" value="save" />
|
|
|
172 |
<p style="margin:10px;text-align:left;"><input type="submit" value="Zuordnungen speichern" /></p>
|
|
|
173 |
</form>
|
|
|
174 |
{/if}
|
|
|
175 |
|
|
|
176 |
</div>
|
|
|
177 |
<div style="float:left;margin-left:20px;">
|
|
|
178 |
{if $protocols}
|
|
|
179 |
<fieldset style="padding:20px;"><legend><h2>Protokolle einsehen:</h2></legend>
|
|
|
180 |
{$protocols}
|
|
|
181 |
</fieldset>
|
|
|
182 |
{/if}
|
|
|
183 |
</div>
|
|
|
184 |
|
|
|
185 |
</body>
|
|
|
186 |
</html>
|