<% SSlist = []; $.each(result, function(index, value) { var item = value, ids = item._source.id; SSlist[ids] = value; }); Favitem = result; %> <% $.each(Object.keys(JSON.parse(localStorage.favedStudiesList)), function(index, value) { %> <% if ( SSlist[parseInt(value)] ) { %> <% var item = SSlist[parseInt(value)]._source %> <%= item.name %> <%= lang.duration %> <%= item.study_feature_table.study_duration ? item.study_feature_table.study_duration + ' ' + lang.period_name : '' %> <%= lang.cash %> <% if(item.study_cost) { %> <% if(_APPID == 1){ %> <%console.log(item)%> <% if(item.study_cost.full_price) { %> <% if(item.study_cost.highest_price.old_price != '0,00') { %> €<%= item.study_cost.highest_price.old_price %> <%= item.study_cost.highest_price.full_price %> <% } else { %> €<%= item.study_cost.highest_price.full_price %> <% } %> <% } %> <%= lang.or_pay %> <%= item.study_cost.lowest_price.number_of_months %>x €<%= item.study_cost.lowest_price.price %> <% } else { %> <% if (_APPID == 3) { %> <%= item.study_cost.lowest_price.number_of_months %>x <%= item.study_cost.lowest_price.price %> € <% } else { %> <%= item.study_cost.lowest_price.number_of_months %>x €<%= item.study_cost.lowest_price.price %> <% } %> <% if(item.study_cost.full_price) { %> <% if (_APPID == 3) { %> <% } else { %> <% } %> <%= lang.or_pay %> <% if(_APPID == 3){ %> <%= item.study_cost.full_price %> € <% } else { %> €<%= item.study_cost.full_price %> <% } %> <% } %> <% } %> <% } %>
<% if(item.has_trial_lesson == true) { %> <%= lang.free_lesson %> <% } %>
<%= lang.sign_up %>
<%= lang.sign_up_addition %>
<% } else { %> <% var item = JSON.parse(localStorage.favedStudiesList) %> <%= item[value].name %> - <%= lang.expired %> <% } %> <% }); %> <% // this view is built from populateRows() in sendFavList.js %>