Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Revision 536 | Revision 538 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 536 Revision 537
Zeile 1... Zeile -...
1
{extends file="index.tpl"}
-
 
2
{block name="maincontent"}
-
 
3
    fdfdsdsfasdaf
-
 
4
{/block}
-
 
5
1
<!-- $Id$ BEGIN -->
-
 
2
<script type="text/javascript" src="/js/common.js"></script>
-
 
3
<script type="text/javascript" src="/js/jquery-lager.js"></script>
-
 
4
<script type="text/javascript" src="/js/jquery-form-wizard.js"></script>
-
 
5
<script type="text/javascript" src="/js/jquery-form.js"></script>
-
 
6
<script type="text/javascript" src="/js/jQuery.print.js"></script>
-
 
7
<style type="text/css">
-
 
8
    {if isset( $web_rechte['online_shop']['directory']['auspr_modellkriterium'] )}
-
 
9
    .modellkriterium td {
-
 
10
        background-color:#F5BC0E!important;
-
 
11
    }
-
 
12
    {/if}
-
 
13
    body
-
 
14
    {
-
 
15
        font-family: verdana, Helvetica, sans-serif;
-
 
16
        font-size: 10pt;
-
 
17
    {if ( $webs["font_color_seite"] )}
-
 
18
        color:                #{$webs["font_color_seite"]};
-
 
19
    {/if}
-
 
20
 
-
 
21
    {if ( $webs["bgcolor_seite"] )}
-
 
22
        background-color:{$webs["bgcolor_seite"]};
-
 
23
    {/if}
-
 
24
 
-
 
25
    {if ( $webs["hintergrundbild"] )}
-
 
26
        background-image: url(../images/hintergrundbild/{$webs["hintergrundbild"]});
-
 
27
    {/if}
-
 
28
    }
-
 
29
 
-
 
30
    .links
-
 
31
    {
-
 
32
        font-size: 10pt;
-
 
33
    {if ( $webs["font_color_links"] )}
-
 
34
        color:                #{$webs["font_color_links"]};
-
 
35
    {/if}
-
 
36
    {if ( $webs["bgcolor_links"] )}
-
 
37
        background-color:    #{$webs["bgcolor_links"]};
-
 
38
    {/if}
-
 
39
    }
-
 
40
 
-
 
41
    .rechts
-
 
42
    {
-
 
43
        font-size: 10pt;
-
 
44
    {if ( $webs["font_color_rechts"] )}
-
 
45
        color:                #{$webs["font_color_rechts"]};
-
 
46
    {/if}
-
 
47
    {if ( $webs["bgcolor_rechts"] )}
-
 
48
        background-color:    #{$webs["bgcolor_rechts"]};
-
 
49
    {/if}
-
 
50
    }
-
 
51
 
-
 
52
    a:link {
-
 
53
        font-family: verdana, Helvetica, sans-serif;
-
 
54
        font-size: 10pt;
-
 
55
        color: {$webs["font_color_rechts"]}
-
 
56
    }
-
 
57
    a:visited {
-
 
58
        font-family: verdana, Helvetica, sans-serif;
-
 
59
        font-size: 10pt;
-
 
60
        color: #{$webs["font_color_rechts"]}
-
 
61
    }
-
 
62
    a:active {
-
 
63
        font-family: verdana, Helvetica, sans-serif;
-
 
64
        font-size: 10pt;
-
 
65
        color: #{$webs["font_color_rechts"]}
-
 
66
    }
-
 
67
    a:hover {
-
 
68
        font-family: verdana, Helvetica, sans-serif;
-
 
69
        font-size: 10pt;
-
 
70
        color: #{$webs["font_color_rechts"]}
-
 
71
    }
-
 
72
</style>
-
 
73
<style type="text/css">
-
 
74
    <!--
-
 
75
    table.input
-
 
76
    {
-
 
77
        border-width: 2px 1px 1px 2px;
-
 
78
        border-top-color    : #CCCCCC;
-
 
79
        border-left-color   : #CCCCCC;
-
 
80
        border-bottom-color : #AAAAAA;
-
 
81
        border-right-color  : #AAAAAA;
-
 
82
        border-style        :inset;
-
 
83
        background-color    : #FFFFFF;
-
 
84
    }
-
 
85
    -->
-
 
86
</style>
-
 
87
<!-- <link rel=stylesheet type="text/css" href="../styles/styles.php"/> -->
-
 
88
<style>
-
 
89
    {include_php file="../styles/styles.php"}
-
 
90
</style>
-
 
91
<script type="text/javascript">
-
 
