$arr_img_data) { $str_preload .= "'img/menu/".$str_image."', "; } $str_preload = substr($str_preload, 0, -2); echo htm_javascript_start(); ?> function change_images() { if(document.images && (bln_preload_flag == true)) { for(var int_i = 0; int_i < change_images.arguments.length; int_i += 2) { document[change_images.arguments[int_i]].src = change_images.arguments[int_i+1]; } } return true; } var bln_preload_flag = false; function preload_images() { var obj_doc = document; if(obj_doc.images) { if(!obj_doc.arr_preload) { obj_doc.arr_preload = new Array(); } var int_i; var int_j = obj_doc.arr_preload.length; var arr_images = preload_images.arguments; for(int_i = 0; int_i < arr_images.length; int_i++) { if(arr_images[int_i].indexOf("#") != 0) { obj_doc.arr_preload[int_j] = new Image; obj_doc.arr_preload[int_j++].src = arr_images[int_i]; } } } bln_preload_flag = true; } preload_images(); $arr_sql_content['cb_title'], 'teaser' => $arr_sql_content['cb_teaser'], 'image' => $arr_sql_content['cb_image'], 'text' => $arr_sql_content['cb_text']); } if(is_file(DIR_BASE.DIR_HEAD_IMAGES.$arr_sql_page['pa_header_image'])) { $str_header_image = ''; } else { $str_header_image = ''; } $str_include_1 = (STR_INCLUDE_1 != '') ? file_get_contents(STR_INCLUDE_1) : ''; //include extra 1 $str_include_2 = (STR_INCLUDE_2 != '') ? file_get_contents(STR_INCLUDE_2) : ''; //include extra 2 //show page header $int_page_id = (file_exists(DIR_BASE.'img/content/Image/templates/'.$_GET['id'].'.jpg')) ? $_GET['id'] : 1; $str_header = stripslashes($arr_sql_page['tm_header']); $str_header = str_replace('%MENU%', $arr_menus['main'], $str_header); $str_header = str_replace('%MENU2%', $arr_menus['second'], $str_header); $str_header = str_replace('%SUBMENU%', $arr_menus['sub'], $str_header); $str_header = str_replace('%SUBSUBMENU%', $arr_menus['sub_sub'], $str_header); $str_header = str_replace('%PAGE%', $int_page_id, $str_header); $str_header = str_replace('%HEADIMAGE%', $str_header_image, $str_header); $str_header = str_replace('%INCLUDE_1%', $str_include_1, $str_header); $str_header = str_replace('%INCLUDE_2%', $str_include_2, $str_header); echo $str_header; echo htm_table_start(0, 0, 0, 0, null, '100%'); //determine nr of columns for current page $arr_columns = explode(';', stripslashes($arr_sql_page['co_columns'])); $int_columns = count($arr_columns); $int_column_space = stripslashes($arr_sql_page['co_space']); if($int_columns > 0) { ?> 0 && $int_c > 0) { $str_padding = ' style="padding-left: '.$int_column_space.'px;"'; } ?> 1) { ?> Toevoegen

'."\n"; //start new row } if($arr_data['tag'] == 'row' && $arr_data['type'] == 'close') { if(strlen($str_row) > 6) { $str_row .= ''."\n"; if($bln_display_record == true && $int_displayed < $arr_dividers[$int_c]) { echo $str_row; //output current row $int_row++; $int_displayed++; } } $str_row = ''; } if($arr_data['tag'] == 'data' && $arr_data['type'] == 'open') { $str_row .= ' 1) { $str_row .= ' colspan="'.$arr_data['attributes']['col'].'"'; } if($arr_data['attributes']['row'] > 1) { $str_row .= ' rowspan="'.$arr_data['attributes']['row'].'"'; } $str_row .= '>'; } if($arr_data['tag'] == 'data' && $arr_data['type'] == 'close') { $str_row .= ''."\n"; } if($arr_data['tag'] == 'include' && $arr_data['type'] == 'complete') { $bln_display_record = ($arr_data['attributes']['index'] == $int_record_to_show) ? true : false; define('BLN_INCLUDE', 'true'); //indicates that following script is included $str_include_script = trim($arr_data['value']); if(false === strpos($str_include_script, 'http://')) $str_include_script = URL_BASE.$str_include_script; $str_include_script .= (false === strpos($str_include_script, '?')) ? '?' : '&'; $str_include_script .= 'include'; foreach($_GET as $str_get => $str_value) { $str_include_script .= '&'.$str_get.'='.$str_value; } $str_include = file_get_contents($str_include_script); //include script named in XML if($arr_data['attributes']['index'] == $int_record_to_show) { ?>