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

Revision

Revision 408 | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
2 lars 1
{extends file="index.tpl"}
2
{block name="maincontent"}
3
    <!-- $Id: index.tpl 87 2023-05-20 23:09:43Z lars $ BEGIN -->
395 lars 4
    <!-- $Id: vportale_artikel.tpl 3931 2022-12-06 15:16:21Z tiefland $ -->
394 lars 5
    <script>
395 lars 6
        $(function(){
7
            $('#vportal_sel').change(list_artikel);
8
        })
9
 
10
        function list_artikel()
394 lars 11
        {
395 lars 12
            let vp_id = $('#vportal_sel').val();
400 lars 13
            $("#loadingDLG").dialog( "open" );
409 lars 14
            let url="/vportale/salesPortalItems/"+vp_id;
15
            console.log(url);
16
            $('#vportale_artikel_content').load(url, function(){
400 lars 17
                $("#loadingDLG").dialog( "close" );
394 lars 18
            });
19
 
395 lars 20
        }
21
        function list_artikel_page(start)
22
        {
23
            let vp_id = $('#vportal_sel').val();
400 lars 24
            $('#vportale_artikel_content').load("/vportale/salesPortalItems"+vp_id+"&"+start, function(){
25
                $("#loadingDLG").dialog( "close" );
394 lars 26
            });
27
 
395 lars 28
        }
394 lars 29
    </script>
396 lars 30
    <table>
31
        <tr>
32
            <td class="links">Portal</td>
33
            <td class="rechts">
34
                <select id="vportal_sel">
398 lars 35
                    {html_options options=$vportale}
396 lars 36
                </select>
37
            </td>
38
        </tr>
39
    </table>
395 lars 40
    <div id="vportale_artikel_content" style="min-height:500px;">
394 lars 41
 
42
    </div>
2 lars 43
    <!-- $Id: index.tpl 87 2023-05-20 23:09:43Z lars $ END -->
44
{/block}