92
    $(function()
-
 
93
    {
-
 
94
        $('.delMALink').button().click(function(evt){
-
 
95
            evt.preventDefault();
-
 
96
            maId = $(this).attr("data-for");
-
 
97
            maIdArr = maId.split("_");
-
 
98
            ret = confirm("Link zu "+$('#'+maId).attr("data-text")+" löschen?")
-
 
99
            if(ret)
-
 
100
            {
-
 
101
                url="delMALink.php?id="+maIdArr[1]+"&father="+maIdArr[2]+"&shop="+maIdArr[3];
-
 
102
                $.get(url,function(){
-
 
103
                    document.location.reload();
-
 
104
                });
-
 
105
            }
-
 
106
        })
-
 
107
        $('#editMALinkDlg').dialog({
-
 
108
            autoOpen:false,
-
 
109
            width:500,
-
 
110
            resizable:false,
-
 
111
            draggable:false,
-
 
112
            buttons:{
-
 
113
                "speichern":function(){
-
 
114
                    /*eingegebene Artikel-ID prüfen*/
-
 
115
                    aId = $('#newFather').val();
-
 
116
                    $.getJSON("cloneRange.php?shop="+shopId,function(erg)
-
 
117
                    {
-
 
118
                        if(aId>=erg.min && aId<=erg.max)
-
 
119
                        {
-
 
120
                            $.post("updCloneFather.php",$('#editMALinkForm').serializeArray(),function(ret){
-
 
121
                                erg=$.parseJSON(ret);
-
 
122
                                alert(erg.msg);
-
 
123
                                if(erg.code==0)
-
 
124
                                {
-
 
125
                                    $('#editMaLinkDlg').dialog("close");
-
 
126
                                    location.reload();
-
 
127
                                }
-
 
128
                            })
-
 
129
                        }
-
 
130
                    });
-
 
131
 
-
 
132
                },
-
 
133
                "abbrechen":function(){
-
 
134
                    $(this).dialog("close");
-
 
135
                }
-
 
136
            }
-
 
137
        })
-
 
138
        $('.editMALink').button().click(function(evt){
-
 
139
            evt.preventDefault();
-
 
140
            maId = $(this).attr("data-for");
-
 
141
            maIdArr = maId.split("_");
-
 
142
            shopId = maIdArr[3];
-
 
143
            $('#shopId').val(shopId);
-
 
144
            $('#oldFather').val(maIdArr[2])
-
 
145
            $.getJSON("cloneRange.php?shop="+shopId,function(erg)
-
 
146
            {
-
 
147
                $('#cloneRange').html("("+erg.min+" - "+erg.max+")");
-
 
148
                $('#newFather').attr("min",erg.min).attr("max",erg.max);
-
 
149
            });
-
 
150
            $('#editAId').html(maIdArr[2]);
-
 
151
            $('#editMALinkDlg').dialog("open");
-
 
152
        })
-
 
153
        {if isset($user_rechte.online_shop.artikel.own_ean)}
-
 
154
        if(!$('#product_ean').val())
-
 
155
        {
-
 
156
            $('#choose_ean').show();
-
 
157
        }
-
 
158
        $('#product_ean').keyup(show_ean_select);
-
 
159
        $('#choose_ean').click(choose_ean);
-
 
160
        $('#ean_dlg').dialog({
-
 
161
            autoOpen:false,
-
 
162
            modal:true,
-
 
163
            resizable:false,
-
 
164
            minWidth:500,
-
 
165
            width:"100%",
-
 
166
            height:200,
-
 
167
            buttons:{
-
 
168
                "Abbrechen":function()
-
 
169
                {
-
 
170
                    $(this).dialog("close")
-
 
171
                },
-
 
172
                "EAN-Code zuweisen":function()
-
 
173
                {
-
 
174
                    if(!$('#eancode').val())
-
 
175
                    {
-
 
176
                        alert("Bitte einen Artikeltyp angeben!");
-
 
177
                    }
-
 
178
                    else
-
 
179
                    {
-
 
180
                        $('#product_ean').val($('#eancode').val());
-
 
181
                        $('#choose_ean').hide();
-
 
182
                        $(this).dialog("close");
-
 
183
                    }
-
 
184
                }
-
 
185
            }
-
 
186
        })
-
 
187
        {/if}
-
 
188
        $('#product_ean').keyup(check_ean);
-
 
189
        {if isset($user_rechte.online_shop.artikel.etikettendruck)}
-
 
190
        $(".etikettendruck").click(function(){
-
 
191
            var id = $(this).attr("id");
-
 
192
            var idArray = id.split("_");
-
 
193
            var artikelID = idArray[1];
-
 
194
            $('<div id="etikettendruck_dlg">').dialog({
-
 
195
                position: "center top",
-
 
196
                zIndex: 5,
-
 
197
                modal: false,
-
 
198
                open: function() {
-
 
199
                    $(this).load('etikettendruck.php?artikelID='+artikelID);
-
 
200
                },
-
 
201
                close: function() {
-
 
202
                    $(this).dialog('destroy').remove();
-
 
203
                },
-
 
204
                buttons: {
-
 
205
                    "Etikett ausdrucken" : function (e){
-
 
206
                        console.log($("#etikettendruck_dlg .printBox"));
-
 
207
                        $("#etikettendruck_dlg .printBox .visibleTrue").print();
-
 
208
                        return (false);
-
 
209
                    },
-
 
210
                    "Abbrechen" : function() {
-
 
211
                        $(this).dialog('destroy').remove();
-
 
212
                    }
-
 
213
                },
-
 
214
                width:600,
-
 
215
                height: 300,
-
 
216
                title: "Artikeletikett ausdrucken"
-
 
217
            });
-
 
218
        });
-
 
219
        {/if}
-
 
220
        {if isset( $user_rechte["vportale"]["vportale_artikel"]["verwaltung"] )}
-
 
221
        $(".editVPortalItem").button({
-
 
222
            icons:
-
 
223
                {
-
 
224
                    primary:"ui-icon-pencil"
-
 
225
                }
-
 
226
        }).click(edit_portal_item);
-
 
227
        $('.link').button({
-
 
228
            icons:
-
 
229
                {
-
 
230
                    primary:"ui-icon-extlink"
-
 
231
                }
-
 
232
        }).click(add_item_to_portal);
-
 
233
 
-
 
234
        $('#link_item_dlg').dialog({
-
 
235
            autoOpen: false,
-
 
236
            resizable: false,
-
 
237
            modal: true,
-
 
238
            width: "80%",
-
 
239
            buttons: {
-
 
240
                "speichern": function()
-
 
241
                {
-
 
242
                    console.log("Speichern ausgewaehlt");
-
 
243
                    var valid = $('#vportale_artikel_form').validate()//.form();
-
 
244
                    if (valid)
-
 
245
                    {
-
 
246
                        $('#link_item_dlg').load("../vportale/vportale_artikel.php",$('#vportale_artikel_form').serializeArray());
-
 
247
                        $('#link_item_dlg').dialog("close");
-
 
248
                    }
-
 
249
 
-
 
250
                },
-
 
251
                "abbrechen": function()
-
 
252
                {
-
 
253
                    $('#link_item_dlg').dialog("close");
-
 
254
                }
-
 
255
            }
-
 
256
        });
-
 
257
 
-
 
258
        $('#addItemToVPortal').click(vPortalSelection);
-
 
259
 
-
 
260
        $('#vPortalDialog').dialog({
-
 
261
            autoOpen:false,
-
 
262
            modal:true,
-
 
263
            width:"80%",
-
 
264
            resizable:false,
-
 
265
            buttons:[{
-
 
266
                text:"speichern",
-
 
267
                click:function()
-
 
268
                {
-
 
269
                    $(this).dialog("close");
-
 
270
                    $('#ergDialog').load("checkVPortalItem.php",$('#vPortalForm').serialize(),function(html){
-
 
271
                        $('#ergDialog').dialog("open");
-
 
272
                    })
-
 
273
                }
-
 
274
            },
-
 
275
                {
-
 
276
                    text:"abbrechen",
-
 
277
                    click:function()
-
 
278
                    {
-
 
279
                        $(this).dialog("close");
-
 
280
                    }
-
 
281
                }
-
 
282
            ]
-
 
283
        });
-
 
284
 
-
 
285
        $('#ergDialog').dialog({
-
 
286
            autoOpen:false,
-
 
287
            modal:true,
-
 
288
            width:"80%",
-
 
289
            resizable:false,
-
 
290
            buttons:[{
-
 
291
                text:"OK",
-
 
292
                click:function()
-
 
293
                {
-
 
294
                    $(this).dialog("close");
-
 
295
                }
-
 
296
            }
-
 
297
            ]
-
 
298
        });
-
 
299
 
-
 
300
        function edit_portal_item()
-
 
301
        {
-
 
302
            vpAId=$(this).attr("id").split("_");
-
 
303
            vpAId=vpAId[1];
-
 
304
            $('#link_item_dlg').load("../vportale/vportale_artikel.php?action=edit&id="+vpAId).dialog("open");
-
 
305
        }
-
 
306
 
-
 
307
        function vPortalSelection()
-
 
308
        {
-
 
309
            aid=$(this).attr("data-id");
-
 
310
            $('#vPortalDialog').load("getVPortale.php?id="+aid,function(){
-
 
311
                $('#vPortalDialog').dialog("open");
-
 
312
            });
-
 
313
        }
-
 
314
 
-
 
315
        function add_item_to_portal()
-
 
316
        {
-
 
317
            //alert(this.id);
-
 
318
            a_id = this.id;
-
 
319
            a_id = a_id.split("_");
-
 
320
            a_id = a_id[1];
-
 
321
            $('#link_item_dlg').load("../vportale/vportale_artikel.php?action=new&artikel_id="+a_id).dialog("open");
-
 
322
 
-
 
323
 
-
 
324
        }
-
 
325
        {/if}
-
 
326
        {if ( isset( $user_rechte["online_shop"]["artikel"]["amazon_csv"] ) )}
-
 
327
        $('.amazon_link').button({
-
 
328
            icons:
-
 
329
                {
-
 
330
                    primary:"ui-icon-extlink"
-
 
331
                }
-
 
332
        }).click(add_item_to_amazon);
-
 
333
        function add_item_to_amazon()
-
 
334
        {
-
 
335
            //alert("TEST!");
-
 
336
            aId=this.id;
-
 
337
            aId=aId.split("_");
-
 
338
            aId=aId[2];
-
 
339
            //alert(aId);
-
 
340
            $.get("addAmazonItem.php?item="+aId,function(html){
-
 
341
                alert(html);
-
 
342
            });
-
 
343
        }
-
 
344
        $('.amazon_unlink').button({
-
 
345
            icons:
-
 
346
                {
-
 
347
                    primary:"ui-icon-cancel"
-
 
348
                }
-
 
349
        }).click(del_item_from_amazon);
-
 
350
        function add_item_to_amazon()
-
 
351
        {
-
 
352
            //alert("TEST!");
-
 
353
            aId=this.id;
-
 
354
            aId=aId.split("_");
-
 
355
            aId=aId[2];
-
 
356
            //alert(aId);
-
 
357
            $.get("addAmazonItem.php?item="+aId,function(html){
-
 
358
                alert(html);
-
 
359
            });
-
 
360
        }
-
 
361
        function del_item_from_amazon()
-
 
362
        {
-
 
363
            //alert("TEST!");
-
 
364
            aId=this.id;
-
 
365
            aId=aId.split("_");
-
 
366
            aId=aId[2];
-
 
367
            //alert(aId);
-
 
368
            $.get("addAmazonItem.php?item="+aId+"&del=1",function(html){
-
 
369
                alert(html);
-
 
370
            });
-
 
371
        }
-
 
372
        {/if}
-
 
373
        {if ( isset( $web_rechte["online_shop"]["artikel"]["ebay_stamm"] ) )}
-
 
374
        $('.ebay_link').button({
-
 
375
            icons:
-
 
376
                {
-
 
377
                    primary:"ui-icon-extlink"
-
 
378
                }
-
 
379
        }).click(get_ebay_stamm);
-
 
380
 
-
 
381
        function get_ebay_stamm()
-
 
382
        {
-
 
383
            linkArr=this.id;
-
 
384
            linkArr=linkArr.split("_");
-
 
385
            artikelId=linkArr[2];
-
 
386
            portalId=$(this).attr("data-vp");
-
 
387
            url="updateItemFromVPortal.php?a_id="+artikelId+"&vp_id="+portalId;
-
 
388
            $('#ergDialog').load(url,function(html)
-
 
389
            {
-
 
390
                //alert(html);
-
 
391
                $('#ergDialog').dialog("open");
-
 
392
            });
-
 
393
        }
-
 
394
        {/if}
-
 
395
        function check_ean()
-
 
396
        {
-
 
397
            ean=$('#product_ean').val();
-
 
398
            aid=$('#artikel_id').val();
-
 
399
            $('#product_ean').css("backgroundColor","#FFFFFF");
-
 
400
            $('#ean_msg').html("");
-
 
401
            if(ean)
-
 
402
            {
-
 
403
                $.get("check_ean.php?ean="+ean+"&id="+aid,function(erg){
-
 
404
                    ergArr=erg.split(";");
-
 
405
                    ok=ergArr[0];
-
 
406
                    anz=ergArr[2];
-
 
407
                    $msg=ergArr[1];
-
 
408
                    if(ok==0 || anz > 0)
-
 
409
                    {
-
 
410
                        if(ok==0)
-
 
411
                        {
-
 
412
                            $('#product_ean').css("backgroundColor","#ff4040");
-
 
413
                            $('#ean_msg').html($msg).css("backgroundColor","#ff4040");
-
 
414
                        }
-
 
415
                        else
-
 
416
                        {
-
 
417
                            $('#product_ean').css("backgroundColor","#FFFF00");
-
 
418
                            $('#ean_msg').html($msg).css("backgroundColor","#ffff00");
-
 
419
                        }
-
 
420
                    }
-
 
421
                });
-
 
422
            }
-
 
423
        }
-
 
424
        function show_ean_select()
-
 
425
        {
-
 
426
            if(!$('#product_ean').val())
-
 
427
            {
-
 
428
                $('#choose_ean').show();
-
 
429
            }
-
 
430
            else
-
 
431
            {
-
 
432
                $('#choose_ean').hide();
-
 
433
            }
-
 
434
        }
-
 
435
        function choose_ean()
-
 
436
        {
-
 
437
            $('#ean_dlg').dialog("open");
-
 
438
        }
-
 
439
        {if ( isset( $web_rechte["general"]["design"]["neu"] ) )}
-
 
440
        $('input[type=submit]').button();
-
 
441
        $('input[type=button]').button();
-
 
442
        $('button').button();
-
 
443
        $('.button').button().css("cursor","pointer");
-
 
444
        $('.lager').button();
-
 
445
        $('.show_preise').button({
-
 
446
            icons:
-
 
447
                {
-
 
448
                    primary:"ui-icon-zoomin"
-
 
449
                }
-
 
450
        });
-
 
451
        {/if}
-
 
452
        $('.lager').click(lagerbestand).css("cursor","pointer")
-
 
453
        $('.icecat_btn').button({
-
 
454
            icons:{
-
 
455
                primary: 'ui-icon-link'
-
 
456
            }
-
 
457
 
-
 
458
        }).click(get_icecat_info).css("cursor","pointer");
-
 
459
        {if $button}
-
 
460
        $('.note_btn').button({
-
 
461
            icons:{
-
 
462
                primary: 'ui-icon-pencil'
-
 
463
            }
-
 
464
 
-
 
465
        }).click(change_note).css("cursor","pointer");
-
 
466
        $('.del_note_btn').button({
-
 
467
            icons:{
-
 
468
                primary:"ui-icon-trash"
-
 
469
            }
-
 
470
        }).click(del_note).css("cursor","pointer");
-
 
471
        {/if}
-
 
472
        $('.show_preise').click(show_preise);
-
 
473
        $('#preise_dialog').dialog({
-
 
474
            autoOpen:false,
-
 
475
            modal:true,
-
 
476
            height:600,
-
 
477
            width:700,
-
 
478
            resizable:false
-
 
479
        });
-
 
480
        $('#klonen_shop').click(clone_shop_dlg)
-
 
481
        $('#clone_shop_dialog').dialog({
-
 
482
            autoOpen:false,
-
 
483
            modal:true,
-
 
484
            resizable:false,
-
 
485
            width:"90%",
-
 
486
            maxHeight:600,
-
 
487
            buttons:
-
 
488
                {
-
 
489
                    'klonen':function()
-
 
490
                    {
-
 
491
                        daten=$('#clone_form').serializeArray();
-
 
492
                        //alert(daten);
-
 
493
                        $('#clone_msg').load("clone_item.php",daten).dialog("open");
-
 
494
                        $(this).dialog("close");
-
 
495
                    },
-
 
496
                    'abbrechen':function()
-
 
497
                    {
-
 
498
                        $(this).dialog("close");
-
 
499
                    }
-
 
500
                }
-
 
501
        });
-
 
502
        $('#clone_msg').dialog({
-
 
503
            autoOpen:false,
-
 
504
            modal:true,
-
 
505
            resizable:false,
-
 
506
            width:"90%",
-
 
507
            buttons:
-
 
508
                {
-
 
509
                    'schliessen':function(){
-
 
510
                        $(this).dialog("close");
-
 
511
                    }
-
 
512
                }
-
 
513
        })
-
 
514
        {if ( isset( $user_rechte[$smarty.const.modul_name][$smarty.const.tool_name]["LieferstatusMaintainer"] ) )}
-
 
515
        $('#LieferstatusMaintainer').change(toggle_lstatus).change();
-
 
516
        {else}
-
 
517
        $('#Lieferstatus_text').hide();
-
 
518
        {/if}
-
 
519
        $('#lagerbestand').dialog(
-
 
520
            {
-
 
521
                autoOpen:false,
-
 
522
                resizable:false,
-
 
523
                modal:true,
-
 
524
                width:700,
-
 
525
                height:"auto",
-
 
526
                minHeight: 200,
-
 
527
                buttons:{
-
 
528
                    'schliessen': function(){
-
 
529
                        $(this).dialog("close");
-
 
530
                    }
-
 
531
                }
-
 
532
            });
-
 
533
    });
