//this page displays the full story of the report
include "../rcontrol/config.php";
include "$SERVERPATH/rcommon/functions.php";
include "$SERVERPATH/rcommon/stripallslashes.php";
include "$SERVERPATH/rcommon/database.php";
include_once "$SERVERPATH/mis/includes/functions.php";
//..................Member Status........................................
//checking if he has logged in if yes then take him to the respective page
$sql= "SELECT memberlogin, memberexpdate FROM logger WHERE abc='$abc'";
$result = mysql_db_query($DATABASE,$sql);
if(mysql_error()) error("Unexpected Error");
$count = mysql_num_rows($result);
if ($count!=0)
{
$login=stripslashes(mysql_result($result,0,0));
//$expdate=mysqltime_to_mktime(stripslashes(mysql_result($result,0,1)));
$expdate=(stripslashes(mysql_result($result,0,1)));
$currenttime=time();
$cdate=substr(mktime_to_mysqltime(time()),0,8);
if($expdate < $cdate)
{
header("location:../meregistration/index.php?whichpage=firstpage&gotopage=secondpage&accessedpdservice=n&old=y&var=1&oldmemberlogin=narmada&contactperson=&c_try=India&id=5032&upgrade=y");
exit;
}
trapuser($login,'Industry Reports');
$sql="select plan, id, country from member where login='$login'";
$result=mysql_db_query($DATABASE,$sql);
$planm=mysql_result($result,0,0);
$mid=mysql_result($result,0,1);
$mctry=mysql_result($result,0,2);
if(($planm == '4~6')||($planm == '4~12')||($planm == '4~07')||($planm == '3~6')||($planm == '3~12')||($planm == '3~07')||($planm == '14~6')||($planm == '14~12')||($planm =='14~Grace Period'))
{
if($types == "Y")
{
$types = "";
}
if($types == "F")
{
$types = "";
}
else if($types == "T")
{
header("location:../ir/ti_main.php?types=T&hits_per_page=$hits_per_page&from=$from&to=$to&nextpg_from=$nextpg_from&nextpg_to=$nextpg_to&sortby=$sortby&sortorder=$sortorder");
$types = "";
exit;
}
}
else
{
if($types == "Y")
{
header("location:../meregistration/index.php?whichpage=firstpage&gotopage=secondpage&accessedpdservice=n&old=y&var=1&oldmemberlogin=narmada&contactperson=&c_try=India&id=5032&upgrade=y");
$types = "";
exit;
}
else if($types == "F")
{
$types = "";
}
else if($types == "T")
{
header("location:../ir/ti_main.php?types=T&hits_per_page=$hits_per_page&from=$from&to=$to&nextpg_from=$nextpg_from&nextpg_to=$nextpg_to&sortby=$sortby&sortorder=$sortorder");
$types = "";
exit;
}
}
}
else
{
//echo $_SERVER['REMOTE_ADDR'];
If
(
($_SERVER['REMOTE_ADDR']=="66.249.64.0" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.1" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.2" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.3" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.4" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.5" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.6" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.7" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.8" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.9" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.10" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.11" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.12" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.13" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.14" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.15" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.16" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.17" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.18" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.19" ||
$_SERVER['REMOTE_ADDR']=="66.249.64.20")
and
($_SERVER['HTTP_USER_AGENT'] == "Googlebot")
)
{
}
else
{
header("location:../mis/ir/index.php");
exit;
}
}
//..................Member Status........................................
$query="Select source, header, body, date_ir, id from ynfx_mis_ir WHERE id=$id";
$result=mysql_db_query($DATABASE,$query);
if(mysql_error()) error("Unexpected Error");
if(mysql_num_rows($result))
{
while($row=mysql_fetch_row($result))
{
$source_t=unserialize($row[0]);
$header=stripslashes($row[1]);
$body=stripslashes($row[2]);
$date_ir=date("d M Y",$row[3]);
$id_i=stripslashes($row[4]);
$body_t=split("\^",$body);
// For meta tags
$header_disp = "YnFx : Textile Industry Report - ".stripslashes($row[1]);
$body_disp = substr($body_t[0],0,250);
$body_t[1]=ereg_replace("List of contents","List of contents ",$body_t[1]);
$body_t[1]=ereg_replace("List of tables","List of tables ",$body_t[1]);
$body_t[1]=ereg_replace("List of figures","List of figures ",$body_t[1]);
$price = $body_t[2];
//$body_f=$body_t[0]." "."
";
$body_h="";
$body_h.="";
$body_h.="";
$body_h.="";
$body_h.="";
$body_h.="$body_t[0] ";
$body_h.=" ";
$body_h.="
";
$body_h.=" ";
$body_h.=" ";
$body_h.="
";
$body_f="";
$body_f.="";
$body_f.="";
$body_f.="";
$body_f.="";
$body_f.="$body_t[1] ";
$body_f.=" ";
$body_f.="
";
$body_f.=" ";
$body_f.=" ";
$body_f.="
";
$price = str_replace("US $ ","",$body_t[1]);
$price = str_replace("","",$price);
$price = str_replace("","",$price);
if($types == "T" || $types == "")
{
$body_p="";
$body_p.="";
$body_p.="";
$body_p.="";
$body_p.="";
$body_p.=" $body_t[2] ";
$body_p.=" ";
$body_p.="
";
$body_p.=" ";
$body_p.=" ";
$body_p.="
";
}
$s="";
$c=0;
for($i=0;$i";
if($types == "T" || $types == "")
$rpt="Textiles Intelligence";
if($types == "F")
$rpt="Free";
if($types == "Y")
$rpt="Yarns and Fibers";
$table.="$header ".$date_ir.",".$rpt." ";
$table.="";
$table.="";
$table.="Product Overview ";
$table.=" ";
$table.="";
$table.="";
$table.="$body_h";
$table.=" ";
$table.=" ";
//================= Commented By Tejas ================
//$table.="";
// $table.=" ";
//$table.=" ";
//================= Commented By Tejas ================
//$table.="";
// $table.="Table of Content ";
//$table.=" ";
$table.="";
$table.="";
$table.="$body_f";
$table.=" ";
$table.=" ";
$table.="";
$table.=" ";
$table.=" ";
if($types == "T")
{
$table.="";
$table.="Buy Now ";
$table.=" ";
}
$table.="";
$table.="";
$table.="$body_p";
$table.=" ";
$table.=" ";
//}
}//end of while
}//end of if
include "$SERVERPATH/meregistration/includes/includefornonregfiles.php";
$colorofpopupbg="#D7F4FF";
?>
echo $header_disp; ?>
include "$SERVERPATH/rssi/head.php" ?>
include "../rssi/topbanner.php" ;?>
// the first td begins here
?>
// the first td end here and the second td which is the left banner begins here
// NESTED LEFT CONTENT BEGINS HERE
// the left banner contents begins here
include "$SERVERPATH/$contactus_dir/leftbanner_main_regpg.php" ;
// the left banner contents ends here
// NESTED LEFT CONTENT ENDS HERE-->
?>
include "$SERVERPATH/rssi/bottombanner.php" ?>