Webcontent-Anzeige
PUBLICATION TEMPLATE
Asset Publisher
Fehler bei der Verarbeitung der Vorlage.
Expression groupIdKey is undefined on line 44, column 37 in 10153#10191#19191029.
1<#include "${templatesPath}/17531802"/> 
2<#assign portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet_2_0.tld"]/> 
3<#assign uid> 
4    <@portlet.namespace> 
5    </@portlet.namespace> 
6</#assign> 
7 
8<div class="panel panel-info vdma-public-side-links"> 
9    <div class="panel-heading"> 
10        <h2 class="text-center"> 
11            ${themeDisplay.getPortletDisplay().getTitle()} 
12        </h2> 
13    </div> 
14    <div class="panel-body"> 
15        <div class="vdma-public-links" id="vdma-public-links-${uid}"> 
16            <#if entries?has_content> 
17                <#list entries as entry> 
18 
19                    <#assign entryTitle = entry.getTitle()/> 
20                    <#assign assetRenderer = entry.getAssetRenderer() /> 
21                    <#assign article = assetRenderer.getArticle() /> 
22                    <#assign className = assetRenderer.getClassName() /> 
23                    <#assign docAndMedia = false/> 
24                    <#assign docXml = saxReaderUtil.read(article.getContent()) /> 
25                    <#assign entryfile = "${fieldvalue(docXml, 'file')}"/> 
26                    <#assign entryfile = entryfile?replace("+", "%30") /> 
27                    <#assign res = entryfile?matches("/documents/([0-9]+)/([0-9]+)/(.*)/(.*)")/> 
28                    <#assign fileExtension ="PDF"/> 
29                    <#assign fileName = "dummy" /> 
30                    <#assign title = article.getTitle(locale)/> 
31                    <#if res> 
32                        <#assign groupIdKey = res?groups[1]/> 
33                        <#assign fileName = res?groups[3]/> 
34                        <#assign fileName = fileName?replace("%30", " ") /> 
35                        <#assign fileExtension = fileName?substring(fileName?last_index_of('.')+1)/> 
36                    </#if> 
37 
38                    <a href="#" class="vdma-download-by-modal" title="${entryfile}" 
39                        data-article-id="${article.getArticleId()}" 
40                        data-file-extension="${fileExtension}" 
41                        data-publication-name="${article.getTitle(locale)}" 
42                        data-file-name="${fileName}" 
43                        data-download-url="${entryfile}" 
44                        data-gid="${groupIdKey}"> 
45 
46                        <i class="fa fa-file" 
47                            data-file-extension="${fileExtension}" 
48                            data-file-name="${fileName}"> 
49                        </i> 
50                        ${title} 
51                        <i class="fa fa-caret-right"></i> 
52                    </a> 
53                </#list> 
54            <#else> 
55                <@liferay.language key="vdma2.adts.no.content" /> 
56            </#if> 
57        </div> 
58    </div> 
59</div><!-- /.panel panel-info --> 
60 
61<div class="modal fade file-table-modal small ng-scope" id="download_by_modal-${uid}"> 
62    <div class="modal-dialog"> 
63        <div class="modal-content"> 
64            <div class="modal-header"> 
65                <h3><@liferay_ui["message"] key="formular.header.registration"/>:</h3> 
66            </div> 
67            <div class="modal-body"> 
68                <p class="modal-download-file-name"> 
69                    <i class="fa fa-file fa-3x" data-file-name="file.doc"></i> 
70                    &nbsp; 
71                </p> 
72                <p> 
73                    <small><@liferay_ui["message"] key="formular.mandatory.text"/></small> 
74                </p> 
75                <form action="/delegate/oeaformular" method="post" class="ng-pristine ng-valid"> 
76                    <input type="hidden" name="articlePrimaryKey" id="articlePrimaryKey-${uid}"/> 
77                    <input type="hidden" name="groupIdKey" id="groupIdKey-${uid}"/> 
78                    <input type="hidden" name="publicationName" id="publicationName-${uid}"/> 
79                    <input type="hidden" name="" id="durl-${uid}"/> 
80 
81                    <div class="row"> 
82                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> 
83                            <input type="checkbox" id="usageagree-${uid}" name="usageagree" class="required"> 
84                            <#assign labelAgreeTerms> 
85                                <@liferay_ui["message"] key="formular.usageagree.text"/> 
86                            </#assign> 
87                            <label for="usageagree-${uid}">${labelAgreeTerms}*:</label> 
88                        </div> 
89                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
90                            <#assign labelLastName> 
91                                <@liferay_ui["message"] key="formular.contact.lastName"/> 
92                            </#assign> 
93                            <input type="text" name="lastName" id="user_lastname-${uid}" placeholder="${labelLastName}"> 
94                        </div> 
95                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
96                            <#assign labelFirstName> 
97                                <@liferay_ui["message"] key="formular.contact.firstName"/> 
98                            </#assign> 
99                            <input type="text" name="firstName" id="user_name-${uid}" placeholder="${labelFirstName}*"> 
100                        </div> 
101                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
102                            <#assign labelFunction> 
103                                <@liferay_ui["message"] key="formular.contact.position"/> 
104                            </#assign> 
105                            <input type="text" name="position" id="user_function-${uid}" placeholder="${labelFunction}"> 
106                        </div> 
107                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
108                            <#assign labelFirm> 
109                                <@liferay_ui["message"] key="formular.contact.firmName"/> 
110                            </#assign> 
111                            <input type="text" name="firmName" id="user_org_name-${uid}" placeholder="${labelFirm}*"> 
112                        </div> 
113                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
114                            <#assign labelAddress> 
115                                <@liferay_ui["message"] key="formular.contact.street"/> 
116                            </#assign> 
117                            <input type="text" name="street" id="user_street-${uid}" placeholder="${labelAddress}"> 
118                        </div> 
119                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
120                            <#assign labelZip> 
121                                <@liferay_ui["message"] key="formular.contact.postIndex"/> 
122                            </#assign> 
123                            <input type="text" name="postIndex" id="user_plz-${uid}" placeholder="${labelZip}*"> 
124                        </div> 
125                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
126                            <#assign labelCity> 
127                                <@liferay_ui["message"] key="formular.contact.city"/> 
128                            </#assign> 
129                            <input type="text" name="city" id="user_place-${uid}" data-toggle="tooltip" placeholder="${labelCity}*"> 
130                        </div> 
131                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
132                             <select placeholder="Country" id="responsive-registration-land-dl" name="land"> 
133                               <option value="">&nbsp;</option> 
134                             </select> 
135                        </div> 
136                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
137                        </div> 
138                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
139                            <#assign labelPhone> 
140                                <@liferay_ui["message"] key="formular.contact.phoneNumber"/> 
141                            </#assign> 
142                            <input type="text" name="phoneNumber" id="user_phone-${uid}" placeholder="${labelPhone}"> 
143                        </div> 
144                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
145                            <#assign labelFax> 
146                                <@liferay_ui["message"] key="formular.contact.faxNumber"/> 
147                            </#assign> 
148                            <input type="text" name="faxNumber" id="user_fax-${uid}" placeholder="${labelFax}"> 
149                        </div> 
150                        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> 
151                            <#assign labelEmail> 
152                                <@liferay_ui["message"] key="formular.contact.email"/> 
153                            </#assign> 
154                            <input type="text" name="email" id="user_email-${uid}" placeholder="${labelEmail}*"> 
155                        </div> 
156                         
157                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 mt20"> 
158                            <#assign labelNotes> 
159                                <@liferay_ui["message"] key="oea.formular.contact.branche"/> 
160                            </#assign> 
161                            <textarea name="branche" id="user_msg-${uid}" style="width: 100%; resize: none;" placeholder="${labelNotes}"></textarea> 
162                        </div> 
163                         
164                    </div> 
165                </form> 
166            </div> 
167            <div class="modal-footer"> 
168                <a href="#" data-dismiss="modal"><@liferay_ui["message"] key="formular.cancel"/></a> 
169                <a href="#" id="modal_download_file_url-${uid}" target="_blank"><@liferay_ui["message"] key="formular.send"/></a> 
170            </div> 
171        </div> 
172    </div> 
173</div> 
174 
175<script type="text/javascript"> 
176 
177    var validator${uid} = null; 
178 
179    function loadCountriesForDownloads() { 
180    var url = Liferay.ThemeDisplay.getLayoutURL() + "/-/vdmareg/resource/jsonGetCountryListEn/0"; 
181    jQuery.ajax({ 
182        url: url, 
183        dataType: 'json', 
184        async: true, 
185        success: function(data) { 
186            if (data.countries) { 
187                var countries = JSON.parse(data.countries); 
188                var sel = jQuery('#responsive-registration-land-dl'); 
189                  
190                for (var i = 0; i < countries.length; i ++) { 
191                    var country = countries[i]; 
192                  
193                    sel.append('<option value="' + country + '">' + country + '</option>'); 
194
195                if (!sel.val()) { 
196                console.log('setting'); 
197                    sel.val('GERMANY'); 
198
199                sel.selectpicker('refresh'); 
200
201        }, 
202        error: function(errorText) { 
203            // no action required 
204
205    }); 
206
207 
208    $(document).on('click', '#modal_download_file_url-${uid}', function(e) { 
209        var event = e || window.event; 
210        event.preventDefault ? event.preventDefault() : event.returnValue = false; 
211        var form = $("#download_by_modal-${uid} form"); 
212        validator${uid} = form.validate({ 
213            onfocusout: false, 
214            onkeyup: false, 
215            onclick: false, 
216            ignore: [], 
217            success: function(label) { 
218                $('[for*=' + label.attr('for') + ']').removeClass('label-error'); 
219            }, 
220            errorPlacement: function(error, element) { 
221                element.addClass("tooltip-error"); 
222                element.attr("alt", error.html()); 
223                $(element).tooltip(); 
224                $('[for=' + element.attr('id') + ']').addClass('label-error'); 
225            }, 
226            invalidHandler: function(f, validator) { 
227                form.find(".tooltip-error").tooltip({ disabled: true }); 
228                form.find("input.tooltip-error").attr("alt", ""); 
229                form.find("input").removeClass("tooltip-error"); 
230            }, 
231            rules : { 
232                "firstName"         :  {required: true}, 
233                "usageagree"        :  {required: true}, 
234                "firmName"          :  {required: true}, 
235                "postIndex"         :  {required: true}, 
236                "city"              :  {required: true}, 
237                "email"             :  { 
238                                        required: true, 
239                                        email: true 
240
241            }, 
242            submitHandler: function(f) { 
243                debugger; 
244                 var url = form.find('#durl-${uid}').val(); 
245                 form.find('#durl-${uid}').val(""); 
246                 if (url){ 
247                     var win = window.open(url, '_blank'); 
248                      win.focus(); 
249
250                 f.submit(); 
251
252        }); 
253        form.submit(); 
254 
255    }); 
256 
257    $(document).on('click', '#vdma-public-links-${uid} a.vdma-download-by-modal', function(e) { 
258        var event = e || window.event; 
259        event.preventDefault ? event.preventDefault() : event.returnValue = false; 
260        var a = $(event.target); 
261        var form = $('#download_by_modal-${uid} form'); 
262        var line = a.closest('.vdma-publication-line'); 
263        var articleId = a.data('article-id'); 
264        var groupId = a.data('gid'); 
265        var publicationName = a.data('publication-name'); 
266        var durl = a.data('download-url'); 
267        var fileName = a.data('file-name'); 
268        var fileTypeData = a.data('file-name') || ''; 
269        form.find('#durl-${uid}').val(durl); 
270        form.find('#articlePrimaryKey-${uid}').val(articleId); 
271        form.find('#groupIdKey-${uid}').val(groupId); 
272        form.find('#publicationName-${uid}').val(publicationName); 
273        if (validator${uid} != null) { 
274            validator${uid}.resetForm(); 
275
276        var that = $(this), 
277            modal = $('#download_by_modal-${uid}'), 
278            targetNameContainer = modal.find('.modal-download-file-name'), 
279            targetNameIcon = targetNameContainer.find('i'), 
280            targetUrl = $('#modal_download_file_url-${uid}'); 
281 
282        targetNameContainer.empty(); 
283        targetNameContainer.append(fileName); 
284        targetNameIcon.attr('data-file-name', fileTypeData); 
285        targetUrl.attr('href', durl); 
286        loadCountriesForDownloads(); 
287        modal.modal('show'); 
288    }); 
289 
290</script> 
Asset Publisher

Asset Publisher

China Management Meeting VDMA Antriebs- und Fluidtechnik
Das 16. China Management Meeting findet vom 12.-13.03.2019 bei Lenze Drive Systems in Shanghai statt.
Fluidtechnik 2018 - 2019
Kongresse, Veranstaltungen, Messen und Sitzungen des Fachverbands Fluidtechnik alles auf einen Blick.