-
 
534
 
-
 
535
    function fill_hersteller(id)
-
 
536
    {
-
 
537
        if($('#hersteller').val()=="")
-
 
538
        {
-
 
539
            $.get("/Online-Shop/gethersteller.php?item="+id,function(data){
-
 
540
                $('#hersteller').val(data);
-
 
541
            });
-
 
542
        }
-
 
543
    }
-
 
544
    function fill_modell(id)
-
 
545
    {
-
 
546
        if($('#modell').val()=="")
-
 
547
        {
-
 
548
            $.get("/Online-Shop/getmodell.php?item="+id,function(data){
-
 
549
                $('#modell').val(data);
-
 
550
            });
-
 
551
        }
-
 
552
    }
-
 
553
    function lagerbestand()
-
 
554
    {
-
 
555
        id=this.id.split("_");
-
 
556
        item_id=id[1];
-
 
557
        $('#lagerbestand').load("/Warenwirtschaft/lagerbestand.php",{
-
 
558
            item:item_id
-
 
559
        }).dialog("open");
-
 
560
        return false;
-
 
561
    }
-
 
562
    function toggle_lstatus()
-
 
563
    {
-
 
564
        if($('#LieferstatusMaintainer').val()=="vollautomatisch")
-
 
565
        {
-
 
566
            $('#Lieferstatus_sel').hide();
-
 
567
            $('#Lieferstatus_text').show();
-
 
568
        }
-
 
569
        else
-
 
570
        {
-
 
571
            $('#Lieferstatus_sel').show();
-
 
572
            $('#Lieferstatus_text').hide();
-
 
573
        }
-
 
574
    }
