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

Revision

Revision 60 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

{extends file="index.tpl"}
{block name="maincontent"}
    <!-- $Id: preisagenturen.tpl 4174 2023-05-03 13:19:53Z tiefland $ BEGIN -->
    <script type="text/javascript" src="{$smarty.session.jquery_new}"></script>
    <script type="text/javascript" src="{$smarty.session.jquery_ui_new}"></script>
    <link rel="stylesheet" href="{$smarty.session.jquery_style_new}" />
    <script>
        $(function (){
            $('#editAgenturDlg').dialog({
                autoOpen:false,
                modal:true,
                height:500,
                width:800,
                buttons:[
                    {
                        text:"OK",
                        icon:"ui-icon-check",
                        click:function (){
                            $.post("/marketing/priceAgencies/"+$("#ID").val(),$('#preisagentur_editor').serializeArray(),function(){
                                $('#editAgenturDlg').dialog("close")
                                location.reload()
                            });
                        }
                    },
                    {
                        text:"Abbrechen",
                        icon:"ui-icon-cancel",
                        click:function (){
                            $('#editAgenturDlg').dialog("close");
                        }
                    }
                ]
            })
            $('.edit').button({
                icons:{
                    primary:"ui-icon-pencil"
                }
            }).click(function(){
                let aId=$(this).attr("data-id");
                $('#editAgenturDlg').load("/marketing/priceAgencies/"+aId+"/edit").dialog("open")
            })
        })
    </script>
    <title>Artikel- und Ordnerstatistik - Webagentur Niewerth</title>
    <meta http-equiv="content-type" content="text/html; charset={$smarty.session.charset}" />
    <script>
        $(function() {
            $('#filter_shop').change(function () {
                $('#filter_pagentur').submit();
            })
            $('#gesperrt').change(function() {
                $('#filter_pagentur').submit();
            })
        })
    </script>
    <style>
        body
        {
            margin-left: 20px !important;
            margin-top: 10px !important;
            font-family: verdana, Helvetica, sans-serif; font-size: 10pt;
        {if $webs["font_color_seite"]}
            color:                              #{$webs["font_color_seite"]};
        {/if}
        {if $webs["bgcolor_seite"]}
            background-color:   #{$webs["bgcolor_seite"]};
        {/if}
        {if $webs["hintergrundbild"]}
            background-image: url(/images/hintergrundbild/{$webs["hintergrundbild"]});
        {/if}
        }

        .links
        {
            font-size: 10pt;
        {if $webs["font_color_links"]}
            color: #{$webs["font_color_links"]};
        {/if}
        {if $webs["bgcolor_links"]}
            background-color: #{$webs["bgcolor_links"]};
        {/if}
        }


        A:link
        {
            font-family: verdana, Helvetica, sans-serif;
            font-size: 10pt;
            color: {if $webs["bgcolor_seite"] == "000000"}"#FFFFFF"{else}"#000000"{/if}
        }
        A:visited {
            font-family: verdana, Helvetica, sans-serif;
            font-size: 10pt;
            color: {if $webs["bgcolor_seite"] == "000000"}"#FFFFFF"{else}"#000000"{/if}
        }
        A:active {
            font-family: verdana, Helvetica, sans-serif;
            font-size: 10pt;
            color: {if $webs["bgcolor_seite"] == "000000"}"#FFFFFF"{else}"#000000"{/if}
        }
        A:hover {
            font-family: verdana, Helvetica, sans-serif;
            font-size: 10pt;
            color: {if $webs["bgcolor_seite"] == "000000"}"#FFFFFF" {else}"#000000"{/if}
        }
        .headline , .headline a:link, .headline a:visited{
            font-family: verdana, Helvetica, sans-serif;
            font-size: 10pt;
            font-weight:bold;
            color:#{$webs["font_color_links"]};
        }
    </style>
    <form method="get" action="" name="formname" enctype="multipart/form-data" id="filter_pagentur">
        <table width="100%" border="0" cellspacing="0" cellpadding="3">
            <tr class="links">
                <td width="25%">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="100%" align="left" class="links">
                                <label>Shop:
                                    <select name="filter_shop" id="filter_shop">
                                        {html_options options=$c_shops selected=$selected}
                                    </select>
                                </label>
                            </td>
                            <td class="links">
                                <label for="gesperrt">auch gesperrte Agenturen anzeigen</label>
                                <input type="hidden" name="gesperrt" value="0">
                                <input type="checkbox" name="gesperrt" value="1" id="gesperrt" {if $smarty.get.gesperrt}checked="checked"{/if}>
                            </td>
                            <td>
                            </td>
                            <td style="float: right;">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
    <table width="100%" border="0" cellpadding="3" cellspacing="0" bordercolor="#000000" class="keinRand">
        <tr>
            <td class="headline links">Preisagentur</td>
            <td class="headline links">Preisagentur-Logo</td>
            <td class="headline links" width="186">Bereitgestellte Datensätze</td>
            <td class="headline links" width="254">Übertragungsdaten</td>
            {if isset($user_rechte.online_shop.hersteller.herstellersperren)}
                <td class="headline links">gesperrte Hersteller</td>
            {/if}
        </tr>
        {foreach $agenten as $agent}
            <tr class="rechts {$agent.class}">
                <td width="185">
                    {$agent.name} <a class="edit" data-id="{$agent.id}"></a>
                    <br>
                    Artikel: {if $agent.only_deliverable==1}nur lieferbare Artikel{else}alle Artikel{/if}
                    <br>
                    Mindestpreis: {$agent.min_price|money_format|replace:"EUR":"€"|replace:"USD":'$'}
                    <br>
                    Agentur gesperrt? {if $agent.status==0}ja{else}nein{/if}
                </td>
                <td width="152">
                    <a href="{$agent["home_url"]}" target="_blank"><img src="{$agent["logo_url"]}" alt="" border="0"/></a>
                </td>
                <td>
                    Datensätze: {$agent["records"]}<br/>
                    {if ( $agent["csv_url"] )}
                        <a href="{$agent["csv_url"]}?{$smarty.now}&test=true" target="_blank">CSV-Datei-Test</a><br/>
                        Letzte Aktualisierung am:
                        <div style="color:{$colour};">
                            {$agent.updated_at|date_format:"%x"}
                            um: {$agent.updated_at|date_format:"%X"} Uhr
                        </div>
                        <br/>
                        <span style="font-size: 70%; ">{$agent["csv_url"]}</span>
                    {/if}
                    <br/>
                    {if ( $agent["config"] && isset( $user_rechte["online_shop"]["artikel"]["generate_csv"] ) )}
                        <input type="button" value="neu erzeugen" onclick="self.location.href='cronjobs/gen_csv.php?agentur={$agent["ID"]}'"/>
                    {/if}
                </td>
                <td>
                    <br/>
                    <br/>
                    Letzte Übertragung am
                    <div style="color:{$agent.colour}">
                        {$agent.last_access_at|date_format:"%x"}
                        um: {$agent.last_access_at|date_format:"%X"} Uhr
                    </div>
                    <br>
                    von {$agent["last_access_by"]}
                </td>
                {if isset($user_rechte.online_shop.hersteller.herstellersperren)}
                    <td>
                        gesperrte Hersteller <span class="ui-icon ui-icon-info"  title="Im jeweiligen Shop kann über die Hersteller ausgewählt werden, ob ein Hersteller von der Übertragung in den Datenexport ausgeschlossen wird."></span>
                        <br>
                        {foreach $agent.locked_manufacturers as $hersteller}
                            {$hersteller->name}<br>
                        {/foreach}
                    </td>
                {/if}
            </tr>
        {/foreach}
    </table>

    <div id="editAgenturDlg" title="Preisagentur editieren"></div>
    <!-- $Id: preisagenturen.tpl 4174 2023-05-03 13:19:53Z tiefland $ END -->
{/block}