serialnum; if (!isset($_GET['news_date'])) {$news_date="";} if (!isset($_GET['ID'])) {$ID="";} ?>
"; echo ""; echo "\n"; if ($record->max_serialnum == $v_person_m_serialnum) { $v_title_image = get_image($record->max_serialnum); echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; } if ($ncount != $v_record_rows) { echo "\n"; echo ""; echo "\n"; } echo "\n
"; echo "\n
"; echo "\n$record->date"; echo "\n
"; echo ""; echo "\n
"; echo ""; echo $v_title_image["title"]; echo ""; echo "\n
"; echo ""; echo "
"; ++$ncount; }//end while }//end for ?>

 

$value) { ?>
ĦE
 
title; $v_title_image["image"] = $record_img->image; return $v_title_image; } function print_about_news($v_person_m_serialnum) { global $dbname,$id_link; $sel_person_d = "select * from Person_D "; $sel_person_d.= "where serialnum = $v_person_m_serialnum "; $sel_person_d.= "order by level desc,ID desc "; $result_d = mysql_db_query($dbname,$sel_person_d,$id_link); while ($record_d = mysql_fetch_object($result_d)) { //$sel_cap = "select Title,Abstract from cap "; $sel_cap = "select Title from cap "; $sel_cap.= "where ID = $record_d->ID "; $result_cap = mysql_db_query($dbname,$sel_cap,$id_link); $record_cap = mysql_fetch_object($result_cap); $v_key = $record_d->ID.";".$record_d->date; $v_about_news[$v_key]=$record_cap->Title; unset($v_key); } return $v_about_news; } function print_abstract($abstract) { $v_abstrict = preg_replace("/\n|\r|\r\n|\n\r/","",$abstract); return $v_abstrict; } function print_news_output($v_person_m_serialnum,$ID=0,$news_date) { global $dbname,$id_link; $sel_person_d = "select * from Person_D "; $sel_person_d.= "where serialnum = $v_person_m_serialnum "; if ($ID) { $sel_person_d.= "and ID = $ID "; $sel_person_d.= "and date = '$news_date' "; }else { $sel_person_d.= "order by level desc "; $sel_person_d.= "limit 0,1"; } $result_d = mysql_db_query($dbname,$sel_person_d,$id_link); echo "\n"; while ($record_d = mysql_fetch_object($result_d)) { //$sel_cap = "select Title,Abstract,Content from cap "; $sel_cap = "select Title,Content from cap "; $sel_cap.= "where ID = $record_d->ID "; $result_cap = mysql_db_query($dbname,$sel_cap,$id_link); $record_cap = mysql_fetch_object($result_cap); echo "\n"; echo "\n"; echo "\n"; unset($sel_Title); unset($result_Title); unset($record_Title); } echo "\n
"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n
"; echo "\n"; echo ""; echo getgifoutline($record_cap->Title); echo ""; echo "\n"; echo "\n
 
"; echo "\n"; //echo print_abstract($record_cap->Abstract); //echo "\n
";
                         print_content($record_cap->Content);
                         //echo "\n
"; echo "\n
"; echo "\n
"; echo "\n
"; } function print_content($content) { if (!isset($tempstring) || empty($tempstring)) { $tempstring = ""; $newparg = ""; } $pattnewline = "\n|\r|\r\n|\n\r"; $pattspace = "^\s+|\s+$|^\xA1\X40+|\xA1\x40+$"; $tempcontent1 = split("/$pattnewline/",$content); $tempcontent = preg_replace("/$pattspace/","",$tempcontent1); $v_num_rows = count($tempcontent)-2; foreach ($tempcontent as $key=>$value) { if ($key == $v_num_rows) { break; } if ($key != 0 && $key != 1 && $key !=2) { $nextkey = $key+1; if (((strlen(str_replace("\n|\r|\r\n|\n\r","",$value))== 0 && strlen($tempcontent[$nextkey]) > 0)) || (strlen(str_replace("\n|\r|\r\n|\n\r","",$value))== 0 && preg_match("/\s+|\xA1\x40+/",$tempcontent[$nextkey]))) { $tempstring.=$value; $parsestring = getgifoutline($tempstring); echo "

  $parsestring\n"; $newparg = "y"; $tempstring = ""; }else { if ($newparg == "y" && $key > 0) { $tempstring.=$value; $newparg = "n"; }elseif ($key == 0) { $tempstring.=$value; $newparg = "n"; }else { $tempstring.=$value; } } } } echo "

\n"; } ?>