session_start(); function p_font($details,$size,$face) { $def01 = "$details"; return $def01; } if($_GET['validate_code'] == "KC06121916082150KC06121916083486") { include('txt/topbarout.txt'); include('txt/leftbarout.txt'); include('txt/centerbegin.txt'); } else { include('txt/topbar.txt'); include('txt/leftbar.txt'); include('txt/centerbegin.txt'); } echo "
";
$daycd = $HTTP_GET_VARS["dycd"];
$briefcd = $HTTP_GET_VARS["brcd"];
if($daycd){
include("/home/finpres/options/klse/dbconnb.inc");
$result = mysql_query ("SELECT * FROM briefday WHERE longdate = '$daycd' ORDER BY briefid DESC");
if ($row = mysql_fetch_array($result)) {
do {
if(!$dateprinted) {
echo ""; echo $row[2]; // nicedate echo ""; $dateprinted = 1; } $cntrpl1 = trim($row[4]); $checkanalysis = trim($row[13]); if ( $checkanalysis == "048" or $checkanalysis == "009" ) { if ( $checkanalysis == "048" ) { $hdline = "$cntrpl1(Short Analysis)"; } else { $hdline = "$cntrpl1(News Digest)"; } } else { $hdline = "$cntrpl1"; } $brfs = "$row[5]"; //nicedate echo ""; echo " $hdline"; // headline echo ""; echo "$brfs"; // briefs echo " "; $stockipo = $row["stock1"]; if($stockipo != "0000"){ echo " (Company Profile) "; } if($user_name){ if($stockipo != "0000"){ echo "Add To Watchlist"; }// stockipo }//$user_name echo " "; } while($row = mysql_fetch_array($result)); } echo " "; } // end if(dycd) if($briefcd){ //$KLSEcode = $HTTP_GET_VARS["klcd"]; include("/home/finpres/options/klse/dbconnb.inc"); $result = mysql_query ("SELECT * FROM briefday WHERE briefid = '$briefcd'"); if ($row = mysql_fetch_array($result)) { do { //echo " "; echo "$row[2]"; // nicedate echo " "; echo " $row[4]"; // headline echo "$row[5]"; // briefs echo ""; $stockipo = $row[3]; // stock1 if($stockipo != "0000"){ echo " Company Profile "; } if($user_name){ if($stockipo != "0000"){ echo "Add To Watchlist"; }// stockipo }//$user_name # echo "Add To Watchlist "; } while($row = mysql_fetch_array($result)); } } // end if(briefcd) echo " |