-
 
575
    function get_icecat_info()
-
 
576
    {
-
 
577
        id=this.id;
-
 
578
        id=id.split("_");
-
 
579
        ean=id[2];
-
 
580
        $('#icecat_col').show();
-
 
581
        $('#icecat_data').html('<div class="box_2"><div class="box_top"></div><div class="box_middle"><br/><br/><br/><br/><center>Loading ... <img src="/images/navigation/loading.gif"/></center></div><div class="box_bottom"></div></div>');
-
 
582
        $('#icecat_data').load("getIceCatInfo.php?EAN="+ean);
-
 
583
    }
-
 
584
    function show_preise()
-
 
585
    {
-
 
586
        id=this.id;
-
 
587
        id=id.split("_");
-
 
588
        id=id[2];
-
 
589
        $('#preise_dialog').load("/logins/preise.php?a_id="+id).dialog("open");
-
 
590
        return false;
-
 
591
    }
-
 
592
    function clone_shop_dlg()
-
 
593
    {
-
 
594
        $('#clone_shop_dialog').dialog("open");
-
 
595
    }
-
 
596
</script>
-
 
597
<script type="text/javascript" src="../js/tinymce/tinymce.min.js"></script>
-
 
598
{if isset( $user_rechte["admin"]["toolbox"]["bildverwaltung"] ) && $zeile.ID}
-
 
