} else { if ($pts < 36) { return $class[0]; } } } } } } asort($horo_cities); $currentPoints = array(); if (!empty($horo_cities)) { foreach ($horo_cities as $k => $v) { $d = findCity($k); $d['dob'] = date('Y-m-d H:i:s'); $info = findHoroInfo($d); $currentPoints[$k] = array('points' => $specific_points[$info[9]], 'nakshatra' => $info['7']); } } ?> <!-- Date time picker --> <link rel="stylesheet" type="text/css" href="<?php echo HTTPPATH; ?> /styles/jquery.datetimepicker.css"/> <style type="text/css"> .custom-date-style { background-color: red !important; }
function match($from, $to) { $d = array(); $d['from'] = findHoroInfo($from); $d['to'] = findHoroInfo($to); $Kundali = new Library_Kundali(); $d['points'] = $Kundali->getpoints($d['from'][9], $d['to'][9]); $d['results'] = $Kundali->interpret($d['points']); return $d; }
echo $userDetails['picture']; ?> " alt="" class="imglist"></a></div> <div class="span3"> <!--<p>admin</p>--> <p><strong><?php echo $userDetails['fullname']; ?> </strong></p> <p><strong>Gender: </strong> <?php echo $userDetails['gender']; ?> </p> <p><strong>Date of Birth: </strong> <?php echo substr($userDetails['dob'], 0, -3); ?> </p> <?php $horoInfo = findHoroInfo($userDetails); if (!empty($horoInfo[7])) { ?> <p><strong>Nakshatra: </strong> <?php echo $horoInfo[7]; ?> </p> <?php } ?> </div> </div> </div>
case 'matchCityId': if (empty($_GET['from']['city_id'])) { throw new Exception('from city_id is missing'); } if (empty($_GET['from']['dob'])) { throw new Exception('from dob is missing'); } if (empty($_GET['to']['city_id'])) { throw new Exception('to city_id is missing'); } if (empty($_GET['to']['dob'])) { throw new Exception('to dob is missing'); } $return['data']['points'] = array(); $dataFrom2 = $return['data']['from'] = findCity($_GET['from']['city_id']); $dataFrom2['dob'] = $_GET['from']['dob']; $return['data']['from']['horo'] = findHoroInfo($dataFrom2); $dataTo2 = $return['data']['to'] = findCity($_GET['to']['city_id']); $dataTo2['dob'] = $_GET['to']['dob']; $return['data']['to']['horo'] = findHoroInfo($dataTo2); $return['data']['points'] = getPoints($return['data']['from']['horo'][9], $return['data']['to']['horo'][9]); break; } } catch (Exception $e) { $return['success'] = 0; $return['error'] = 1; $return['errorMessage'] = $e->getMessage(); } $return['get'] = $_GET; //$return['actions'] = array('findcitybyid' => array('city_id'), 'nearby' => array('lat', 'lng'), 'cityMatch' => array('lat', 'lng'), 'match' => array('from', 'to'), 'findCity' => array('q'), 'matchMultiple' => array('data'), 'naks' => array('lat', 'lng', 'dob'), 'naksMatch' => array('naks1', 'naks2')); echo json_encode($return);
$placeLocation['horo'] = findHoroInfo($kundali, $returnSettings['bmonth'], $returnSettings['bday'], $returnSettings['byear'], $hour, $minute, $placeLocation['location']); } $horoData = array(); $horoDataToday = array(); if (!empty($currentLocation['details']['location']) && !empty($placeLocation['horo'])) { for ($i = -5; $i < 12; $i++) { $date = strtotime("+{$i} day"); $tmp = array(); $tmp = findHoroInfo($kundali, date('m', $date), date('d', $date), date('Y', $date), 12, 0, $currentLocation['details']['location']); $tmp['points'] = $kundali->getpoints($placeLocation['horo'][9], $tmp[9]); $tmp['results'] = $kundali->interpret($tmp['points']); $horoData[] = $tmp; if (date('m') == date('m', $date) && date('d') == date('d', $date) && date('Y') == date('Y', $date)) { for ($j = 0; $j < 24; $j++) { $tmp = array(); $tmp = findHoroInfo($kundali, date('m', $date), date('d', $date), date('Y', $date), $j, 0, $currentLocation['details']['location']); $tmp['points'] = $kundali->getpoints($placeLocation['horo'][9], $tmp[9]); $tmp['results'] = $kundali->interpret($tmp['points']); $horoDataToday[] = $tmp; } } } } ?> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> How's My Future </div> <div class="panel-body"> <!-- Nav tabs -->