Subversion-Projekte lars-tiefland.webanos.faltradxxs.de

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
24 lars 1
<!-- $Id: aktion_slider_v3.tpl 3897 2022-11-25 10:46:28Z tiefland $ BEGIN -->
2
<script>
3
    $(document).ready(function(){
4
        $("#preview_btn").button();
5
        {if !$aktion["config"]["navigation"]}
6
        $("#navigation_setting").hide();
7
        $("#circle_navigation").hide();
8
        $("#box_navigation").hide();
9
        $("#arrow_direction").hide();
10
        $("#circle_direction").hide();
11
        $("#box_direction").hide();
12
        {/if}
13
        {if !$aktion["config"]["pfeile"]}
14
        $("#arrow_direction").hide();
15
        {/if}
16
        {if !$aktion["config"]["kreise"]}
17
        $("#circle_direction").hide();
18
        {/if}
19
        {if !$aktion["config"]["boxen"]}
20
        $("#box_direction").hide();
21
        {/if}
22
 
23
        $("#slider_navigation").delegate("#navigation_yes", "click", function(){
24
            $("#navigation_no").prop( "checked", false );
25
            $("#navigation_setting").show();
26
            $("#circle_navigation").show();
27
            $("#box_navigation").show();
28
        }).delegate("#navigation_no", "click", function(){
29
            $("#navigation_yes").prop( "checked", false );
30
            $("#navigation_setting").hide();
31
            $("#arrow_direction").hide();
32
            $("#circle_navigation").hide();
33
            $("#box_navigation").hide();
34
        });
35
 
36
        $("#navigation_setting").delegate("#arrow_yes", "click", function(){
37
            $("#arrow_no").prop( "checked", false );
38
            $("#arrow_direction").show();
39
        }).delegate("#arrow_no", "click", function(){
40
            $("#arrow_yes").prop( "checked", false );
41
            $("#arrow_direction").hide();
42
        });
43
        $("#circle_navigation").delegate("#circle_yes", "click", function(){
44
            $("#circle_no").prop( "checked", false );
45
            $("#circle_direction").show();
46
        }).delegate("#circle_no", "click", function(){
47
            $("#circle_yes").prop( "checked", false );
48
            $("#circle_direction").hide();
49
        });
50
        $("#box_navigation").delegate("#box_yes", "click", function(){
51
            $("#box_no").prop( "checked", false );
52
            $("#box_direction").show();
53
        }).delegate("#box_no", "click", function(){
54
            $("#box_yes").prop( "checked", false );
55
            $("#box_direction").hide();
56
        });
57
 
58
 
59
        $("#arrow_direction").delegate("#arrow_outside", "click", function(){
60
            $("#arrow_inside").prop( "checked", false );
61
        }).delegate("#arrow_inside", "click", function(){
62
            $("#arrow_outside").prop( "checked", false );
63
        }).delegate("#circle_up", "click", function(){
64
            $("#circle_down").prop( "checked", false );
65
        }).delegate("#circle_down", "click", function(){
66
            $("#circle_up").prop( "checked", false );
67
        });
68
 
69
        $("#box_direction").delegate("#box_left", "click", function(){
70
            $("#box_right").prop( "checked", false );
71
            $("#box_up").prop( "checked", false );
72
            $("#box_down").prop( "checked", false );
73
        }).delegate("#box_right", "click", function(){
74
            $("#box_left").prop( "checked", false );
75
            $("#box_up").prop( "checked", false );
76
            $("#box_down").prop( "checked", false );
77
        }).delegate("#box_up", "click", function(){
78
            $("#box_left").prop( "checked", false );
79
            $("#box_right").prop( "checked", false );
80
            $("#box_down").prop( "checked", false );
81
        }).delegate("#box_down", "click", function(){
82
            $("#box_left").prop( "checked", false );
83
            $("#box_right").prop( "checked", false );
84
            $("#box_up").prop( "checked", false );
85
        });
86
        $(".video").delegate(".video_no", "click", function(){
87
            $(this).prev().prop( "checked", false );
88
            if( !$(".video_yes",this).is(":checked") ){
89
                $(this).prop( "checked", true );
90
 
91
            }
92
 
93
        }).delegate(".video_yes", "click", function(){
94
            $(this).next().prop( "checked", false );
95
            if( !$(".video_no",this).is(":checked") ){
96
                $(this).prop( "checked", true );
97
 
98
            }
99
        });
100
 
101
        $(document).on( "click", "#files", function(){
102
            $("#cb_files").prop('checked', true);
103
        });
104
 
105
        $(document).delegate("#preview_btn", "click", function(){
106
 
107
            let data = [];
108
            let aktionsID = $("#aktionsID").val();
109
 
110
            data.push({ name: "aktionsID", value: aktionsID })
111
 
112
            $.ajax({
113
                type: "POST",
114
                url: "aktion_v3.php?mode=sliderVorschau",
115
                data: data
116
            }).done(function(html){
117
                $("#sliderVorschau3").html(html);
118
            });
119
        });
120
    })
