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

Revision

Revision 537 | Revision 542 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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