599
    <script type="text/javascript" src="/js/bildverwaltung.js?{$smarty.now}"></script>
-
 
600
{/if}
-
 
601
<script type="text/javascript" src="../checkDate.js"></script>
-
 
602
<script type="text/javascript" src="../systemtermine/systemtermine.js.php"></script>
-
 
603
<script type="text/javascript">
-
 
604
    $(function(){
-
 
605
        $('#reiter').tabs();
-
 
606
        $('#artikel_form').submit(checkHersteller);
-
 
607
        $('.lieferant_artnr').hide();
-
 
608
        $('.lieferant').click(toggle_artnr);
-
 
609
        $('.lieferant').each(function(index, value){
-
 
610
            feld=value.id;
-
 
611
            feld2=feld.split("_");
-
 
612
            feld2=feld2[0]+"_artnr_"+feld2[1];
-
 
613
            if($('#'+feld).attr("checked")=="checked")
-
 
614
            {
-
 
615
                $('#'+feld2).show();
-
 
616
            }
-
 
617
        })
-
 
618
    });
-
 
619
 
-
 
620
    function checkHersteller()
-
 
621
    {
-
 
622
        hersteller=$('#hersteller_select').val();
-
 
623
        if(hersteller==0)
-
 
624
        {
-
 
625
            alert("Bitte wählen Sie einen Hersteller aus!");
-
 
626
            return false;
-
 
627
        }
-
 
628
    }
