Market Outlook
,
#error_reporting(E_ALL);
#ini_set("display_errors", 1);
require_once( $_SERVER['DOCUMENT_ROOT']."/phplib/alteon_mc.php");
require_once( $_SERVER['DOCUMENT_ROOT']."/plus/login/authenticate.php");
require_once( $_SERVER['DOCUMENT_ROOT']."/plus/includefiles/common_function.php");
/*$user_pack=$_COOKIE['USRPACK'];
if($user_pack=='MPIV36' || $user_pack=='MPIV12' || $user_pack=='MPIV06' || $user_pack=='MPIV03' || $user_pack=='MPIV01')
{
header("Location: https://".$_SERVER['SERVER_NAME']."/plus/multibagger/multibagger_all.php");
exit;
}*/
require_once( $_SERVER['DOCUMENT_ROOT']."/plus/functions.php");
require_once( $_SERVER['DOCUMENT_ROOT']."/phplib/db_mysql_mcplus.php");
$q0=new DB_Sql();
if(isset($_GET["autono"])){$autono = check_input($_GET["autono"],"numeric");}
$sql_1="select exp_name, exp_des, exp_img_path, date_format(call_date,'%D-%M-%Y') call_date, summary, mainstory, call_date as ent_date from pyt_outlook where autono=$autono";
$q0->query($sql_1);
while($q0->next_record())
{
$exp_name = $q0->f('exp_name');
$exp_des = $q0->f('exp_des');
$exp_img_path = $q0->f('exp_img_path');
$call_date = $q0->f('call_date');
$ent_date = $q0->f('ent_date');
$summary=$q0->f('summary');
$mainstory=$q0->f('mainstory');
$msg_dat = substr($ent_date,0,10);
$msg_yr = substr($ent_date,0,4);
$curr_dat = date("Y-m-d");
$curr_yr = date("Y");
if($curr_dat != $msg_dat)
{
$date_all = explode(" ",$ent_date);
$time_xpld = explode(":",$date_all[1]);
$date_xpld = explode("-",$date_all[0]);
if($curr_yr==$msg_yr)
{
$filing_dt = date("g.i A M jS", mktime($time_xpld[0], $time_xpld[1], 0, $date_xpld[1], $date_xpld[2], $date_xpld[0]));
}
else
{
$filing_dt = date("g.i A M jS Y", mktime($time_xpld[0], $time_xpld[1], 0, $date_xpld[1], $date_xpld[2], $date_xpld[0]));
}
}
else
{
$filing_dt ="about ". dateTimeDiff($ent_date)." ago";
}
}
$pdflk="";
$sql_pdf="select * from upload_pdfname where story_no='$autono' order by ent_date desc";
$q0->query($sql_pdf);
if($q0->next_record())
{
$pdf_name=$q0->f('pdf_name');
$pdf_lk="https://poweryourtrade.moneycontrol.com/plus/upload_pdf_file/$pdf_name";
$pdflk="To read the full report click on the attachment......
Attachments : $pdf_name";
}
?>
,