1Permissions.set('all', true); 2 3 4viewToEditor({ title: '<span data-icon="">User Accounts</span>', group: 'admin', viewName: 'users_account', setParams: { fields: ['user'], sort: {user: 'asc' } } }); 5 6$(document).on('readyOnce', function(){ 7 $('.blink, .blink_slow, .panel').attr('observer-scroll', ''); 8 9 // OPEN EXTERNAL PAGES IN NEW WINDOW 10 $('a').each( function(){ 11 if ( $(this).hasAttr('href') && $(this).attr('href').substr(0, 4).toLowerCase() == 'http') $(this).attr('target', '_blank'); 12 }); 13}); 14 15 16$(document).on('readyOnce', function() { 17 18 // WEITERLEITUNG VON DER ADMINISTRATION ZUR WEBSEITE NACH LOGIN 19 20 //if ($('body').hasClass('page_admin') && $('body').hasClass('group_ALL-USERS') && $('body').hasClass('group_master') == false) window.location = URL_ROOT ; 21 22}); 23 24 25 26$(document).on('readyOnce', function() { 27 $('#checkSend').on('click', function() { 28 if ( $('#checkSend').prop('checked') == true) $('#submitSubscription').css('visibility', 'visible'); 29 else $('#submitSubscription').css('visibility', 'hidden'); 30 31 }); 32 33 $('#submitSubscription').on('click', function() { 34 submitSubscription(); 35 }); 36 37}); 38 39 40submitSubscription = function( ){ 41 42// validate 43 44 if ( $('#subscribe [data-field]:not([data-valid="true"])').length > 0 ){ 45 alert('Please fill all fields.'); 46 47 return; 48 } 49 50 51 var valid = true; 52// $('#subscribe').find('input').each( function() { 53// if (validateElement(this) == false){ 54// valid = false; 55// alert('Please enter a valid email address.'); 56// return; 57// }; 58// }); 59 if (valid == false) return; 60 61 var values = { }; 62 63 64 $('#subscribe').find('[data-field]').each( function() { 65 values[ $(this).attr('data-field') ] = $(this).val().trim(); 66 }); 67 68 69 70 provide( 'submitSubscription', values, function( data ){ 71 console.log(data); 72 73 if (data == 'true'){ 74 var content = ('<div><h2>Thank you for your subscription.</div>'); 75 $('#subscribe').html( content ); 76 77 } 78 else { 79 var content = ('<br/>An error has occured.<br/><br/>Please try again later.'); 80 $('#subscribe').html( content ); 81 } 82 }); 83 84 85} 86 87 88 89 90 91 92$(document).on('om_onlineclassesToDisplay', function(event, data) { 93 var display = data.display; 94 var entity = display.entity; 95 96// for (var index in data.options.fieldNames){ 97// display.element.append(entity.fields[data.options.fieldNames[index]].toDisplay()); 98// } 99 100 display.element.addClass('box'); 101 102 display.element.append(entity.fields['date_info'].toDisplay()); 103 display.element.append(entity.fields['title'].toDisplay('h2')); 104 display.element.append(entity.fields['text'].toDisplay()); 105 106 107 var link ='https://www.omniumuniverse.com/cart/?action=add&typeproduct=om_onlineclasses&idproduct=' + entity.getPrimary('string'); 108 109 if ( entity.get('price') > 0 && entity.get('status') == 'upcoming' ) { 110 display.element.append('<div class="price_panel" style="width: 100%"><a data-icon="" href="'+ link + '¤cy=dollar" target="_blank">' + entity.get('price').toFixed(2) + '</a> or <a data-icon="" href="'+ link + '¤cy=euro" target="_blank">' + entity.get('price_euro').toFixed(2) + '</a> <a data-icon="" href="'+ link + '" target="_blank">add to cart</a></div>'); 111 112 if (entity.get('iddiscountproduct', 'integer') > 0){ 113 link += '&discountproduct=' + entity.get('iddiscountproduct', 'string'); 114 display.element.append('<div class="price_panel" style="width: 100%">include recording<a data-icon="" href="'+ link + '¤cy=dollar" target="_blank">+' + entity.get('discountproduct_price').toFixed(2) + '</a> or <a data-icon="" href="'+ link + '¤cy=euro" target="_blank">+' + entity.get('discountproduct_price_euro').toFixed(2) + '</a></div>'); 115 } 116 117 } else { 118 if (entity.get('iddiscountproduct', 'integer') > 0){ 119 link ='https://www.omniumuniverse.com/cart/?action=add&typeproduct=om_products&idproduct=' + entity.get('iddiscountproduct', 'string'); 120 121 display.element.append('<div class="price_panel" style="width: 100%"><a data-icon="" href="'+ link + '¤cy=dollar" target="_blank">' + 'Purchase recording' + '</a></div>'); 122 } 123 124 } 125 126 127 if (isset(display.displaySet)) { 128 // ---------------- DISPLAY IN SET ------------------------------- 129// var btnDetail = makeButton('detail', display);
130// var controller = $('<div class="controller"></div>'); 131// controller.append(btnDetail); 132// display.element.prepend(controller); 133 134 135 136 } else { 137 // ---------------- DISPLAY IN DETAIL ------------------------------- 138 139 display.element.append( '<h3>Orders</h3>' ); 140 addDisplayLabels(display.element); 141 142 } 143 144 data.handled = true; 145 146}); 147 148 149 150 151 152 153// viewToEditor({ title: 'User Accounts', group: 'admin', viewName: 'users_account', setParams: { fields: ['user'], sort: {user: 'asc' } } }); 154// viewToEditor({ title: 'User Groups', group: 'admin', viewName: 'usergroups', setParams: { fields: ['title'], sort: {title: 'asc' } } }); 155// viewToEditor({ title: 'User Groupusers', group: 'admin', viewName: 'usergroups_users', setParams: { fields: ['id'], sort: {id: 'asc' } } }); 156 157 158// viewToEditor({ title: '<span data-icon="">Subscriptions</span>', group: 'admin', viewName: 'subscriptions', cacheName: 'subscriptions', setParams: { fields: ['active', 'email'], sort: {'email': 'asc' } } });
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.