-
 
629
 
-
 
630
    function toggle_artnr()
-
 
631
    {
-
 
632
        art_nr_name=this.id;
-
 
633
        art_nr=art_nr_name.split("_");
-
 
634
        art_nr_id=art_nr[1];
-
 
635
        $('#lieferant_artnr_'+art_nr_id).toggle();
-
 
636
    }
-
 
637
</script>
-
 
638
{if !$zeile.mutter}
-
 
639
    <script type="text/javascript" src="../js/formular.js?{$smarty.now}"></script>
-
 
640
    <script>
-
 
641
        $(function(){
-
 
642
            initTextareaAnzahlIcon();
-
 
643
            {if ( isset( $web_rechte[modul_name][tool_name]["artikelnamen_zeichenanzahl"] ) ) && $web_rechte[modul_name][tool_name]["artikelnamen_zeichenanzahl"]}
-
 
644
            initInputAnzahlIcon({$web_rechte[modul_name][tool_name]["artikelnamen_zeichenanzahl"]});
-
 
645
            {/if}
-
 
646
        })
-
 
647
    </script>
-
 
648
{/if}
-
 
649
<form method="post" action="{$smarty.server.PHP_SELF}" name="formname" enctype="multipart/form-data" id="artikel_form">
-
 
650
    <input type="hidden" name="ID" id="artikel_id" value="{$zeile.ID}" size="2"/>
-
 
651
    {if $error}
-
 
652
        <div style="color: red;">
-
 
653
            Sie haben mindestens ein Bild in einem für das Internet unüblichen Format hochgeladen.<br/>
-
 
654
            Bitte laden Sie nur .gif, .jpg, .jpeg und .png Bilder hoch!
-
 
655
        </div>
-
 
656
    {/if}
-
 
657
    {if ( isset( $smarty.get["return"] ) )}
-
 
658
        {if ( $smarty.get["mode"] )}
-
 
659
            {if ( $smarty.get["params"] )}
-
 
660
                <input type="hidden" name="params" value="{$smarty.get.params}"/>
-
 
661
            {/if}
-
 
662
            <input type="hidden" name="mode" value="{$smarty.get.mode}"/>
-
 
663
        {/if}
-
 
664
        <input type="hidden" name="return" value="{$smarty.get.return}"/>
-
 
665
    {/if}
-
 
666
    <div id="antwort"></div>
-
 
667
    <div id="reiter">
-
 
668
        <ul>
-
 
669
            <li>
-
 
670
                <a href="#grunddaten">Grunddaten</a>
-
 
671
            </li>
-
 
672
            {if $zeile.ID}
-
 
673
                {if ( isset( $web_rechte[$smarty.const.modul_name]["serien"]["serie"] ) )}
-
 
674
                    <li>
-
 
675
                        <a href="#serien">Serien</a>
-
 
676
                    </li>
-
 
677
                {/if}
-
 
678
                <li>
-
 
679
                    <a href="#beschreibung">Beschreibungen</a>
-
 
680
                </li>
-
 
681
                {if isset($user_rechte.admin.toolbox.bildverwaltung)}
-
 
682
                    <li>
-
 
683
                        <a href="#medien">Medien</a>
-
 
684
                    </li>
-
 
685
                {/if}
-
 
686
                <li>
-
 
687
                    <a href="#eigenschaften">Eigenschaften</a>
-
 
688
                </li>
-
 
689
                {if ( isset( $user_rechte["vportale"]["vportale_artikel"]["verwaltung"] ))}
-
 
690
                    <li>
-
 
691
                        <a href="#verkaufsportale">Verkaufsportale</a>
-
 
692
                    </li>
-
 
693
                {/if}
-
 
694
            {/if}
-
 
695
        </ul>
-
 
696
        <div id="grunddaten">