121
</script>
122
{if $save_msg}
123
    <p>{$save_msg}</p>
124
{/if}
125
<tr id="slider_effect">
126
    <td class="links">
127
        <label><label for="effect_types">Slideeffekte:</label></label>
128
    </td>
129
    <td class="rechts">
130
        <select name="config[effekt]" id="effect_types" required>
131
            <option value="fade"{if $aktion["config"]["effekt"]=="fade"} selected="selected"{/if}>fade</option>
132
            <option value="horizontal"{if $aktion["config"]["effekt"]=="horizontal"} selected="selected"{/if}>horizontal</option>
133
            <option value="vertical"{if $aktion["config"]["effekt"]=="vertical"} selected="selected"{/if}>vertical</option>
134
        </select>
135
    </td>
136
</tr>
137
<tr id="box_minHeight">
138
    <td class="links"><label for="input_minHeight">Mind. Höhe:</label></td>
139
    <td class="rechts">
140
        <input type="text" id="input_minHeight" name="config[minHeight]" value="{if $aktion['config']['minHeight']}{$aktion['config']['minHeight']}{/if}" placeholder="400"/> px.
141
    </td>
142
</tr>
143
<tr id="slider_delay">
144
    <td class="links"><label for="input_delay">Verzögerung:</label></td>
145
    <td class="rechts">
146
        <input type="text" id="input_delay" name="config[verzoegerung]"  value="{if $aktion["config"]["verzoegerung"]}{$aktion["config"]["verzoegerung"]}{else}500{/if}" /> ms.
147
        <label for="input_delay"><br /> ( 0 = kein Autostart / > 0 = Autostart)</label>
148
    </td>
149
</tr>
150
<tr id="slider_pause">
151
    <td class="links"><label for="input_pause">Pause:</label></td>
152
    <td class="rechts">
153
        <input type="text" id="input_pause" name="config[pause]"  value="{if $aktion["config"]["pause"]}{$aktion["config"]["pause"]}{else}8000{/if}" /> ms.
154
    </td>
155
</tr>
156
<tr id="slider_easing">
157
    <td class="links">
158
        <label for="easing_types">Easing:</label>
159
    </td>
160
    <td class="rechts">
161
        <select name="config[easing]" id="easing_types">
162
            <option value="ease"{if $aktion["config"]["easing"]=="ease"} selected="selected"{/if}>ease</option>
163
            <option value="ease-in"{if $aktion["config"]["easing"]=="ease-in"} selected="selected"{/if}>ease-in</option>
164
            <option value="ease-out"{if $aktion["config"]["easing"]=="ease-out"} selected="selected"{/if}>ease-out</option>
165
            <option value="ease-in-out"{if $aktion["config"]["easing"]=="ease-in-out"} selected="selected"{/if}>ease-in-out</option>
166
        </select>
167
    </td>
168
</tr>
169
<tr id="slider_navigation">
170
    <td class="links">Navigation:</td>
171
    <td class="rechts">
172
        <input type="checkbox" id="navigation_yes" name="navigation_yes" {if $aktion["config"]["navigation"]}checked="checked"{/if}/>
173
        <label for="navigation_yes">Ja</label>
174
        <input type="checkbox" id="navigation_no" name="navigation_no" {if !$aktion["config"]["navigation"]}checked="checked"{/if}/>
