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

Revision

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

Revision 87 Revision 93
Zeile 1... Zeile -...
1
{extends file="index.tpl"}
-
 
2
{block name="maincontent"}
-
 
3
    <!-- $Id: manufacturerList.tpl 87 2023-07-08 22:19:17Z lars $ BEGIN -->
1
<!-- $Id: manufacturer.tpl 93 2023-07-14 19:39:16Z lars $ BEGIN -->
4
    <script>
2
<script>
5
        $(function (){
3
    $(function () {
6
            $('#editDlg').dialog({
-
 
7
                autoOpen:false,
-
 
8
                modal:true,
-
 
9
                resizable:false,
-
 
10
                width:800
-
 
11
            })
-
 
12
            $("#new").uibutton({
-
 
13
                icons:{
-
 
14
                    primary:"ui-icon-plus"
-
 
15
                }
-
 
16
            }).click(function()
4
        $('#alle').button().click(function() {
17
            {
-
 
18
                let url="/Online-Shop/manufacturers/create/";
-
 
19
                $('#editDlg').load(url).dialog("open");
5
            $('.gesperrte_hersteller').prop("checked",true);
20
            });
6
        })
21
            $(".edit").uibutton({
-
 
22
                icons:{
-
 
23
                    primary:"ui-icon-pencil"
-
 
24
                }
-
 
25
            }).click(function() {
7
        $('#keine').button().click(function() {
26
                let url="/Online-Shop/manufacturers/"+$(this).attr("data-id")+"/edit/";
-
 
27
                $('#editDlg').load(url).dialog("open");
8
            $('.gesperrte_hersteller').prop("checked",false);
28
            });
9
        })
29
            $(".del").uibutton({
10
        $('#umkehren').button().click(function() {
30
                icons:{
-
 
31
                    primary:"ui-icon-trash"
-
 
32
                }
-
 
33
            })
-
 
34
            $("#dataTable").dataTable({
11
            $('.gesperrte_hersteller').each(function(){
35
                "lengthMenu": [[100, -1], [100, "Alle"]],
12
                $(this).prop("checked",!$(this).prop("checked"));
36
                "language": {
-
 
37
                    "url": "/js/DataTables-1.10.19/German.json"
-
 
38
                }
-
 
39
            });
13
            });
40
        })
14
        })
-
 
15
    })
41
    </script>
16
</script>
-
 
17
<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
-
 
18
    <tr>
-
 
19
        <td colspan="2" class="links">Hersteller: {if $zeile.ID}Bearbeiten{else}Neueintrag{/if}</td>
-
 
20
    </tr>
-
 
21
    {$Feld="headline"}
-
 
22
    {if ( isset( $user_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld ] ) )}
-
 
23
        <tr>
-
 
24
            <td class="links" width="20%">
-
 
25
                <b>{$web_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld ]|default:"$Feld"}</b>
-
 
26
            </td>
-
 
27
            <td class="rechts">
-
 
28
                <input type="text" name="{$Feld}" size="40" value="{{$zeile[$Feld]|htmlentities:$smarty.const.ENT_COMPAT:$smarty.session["charset"]}}" maxlength="255"/>
-
 
29
            </td>
-
 
30
        </tr>
-
 
31
    {/if}
-
 
32
    {$Feld="Name"}
-
 
33
    {if ( isset( $user_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld ] ) )}
-
 
34
        <tr>
-
 
35
            <td class="links" width="20%">
-
 
36
                <b>{$web_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld ]|default:"$Feld"}</b>
-
 
37
            </td>
42
    <button id="new"></button>
38
            <td class="rechts">
-
 
39
                <input type="text" name="{$Feld}" size="40" value="{$zeile[$Feld]|htmlentities:$smarty.const.ENT_COMPAT:$smarty.session["charset"]}" maxlength="255"/>
-
 
40
            </td>
-
 
41
        </tr>
-
 
42
    {/if}
-
 
43
    {$Feld="Bezeichnung"}
-
 
44
    {if ( isset( $user_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld ] ) )}
43
    <br><br>
45
        <tr>
44
    <table style="width:100%" id="dataTable">
46
            <td class="links" width="20%">
-
 
47
                <b>{$web_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld ]|default:"$Feld"}</b>
-
 
48
            </td>
