DbConnect();
$url_arr['mid'] = $page_var['module_id'];
$input = $_GET + $_POST;
include_once ($config['user_path'].'content_top.php');
if(($input['type'] == 'free' || $input['type'] == 'request' || $input['type'] == 'paid' || $input['type'] == 'confirm') && ($input['pro_id']!=''))
{
$page_url = get_astro_details();
$page_var['title'] = $page_url['Product_Name'];
$page_var['meta_key'] = $page_url['Short_Description'];
$page_var['meta_description'] = $page_url['Short_Description'];
}
else
{
$page_var = array ('title' => 'Astrology - vikatan.com', 'meta_key' => 'tamil news, tamil nadu news, tamilnadu politics online tamil news, tn politics, world news, sri lanka, Indian politics, India, Sports, Online shopping, sri lanka, malar, diwalimalar, ஆனந்த விகடன், ஜூனியர் விகடன், அவள் விகடன், சுட்டி விகடன், சக்தி விகடன், நாணயம் விகடன், மோட்டார் விகடன், பசுமை விகடன், சினிமா விகடன், சினிமா, ஜோதிடம், ஆன்மிகம், சமையல் கலை, கோலிவுட் செய்திகள், சினிமா போட்டோ கேலரி, இலக்கியம், ஆன்லைன் ஷாப்பிங், தீபாவளி மலர், ஸ்பெஷல் மலர் , வார ராசிப் பலன்கள், குரு பெயர்ச்சி , மாத பலன்', 'meta_description' => 'no. 1 tamil magazine','module_name' => 'vikatn home', 'module_id' => '12');
}
$pro_language['EN'] = array('Actual_Price'=> 'Product Rate Rs. ', 'offer'=> 'Offer Price Rs. ', 'noq'=>'Maximum No Of Questions Allowed ', 'note'=> 'Note: For all your answers we need your NAME, DATA OF BIRTH, PLACE OF BIRTH, AND TIME OF BRITH','name'=>'Name','dob'=>'Date Of Birth','tob'=>'Time Of Birth','gender'=>'Gender','cityob'=>'City Of Birth','country'=>'Country Of Birth','main_town'=>'Main Town [Near To Your Place Of Birth]','mailid'=>'Email Id','question'=>'Question ','terms'=>'Please provide correct details in this page. If there is a mistake in the details provided, it may not be possible to recast your horoscope and predictions.');
$pro_language['TM'] = array('Actual_Price'=> 'சேவைக் கட்டணம்: ரூ. ', 'offer'=> 'சலுகை கட்டணம்:ரூ.', 'noq'=>'உங்களுக்கு அனுமதிக்கப்பட்ட கேள்விகள் :', 'note'=> 'குறிப்பு: நீங்கள் செலுத்தும் பணம் வங்கியில் ஆதரைஸ் ஆன நாளில் இருந்து ஏழு நாள்களுக்குள் உங்களுக்கு பலன்கள் கிடைக்கும். பலன்கள் உங்களது இமெயில் முகவரிக்கு வேர்ட் பைலாக அனுப்பி வைக்கப்படும்.','name'=>'உங்களது பெயர்','dob'=>'பிறந்த தேதி','tob'=>'பிறந்த நேரம்','gender'=>'ஆண் / பெண்','cityob'=>'பிறந்த ஊர்','country'=>'பிறந்த நாடு','main_town'=>'நீங்கள் பிறந்த ஊர் பெரிய நகர் இல்லையெனில்
அதற்கு அருகில் உள்ள பெரிய நகரை குறிப்பிடவும் ','mailid'=>'மின்னஞ்சல் முகவரி ','question'=>'கேள்வி','terms'=>'நீங்கள் தரும் விவரங்கள் சரியானதாக இருக்க வேண்டும். அளித்த தகவலில் பிழைகள் இருப்பின் மீண்டும் பலன்கள் கணித்து அனுப்ப இயலாது. அதனால் சரியான விவரங்களை மட்டுமே தரவும்.');
switch($input['type']){
case 'paid':{
$page_content = paid_product();
break;
}
case 'free':{
$page_content = free_product();
break;
}
case 'request':{
CheckPageAccess('login_needed');//
$page_content = show_request_details();
break;
}
case 'daily':{
$page_content = $config['user_path'].'astrology/'.strtolower(date('dMY').'.html');
break;
}
case 'confirm':{
$page_content = show_details_to_proceed();
break;
}
default:{
$page_content = 'home';//astrologer_content();
break;
}
}
include_once($config['user_path'].'templates/layout/header.php');
//include_once('templates/layout/top_slider.php');
?>
';
}
return $content;
}
function get_assigned_products($astro_id){
global $sql_db_array, $DbCon, $input, $config;
$result = $DbCon->Select($sql_db_array['A_product']." as pro, ".$sql_db_array['A_mapping']." as map", array('pro.Product_Id', 'pro.Product_Name'), " where map.status=1 and pro.status=1 and pro.Product_Id=map.Product_Id and map.Astrologer_Id = ".$astro_id.' order by pro.Product_Id');
//echo $DbCon->Lastquery();
if($product_count = mysql_num_rows($result)){
$content = '
கீழே நீங்கள் பதிவு செய்துள்ள விவரத்தின் அடிப்படையில் ஜாதகம் கணிக்கப்படும். உங்கள் தகவல்களில் ஏதேனும்
தவறு இருந்தால், மீண்டும் கணிக்கப்பட மாட்டாது. எனவே, தயவுசெய்து நீங்கள் தந்துள்ள விவரத்தை மீண்டும் ஒருமுறை சரிபார்க்கவும்.
';
return $content;
}
function show_menus(){
global $sql_db_array, $DbCon, $config, $input;
$result = $DbCon->Select($sql_db_array['A_astrologer']." as ast, ".$sql_db_array['A_mapping']." as map", array('ast.Astrologer_Id', 'ast.Astrologer_Name_Tm'), " where ast.Status=1 and map.Status=1 and map.Astrologer_Id = ast.Astrologer_Id group by ast.Astrologer_Id");
$content = '
';
}
$result = $DbCon->Select($sql_db_array["A_product"], array('Product_Id', 'Product_Name'), " where Status=1 and Product_Type = '1'",1);
$content .= ' இலவச சேவை