| 85 |
lars |
1 |
<!-- $Id: edit.tpl 88 2023-05-20 23:13:24Z lars $-->
|
|
|
2 |
{$vBerechnung=false}
|
|
|
3 |
{foreach $web_rechte.online_shop.artikel AS $name => $wert}
|
|
|
4 |
{if $name|substr:0:11=="Eigenschaft"&&$wert|substr:-8=="logistik"}
|
|
|
5 |
{$vBerechnung=true}
|
|
|
6 |
{/if}
|
|
|
7 |
{/foreach}
|
|
|
8 |
<style>
|
|
|
9 |
.links{
|
|
|
10 |
width:280px!important;
|
|
|
11 |
}
|
|
|
12 |
label{
|
|
|
13 |
cursor:pointer;
|
|
|
14 |
}
|
|
|
15 |
</style>
|
|
|
16 |
<script src="/js/common.js"></script>
|
|
|
17 |
<script>
|
|
|
18 |
$(function(){
|
|
|
19 |
$('input[type=radio]').button();
|
|
|
20 |
$('#reiter').tabs();
|
|
|
21 |
$('#lieferzeiten').hide();
|
|
|
22 |
$('#vportal_templates').hide();
|
|
|
23 |
$('#vportal_template').hide();
|
|
|
24 |
$('#createToken').button().click(function(e) {
|
|
|
25 |
e.preventDefault();
|
|
|
26 |
window.open("/toolbox/ebay.php");
|
|
|
27 |
})
|
|
|
28 |
$('#vPArt').change(changeArt).change();
|
|
|
29 |
$(".addT").button({
|
|
|
30 |
icons:{
|
|
|
31 |
primary:"ui-icon-plus"
|
|
|
32 |
}
|
|
|
33 |
}).click(editTemplate);
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
$("#afterbuy").change(function()
|
|
|
37 |
{
|
|
|
38 |
if ($(this).val() === "1")
|
|
|
39 |
{
|
|
|
40 |
$("#afterbuy").val("0");
|
|
|
41 |
$("#sku_prefix").attr("readonly", null).css("background-color", "");
|
|
|
42 |
}
|
|
|
43 |
else if ($("#afterbuy").val() === "0")
|
|
|
44 |
{
|
|
|
45 |
$("#afterbuy").val("1");
|
|
|
46 |
$("#sku_prefix").attr("readonly", "true").css("background-color", "grey");
|
|
|
47 |
|
|
|
48 |
}
|
|
|
49 |
});
|
|
|
50 |
|
|
|
51 |
$(".editT").button({
|
|
|
52 |
icons:{
|
|
|
53 |
primary:"ui-icon-pencil"
|
|
|
54 |
}
|
|
|
55 |
}).click(editTemplate);
|
|
|
56 |
$(".delT").button({
|
|
|
57 |
icons:{
|
|
|
58 |
primary:"ui-icon-trash"
|
|
|
59 |
}
|
|
|
60 |
}).click(delTemplate);
|
|
|
61 |
$(".viewT").button({
|
|
|
62 |
icons:{
|
|
|
63 |
primary:"ui-icon-link"
|
|
|
64 |
}
|
|
|
65 |
}).click(viewTemplate);
|
|
|
66 |
|
|
|
67 |
$('#editTemplate').dialog({
|
|
|
68 |
autoOpen:false,
|
|
|
69 |
modal:true,
|
|
|
70 |
width:600,
|
|
|
71 |
resizable:false,
|
|
|
72 |
buttons:{
|
|
|
73 |
"speichern":function(){
|
|
|
74 |
$.post("/vportale/vportale_template.php",$('#vportale_template_form').serializeArray(),function()
|
|
|
75 |
{
|
|
|
76 |
$('#vportale_dlg').load("/vportale/vportale.php?action=edit&id={$vportal.id}")
|
|
|
77 |
//alert(erg);
|
|
|
78 |
});
|
|
|
79 |
$(this).dialog("close");
|
|
|
80 |
},
|
|
|
81 |
"abbrechen":function(){
|
|
|
82 |
$(this).dialog("close");
|
|
|
83 |
}
|
|
|
84 |
}
|
|
|
85 |
});
|
|
|
86 |
$('#delTemplate').dialog({
|
|
|
87 |
autoOpen:false,
|
|
|
88 |
modal:true,
|
|
|
89 |
width:600,
|
|
|
90 |
resizable:false,
|
|
|
91 |
buttons:{
|
|
|
92 |
"ja":function(){
|
|
|
93 |
let template=$('#templateId').html();
|
|
|
94 |
$.get("/vportale/vportale_template.php?mode=del&id="+template,function(){
|
|
|
95 |
$('#vportale_dlg').load("/vportale/vportale.php?mode=edit&id={$vportal.id}");
|
|
|
96 |
});
|
|
|
97 |
$(this).dialog("close");
|
|
|
98 |
},
|
|
|
99 |
"abbrechen":function(){
|
|
|
100 |
$(this).dialog("close");
|
|
|
101 |
}
|
|
|
102 |
}
|
|
|
103 |
});
|
|
|
104 |
})
|
|
|
105 |
|
|
|
106 |
function viewTemplate(e)
|
|
|
107 |
{
|
|
|
108 |
e.preventDefault();
|
|
|
109 |
let tID=this.id;
|
|
|
110 |
tID=tID.split("_");
|
|
|
111 |
let template=tID[1];
|
|
|
112 |
let url="/vportale/vportale_template.php?mode=view&id="+template;
|
|
|
113 |
window.open(url,"viewTemplate");
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
function delTemplate(e)
|
|
|
117 |
{
|
|
|
118 |
e.preventDefault();
|
|
|
119 |
let tID=this.id;
|
|
|
120 |
tID=tID.split("_");
|
|
|
121 |
let template=tID[1];
|
|
|
122 |
$('#templateId').html(template);
|
|
|
123 |
$('#delTemplate').dialog("open");
|
|
|
124 |
//url="/vportale/vportale_template.php?mode=del&id="+template;
|
|
|
125 |
}
|
|
|
126 |
function editTemplate(e)
|
|
|
127 |
{
|
|
|
128 |
e.preventDefault();
|
|
|
129 |
let tID=this.id;
|
|
|
130 |
tID=tID.split("_");
|
|
|
131 |
let template=tID[1];
|
|
|
132 |
let vportal=tID[2];
|
|
|
133 |
let url="/vportale/vportale_template.php?mode=edit&id="+template+"&vPortalId="+vportal;
|
|
|
134 |
$('#editTemplate').load(url).dialog("open");
|
|
|
135 |
}
|
|
|
136 |
function changeArt()
|
|
|
137 |
{
|
|
|
138 |
let art=$('#vPArt option:selected').text().toLowerCase();
|
|
|
139 |
$('#vportal_template').hide();
|
|
|
140 |
$('#vportal_templates').hide();
|
|
|
141 |
$('#lieferzeiten').hide();
|
|
|
142 |
if(art==="amazon_de"||art==="kaufland"||art==="ebay_de")
|
|
|
143 |
{
|
|
|
144 |
$('#lieferzeiten').show();
|
|
|
145 |
}
|
|
|
146 |
if(art.substr(0,4)==="ebay")
|
|
|
147 |
{
|
|
|
148 |
$('#vportal_template').show();
|
|
|
149 |
$('#vportal_templates').show();
|
|
|
150 |
}
|
|
|
151 |
}
|
|
|
152 |
</script>
|
|
|
153 |
<form id="vportale_form">
|
|
|
154 |
<div id="reiter">
|
|
|
155 |
<ul>
|
|
|
156 |
<li>
|
|
|
157 |
<a href="#allgemein">allgemein</a>
|
|
|
158 |
</li>
|
|
|
159 |
{if $vBerechnung}
|
|
|
160 |
<li>
|
|
|
161 |
<a href="#versand">Versandberechnung</a>
|
|
|
162 |
</li>
|
|
|
163 |
{/if}
|
|
|
164 |
<li>
|
|
|
165 |
<a href="#zuordnung">Zuordnungskriterien</a>
|
|
|
166 |
</li>
|
|
|
167 |
{if ($arten[$vportal.art] == "ebay_de")}
|
|
|
168 |
<li>
|
|
|
169 |
<a href="#token">Token</a>
|
|
|
170 |
</li>
|
|
|
171 |
{/if}
|
|
|
172 |
</ul>
|
|
|
173 |
<div id="allgemein">
|
|
|
174 |
<table>
|
|
|
175 |
<tr>
|
|
|
176 |
<td class="links">ID</td>
|
|
|
177 |
<td class="rechts">
|
|
|
178 |
{$vportal.id}
|
|
|
179 |
<input type="hidden" name="id" id="vPId" value="{$vportal.id}"/>
|
|
|
180 |
</td>
|
|
|
181 |
</tr>
|
|
|
182 |
<tr>
|
|
|
183 |
<td class="links">
|
|
|
184 |
<label for="name">Name</label>
|
|
|
185 |
</td>
|
|
|
186 |
<td class="rechts">
|
|
|
187 |
<input type="text" id="name" name="name" value="{$vportal.name}" autofocus="autofocus"/>
|
|
|
188 |
</td>
|
|
|
189 |
</tr>
|
|
|
190 |
<tr id="vportal_template">
|
|
|
191 |
<td class="links">
|
|
|
192 |
<label for="template">Template</label>
|
|
|
193 |
</td>
|
|
|
194 |
<td class="rechts">
|
|
|
195 |
<input type="text" id="template" name="template" value="{$vportal.template}"/>
|
|
|
196 |
</td>
|
|
|
197 |
</tr>
|
|
|
198 |
<tr>
|
|
|
199 |
<td class="links">
|
|
|
200 |
<label for="vPArt">Art</label>
|
|
|
201 |
</td>
|
|
|
202 |
<td class="rechts">
|
|
|
203 |
<select name="art" id="vPArt">
|
|
|
204 |
{html_options selected=$vportal.art options=$arten}
|
|
|
205 |
</select>
|
|
|
206 |
</td>
|
|
|
207 |
</tr>
|
|
|
208 |
<tr>
|
|
|
209 |
<td class="links">
|
|
|
210 |
<label for="sku_prefix">SKU beginnt mit:</label>
|
|
|
211 |
</td>
|
|
|
212 |
<td class="rechts">
|
|
|
213 |
<input type="text" id="sku_prefix" name="sku_prefix" value="{$vportal.sku_prefix}" {if ($vportal.afterbuy === 1)}readonly="readonly"{/if}/>
|
|
|
214 |
</td>
|
|
|
215 |
</tr>
|
|
|
216 |
<tr>
|
|
|
217 |
<td class="links">Anrede importieren:</td>
|
|
|
218 |
<td class="rechts">
|
|
|
219 |
<input type="radio" id="anrede_nein" name="anrede" value="0" {if $vportal.anrede==0}checked="checked"{/if}/><label for="anrede_nein">nein</label>
|
|
|
220 |
<input type="radio" id="anrede_ja" name="anrede" value="1" {if $vportal.anrede==1}checked="checked"{/if}/><label for="anrede_ja">ja</label>
|
|
|
221 |
</td>
|
|
|
222 |
</tr>
|
|
|
223 |
<tr>
|
|
|
224 |
<td class="links">
|
|
|
225 |
<label for="location">Produktstandort</label>
|
|
|
226 |
</td>
|
|
|
227 |
<td class="rechts">
|
|
|
228 |
<input type="text" id="location" name="location" value="{$vportal.location}" />
|
|
|
229 |
</td>
|
|
|
230 |
</tr>
|
|
|
231 |
<tr>
|
|
|
232 |
<td class="links">
|
|
|
233 |
<label for="plz">Produktstandort (PLZ)</label>
|
|
|
234 |
</td>
|
|
|
235 |
<td class="rechts">
|
|
|
236 |
<input type="text" id="plz" name="plz" value="{$vportal.plz}" maxlength="5" />
|
|
|
237 |
</td>
|
|
|
238 |
</tr>
|
|
|
239 |
<tr>
|
|
|
240 |
<td class="links">Währung:</td>
|
|
|
241 |
<td class="rechts">
|
|
|
242 |
{html_options name="currency" selected=$vportal.currency options=$currencies}
|
|
|
243 |
</td>
|
|
|
244 |
</tr>
|
|
|
245 |
<tr>
|
|
|
246 |
<td class="links">
|
|
|
247 |
<label for="price_number">Preisnummer:</label>
|
|
|
248 |
</td>
|
|
|
249 |
<td class="rechts">
|
|
|
250 |
<input type="text" id="price_number" name="preis_nummer" value="{$vportal.preis_nummer}"/>
|
|
|
251 |
</td>
|
|
|
252 |
</tr>
|
|
|
253 |
<tr>
|
|
|
254 |
<td class="links">
|
|
|
255 |
<label for="basis_preis">Preisnummer Basispreis:</label>
|
|
|
256 |
</td>
|
|
|
257 |
<td class="rechts">
|
|
|
258 |
<input type="text" id="basis_preis" name="basis_preis" value="{$vportal.basis_preis}"/>
|
|
|
259 |
</td>
|
|
|
260 |
</tr>
|
|
|
261 |
<tr>
|
|
|
262 |
<td class="links">
|
|
|
263 |
<label for="min_preis">Mindestpreis:</label>
|
|
|
264 |
</td>
|
|
|
265 |
<td class="rechts">
|
|
|
266 |
<input type="text" id="min_preis" name="min_preis" value="{$vportal.min_preis}" onchange="this.value=killkomma(this.value);" />
|
|
|
267 |
</td>
|
|
|
268 |
</tr>
|
|
|
269 |
<tr>
|
|
|
270 |
<td class="links">
|
|
|
271 |
<label for="max_preis">Maximalpreis:</label>
|
|
|
272 |
</td>
|
|
|
273 |
<td class="rechts">
|
|
|
274 |
<input type="text" id="max_preis" name="max_preis" value="{$vportal.max_preis}" onchange="this.value=killkomma(this.value);" />
|
|
|
275 |
</td>
|
|
|
276 |
</tr>
|
|
|
277 |
<tr>
|
|
|
278 |
<td class="links">
|
|
|
279 |
<label for="runden">Anzahl der Kommastellen:</label>
|
|
|
280 |
</td>
|
|
|
281 |
<td class="rechts">
|
|
|
282 |
<input type="number" name="runden" value="{$vportal.runden|default:2}" min="0" max="2"/>
|
|
|
283 |
</td>
|
|
|
284 |
</tr>
|
|
|
285 |
<tr>
|
|
|
286 |
<td class="links">
|
|
|
287 |
<label for="artikel_url">Artikel-URL</label>
|
|
|
288 |
</td>
|
|
|
289 |
<td class="rechts">
|
|
|
290 |
<input type="text" id="artikel_url" name="artikel_url" value="{$vportal.artikel_url}" />
|
|
|
291 |
</td>
|
|
|
292 |
</tr>
|
|
|
293 |
<tr>
|
|
|
294 |
<td class="links">
|
|
|
295 |
<label for="shipping_cost">Standard-Versandkosten</label>
|
|
|
296 |
</td>
|
|
|
297 |
<td class="rechts">
|
|
|
298 |
<input type="text" id="shipping_cost" name="shipping_cost" value="{$vportal.shipping_cost}" onchange="this.value=killkomma(this.value);" />
|
|
|
299 |
</td>
|
|
|
300 |
</tr>
|
|
|
301 |
<tr>
|
|
|
302 |
<td class="links">
|
|
|
303 |
<label for="standard_menge">Standard-Menge</label>
|
|
|
304 |
</td>
|
|
|
305 |
<td class="rechts">
|
|
|
306 |
<input type="text" id="standard_menge" name="standard_menge" value="{$vportal.standard_menge}" />
|
|
|
307 |
</td>
|
|
|
308 |
</tr>
|
|
|
309 |
{if $vportalTemplates}
|
|
|
310 |
<tr id="vportal_templates">
|
|
|
311 |
<td class="links">Template</td>
|
|
|
312 |
<td class="rechts">
|
|
|
313 |
<table>
|
|
|
314 |
<tr>
|
|
|
315 |
<td>ID</td>
|
|
|
316 |
<td>Name</td>
|
|
|
317 |
<td>Aktionen</td>
|
|
|
318 |
</tr>
|
|
|
319 |
<tr>
|
|
|
320 |
<td colspan="3">
|
|
|
321 |
<button class="addT" id="add__{$vportal.id}">neu</button>
|
|
|
322 |
</td>
|
|
|
323 |
</tr>
|
|
|
324 |
{foreach $vportal.vportale_templates as $template}
|
|
|
325 |
<tr>
|
|
|
326 |
<td>{$template.id}</td>
|
|
|
327 |
<td>{$template.name}</td>
|
|
|
328 |
<td>
|
|
|
329 |
<button class="viewT" id="view_{$template.id}">ansehen</button>
|
|
|
330 |
<button class="editT" id="edit_{$template.id}">ändern</button>
|
|
|
331 |
<button class="delT" id="del_{$template.id}">löschen</button>
|
|
|
332 |
</td>
|
|
|
333 |
</tr>
|
|
|
334 |
{/foreach}
|
|
|
335 |
</table>
|
|
|
336 |
</td>
|
|
|
337 |
</tr>
|
|
|
338 |
|
|
|
339 |
{/if}
|
|
|
340 |
{if $lieferStati}
|
|
|
341 |
<tr id="lieferzeiten">
|
|
|
342 |
<td class="links">weitere Einstellungen</td>
|
|
|
343 |
<td class="rechts">
|
|
|
344 |
<table>
|
|
|
345 |
<tr>
|
|
|
346 |
<td>Lieferstatus</td>
|
|
|
347 |
<td>Bearbeitungszeit<br />in Tagen</td>
|
|
|
348 |
<td>Fix-Bestand</td>
|
|
|
349 |
<td>aktiv?</td>
|
|
|
350 |
</tr>
|
|
|
351 |
{foreach $lieferStati as $lieferStatus}
|
|
|
352 |
<tr>
|
|
|
353 |
<td><label for="lieferStatus{$lieferStatus.id}">{$lieferStatus.name}</label></td>
|
|
|
354 |
<td>
|
|
|
355 |
<input id="lieferStatus{$lieferStatus.id}" type="number" min="1" max="30" value="{$vportal.lieferstatus[{$lieferStatus.id}].tage}" placeholder="1" name="lieferStatus[{$lieferStatus.id}][tage]" />
|
|
|
356 |
</td>
|
|
|
357 |
<td>
|
|
|
358 |
<input id="bestand{$lieferStatus.id}" type="number" min="1" value="{$vportal.lieferstatus[{$lieferStatus.id}].bestand}" placeholder="1" name="lieferStatus[{$lieferStatus.id}][bestand]" style="width:60px;" />
|
|
|
359 |
</td>
|
|
|
360 |
<td>
|
|
|
361 |
<input type="hidden" name="lieferStatus[{$lieferStatus.id}][aktiv]" value="0" />
|
|
|
362 |
<input type="checkbox" name="lieferStatus[{$lieferStatus.id}][aktiv]" value="1" {if $vportal.lieferstatus["{$lieferStatus.id}"].aktiv==1}checked="checked"{/if} />
|
|
|
363 |
</td>
|
|
|
364 |
</tr>
|
|
|
365 |
{/foreach}
|
|
|
366 |
</table>
|
|
|
367 |
</td>
|
|
|
368 |
</tr>
|
|
|
369 |
{/if}
|
|
|
370 |
|
|
|
371 |
{if ($arten[$vportal.art] == "ebay_de")}
|
|
|
372 |
<tr>
|
|
|
373 |
<td class="links">Afterbuy-Export</td>
|
|
|
374 |
<td class="rechts">
|
|
|
375 |
<table>
|
|
|
376 |
<tr>
|
|
|
377 |
<td>
|
|
|
378 |
<label for="afterbuy">Aktiv?</label>
|
|
|
379 |
</td>
|
|
|
380 |
<td>
|
|
|
381 |
<input type="checkbox" id="afterbuy" name="afterbuy" value="{$vportal.afterbuy}" {if ($vportal.afterbuy == 1)}checked="checked"{/if} />
|
|
|
382 |
</td>
|
|
|
383 |
</tr>
|
|
|
384 |
</table>
|
|
|
385 |
</td>
|
|
|
386 |
</tr>
|
|
|
387 |
{/if}
|
| 88 |
lars |
388 |
{if is_countable($vportal.commit_posibilities) && count($vportal.commit_posibilities) > 1}
|
| 85 |
lars |
389 |
<tr>
|
|
|
390 |
<td class="links">Daten übertragen</td>
|
|
|
391 |
<td class="rechts">
|
|
|
392 |
<table>
|
|
|
393 |
{foreach $vportal.commit_posibilities as $index => $data}
|
|
|
394 |
<tr>
|
|
|
395 |
<td>
|
|
|
396 |
<label for="commit_fields_{$index}">{$data.Name}</label>
|
|
|
397 |
</td>
|
|
|
398 |
<td>
|
|
|
399 |
<input type="checkbox" id="commit_fields_{$index}" name="commit_fields[{$index}]" {if isset($vportal.commit_fields[$index])}checked="checked"{/if}/>
|
|
|
400 |
</td>
|
|
|
401 |
</tr>
|
|
|
402 |
{/foreach}
|
|
|
403 |
</table>
|
|
|
404 |
</td>
|
|
|
405 |
</tr>
|
|
|
406 |
{/if}
|
|
|
407 |
</table>
|
|
|
408 |
<input type="hidden" name="action" value="save"/>
|
|
|
409 |
<input type="hidden" id="sku_prefix_fallback" name="sku_prefix_fallback" value="{$vportal.sku_prefix_fallback}"/>
|
|
|
410 |
</div>
|
|
|
411 |
{if $vBerechnung}
|
|
|
412 |
<div id="versand">
|
|
|
413 |
Artikel, die diese folgende Eigenschaft haben, bekommen diese Versandkosten:<br />
|
|
|
414 |
{foreach $web_rechte.online_shop.artikel AS $name => $wert}
|
|
|
415 |
{if $name|substr:0:11=="Eigenschaft"&&$wert|substr:-8=="logistik"}
|
|
|
416 |
<label for="vberechnung_{$name}">{$wert|substr:0:-9}:</label> <input type="text" id="vberechnung_{$name}" name="vberechnung[{$name}]" value="{$vportal.vberechnung[$name]}" />
|
|
|
417 |
<br />
|
|
|
418 |
{/if}
|
|
|
419 |
{/foreach}
|
|
|
420 |
</div>
|
|
|
421 |
{/if}
|
|
|
422 |
<div id="zuordnung">
|
|
|
423 |
<table>
|
|
|
424 |
<tr>
|
|
|
425 |
<td class="links">
|
|
|
426 |
<label for="notrash">Artikel darf nicht im Papierkorb liegen</label>
|
|
|
427 |
</td>
|
|
|
428 |
<td class="rechts">
|
|
|
429 |
<input type="hidden" name="zuordnung[notrash]" value="0" />
|
|
|
430 |
<input id="notrash" type="checkbox" name="zuordnung[notrash]" value="1"{if $vportal.zuordnung.notrash} checked="checked"{/if} />
|
|
|
431 |
</td>
|
|
|
432 |
</tr>
|
|
|
433 |
<tr>
|
|
|
434 |
<td class="links">
|
|
|
435 |
<label for="nolocked">Artikel darf nicht gesperrt sein</label>
|
|
|
436 |
</td>
|
|
|
437 |
<td class="rechts">
|
|
|
438 |
<input type="hidden" name="zuordnung[nolocked]" value="0" />
|
|
|
439 |
<input id="nolocked" type="checkbox" name="zuordnung[nolocked]" value="1"{if $vportal.zuordnung.nolocked} checked="checked"{/if} />
|
|
|
440 |
</td>
|
|
|
441 |
</tr>
|
|
|
442 |
<tr>
|
|
|
443 |
<td class="links">
|
|
|
444 |
<label for="nohidden">Artikel darf nicht verborgen sein</label>
|
|
|
445 |
</td>
|
|
|
446 |
<td class="rechts">
|
|
|
447 |
<input type="hidden" name="zuordnung[nohidden]" value="0" />
|
|
|
448 |
<input id="nohidden" type="checkbox" name="zuordnung[nohidden]" value="1"{if $vportal.zuordnung.nohidden} checked="checked"{/if} />
|
|
|
449 |
</td>
|
|
|
450 |
</tr>
|
|
|
451 |
<tr>
|
|
|
452 |
<td class="links">
|
|
|
453 |
<label for="neueArtikel">nicht vorhandene Artikel neu anlegen</label>
|
|
|
454 |
</td>
|
|
|
455 |
<td class="rechts">
|
|
|
456 |
<input type="hidden" name="zuordnung[neueArtikel]" value="0" />
|
|
|
457 |
<input id="neueArtikel" type="checkbox" name="zuordnung[neueArtikel]" value="1"{if $vportal.zuordnung.neueArtikel} checked="checked"{/if} />
|
|
|
458 |
</td>
|
|
|
459 |
</tr>
|
|
|
460 |
<tr>
|
|
|
461 |
<td class="links">
|
|
|
462 |
<label for="artikel_vorhanden">Verkaufsportalartikel muss auch in der Artikeltabelle existieren</label>
|
|
|
463 |
</td>
|
|
|
464 |
<td class="rechts">
|
|
|
465 |
<input type="hidden" name="zuordnung[artikel_vorhanden]" value="0" />
|
|
|
466 |
<input id="artikel_vorhanden" type="checkbox" name="zuordnung[artikel_vorhanden]" value="1" {if $vportal.zuordnung.artikel_vorhanden} checked="checked"{/if} />
|
|
|
467 |
</td>
|
|
|
468 |
</tr>
|
|
|
469 |
<tr>
|
|
|
470 |
<td class="links">Beschreibung erweitern um</td>
|
|
|
471 |
<td class="rechts">
|
|
|
472 |
{for $i=2;$i<=6;$i++}
|
|
|
473 |
{if isset($web_rechte.online_shop.artikel["beschreibung{$i}"])}
|
|
|
474 |
<input type="hidden" name="zuordnung[beschreibung{$i}]" value="0" />
|
|
|
475 |
<label for="beschreibung{$i}">{$web_rechte.online_shop.artikel["beschreibung{$i}"]}</label>
|
|
|
476 |
<input id="beschreibung{$i}" type="checkbox" name="zuordnung[beschreibung{$i}]" value="1" {if $vportal.zuordnung["beschreibung{$i}"]} checked="checked"{/if} />
|
|
|
477 |
<br />
|
|
|
478 |
{elseif isset($web_rechte.online_shop.artikel["beschreibung{$i}_simpel"])}
|
|
|
479 |
<input type="hidden" name="zuordnung[beschreibung{$i}_simpel]" value="0" />
|
|
|
480 |
<label for="beschreibung{$i}">{$web_rechte.online_shop.artikel["beschreibung{$i}_simpel"]}</label>
|
|
|
481 |
<input id="beschreibung{$i}" type="checkbox" name="zuordnung[beschreibung{$i}_simpel]" value="1" {if $vportal.zuordnung["beschreibung{$i}_simpel"]} checked="checked"{/if} />
|
|
|
482 |
<br />
|
|
|
483 |
{/if}
|
|
|
484 |
{/for}
|
|
|
485 |
</td>
|
|
|
486 |
</tr>
|
|
|
487 |
{if $versandgruppen}
|
|
|
488 |
<tr>
|
|
|
489 |
<td class="links">erlaubte Versandgruppen</td>
|
|
|
490 |
<td class="rechts">
|
|
|
491 |
{html_checkboxes options=$versandgruppen name="zuordnung[versandgruppen]" separator="<br>" class="versandgruppen" selected=$vportal.zuordnung.versandgruppen}
|
|
|
492 |
</td>
|
|
|
493 |
</tr>
|
|
|
494 |
{/if}
|
|
|
495 |
</table>
|
|
|
496 |
</div>
|
|
|
497 |
{if ($arten[$vportal.art] == "ebay_de")}
|
|
|
498 |
<div id="token">
|
|
|
499 |
<h2>Verwaltung des Schnittstelen-Tokens für die Datenkommunikation mit eBay</h2>
|
|
|
500 |
{if $vportal.refresh_token}
|
|
|
501 |
Sie haben bereits ein Token für dieses Portal.
|
|
|
502 |
<br>
|
|
|
503 |
{if $vportal.refresh_token_expires|strtotime > $smarty.now}
|
|
|
504 |
Token ist noch bis {$vportal.refresh_token_expires|date_format:"d.m.Y"} um {$vportal.refresh_token_expires|date_format:"H:i"} Uhr gültig.
|
|
|
505 |
{if $vportal.refresh_token_refresh < $smarty.now}
|
|
|
506 |
<br>
|
|
|
507 |
Token läuft demnächst ab. Sie können es bereits jetzt verlängern.
|
|
|
508 |
{/if}
|
|
|
509 |
{else}
|
|
|
510 |
Token ist am {$vportal.refresh_token_expires|date_format:"d.m.Y"} um {$vportal.refresh_token_expires|date_format:"H:i"} Uhr abgelaufen.
|
|
|
511 |
{/if}
|
|
|
512 |
{else}
|
|
|
513 |
Sie haben noch kein Token. Bitte fordern Sie ein neues an.
|
|
|
514 |
{/if}
|
|
|
515 |
<br>
|
|
|
516 |
<h3>Neuen Token erzeugen und eintragen (Sie werden zu einer eBay-Seite weitergeleitet und müssen Ihre eBay-Zugangsdaten eintragen)</h3>
|
|
|
517 |
<button id="createToken">neues Token anfordern</button>
|
|
|
518 |
</div>
|
|
|
519 |
{/if}
|
|
|
520 |
</div>
|
|
|
521 |
</form>
|
|
|
522 |
|
|
|
523 |
<div id="editTemplate" title="Template ändern"></div>
|
|
|
524 |
<div id="delTemplate" title="Template <span id='templateId'></span> löschen">
|
|
|
525 |
<div>Wollen Sie dieses Template wirklich löschen?</div>
|
|
|
526 |
</div>
|
|
|
527 |
<!-- $Id: edit.tpl 88 2023-05-20 23:13:24Z lars $ - ENDE -->
|