-
 
49
            <td class="rechts">
-
 
50
                <input type="text" name="{$Feld}" size="40" value="{$zeile[$Feld]|htmlentities:$smarty.const.ENT_COMPAT:$smarty.session["charset"]}" maxlength="255"/>
-
 
51
            </td>
-
 
52
        </tr>
-
 
53
    {/if}
-
 
54
    {if $sub}
45
        <thead>
55
        <tr>
-
 
56
            <td class="links" width="20%"><b>Aliase</b></td>
-
 
57
            <td class="rechts">
-
 
58
                <a id="add_hs">Herstelleralias anlegen</a>
-
 
59
                <br/>
-
 
60
                <div id="show_hersteller_alias">
-
 
61
                    {include file="herstelleraliase.tpl"}
-
 
62
                </div>
-
 
63
            </td>
-
 
64
        </tr>
-
 
65
 
-
 
66
    {/if}
-
 
67
    {$Feld = "Text"}
-
 
68
    {if ( isset( $user_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld ] ) )}
46
        <tr>
69
        <tr>
-
 
70
            <td class="links" width="20%">
-
 
71
                <b><label for="{$Feld}">{$web_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld ]|default:"$Feld"}</label></b>
47
            <th>Name</th>
72
            </td>
48
            <th>Aktionen</th>
73
            <td class="rechts">
-
 
74
                <textarea name="{$Feld}" id="{$Feld}" cols="50" rows="4">{$zeile[$Feld]}</textarea>
-
 
75
            </td>
49
        </tr>
76
        </tr>
-
 
77
    {/if}
-
 
78
    {$Feld = "Text2"}
-
 
79
    {if ( isset( $user_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld ] ) )}
-
 
80
        <tr>
-
 
81
            <td class="links" width="20%">
-
 
82
                <b><label for="{$Feld}">{$web_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld ]|default:"$Feld"}</label></b>
-
 
83
            </td>
-
 
84
            <td class="rechts">
-
 
85
                <textarea name="{$Feld}" id="{$Feld}" cols="50" rows="4">{$zeile[$Feld]}</textarea>
-
 
86
            </td>
50
        </thead>
87
        </tr>
-
 
88
    {/if}
-
 
89
    {$Feld = "Text3"}
-
 
90
    {if ( isset( $user_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld ] ) )}
51
        <tbody>
91
        <tr>
-
 
92
            <td class="links" width="20%">
-
 
93
                <b><label for="{$Feld}">{$web_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld ]|default:"$Feld"}</label></b>
-
 
94
            </td>
-
 
95
            <td class="rechts">
-
 
96
                <textarea name="{$Feld}" id="{$Feld}" cols="50" rows="4">{$zeile[$Feld]}</textarea>
-
 
97
            </td>
-
 
98
        </tr>
-
 
99
    {/if}
-
 
100
    {for $bild_nr = 1; $bild_nr <= 2; $bild_nr++}
-
 
101
        {$Feld="Logo$bild_nr"}
-
 
102
        {if ( isset( $user_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld ] ) )}
-
 
103
            <tr>
-
 
104
                <td class="links" width="20%">
-
 
105
                    {$name=$web_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld ]}
-
 
106
                    {$name=";"|explode:$name}
-
 
107
                    {$name=$name[0]}
-
 
108
                    <b><label for="{$Feld}">{$name|default:"$Feld"}</label></b>
-
 
109
                </td>
-
 
110
                <td class="rechts">
-
 
111
                    <table>
-
 
112
                        <tr>
-
 
113
                            <td>
-
 
114
                                {$pfadExtra="/images/manufacturer/$bild_nr/"}
-
 
115
                                <input type="hidden" name="{$Feld}_Pfad" value="{$webs.verzeichnis}{$pfadExtra}">
52
        {foreach $manufacturers as $manufacturer}
116
                                {if $zeile[$Feld]}
-
 
117
                                    <input type="radio" name="_{$Feld}" value="0" id="{$Feld}_0" checked="checked">
-
 
118
                                    <label for="{$Feld}_0"><a href="{$domain}{$pfadExtra}/{$zeile[$Feld]}" target="_blank">{$zeile[$Feld]}</a>
-
 
119
                                        {$zeile.size[$bild_nr]|fsize_format:"":2:",":"."}