-
 
697
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
-
 
698
                <tr valign="top">
-
 
699
                    <td width="100%">
-
 
700
                        {*include file="artikel_grunddaten.tpl"*}
-
 
701
                    </td>
-
 
702
                    {if $zeile.EAN && isset($user_rechte[$smarty.const.modul_name][$smarty.const.tool_name]["icecat"])}
-
 
703
                        <td width="90%" id="icecat_col" style="display:none;">
-
 
704
                            <table width="1000" border="0" cellspacing="0" cellpadding="0">
-
 
705
                                <tr>
-
 
706
                                    <td>
-
 
707
                                        <div id="icecat_data"></div>
-
 
708
                                    </td>
-
 
709
                                </tr>
-
 
710
                            </table>
-
 
711
                        </td>
-
 
712
                    {/if}
-
 
713
                </tr>
-
 
714
            </table>
-
 
715
        </div>
-
 
716
        {if $zeile.ID}
-
 
717
            {if ( isset( $user_rechte["vportale"]["vportale_artikel"]["verwaltung"] ))}
-
 
718
                <div id="verkaufsportale">
-
 
719
                    {*include file="artikel_vportaldaten.tpl"*}
-
 
720
                </div>
-
 
721
            {/if}
-
 
722
            {if ( isset( $web_rechte[$smarty.const.modul_name]["serien"]["serie"] ) )}
-
 
723
                <div id="serien">
-
 
724
                    {*include file="artikel_serien.tpl"*}
-
 
725
                </div>
-
 
726
            {/if}
-
 
727
            <div id="beschreibung">
-
 
728
                {*include file="artikel_beschreibungen.tpl"*}
-
 
729
            </div>
-
 
730
            {if isset($user_rechte.admin.toolbox.bildverwaltung)}
-
 
731
                <div id="medien">
-
 
732
                    {*include file="artikel_medien.tpl"*}
-
 
733
                </div>
-
 
734
            {/if}
-
 
735
            <div id="eigenschaften">
-
 
736
                {*include file="artikel_eigenschaften.tpl"*}
-
 
737
            </div>
-
 
738
        {/if}
-
 
739
    </div>
-
 
740
</form>
-
 
741
{if ( isset( $user_rechte["admin"]["toolbox"]["bildverwaltung"] ) && $zeile["ID"] )}
-
 
742
    <div id="add_image_dialog" title="Bild hinzufügen"></div>
-
 
743
    <div id="del_image_dialog" title="Bildzuordnung löschen">
-
 
744
        <form id="del_image_form">
-
 
745
            <input type="hidden" id="b_id" name="b_id" />
-
 
746
            <input type="hidden" id="a_id" name="l_id" value="{$zeile["ID"]}" />
-
 
747
            <input type="hidden" name="l_type" value="a"/>
-
 
748
            Wollen Sie die Zuordnung des Bildes <span id="bild_name"></span> wirklich aufheben?
-
 
749
            <br>
-
 
750
            Durch Klicken auf "Medium komplett löschen" können Sie es auch komplett vom Server entfernen.
-
 
751
            <div id="medium_zuordnungen"></div>
-
 
752
        </form>
-
 
753
    </div>
-
 
754
    <div id="youtubeDlg" title="Youtube-Video zuordnen">
-
 
755
        <form id="youtubeForm">
-
 
756
            <table>
-
 
757
                <tr>
-
 
758
                    <td>URL</td>
-
 
759
                    <td>
-
 
760
                        <input type="text" name="url" />
-
 
761
                    </td>
-
 
762
                </tr>
-
 
763
                <tr>
-
 
764
                    <td>Beschreibung</td>
-
 
765
                    <td>
-
 
766
                        <textarea name="beschreibung" cols="40" rows="5"></textarea>
-
 
767
                    </td>
-
 
768
                </tr>
-
 
769
            </table>
-
 
770
            <input type="hidden" name="l_id" value="{$zeile["ID"]}" />
-
 
771
            <input type="hidden" name="l_type" value="a" />
-
 
772
        </form>
-
 
773
    </div>
-
 
774
    <div id="virtualDlg" title="virtueller Rundgang / 360° Bild">
-
 
775
        <form id="virtualForm" method="post">
-
 
776
            <div id="tabs">
-
 
777
                <ul>
-
 
778
                    <li><a href="/Online-Shop/readdir.php?v=virtueller_rundgang&l_type=a&l_id={$zeile.ID}">neuen virtuellen Rundgang verlinken</a> </li>
-
 
779
                    <li><a href="/Online-Shop/reLinkVirtual.php?v=virtueller_rundgang&l_type=a&l_id={$zeile.ID}">bestehenden virtuellen Rundgang verlinken</a> </li>
-
 
780
                    <li><a href="/Online-Shop/readdir.php?v=360grad&l_type=a&l_id={$zeile.ID}">neues 360° Bild verlinken</a> </li>
-
 
781
                    <li><a href="/Online-Shop/reLinkVirtual.php?v=360grad&l_type=a&l_id={$zeile.ID}">bestehendes 360° Bild verlinken</a> </li>
-
 
782
                </ul>
-
 
783
            </div>
-
 
784
        </form>
-
 
785
    </div>
-
 
