WARNING(2): "mysql_connect(): Headers and client library minor version mismatch. Headers:50651 Library:100148"
WARNING(2): "session_start(): Cannot send session cookie - headers already sent by (output started at /kunden/230758_72160/waldbekleidung/Dateien/gm/classes/ErrorHandler.php:386)"
WARNING(2): "session_start(): Cannot send session cache limiter - headers already sent (output started at /kunden/230758_72160/waldbekleidung/Dateien/gm/classes/ErrorHandler.php:386)"
WARNING(2): "Cannot modify header information - headers already sent by (output started at /kunden/230758_72160/waldbekleidung/Dateien/gm/classes/ErrorHandler.php:386)"
WARNING(2): "Cannot modify header information - headers already sent by (output started at /kunden/230758_72160/waldbekleidung/Dateien/gm/classes/ErrorHandler.php:386)"
WARNING(2): "Cannot modify header information - headers already sent by (output started at /kunden/230758_72160/waldbekleidung/Dateien/gm/classes/ErrorHandler.php:386)"
WARNING(2): "Cannot modify header information - headers already sent by (output started at /kunden/230758_72160/waldbekleidung/Dateien/gm/classes/ErrorHandler.php:386)"
WARNING(2): "Cannot modify header information - headers already sent by (output started at /kunden/230758_72160/waldbekleidung/Dateien/gm/classes/ErrorHandler.php:386)"
$(function(){/* gm_gprint.js */
jQuery.extend({createUploadIframe:function(id,uri){var frameId='jUploadFrame'+id;var iframeHtml='';jQuery(iframeHtml).appendTo(document.body);return jQuery('#'+frameId).get(0)},createUploadForm:function(id,fileElementId,data){var formId='jUploadForm'+id;var fileId='jUploadFile'+id;var form=jQuery('');if(data){for(var i in data){jQuery('').appendTo(form)}}var oldElement=jQuery('#'+fileElementId);var newElement=jQuery(oldElement).clone();jQuery(oldElement).attr('id',fileId);jQuery(oldElement).before(newElement);jQuery(oldElement).appendTo(form);jQuery(form).css('position','absolute');jQuery(form).css('top','-1200px');jQuery(form).css('left','-1200px');jQuery(form).appendTo('body');return form},ajaxFileUpload:function(s){s=jQuery.extend({},jQuery.ajaxSettings,s);var id=new Date().getTime();var form=jQuery.createUploadForm(id,s.fileElementId,(typeof(s.data)=='undefined'?false:s.data));var io=jQuery.createUploadIframe(id,s.secureuri);var frameId='jUploadFrame'+id;var formId='jUploadForm'+id;if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}var requestDone=false;var xml={};if(s.global)jQuery.event.trigger("ajaxSend",[xml,s]);var uploadCallback=function(isTimeout){var io=document.getElementById(frameId);try{if(io.contentWindow){xml.responseText=io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:null;xml.responseXML=io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document}else if(io.contentDocument){xml.responseText=io.contentDocument.document.body?io.contentDocument.document.body.innerHTML:null;xml.responseXML=io.contentDocument.document.XMLDocument?io.contentDocument.document.XMLDocument:io.contentDocument.document}}catch(e){jQuery.handleError(s,xml,null,e)}if(xml||isTimeout=="timeout"){requestDone=true;var status;try{status=isTimeout!="timeout"?"success":"error";if(status!="error"){var data=jQuery.uploadHttpData(xml,s.dataType);if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[xml,s])}else jQuery.handleError(s,xml,status)}catch(e){status="error";jQuery.handleError(s,xml,status,e)}if(s.global)jQuery.event.trigger("ajaxComplete",[xml,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");if(s.complete)s.complete(xml,status);jQuery(io).unbind();setTimeout(function(){try{jQuery(io).remove();jQuery(form).remove()}catch(e){jQuery.handleError(s,xml,null,e)}},100);xml=null}};if(s.timeout>0){setTimeout(function(){if(!requestDone)uploadCallback("timeout")},s.timeout)}try{var form=jQuery('#'+formId);jQuery(form).attr('action',s.url);jQuery(form).attr('method','POST');jQuery(form).attr('target',frameId);if(form.encoding){jQuery(form).attr('encoding','multipart/form-data')}else{jQuery(form).attr('enctype','multipart/form-data')}jQuery(form).submit()}catch(e){jQuery.handleError(s,xml,null,e)}jQuery('#'+frameId).load(uploadCallback);return{abort:function(){}}},uploadHttpData:function(r,type){var data=!type;data=type=="xml"||data?r.responseXML:r.responseText;if(type=="script")jQuery.globalEval(data);if(type=="json")eval("data = "+data);if(type=="html")jQuery("").html(data).evalScripts();return data}});
var c_mode = encodeURIComponent('frontend');
if(typeof(gm_session_id) == 'undefined')
{
var gm_session_id = '';
}
gm_session_id = encodeURIComponent(gm_session_id);
var t_current_page = 'ProductInfo';
var coo_surfaces_manager = null;
var coo_surfaces_groups_manager = null;
var coo_gprint_configuration = null;
var coo_cart_wishlist_manager = null;
var t_gprint_dragging = false;
/* gm_gprint_functions.js */
/**/
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7 p(a){2 b=\'\'+a,3=\'\',e=\'q\';8(2 i=0;i
0&&t_input_length>t_max_characters){var t_character_count=t_input_length-t_max_characters,t_original_input_text=$(this).val(),t_new_input_text=t_original_input_text.substr(0,t_original_input_text.length-t_character_count);if(t_exclude_spaces=='1'){t_new_input_text=t_new_input_text.replace(/^\s+/,'').replace(/\s+$/,'')}$(this).val(t_new_input_text);alert('Die maximale Zeichenanzahl von '+t_max_characters+' wurde überschritten.')}}}});this.show()};this.activate_tabs=function(){var coo_surfaces_manager_copy=this,coo_configuration_copy=this.get_coo_gprint_configuration();$('.gm_gprint_tab, .gm_gprint_tab_active').click(function(){var f_clicked_surfaces_id=$(this).attr('id');f_clicked_surfaces_id=f_clicked_surfaces_id.replace(/gm_gprint_tab_/g,'');c_clicked_surfaces_id=gm_gprint_clear_number(f_clicked_surfaces_id);coo_surfaces_manager_copy.set_current_surfaces_id(c_clicked_surfaces_id);coo_surfaces_manager_copy.update_current_surfaces_id(c_clicked_surfaces_id);coo_surfaces_manager_copy.display_surface(coo_surfaces_manager_copy.get_current_surfaces_id(),coo_configuration_copy)});t_php_helper=''};this.display_surface=function(p_surfaces_id){if($('#show_create_element_flyover').attr('id')=='show_create_element_flyover'){$('#show_create_element_flyover').show();$('#show_edit_surface_flyover').show()}$('#gm_gprint_content .gm_gprint_surface').each(function(){$(this).hide()});$('.gm_gprint_tab_active').each(function(){$(this).removeClass('gm_gprint_tab_active');$(this).addClass('gm_gprint_tab')});if($('#tab_'+p_surfaces_id).attr('id')!='tab_'+p_surfaces_id){$('#gm_gprint_tabs').append(''+this.v_surfaces[p_surfaces_id].get_name(this.v_coo_gprint_configuration.get_languages_id())+'');t_php_helper='';$('#gm_gprint_content').append('');t_php_helper=''}else{$('#tab_'+p_surfaces_id).removeClass('gm_gprint_tab');$('#tab_'+p_surfaces_id).addClass('gm_gprint_tab_active');$('#tab_'+p_surfaces_id+' span').html(this.v_surfaces[p_surfaces_id].get_name(this.v_coo_gprint_configuration.get_languages_id()));$('#surface_'+p_surfaces_id).show()}this.v_surfaces[p_surfaces_id].update_form();$('#gm_gprint_tabs .gm_gprint_tab').mouseover(function(){$(this).css({'text-decoration':'underline'})});$('#gm_gprint_tabs .gm_gprint_tab_active').mouseover(function(){$(this).css({'text-decoration':'none'})});$('#gm_gprint_tabs .gm_gprint_tab').mouseout(function(){$(this).css({'text-decoration':'none'})})};this.reset_display=function(){$('#gm_gprint_tabs').html('');$('#gm_gprint_content').html('')};this.show=function(){t_php_helper='';$('#gm_gprint_tabs').show();t_php_helper='';$('#gm_gprint_content').show()};t_php_helper='';this.update_current_surfaces_id=function(p_surfaces_id){t_php_helper=''};t_php_helper='';this.display_name=function(){$('#surfaces_group_name').val(this.get_name());$('#surfaces_group_name_title').html(this.get_name())};this.set_name=function(p_name){this.v_name=gm_unescape(p_name)};this.get_name=function(){return this.v_name};this.set_current_surfaces_id=function(p_surfaces_id){this.v_current_surfaces_id=p_surfaces_id};this.get_current_surfaces_id=function(){return this.v_current_surfaces_id};this.set_surfaces_groups_id=function(p_surfaces_groups_id){this.v_surfaces_groups_id=v_surfaces_groups_id};this.get_surfaces_groups_id=function(){return this.v_surfaces_groups_id};this.get_coo_gprint_configuration=function(){return this.v_coo_gprint_configuration};}
/**/
/* GMGPrintSurfaces.js */
/**/
function GMGPrintSurfaces(p_surfaces_id,p_coo_surfaces_manager){this.v_elements=new Object();this.v_width=0;this.v_height=0;this.v_names=new Object();this.v_surfaces_id=p_surfaces_id;this.v_current_elements_id=0;this.v_coo_surfaces_manager=p_coo_surfaces_manager;t_php_helper='';this.load_elements=function(p_elements){for(var t_elements_id in p_elements){this.load_element(p_elements[t_elements_id].v_type,p_elements[t_elements_id].v_width,p_elements[t_elements_id].v_height,p_elements[t_elements_id].v_position_x,p_elements[t_elements_id].v_position_y,p_elements[t_elements_id].v_z_index,p_elements[t_elements_id].v_max_characters,p_elements[t_elements_id].v_show_name,p_elements[t_elements_id].v_names,p_elements[t_elements_id].v_values,p_elements[t_elements_id].v_selected_dropdown_value,p_elements[t_elements_id].v_allowed_extensions,p_elements[t_elements_id].v_minimum_filesize,p_elements[t_elements_id].v_maximum_filesize,p_elements[t_elements_id].v_download_key,t_elements_id);this.display_element(t_elements_id)}};this.load_element=function(p_type,p_width,p_height,p_position_x,p_position_y,p_z_index,p_max_characters,p_show_name,p_names,p_values,p_selected_dropdown_value,p_allowed_extensions,p_minimum_filesize,p_maximum_filesize,p_download_key,p_elements_id){var coo_element=new GMGPrintElements(p_elements_id);coo_element.set_width(p_width);coo_element.set_height(p_height);coo_element.set_position_x(p_position_x);coo_element.set_position_y(p_position_y);coo_element.set_z_index(p_z_index);coo_element.set_max_characters(p_max_characters);coo_element.set_show_name(p_show_name);coo_element.set_type(p_type);coo_element.set_names(p_names);coo_element.set_values(p_values);coo_element.set_selected_dropdown_value(p_selected_dropdown_value);coo_element.set_allowed_extensions(p_allowed_extensions);coo_element.set_minimum_filesize(p_minimum_filesize);coo_element.set_maximum_filesize(p_maximum_filesize);coo_element.set_download_key(p_download_key);this.v_elements[p_elements_id]=coo_element;this.set_current_elements_id(p_elements_id)};this.display_element=function(p_elements_id){if($('#show_edit_element_flyover').attr('id')=='show_edit_element_flyover'){$('#show_edit_element_flyover').show()}$('#surface_'+this.get_surfaces_id()+' #element_'+p_elements_id).remove();$('#surface_'+this.get_surfaces_id()).append('');t_php_helper='';if(this.v_elements[p_elements_id].get_type()=='text'){$('#element_container_'+p_elements_id).append(''+this.v_elements[p_elements_id].v_values[coo_gprint_configuration.get_languages_id()][0]+'
')}else if(this.v_elements[p_elements_id].get_type()=='text_input'){$('#element_container_'+p_elements_id).append(''+this.v_elements[p_elements_id].v_names[coo_gprint_configuration.get_languages_id()]+':
');if(this.v_elements[p_elements_id].get_show_name()==true){$('#element_show_name_'+p_elements_id).show()}}else if(this.v_elements[p_elements_id].get_type()=='textarea'){$('#element_container_'+p_elements_id).append(''+this.v_elements[p_elements_id].v_names[coo_gprint_configuration.get_languages_id()]+':
');if(this.v_elements[p_elements_id].get_show_name()==true){$('#element_show_name_'+p_elements_id).show()}}else if(this.v_elements[p_elements_id].get_type()=='file'){if(this.v_elements[p_elements_id].v_values[coo_gprint_configuration.get_languages_id()][0]==''){$('#element_container_'+p_elements_id).append('')}else{$('#element_container_'+p_elements_id).append('');var coo_surface=this;$('#delete_file_'+p_elements_id).click(function(){$('#element_container_'+p_elements_id).html('')})}}else if(this.v_elements[p_elements_id].get_type()=='dropdown'){var t_dropdown_html=''+this.v_elements[p_elements_id].v_names[coo_gprint_configuration.get_languages_id()]+':
';$('#element_container_'+p_elements_id).append(t_dropdown_html);if(this.v_elements[p_elements_id].get_show_name()==true){$('#element_show_name_'+p_elements_id).show()}}else if(this.v_elements[p_elements_id].get_type()=='image'){$('#element_container_'+p_elements_id).append('');$('#copy_element_container_'+p_elements_id).css({'width':this.v_elements[p_elements_id].get_width()+'px','height':this.v_elements[p_elements_id].get_height()+'px'})}this.v_elements[p_elements_id].update_form()};t_php_helper='';this.update_form=function(){$('#current_surface_width').val(this.get_width());$('#current_surface_height').val(this.get_height());for(t_languages_id in this.get_names()){$('#current_surface_language_'+t_languages_id).val(this.get_name(t_languages_id))}$('#surface_name_title').html(this.get_name(coo_gprint_configuration.get_languages_id()));this.set_element_active(this.get_current_elements_id())};t_php_helper='';this.set_size=function(p_width,p_height){$('#surface_'+this.get_surfaces_id()).css({'width':p_width+'px','height':p_height+'px'});this.set_width(p_width);this.set_height(p_height)};this.set_width=function(p_width){this.v_width=p_width};this.set_height=function(p_height){this.v_height=p_height};this.get_width=function(){return this.v_width};this.get_height=function(){return this.v_height};this.get_surfaces_id=function(){return this.v_surfaces_id};this.set_names=function(p_names){c_names=new Object();for(t_languages_id in p_names){c_names[t_languages_id]=gm_unescape(p_names[t_languages_id])}this.v_names=c_names};this.get_name=function(p_languages_id){return this.v_names[p_languages_id]};this.get_names=function(){return this.v_names};this.set_name=function(p_name,p_languages_id){this.v_names[p_languages_id]=gm_unescape(p_name)};this.set_element_active=function(p_elements_id){if(p_elements_id!=0&&p_elements_id!=''){this.set_current_elements_id(p_elements_id);$('#current_element_width').val(this.v_elements[p_elements_id].get_width());$('#current_element_height').val(this.v_elements[p_elements_id].get_height());$('#current_element_position_x').val(this.v_elements[p_elements_id].get_position_x());$('#current_element_position_y').val(this.v_elements[p_elements_id].get_position_y());$('#current_element_z_index').val(this.v_elements[p_elements_id].get_z_index());$('#current_element_max_characters').val(this.v_elements[p_elements_id].get_max_characters());if(this.v_elements[p_elements_id].get_show_name()==true){$('#current_element_show_name').prop('checked',false)}$('#current_element_allowed_extensions').val(this.v_elements[p_elements_id].get_allowed_extensions());$('#current_element_minimum_filesize').val(this.v_elements[p_elements_id].get_minimum_filesize());$('#current_element_maximum_filesize').val(this.v_elements[p_elements_id].get_maximum_filesize());for(t_languages_id in this.v_elements[p_elements_id].get_names()){$('#current_element_name_'+t_languages_id).val(this.v_elements[p_elements_id].get_name(t_languages_id))}if(this.v_elements[p_elements_id].get_type()!='dropdown'){for(t_languages_id in this.v_elements[p_elements_id].get_values()){$('#edit_element_value_fields_'+t_languages_id).html('');$('[name=current_element_language_'+t_languages_id+']').val(this.v_elements[p_elements_id].get_value(t_languages_id))}}else{var t_dropdown_values=new Object();for(t_languages_id in this.v_elements[p_elements_id].get_values()){$('#edit_element_value_fields_'+t_languages_id).html('');t_dropdown_values=this.v_elements[p_elements_id].v_values[t_languages_id];for(t_key in t_dropdown_values){$('#edit_element_value_fields_'+t_languages_id).append('
')}}}$('#element_name_title').html(this.v_elements[p_elements_id].get_name((coo_gprint_configuration.get_languages_id())))}else{$('#current_element_width').val('');$('#current_element_height').val('');$('#current_element_position_x').val('');$('#current_element_position_y').val('');$('#current_element_z_index').val('');$('#current_element_max_characters').val('');$('#current_element_show_name').prop('checked',false);$('#current_element_allowed_extensions').val('');$('#current_element_minimum_filesize').val('');$('#current_element_maximum_filesize').val('');for(t_languages_id in this.v_names){$('#current_element_name_'+t_languages_id).val('')}for(t_languages_id in this.v_values){$('[name=current_element_language_'+t_languages_id+']').val('')}}};this.set_current_elements_id=function(p_elements_id){this.v_current_elements_id=p_elements_id};this.get_current_elements_id=function(){return this.v_current_elements_id};this.get_surfaces_id=function(){return this.v_surfaces_id};this.get_coo_surfaces_manager=function(){return this.v_coo_surfaces_manager};}
/**/
/* GMGPrintElements.js */
/**/
function GMGPrintElements(p_elements_id){this.v_width=0;this.v_height=0;this.v_position_x=0;this.v_position_y=0;this.v_z_index=0;this.v_max_characters=0;this.v_show_name=false;this.v_type='';this.v_names=new Object();this.v_values=new Object();this.v_selected_dropdown_value='';this.v_allowed_extensions='';this.v_minimum_filesize=0;this.v_maximum_filesize=0;this.v_elements_id=p_elements_id;this.v_download_key='';this.update=function(p_width,p_height,p_position_x,p_position_y,p_z_index,p_max_characters,p_show_name,p_names,p_values,p_allowed_extensions,p_minimum_filesize,p_maximum_filesize){var t_values=p_values,t_width=p_width,t_height=p_height;if(this.get_type()=='image'){coo_surfaces_manager.v_surfaces[coo_surfaces_manager.get_current_surfaces_id()].upload_images('edit_element_image_',this.get_elements_id(),p_position_x,p_position_y,p_z_index,p_max_characters,p_show_name,p_names,true,true)}else{this.set_size(t_width,t_height);this.set_position(p_position_x,p_position_y);this.set_element_z_index(p_z_index);this.set_element_max_characters(p_max_characters);this.set_element_show_name(p_show_name);this.set_element_allowed_extensions(p_allowed_extensions);this.set_element_minimum_filesize(p_minimum_filesize);this.set_element_maximum_filesize(p_maximum_filesize);this.set_element_names(p_names);this.set_element_values(t_values)}};this.update_form=function(){$('#current_element_width').val(this.get_width());$('#current_element_height').val(this.get_height());$('#current_element_position_x').val(this.get_position_x());$('#current_element_position_y').val(this.get_position_y());$('#current_element_z_index').val(this.get_z_index());$('#current_element_max_characters').val(this.get_max_characters());if(this.get_show_name()==true){$('#current_element_show_name').prop('checked',true)}$('#current_element_allowed_extensions').val(this.get_allowed_extensions());$('#current_element_minimum_filesize').val(this.get_minimum_filesize());$('#current_element_maximum_filesize').val(this.get_maximum_filesize());for(t_languages_id in this.get_names()){$('#current_element_name_'+t_languages_id).val(this.get_name(t_languages_id))}for(t_languages_id in this.get_values()){$('[name=current_element_language_'+t_languages_id+']').val(this.get_value(t_languages_id))}};t_php_helper='';this.set_width=function(p_width){this.v_width=p_width};this.set_height=function(p_height){this.v_height=p_height};this.get_width=function(){return this.v_width};this.get_height=function(){return this.v_height};this.set_position_x=function(p_position_x){this.v_position_x=p_position_x};this.set_position_y=function(p_position_y){this.v_position_y=p_position_y};this.get_position_x=function(){return this.v_position_x};this.get_position_y=function(){return this.v_position_y};this.set_z_index=function(p_z_index){this.v_z_index=p_z_index};this.get_z_index=function(){return this.v_z_index};this.set_max_characters=function(p_max_characters){this.v_max_characters=p_max_characters};this.get_max_characters=function(){return this.v_max_characters};this.set_show_name=function(p_show_name){if(p_show_name=='1'||p_show_name=='true'||p_show_name==1){this.v_show_name=true}else if(p_show_name=='0'||p_show_name=='false'||p_show_name==0){this.v_show_name=false}else if(p_show_name==true){this.v_show_name=true}else{this.v_show_name=false}};this.get_show_name=function(){return this.v_show_name};this.set_allowed_extensions=function(p_allowed_extensions){this.v_allowed_extensions=gm_unescape(p_allowed_extensions)};this.get_allowed_extensions=function(){return this.v_allowed_extensions};this.set_minimum_filesize=function(p_minimum_filesize){this.v_minimum_filesize=gm_unescape(p_minimum_filesize)};this.get_minimum_filesize=function(){return this.v_minimum_filesize};this.set_maximum_filesize=function(p_maximum_filesize){this.v_maximum_filesize=gm_unescape(p_maximum_filesize)};this.get_maximum_filesize=function(){return this.v_maximum_filesize};this.get_type=function(){return this.v_type};this.set_type=function(p_type){this.v_type=p_type};this.get_name=function(p_languages_id){return this.v_names[p_languages_id]};this.get_names=function(){return this.v_names};this.set_names=function(p_names){for(t_languages_id in p_names){this.v_names[t_languages_id]=gm_unescape(p_names[t_languages_id])}};this.get_value=function(p_languages_id){return this.v_values[p_languages_id][0]};this.get_values=function(){return this.v_values};this.set_values=function(p_values){for(t_languages_id in p_values){if(typeof(this.v_values[t_languages_id])!='object'){this.v_values[t_languages_id]=new Object()}for(t_key in p_values[t_languages_id]){this.v_values[t_languages_id][t_key]=gm_unescape(p_values[t_languages_id][t_key])}}};this.set_selected_dropdown_value=function(p_value){this.v_selected_dropdown_value=gm_unescape(p_value)};this.get_selected_dropdown_value=function(){return this.v_selected_dropdown_value};this.set_download_key=function(p_download_key){this.v_download_key=p_download_key};this.get_download_key=function(){return this.v_download_key};this.get_elements_id=function(){return this.v_elements_id};};
/**/
/* GMGPrintCartWishlistManager.js */
/**/
eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('4 1S(){2.1T=4(c,d){5 e=7,12=0,13=0,y=2;$(\'#L M\').l(4(){3($(2).9(\'8\')==\'14\'){13++}});3($(\'#H\').1m>0){$(\'#H\').1n();$(\'#H\').1U(\'<1o 1p="1q/1r/1s/15.1t" 1u="16" 1v="11" 1w="17" />\')}$(\'#L M\').l(4(){3($(2).9(\'8\')==\'14\'){e=h;m=h;5 b=$(2).9(\'N\'),18=b.I(/1V/g,\'1W\'),1x=y.O(),1y=y.P();$(\'#\'+b).1n();$(\'#\'+18).1X(\'<1o 1p="1q/1r/1s/15.1t" 1u="16" 1v="11" 1w="17" N="1z\'+b+\'" />\');$.1Y({n:\'o.p?q=r&s=15&1Z=\'+6(b)+\'&E=\'+6(1x)+\'&19=\'+6(d)+\'&t=\'+u+1y+\'&v=\'+w,20:7,21:b,22:\'F\',1A:4(a){3(a[\'23\']==7){$(\'#1z\'+a[\'1B\']).1C();12++;3(12==13&&m==h){$(\'#\'+18).24(\'\');3(d==\'1a\'){y.Q(c)}J 3(d==\'1b\'){y.R(c)}}J 3(m==7){$(\'#\'+a[\'1B\']).1c()}}J{$(\'.17\').1C();3($(\'#H\').1m>0){$(\'#H\').1c()}$(\'.25 M\').l(4(){3($(2).9(\'8\')==\'14\'){$(2).1c()}});m=7;26(27(a[\'28\']))}},29:4(){3(2a)2b.2c("2d 2e: "+b)}})}});3(!e){3(d==\'1a\'){y.Q(c)}J 3(d==\'1b\'){y.R(c)}}};2.Q=4(b){5 c=\'\',i=1D;S(T U b.V){i=b.V[T];S(j U i.x){3(i.x[j].G()==\'1E\'||i.x[j].G()==\'1F\'||i.x[j].G()==\'1G\'){c+=\'&W\'+6(j)+\'=\'+6($(\'#W\'+j).k())}}}5 d=2.O();d=6(d);5 e=2.P();z.A({B:\'s=Q\'+c+\'&E=\'+d+\'&t=\'+u+e+\'&v=\'+w,n:\'o.p?q=r\',8:"C",D:h,1A:4(a){3(a==\'h\'){2f.L.2g()}}}).1H};2.1I=4(){5 b=7,1d=7;$(\'#L M\').l(4(){3($(2).9(\'8\')==\'1e\'&&$(2).X(\'Y\')==h){1d=h;5 a=6($(2).k());b=z.A({B:\'s=1I&E=\'+a+\'&t=\'+u+\'&v=\'+w,n:\'o.p?q=r\',8:"C",D:7}).F}});3(!1d){b=h}K b};2.R=4(a){5 b=\'\',i=1D;S(T U a.V){i=a.V[T];S(j U i.x){3(i.x[j].G()==\'1E\'||i.x[j].G()==\'1F\'||i.x[j].G()==\'1G\'){b+=\'&W\'+j+\'=\'+6($(\'#W\'+j).k())}}}5 c=2.O();c=6(c);5 d=2.P(),m=z.A({B:\'s=R\'+b+\'&E=\'+c+\'&t=\'+u+d+\'&v=\'+w,n:\'o.p?q=r\',8:"C",D:7}).1H;3(m==\'h\'){2h()}};2.1J=4(){5 b=7;$(\'.1K\').l(4(){3($(2).9(\'8\')==\'1e\'&&$(2).X(\'Y\')==h){5 a=6($(2).k());b=z.A({B:\'s=1J&E=\'+a+\'&t=\'+u+\'&v=\'+w,n:\'o.p?q=r\',8:"C",D:7}).F}});K b};2.1L=4(){5 b=7;$(\'.1K\').l(4(){3($(2).9(\'8\')==\'1e\'&&$(2).X(\'Y\')==h){5 a=6($(2).k());b=z.A({B:\'s=1L&E=\'+a+\'&t=\'+u+\'&v=\'+w,n:\'o.p?q=r\',8:"C",D:7}).F}});K b};2.O=4(){5 a=\'0\',1f=\'0\',Z=$(\'#2i\').k();$(\'.2j\').l(4(){3((($(2).X(\'Y\')==h&&$(2).9(\'8\')==\'1M\')||$(2).9(\'8\')!=\'1M\')&&$(2).9(\'10\').2k(\'1g\')==-1){a=$(2).9(\'10\');a=a.I(/N\\[/g,\'{\');a=a.I(/\\]/g,\'}\');1f=$(2).k();Z+=a+1f}});a=$(\'#1N\').9(\'10\');a=a.I(/N\\[/g,\'{\');a=a.I(/\\]/g,\'}\');Z+=a+$(\'#1N\').k();K Z};2.P=4(){5 a=\'\';$(\'2l[10="1g[]"]\').l(4(){a+=\'&\'+6(\'1g[]\')+\'=\'+$(2).k()});K a};2.1h=4(a,b,c,d,e){5 f=2m(a),1i=6(b),1j=6(c),1k=6(d),1l=6(e);3(d==\'1a\'){m=z.A({B:\'s=1h&1O=\'+f+\'&1P=\'+1i+\'&1Q=\'+1j+\'&19=\'+1k+\'&1R=\'+1l+\'&t=\'+u+\'&v=\'+w,n:\'o.p?q=r\',8:"C",D:7}).F}J 3(d==\'1b\'){m=z.A({B:\'s=1h&1O=\'+f+\'&1P=\'+1i+\'&1Q=\'+1j+\'&19=\'+1k+\'&1R=\'+1l+\'&t=\'+u+\'&v=\'+w,n:\'o.p?q=r\',8:"C",D:7}).F}}}',62,147,'||this|if|function|var|encodeURIComponent|false|type|attr||||||||true|coo_surface|t_elements_id|val|each|t_success|url|request_port|php|module|GPrint|action|mode|c_mode|XTCsid|gm_session_id|v_elements|coo_cart_wishlist_manager|jQuery|ajax|data|POST|async|products_id|json|get_type|details_cart_part|replace|else|return|cart_quantity|input|id|get_products_id|get_properties_values_ids|add_cart|add_wishlist|for|t_surfaces_id|in|v_surfaces|element_|prop|checked|t_ids|name||count_passes|count_uploads|file|upload||gm_gprint_loading|t_element_container|target|cart|wishlist|show|t_delete|checkbox|t_option_value_id|properties_values_ids|copy_file|c_old_product|c_new_product|c_target|c_source|length|hide|img|src|gm|images|gprint|gif|width|height|class|t_products_id|t_properties_values_ids|loading_|success|UPLOAD_FIELD_ID|remove|null|text_input|textarea|dropdown|responseText|update_cart|update_wishlist|wishlist_checkbox|wishlist_to_cart|radio|gm_gprint_random|elements_id|old_product|new_product|source|GMGPrintCartWishlistManager|get_customers_data|after|_|_container_|append|ajaxFileUpload|upload_field_id|secureuri|fileElementId|dataType|ERROR|html|gm_gprint_surface|alert|gm_unescape|ERROR_MESSAGE|error|fb|console|log|Upload|failed|document|submit|submit_to_wishlist|gm_products_id|gm_attr_calc_input|search|select|gm_gprint_clear_number'.split('|'),0,{}));
/**/
function update_current_surface()
{
var f_width = $('#current_surface_width').val();
var f_height = $('#current_surface_height').val();
var c_width = gm_gprint_clear_number(f_width);
var c_height = gm_gprint_clear_number(f_height);
coo_surfaces_manager.v_surfaces[coo_surfaces_manager.get_current_surfaces_id()].update_size(coo_surfaces_manager.get_current_surfaces_id(), c_width, c_height);
var t_surfaces_names = new Object();
var t_surface_language_id = '';
$('.current_surface_name').each(function()
{
t_surface_language_id = $(this).attr('id');
t_surface_language_id = t_surface_language_id.replace(/current_surface_language_/g, '');
t_surfaces_names[t_surface_language_id] = this.value;
});
coo_surfaces_manager.v_surfaces[coo_surfaces_manager.get_current_surfaces_id()].update_names(coo_surfaces_manager.get_current_surfaces_id(), t_surfaces_names);
coo_surfaces_manager.display_surface(coo_surfaces_manager.get_current_surfaces_id(), coo_gprint_configuration);
$('.gm_gprint_wait').hide();
}
function update_current_element()
{
var f_width = $('#current_element_width').val();
var f_height = $('#current_element_height').val();
var f_position_x = $('#current_element_position_x').val();
var f_position_y = $('#current_element_position_y').val();
var f_z_index = $('#current_element_z_index').val();
var f_max_characters = $('#current_element_max_characters').val();
var f_allowed_extensions = $('#current_element_allowed_extensions').val();
var f_minimum_filesize = $('#current_element_minimum_filesize').val();
var f_maximum_filesize = $('#current_element_maximum_filesize').val();
var c_width = gm_gprint_clear_number(f_width);
var c_height = gm_gprint_clear_number(f_height);
var c_position_x = gm_gprint_clear_number(f_position_x);
var c_position_y = gm_gprint_clear_number(f_position_y);
var c_z_index = gm_gprint_clear_number(f_z_index);
var c_max_characters = gm_gprint_clear_number(f_max_characters);
var t_show_name = 0;
if($('#current_element_show_name:checked').val() == '1')
{
t_show_name = 1;
}
var t_element_language_id = '';
var t_elements_names = new Object();
$('.current_element_name').each(function()
{
t_element_language_id = $(this).attr('id');
t_element_language_id = t_element_language_id.replace(/current_element_name_/g, '');
t_elements_names[t_element_language_id] = this.value;
});
var t_elements_values = new Object();
var count_values_key = 0;
var t_element_language_id_copy = '0';
$('.current_element_value').each(function()
{
t_element_language_id = $(this).attr('name');
t_element_language_id = t_element_language_id.replace(/current_element_language_/g, '');
if(t_element_language_id_copy != t_element_language_id)
{
count_values_key = 0;
}
if(typeof(t_elements_values[t_element_language_id]) != 'object')
{
t_elements_values[t_element_language_id] = new Object();
}
t_elements_values[t_element_language_id][count_values_key] = this.value;
count_values_key++;
t_element_language_id_copy = t_element_language_id;
});
coo_surfaces_manager.v_surfaces[coo_surfaces_manager.get_current_surfaces_id()].v_elements[coo_surfaces_manager.v_surfaces[coo_surfaces_manager.get_current_surfaces_id()].get_current_elements_id()].update(c_width, c_height, c_position_x, c_position_y, c_z_index, c_max_characters, t_show_name, t_elements_names, t_elements_values, f_allowed_extensions, f_minimum_filesize, f_maximum_filesize);
if($('.edit_element_image').css('display') == 'none')
{
$('.gm_gprint_wait').hide();
}
}
$(document).ready(function()
{
coo_gprint_configuration = new GMGPrintConfiguration();
coo_gprint_configuration.set_languages_id(2);
coo_cart_wishlist_manager = new GMGPrintCartWishlistManager();window.coo_cart_wishlist_manager = coo_cart_wishlist_manager; // TODO: get position from DB
var t_gprint_position = '1';
switch(t_gprint_position)
{
case '1': // append set to description
if($('#tabbed_description_part ul li a:first').length > 0)
{
var t_description_id = $('#tabbed_description_part ul li a:first').attr('href');
if(t_description_id.indexOf('#') !== 0)
{
t_description_id = t_description_id.substring(t_description_id.indexOf('#'));
}
$(t_description_id).append($('#tab_gx_customizer'));
}
break;
case '2': // set as new tab
$('#customizer_tab_container').html($('#tab_gx_customizer'));
break;
case '3': // as placed in template
default:
}
coo_surfaces_manager = new GMGPrintSurfacesManager(1, coo_gprint_configuration);coo_surfaces_manager.load_surfaces_group(1, '');$('#details_cart_part').show();
if(t_current_page == 'ProductInfo' && $('#gm_gprint').attr('id') == 'gm_gprint')
{
$('#gm_wishlist_link').click(function()
{
$('#gm_gprint input[type="text"], #gm_gprint textarea').each(function()
{
var t_value = $(this).val();
t_value = t_value.replace('€', '€');
$(this).val(t_value);
});
var t_product = '';
var t_input_name = '';
$('.gm_attr_calc_input').each(function()
{
t_input_name = $(this).attr('name');
if(t_input_name.indexOf('id[') != -1)
{
if($(this).attr('type') == 'radio' && $(this).prop('checked') == true)
{
t_product += '{' + gm_gprint_clear_number(t_input_name) + '}' + $(this).val();
}
else if($(this).attr('type') != 'radio')
{
t_product += '{' + gm_gprint_clear_number(t_input_name) + '}' + $(this).val();
}
}
});
t_product_copy = t_product;
t_input_name = $('#gm_gprint_random').attr('name');
var t_product_random = '';
t_product_random = '{' + gm_gprint_clear_number(t_input_name) + '}' + $('#gm_gprint_random').val();
var t_opened_product = '';
if((t_opened_product != '' && (t_opened_product.indexOf(t_product) == -1 || t_opened_product.indexOf(t_product_random) == -1)) || t_opened_product.substr(0, 4) == 'cart')
{
var t_random_number = Math.random() + '';
t_random_number = t_random_number.substr(2, 6);
if(t_random_number.substr(0, 1) == '0')
{
t_random_number = '1' + t_random_number.substr(1, 5);
}
$('#gm_gprint_random').attr('name', 'id[' + t_random_number + ']');
var delete_file_id = '';
var t_old_product = t_opened_product.replace(/wishlist_/g, '');
t_old_product = t_old_product.replace(/cart_/g, '');
var t_start = t_old_product.indexOf(t_product_random);
var t_end = t_start+t_product_random.length;
var t_new_product_part_1 = t_old_product.substring(0, t_start);
var t_new_product_part_2 = t_old_product.substring(t_end);
var t_new_product = t_new_product_part_1 + '{' + t_random_number + '}' + $('#gm_gprint_random').val() + t_new_product_part_2;
var t_source = 'wishlist';
if(t_opened_product.substr(0, 4) == 'cart')
{
t_source = 'cart';
}
$('.delete_file').each(function()
{
delete_file_id = $(this).attr('id');
delete_file_id = delete_file_id.replace(/delete_file_/g, '');
coo_cart_wishlist_manager.copy_file(delete_file_id, t_old_product, t_new_product, 'wishlist', t_source);
});
}
coo_cart_wishlist_manager.get_customers_data(coo_surfaces_manager, 'wishlist');
});
$('#cart_quantity').submit(function()
{
return false;
});
//$('#cart_button').unbind('click');
$('#cart_button').click(function()
{
$('#gm_gprint input[type="text"], #gm_gprint textarea').each(function()
{
var t_value = $(this).val();
t_value = t_value.replace('€', '€');
$(this).val(t_value);
});
var t_product = '';
var t_input_name = '';
$('.gm_attr_calc_input').each(function()
{
t_input_name = $(this).attr('name');
if(t_input_name.indexOf('id[') != -1)
{
if($(this).attr('type') == 'radio' && $(this).prop('checked') == true)
{
t_product += '{' + gm_gprint_clear_number(t_input_name) + '}' + $(this).val();
}
else if($(this).attr('type') != 'radio')
{
t_product += '{' + gm_gprint_clear_number(t_input_name) + '}' + $(this).val();
}
}
});
t_product_copy = t_product;
t_input_name = $('#gm_gprint_random').attr('name');
var t_product_random = '';
t_product_random = '{' + gm_gprint_clear_number(t_input_name) + '}' + $('#gm_gprint_random').val();
var t_opened_product = '';
if((t_opened_product != '' && (t_opened_product.indexOf(t_product) == -1 || t_opened_product.indexOf(t_product_random) == -1)) || t_opened_product.substr(0, 8) == 'wishlist')
{
var t_random_number = Math.random() + '';
t_random_number = t_random_number.substr(2, 6);
if(t_random_number.substr(0, 1) == '0')
{
t_random_number = '1' + t_random_number.substr(1, 5);
}
$('#gm_gprint_random').attr('name', 'id[' + t_random_number + ']');
var delete_file_id = '';
var t_old_product = t_opened_product.replace(/cart_/g, '');
t_old_product = t_old_product.replace(/wishlist_/g, '');
var t_start = t_old_product.indexOf(t_product_random);
var t_end = t_start+t_product_random.length;
var t_new_product_part_1 = t_old_product.substring(0, t_start);
var t_new_product_part_2 = t_old_product.substring(t_end);
var t_new_product = t_new_product_part_1 + '{' + t_random_number + '}' + $('#gm_gprint_random').val() + t_new_product_part_2;
var t_source = 'cart';
if(t_opened_product.substr(0, 8) == 'wishlist')
{
t_source = 'wishlist';
}
$('.delete_file').each(function()
{
delete_file_id = $(this).attr('id');
delete_file_id = delete_file_id.replace(/delete_file_/g, '');
coo_cart_wishlist_manager.copy_file(delete_file_id, t_old_product, t_new_product, 'cart', t_source);
});
}
if(typeof(coo_dropdowns_listener) != 'undefined')
{
coo_dropdowns_listener.check_combi_status();
}
coo_gm_qty_ckeck = new GMOrderQuantityChecker();
var t_gm_qty_check = coo_gm_qty_ckeck.check();
if(t_gm_qty_check)
{
coo_cart_wishlist_manager.get_customers_data(coo_surfaces_manager, 'cart');
}
return false;
});
}
else if(t_current_page == 'Cart')
{
$('#cart_quantity').submit(function(){
return coo_cart_wishlist_manager.update_cart();
});
}
else if(t_current_page == 'Wishlist' && $('#gm_update_wishlist').attr('id') == 'gm_update_wishlist' && $('#gm_wishlist_to_cart').attr('id') == 'gm_wishlist_to_cart')
{
var t_wishlist_delete_href = $('#gm_update_wishlist').attr('href');
t_wishlist_delete_href = t_wishlist_delete_href.replace(/:/g, ':coo_cart_wishlist_manager.update_wishlist();');
$('#gm_update_wishlist').attr('href', t_wishlist_delete_href);
var t_wishlist_add_href = $('#gm_wishlist_to_cart').attr('href');
t_wishlist_add_href = t_wishlist_add_href.replace(/:/g, ':coo_cart_wishlist_manager.wishlist_to_cart();');
$('#gm_wishlist_to_cart').attr('href', t_wishlist_add_href);
}
if(typeof(coo_qty_input_resizer) == 'object')
{
coo_qty_input_resizer.init_binds();
}
$('.gm_gprint_surface').on('click', '*', function () {
$(this).parent().find('*').removeClass('selected-customizer-element');
$('#' + $(this).prop('id').replace('copy_', '')).addClass('selected-customizer-element');
});
});/* gm_gprint.js */
/**/
$(document).ready(function(){var t_first=false,t_set_id=0;$('.sets_overview').removeClass('active');$('.sets_overview').each(function(){$('#gm_gprint_selected_options').show();if(t_first==false){t_first=true;$(this).addClass('active');t_set_id=$(this).attr('id');t_set_id=t_set_id.replace(/set_/g,'');$('.set_id').val(t_set_id)}});$('.sets_overview').click(function(){$('.sets_overview').removeClass('active');$(this).addClass('active');t_set_id=$(this).attr('id');t_set_id=t_set_id.replace(/set_/g,'');$('.set_id').val(t_set_id)});$('#delete_set').click(function(){var t_delete=confirm('Möchten Sie das Set "'+$('#set_name_'+$('#delete_set_id').val()).html()+'" wirklich löschen?');if(t_delete){coo_surfaces_groups_manager=new GMGPrintSurfacesGroupsManager();coo_surfaces_groups_manager.delete_surfaces_group($('#delete_set_id').val());$('#set_'+$('#delete_set_id').val()).remove();t_first=false;$('.sets_overview').removeClass('active');$('.sets_overview').each(function(){if(t_first==false){t_first=true;$(this).css({'background-color':'#E8E8E8'});$(this).addClass('active');t_set_id=$(this).attr('id');t_set_id=t_set_id.replace(/set_/g,'');$('.set_id').val(t_set_id)}});if(t_first==false){$('#gm_gprint_selected_options').hide()}}});$('#gm_gprint_check_all').click(function(){if($(this).prop('checked')==true){$('.gm_gprint_checkbox').prop('checked',true)}else{$('.gm_gprint_checkbox').prop('checked',false)}})});
/**/
});