175
        <label for="navigation_no">Nein</label>
176
    </td>
177
</tr>
178
<tr id="navigation_setting">
179
    <td id="arrow_navigation" class="links">Pfeile:</td>
180
    <td class="rechts">
181
        <input type="checkbox" id="arrow_yes" name="arrow_yes" {if $aktion["config"]["pfeile"]}checked="checked"{/if}/>
182
        <label for="arrow_yes">Ja</label>
183
        <input type="checkbox" id="arrow_no" name="arrow_no" {if !$aktion["config"]["pfeile"]}checked="checked"{/if}/>
184
        <label for="arrow_no">Nein</label>
185
        <div id="arrow_direction">
186
            <input type="checkbox" id="arrow_outside" name="arrow_outside" {if $aktion["config"]["pfeile_aussen"]}checked="checked"{/if}/>
187
            <label for="arrow_outside">Aussen</label>
188
            <input type="checkbox" id="arrow_inside" name="arrow_inside" {if $aktion["config"]["pfeile_innen"]}checked="checked"{/if}/>
189
            <label for="arrow_inside">Innen </label>
190
        </div>
191
    </td>
192
</tr>
193
<tr id="circle_navigation">
194
    <td class="links">Kreise:</td>
195
    <td class="rechts">
196
        <input type="checkbox" id="circle_yes" name="circle_yes" {if $aktion["config"]["kreise"]}checked="checked"{/if}/>
197
        <label for="circle_yes">Ja</label>
198
        <input type="checkbox" id="circle_no" name="circle_no" {if !$aktion["config"]["kreise"]}checked="checked"{/if}/>
199
        <label for="circle_no">Nein</label>
200
        <div id="circle_direction">
201
            <input type="checkbox" id="circle_up" name="circle_up" {if $aktion["config"]["kreise_oben"]}checked="checked"{/if}/>
202
            <label for="circle_up">Oben</label>
203
            <input type="checkbox" id="circle_down" name="circle_down" {if $aktion["config"]["kreise_unten"]}checked="checked"{/if}/>
204
            <label for="circle_down">Unten</label>
205
        </div>
206
    </td>
207
</tr>
208
<tr id="box_navigation">
209
    <td class="links">Vorschau:</td>
210
    <td class="rechts">
211
        <input type="checkbox" id="box_yes" name="box_yes" {if $aktion["config"]["boxen"]}checked="checked"{/if}/>
212
        <label for="box_yes">Ja</label>
213
        <input type="checkbox" id="box_no" name="box_no" {if !$aktion["config"]["boxen"]}checked="checked"{/if}/>
214
        <label for="box_no">Nein</label>
215
        <div id="box_direction">
216
            <input type="checkbox" id="box_left" name="box_left" {if $aktion["config"]["box_links"]}checked="checked"{/if}/>
217
            <label for="box_left">Links</label>
218
            <input type="checkbox" id="box_right" name="box_right" {if $aktion["config"]["box_rechts"]}checked="checked"{/if}/>
219
            <label for="box_right">Rechts</label>
220
            <br/>
221
            <input type="checkbox" id="box_up" name="box_up" {if $aktion["config"]["box_oben"]}checked="checked"{/if}/>
222
            <label for="box_up">Oben</label>
223
            <input type="checkbox" id="box_down" name="box_down" {if $aktion["config"]["box_unten"]}checked="checked"{/if}/>
224
            <label for="box_down">Unten</label>
225
        </div>
226
    </td>
227
</tr>
228
{if $bildvorhanden}
229
    <input type="hidden" name="action" value="sliderEinstellung" />
230
    <tr>
231
        <td class="headlineVertical">
232
            <input type="button" name="preview_btn" id="preview_btn" value="Slider Vorschau" style="vertical-algin:top;"/>
233
        </td>
234
        <td>
235
            <div id="sliderVorschau3" style="width:100%;display:block;"></div>
236
        </td>
237
 
238
    </tr>
239
{/if}
240
<!-- $Id: aktion_slider_v3.tpl 3897 2022-11-25 10:46:28Z tiefland $ END -->