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

Revision

Revision 93 | Revision 95 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
93 lars 1
<!-- $Id: manufacturer.tpl 94 2023-07-14 19:41:14Z lars $ BEGIN -->
2
<script>
3
    $(function () {
4
        $('#alle').button().click(function() {
5
            $('.gesperrte_hersteller').prop("checked",true);
6
        })
7
        $('#keine').button().click(function() {
8
            $('.gesperrte_hersteller').prop("checked",false);
9
        })
10
        $('#umkehren').button().click(function() {
11
            $('.gesperrte_hersteller').each(function(){
12
                $(this).prop("checked",!$(this).prop("checked"));
2 lars 13
            });
14
        })
93 lars 15
    })
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"}
94 lars 22
    {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld ] ) )}
2 lars 23
        <tr>
93 lars 24
            <td class="links" width="20%">
94 lars 25
                <b>{$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld ]|default:"$Feld"}</b>
93 lars 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>
2 lars 30
        </tr>
93 lars 31
    {/if}
32
    {$Feld="Name"}
94 lars 33
    {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld ] ) )}
93 lars 34
        <tr>
35
            <td class="links" width="20%">
94 lars 36
                <b>{$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld ]|default:"$Feld"}</b>
93 lars 37
            </td>
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"}
94 lars 44
    {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld ] ) )}
93 lars 45
        <tr>
46
            <td class="links" width="20%">
94 lars 47
                <b>{$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld ]|default:"$Feld"}</b>
93 lars 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}
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"}
94 lars 68
    {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld ] ) )}
93 lars 69
        <tr>
70
            <td class="links" width="20%">
94 lars 71
                <b><label for="{$Feld}">{$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld ]|default:"$Feld"}</label></b>
93 lars 72
            </td>
73
            <td class="rechts">
74
                <textarea name="{$Feld}" id="{$Feld}" cols="50" rows="4">{$zeile[$Feld]}</textarea>
75
            </td>
76
        </tr>
77
    {/if}
78
    {$Feld = "Text2"}
94 lars 79
    {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld ] ) )}
93 lars 80
        <tr>
81
            <td class="links" width="20%">
94 lars 82
                <b><label for="{$Feld}">{$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld ]|default:"$Feld"}</label></b>
93 lars 83
            </td>
84
            <td class="rechts">
85
                <textarea name="{$Feld}" id="{$Feld}" cols="50" rows="4">{$zeile[$Feld]}</textarea>
86
            </td>
87
        </tr>
88
    {/if}
89
    {$Feld = "Text3"}
94 lars 90
    {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld ] ) )}
93 lars 91
        <tr>
92
            <td class="links" width="20%">
94 lars 93
                <b><label for="{$Feld}">{$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld ]|default:"$Feld"}</label></b>
93 lars 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"}
94 lars 102
        {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld ] ) )}
2 lars 103
            <tr>
93 lars 104
                <td class="links" width="20%">
94 lars 105
                    {$name=$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld ]}
93 lars 106
                    {$name=";"|explode:$name}
107
                    {$name=$name[0]}
108
                    <b><label for="{$Feld}">{$name|default:"$Feld"}</label></b>
2 lars 109
                </td>
93 lars 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}">
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>
2 lars 134
            </tr>
93 lars 135
            {$extra="_href"}
136
            {$Feld2="$Feld$extra"}
94 lars 137
            {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld2 ] ) )}
93 lars 138
                <tr>
94 lars 139
                    <td class="links" width="20%"><b><label for="{$Feld2}">{$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld2 ]|default:"$Feld-Link"}</label> </b></td>
93 lars 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"}
94 lars 149
        {if isset($web_rechte[ "online_shop" ][ "hersteller" ][strtolower($Feld)])}
93 lars 150
            <tr>
151
                <td class="links" width="20%">
94 lars 152
                    <b><label for="{$Feld}">{$web_rechte[ "online_shop" ][ "hersteller" ][ strtolower($Feld) ]|default:"$Feld"}</label></b>
93 lars 153
                </td>
154
                <td class="rechts">
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}/>
157
                </td>
158
            </tr>
159
        {/if}
160
    {/for}
161
    {assign var=Feld value="meta_daten"}
94 lars 162
    {if ( isset( $user_rechte["online_shop"]['directory'][$Feld] ) )}
93 lars 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"}
94 lars 172
    {if ( isset( $user_rechte["online_shop"]["hersteller"][$Feld] ) )}
93 lars 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>
195
        </tr>
196
    {/if}
94 lars 197
    {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ]["herstellersperren"] ) )}
93 lars 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>
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   "/>
235
            <input type="reset" name="Button" value="Abbrechen"/>
236
        </td>
237
    </tr>
238
</table>
239
<!-- $Id: manufacturer.tpl 94 2023-07-14 19:41:14Z lars $ END -->