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

Revision

Revision 98 | Revision 101 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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