"; echo $src; } } else { $src = ""; echo $src; } // display subheader text: if ($head_font) echo ""; if (file_exists($head_text)) { $ifp = fopen($head_text,"r"); $contents = fread ($ifp,filesize($head_text)); //----- vind head_lnk in contents en breng ".$head_link."",$contents); } if ($head_font) echo ""; echo "
"; if($modus == "loginbox" && $state == -1) { echo loginbox($username,$password ); } if($modus != "loginbox" && $state == 1) { if( $know_id && $state == 1 && $action != "process") { cas_mysql(); $select_where = " WHERE ".$sql_condition." know_id = '".$know_id."' "; $query = "SELECT application, date_input, date_edit, date_reserve1, date_reserve2, score, publish, title, author, annotation, url_link, url_label, intro, body, categories, keywords, cost, comment, url_image, url_email, text_reserve1, text_reserve2, groups, pub_niv, owner, text00, text01, text02, text03, text04, text05, text15, text16, text17, text18, text19, text20 FROM knowledge ".$select_where." limit 1"; $result = mysql_db_query($dbname,$query); $max = mysql_num_rows($result); if($max >= 1) { while($row = mysql_fetch_row($result)) { $application = trim(stripslashes($row[0])); $date_input = trim(stripslashes($row[1])); $date_input = str_replace(" ","",$date_input); $date_input = str_replace(":","",$date_input); $date_input = str_replace("-","",$date_input); $Y_date_input = substr($date_input,0,4); $m_date_input = substr($date_input,4,2); $d_date_input = substr($date_input,6,2); $H_date_input = substr($date_input,8,2); $i_date_input = substr($date_input,10,2); $date_input += 0; $date_edit = trim(stripslashes($row[2])); $date_edit = str_replace(" ","",$date_edit); $date_edit = str_replace(":","",$date_edit); $date_edit = str_replace("-","",$date_edit); $Y_date_edit = substr($date_edit,0,4); $m_date_edit = substr($date_edit,4,2); $d_date_edit = substr($date_edit,6,2); $H_date_edit = substr($date_edit,8,2); $i_date_edit = substr($date_edit,10,2); $date_edit += 0; $date_reserve1 = trim(stripslashes($row[3])); $date_reserve1 = str_replace(" ","",$date_reserve1); $date_reserve1 = str_replace(":","",$date_reserve1); $date_reserve1 = str_replace("-","",$date_reserve1); $Y_date_reserve1 = substr($date_reserve1,0,4); $m_date_reserve1 = substr($date_reserve1,4,2); $d_date_reserve1 = substr($date_reserve1,6,2); $H_date_reserve1 = substr($date_reserve1,8,2); $i_date_reserve1 = substr($date_reserve1,10,2); $date_reserve1 += 0; $date_reserve2 = trim(stripslashes($row[4])); $date_reserve2 = str_replace(" ","",$date_reserve2); $date_reserve2 = str_replace(":","",$date_reserve2); $date_reserve2 = str_replace("-","",$date_reserve2); $Y_date_reserve2 = substr($date_reserve2,0,4); $m_date_reserve2 = substr($date_reserve2,4,2); $d_date_reserve2 = substr($date_reserve2,6,2); $H_date_reserve2 = substr($date_reserve2,8,2); $i_date_reserve2 = substr($date_reserve2,10,2); $date_reserve2 += 0; $score = trim(stripslashes($row[5])); $publish = trim(stripslashes($row[6])); $title = trim(stripslashes($row[7])); $author = trim(stripslashes($row[8])); $annotation = trim(stripslashes($row[9])); $url_link = trim(stripslashes($row[10])); $url_label = trim(stripslashes($row[11])); $intro = trim(stripslashes($row[12])); $body = trim(stripslashes($row[13])); $categories = trim(stripslashes($row[14])); $keywords = trim(stripslashes($row[15])); $cost = trim(stripslashes($row[16])); $comment = trim(stripslashes($row[17])); $url_image = trim(stripslashes($row[18])); $url_email = trim(stripslashes($row[19])); $text_reserve1 = trim(stripslashes($row[20])); $text_reserve2 = trim(stripslashes($row[21])); $groups = trim(stripslashes($row[22])); $pub_niv = trim(stripslashes($row[23])); $owner = trim(stripslashes($row[24])); $text00 = trim(stripslashes($row[25])); $text01 = trim(stripslashes($row[26])); $text02 = trim(stripslashes($row[27])); $text03 = trim(stripslashes($row[28])); $text04 = trim(stripslashes($row[29])); $text05 = trim(stripslashes($row[30])); $text15 = trim(stripslashes($row[31])); $text16 = trim(stripslashes($row[32])); $text17 = trim(stripslashes($row[33])); $text18 = trim(stripslashes($row[34])); $text19 = trim(stripslashes($row[35])); $text20 = trim(stripslashes($row[36])); } } ; } if($max == 1) { echo ""; echo ""; require 'preview_proj.phtml'; echo "
"; ; } } // display subfooter text: if ($foot_font) echo ""; if (file_exists($foot_text)) { $ifp = fopen($foot_text,"r"); $contents = fread ($ifp,filesize($foot_text)); //----- vind foot_lnk in contents en breng ".$foot_link."",$contents); } if ($foot_font) echo ""; echo "
"; //-- include global/local footer if (file_exists($def_footer2)) { $footer_filename = $def_footer2; } else { $footer_filename = $def_footer1; } if ($bodyonly != "Y" && $print_format != "Y") { include $footer_filename; } if ($print_format == "Y") { include './print_footer.txt'; } ?>