-
 
120
                                        ({$zeile.imgsize[$bild_nr][0]} x {$zeile.imgsize[$bild_nr][1]} Pixel)</label>
-
 
121
                                    <br>
-
 
122
                                {/if}
-
 
123
                                <input type="radio" name="_{$Feld}" value="1" {if !$zeile[$Feld]}checked="checked"{/if} id="{$Feld}_1"><label for="{$Feld}_1">kein Bild</label><br>
-
 
124
                                <input type="radio" name="_{$Feld}" value="2" id="{$Feld}_2"><input type="file" name="{$Feld}" onfocus="$('#{$Feld}_2').prop('checked',true)">
-
 
125
                            </td>
-
 
126
                            <td width="45%" nowrap align="center">
-
 
127
                                {if ( $zeile[ $Feld ] != "" )}
-
 
128
                                    <a href="{$domain}{$pfadExtra}{$zeile[ $Feld ]}" target="_blank"><img src="{$domain}{$pfadExtra}{$zeile[ $Feld ]}" border="0"/></a>
-
 
129
                                {/if}
-
 
130
                            </td>
-
 
131
                        </tr>
-
 
132
                    </table>
-
 
133
                </td>
-
 
134
            </tr>
-
 
135
            {$extra="_href"}
-
 
136
            {$Feld2="$Feld$extra"}
-
 
137
            {if ( isset( $user_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld2 ] ) )}
-
 
138
                <tr>
-
 
139
                    <td class="links" width="20%"><b><label for="{$Feld2}">{$web_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ $Feld2 ]|default:"$Feld-Link"}</label> </b></td>
-
 
140
                    <td class="rechts">
-
 
141
                        <input type="text" name="{$Feld2}" id="{$Feld2}" size="40" value="{$zeile[ $Feld2 ]}" maxlength="255"/>
-
 
142
                    </td>
-
 
143
                </tr>
-
 
144
            {/if}
-
 
145
        {/if}
-
 
146
    {/for}
-
 
147
    {for $i=1;$i<=10;$i++}
-
 
148
        {$Feld="Eigenschaft_$i"}
-
 
149
        {if isset($web_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][strtolower($Feld)])}
53
            <tr>
150
            <tr>
54
                <td>{$manufacturer.name}</td>
151
                <td class="links" width="20%">
-
 
152
                    <b><label for="{$Feld}">{$web_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ][ strtolower($Feld) ]|default:"$Feld"}</label></b>
55
                <td>
153
                </td>
56
                    <button class="edit" data-id="{$manufacturer.id}"></button>
154
                <td class="rechts">
57
                    <button class="del" data-id="{$manufacturer.id}"></button>
155
                    <input type="hidden" name="{$Feld}" value="0"/>
-
 
156
                    <input type="checkbox" name="{$Feld}" id="{$Feld}" value="1" {if ( $zeile[ $Feld ] == 1 )}checked="checked"{/if}/>
58
                </td>
157
                </td>
59
            </tr>
158
            </tr>
60
        {/foreach}
159
        {/if}
-
 
160
    {/for}
-
 
161
    {assign var=Feld value="meta_daten"}
-
 
162
    {if ( isset( $user_rechte[$smarty.const.modul_name]['directory'][$Feld] ) )}
-
 
163
        {include file="google_seo.tpl"}
-
 
164
        <tr>
-
 
165
            <td class="links" valign="top"><b>Meta-Robots:</b></td>
-
 
166
            <td class="rechts">
-
 
167
                {html_options name="meta_robots" options=$meta_robots selected=$zeile.meta.meta_robots.meta_content}
-
 
168
            </td>
-
 
169
        </tr>
-
 
170
    {/if}
-
 
171
    {assign var=Feld value="abwKalkulation"}
-
 
172
    {if ( isset( $user_rechte[$smarty.const.modul_name][$smarty.const.tool_name][$Feld] ) )}
-
 
173
        <tr>
-
 
174
            <td class="links"><b>abweichende Preiskalkulation</b></td>
-
 
175
            <td class="rechts">
-
 
176
                <input type="hidden" name="{$Feld}" value="0"/>
-
 
177
                <input type="checkbox" name="{$Feld}" value="1" {if ( $zeile[ $Feld ] == 1 )}checked="checked"{/if} />
