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

Revision

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