786
    <div id="linkMeldDlg" title="Ergebnis"></div>
-
 
787
    {*include file="../toolbox/templates/common/upload.tpl"*}
-
 
788
{/if}
-
 
789
{if ( isset( $user_rechte[$smarty.const.modul_name][$smarty.const.tool_name]["artikel_klonen_shop"] ) )}
-
 
790
    <div id="clone_shop_dialog" title="Artikel klonen">
-
 
791
        <form id="clone_form">
-
 
792
            <input type="hidden" name="item" value="{$zeile["ID"]}"/>
-
 
793
            <input type="hidden" name="s_id" value="{$s_id}"/>
-
 
794
            {if ( $ext_clones || $int_clones )}
-
 
795
                Bereits vorhandene Klone:
-
 
796
                {if ( $int_clones )}
-
 
797
                    <br/><br/>Interne Klone:<br/>{implode( "<br/>", $int_clones )}<br/>
-
 
798
                {/if}
-
 
799
                {if ( $ext_clones )}
-
 
800
                    <br/><br/>Externe Klone:<br/>{implode( "<br/>", $ext_clones )}<br/>
-
 
801
                {/if}
-
 
802
            {/if}
-
 
803
            <input type="checkbox" id="clone_here" name="clone[here]" value="1"/>
-
 
804
            <label for="clone_here">hier klonen</label>
-
 
805
            {foreach $shops as $row}
-
 
806
                <br/>
-
 
807
                <input type="checkbox" id="clone_shop_{$row["id"]}" name="clone[shop][]" value="{$row["database"]},{$row["name"]}"/>
-
 
808
                <label for="clone_shop_{$row["id"]}">nach {$row["name"]} klonen</label>
-
 
809
            {/foreach}
-
 
810
        </form>
-
 
811
    </div>
-
 
812
    <div id="clone_msg" title="Ergebnis"></div>
-
 
813
{/if}
-
 
814
<div id="preise_dialog" title="Artikelpreise"></div>
-
 
815
{if ( isset( $user_rechte["online_shop"]["artikel"]["own_ean"] ) )}
-
 
816
    <div id="ean_dlg" title="EAN-Code zuordnen">
-
 
817
        {*include file="choos_ean.tpl"*}
-
 
818
    </div>
-
 
819
{/if}
-
 
820
{if ( isset( $user_rechte["Warenwirtschaft"]["bestellung"]["lieferantenbestellung"] ) )}
-
 
821
    <div id="lagerbestand"></div>
-
 
822
{/if}
-
 
823
{if ( isset( $user_rechte["vportale"]["vportale_artikel"]["verwaltung"] ) )}
-
 
824
    <div id="vPortalDialog"></div>
-
 
825
    <div id="ergDialog" title="Ergebnis"></div>
-
 
826
{/if}
-
 
827
{if ( $num_l > 10 )}
-
 
828
    <div id="add_lieferant_dlg" title="Artikel einem weiteren Lieferanten zuordnen">
-
 
829
        <form id="add_lieferant_form">
-
 
830
            <table style="width: 100%;">
-
 
831
                <tr>
-
 
832
                    <td>Lieferant</td>
-
 
833
                    <td>
-
 
834
                        <select name="lieferantId" id="lieferant_sel" required="required">
-
 
835
                            <option value="" label="Bitte waehlen">Bitte waehlen</option>
-
 
836
                            {foreach $add_l_rows as $add_l_row}
-
 
837
                                <option value="{$add_l_row.id}" label="{$add_l_row.name}">{$add_l_row.name}</option>
-
 
838
                            {/foreach}
-
 
839
                        </select>
-
 
840
                    </td>
-
 
841
                </tr>
-
 
842
                <tr id="l_artnr_row" style="display: none;">
-
 
843
                    <td>Artikelnummer</td>
-
 
844
                    <td id="l_artnr_cell"></td>
-
 
845
                </tr>
-
 
846
            </table>
-
 
847
            <input type="hidden" name="item" value="{$zeile["ID"]}" />
-
 
848
        </form>
-
 
849
    </div>
-
 
850
{/if}
-
 
851
<div id="register"></div>
-
 
852
<div id="editMALinkDlg" title="Klonbasis ändern">
-
 
853
    <form id="editMALinkForm" method="post">
-
 
854
        <input type="hidden" name="oldFather" id="oldFather" />
-
 
855
        <input type="hidden" name="shopId" id="shopId" />
-
 
856
        <input type="hidden" name="id" value="{$zeile.ID}" />
-
 
857
        <table style="width:100%!important">
-
 
858
            <tr>
-
 
859
                <td class="links">aktuelle Basis</td>
-
 
860
                <td class="rechts">
-
 
861
                    <span id="editAId"></span>
-
 
862
                </td>
-
 
863
            </tr>
-
 
864
            <tr>
-
 
865
                <td class="links" style="width:50%">neue Basis<br /><span id="cloneRange"></span></td>
-
 
866
                <td class="rechts">
-
 
867
                    <input type="number" name="newFather" id="newFather" min="" max="" value="" />
-
 
868
                </td>
-
 
869
            </tr>
-
 
870
        </table>
-
 
871
    </form>
-
 
872
</div>
-
 
873
<!-- $Id$ END -->
-
 
874
6
875