-
 
178
                {if $zeile.abwKalkulation}
-
 
179
                    {include file="../toolbox/templates/common/edit_preiskalkulation.tpl"}
-
 
180
                {/if}
-
 
181
            </td>
-
 
182
        </tr>
-
 
183
    {/if}
-
 
184
    {if isset($zeile.hstatus)}
-
 
185
        <tr>
-
 
186
            <td class="links" width="20%"><b>Status:</b></td>
-
 
187
            <td class="rechts">
-
 
188
                <input type="hidden" name="hstatus" value="0"/>
-
 
189
                <select name="hstatus">
-
 
190
                    <option value="0" {if ( $zeile['hstatus'] == 0 )}selected='selected'{/if}>freigegeben</option>
-
 
191
                    <option value="1" {if ( $zeile['hstatus'] == 1 )}selected='selected'{/if}>verborgen</option>
-
 
192
                    <option value="2" {if ( $zeile['hstatus'] == 2 )}selected='selected'{/if}>gesperrt</option>
-
 
193
                </select>
-
 
194
            </td>
61
        </tbody>
195
        </tr>
-
 
196
    {/if}
-
 
197
    {if ( isset( $user_rechte[ $smarty.const.modul_name ][ $smarty.const.tool_name ]["herstellersperren"] ) )}
62
    </table>
198
        <tr>
-
 
199
            <td class="links">gesperrte Hersteller</td>
-
 
200
            <td>
-
 
201
                <table class="keinRand">
-
 
202
                    <tr>
-
 
203
                        <th>Preisagentur</th>
-
 
204
                        <th>sperren?
-
 
205
                            <br>
-
 
206
                            <a id="alle">alle</a>&nbsp;<a id="keine">keine</a>&nbsp;<a id="umkehren">umkehren</a>
-
 
207
                        </th>
63
    <div id="editDlg"></div>
208
                    </tr>
-
 
209
                    {foreach $preisagenturen as $pa}
-
 
210
                        <tr class="{cycle values=",gerade"}">
-
 
211
                            <td><label for="pa_{$pa.id}">{$pa.titel}</label></td>
-
 
212
                            <td>
-
 
213
                                <input type="hidden" name="gesperrte_hersteller[{$pa.id}]" value="0">
-
 
214
                                <input class="gesperrte_hersteller" type="checkbox" name="gesperrte_hersteller[{$pa.id}]" value="1" id="pa_{$pa.id}" {if in_array($zeile.ID,$pa.gesperrte_hersteller)}checked="checked"{/if}>
-
 
215
                            </td>
-
 
216
                        </tr>
-
 
217
                    {/foreach}
-
 
218
                </table>
-
 
219
            </td>
-
 
220
        </tr>
-
 
221
    {/if}
-
 
222
    <tr>
-
 
223
        <td class="links" width="20%"><b>erstellt:</b></td>
-
 
224
        <td class="rechts">am: {$zeile.erstellt_am|date_format:"%x"} um: {$zeile.erstellt_am|date_format:"%X"} Uhr von: {$zeile["erstellt_von"]}</td>
-
 
225
    </tr>
-
 
226
    <tr>
-
 
227
        <td class="links" width="20%"><b>letzte&nbsp;Änderung:</b></td>
-
 
228
        <td class="rechts">am: {$zeile.letzte_Aenderung_am|date_format:"%x"} um: {$zeile.letzte_Aenderung_am|date_format:"%X"} Uhr von: {$zeile["letzte_Aenderung_von"]}</td>
-
 
229
    </tr>
-
 
230
    <tr>
-
 
231
        <td align="right" colspan="2" class="links">
-
 
232
            <input type="hidden" name="ID" value="{$zeile.ID}"/>
-
 
233
            <input type="hidden" name="action" value="update"/>
-
 
234
            <input type="submit" value="   OK   "/>
64
    <!-- $Id: manufacturerList.tpl 87 2023-07-08 22:19:17Z lars $ END -->
235
            <input type="reset" name="Button" value="Abbrechen"/>
-
 
236
        </td>
-
 
237
    </tr>
65
{/block}
238
</table>
-
 
239
<!-- $Id: manufacturer.tpl 93 2023-07-14 19:39:16Z lars $ END -->