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

Revision

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

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