/*
** GENERATED WITH: COBRA
** COBRA VERSION:
** GENERATED AT: 05 Feb 2003 14:03
** COBRA USER: mark@antenna.nl
*/
require './detail_proj_vars.phtml';
if (!$lang) $lang = "nl";
if (!$lang_help) $lang_help = "nl";
if (!$head_text) $head_text = ""; //filename for text
if (!$head_font) $head_font = ""; //font specs
if (!$head_link) $head_link = ""; //lable for url
if (!$head_url) $head_url = ""; //url for lable
if (!$head_img) $head_img = ""; //image
if (!$head_att) $head_att = ""; //image specs
if (!$foot_text) $foot_text = ""; //filename for text
if (!$foot_font) $foot_font = ""; //font specs
if (!$foot_link) $foot_link = ""; //lable for url
if (!$foot_url) $foot_url = ""; //url for lable
if (!$foot_img) $foot_img = ""; //image
if (!$foot_att) $foot_att = ""; //image specs
$def_header1 = "./header.txt";
$def_header2 = "./header_".$format."_".$application.".html";
$def_footer1 = "./footer.txt";
$def_footer2 = "./footer_".$format."_".$application.".html";
$font_detail_start1 = "";
$font_detail_end1 = "";
$font_detail_start2 = "";
$font_detail_end2 = "";
if(!$username) $username = $def_username;
if(!$password) $password = $def_password;
if(!$modus) $modus = "form";
if(!$state) $state = 1;
if(!$detail_mode) $detail_mode = "table";
if(file_exists('/var/spool/www/user/emancipatie/local_config.php')) {
include ('/var/spool/www/user/emancipatie/local_config.php');
}
require './functions.phtml';
if(file_exists('./post_functions.php')) {
include ('./post_functions.php');
}
//-- include global/local header
if (file_exists($def_header2)) {
$header_filename = $def_header2;
} else {
$header_filename = $def_header1;
}
if ($bodyonly != "Y" && $print_format != "Y") {
include $header_filename;
}
if ($print_format == "Y") {
include './print_header.txt';
}
// display image:
if (substr($head_img,0,7) != "http://") {
if (file_exists($head_img)) {
$src = "";
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 "