| Server IP : 172.67.216.113 / Your IP : 104.23.243.32 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home2/cp648411/public_html/simded.com/horo/daily/ |
Upload File : |
<?php
include('include/class.php');?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php
$G_today = $_GET['d'];
//$G_today = '2018-05-10';
$d_today = date('Ymd');
$arr_today = explode('-', $G_today );
$g_day = $arr_today[0].$arr_today[1].$arr_today[2];
if($g_day <= $d_today)
{
$list = array('table'=>'daily','where'=>'date = "'.$G_today.'"');
$view = $view_db->view($list);
$result = $view_db->q_re($view);
$row_num = mysqli_num_rows($result);
$row = $view_db->q($view);
}
$tm = (int)$arr_today[1];
$todayy = $arr_today[0]+543;
$today = $G_today;
$tomorrow = date('Y-n-d',strtotime($today . "+1 days"));
$arr_tomorrow = explode('-', $tomorrow );
$date_N = date("N", mktime(0, 0, 0, $arr_tomorrow['1'], $arr_tomorrow['2'], $arr_tomorrow['0'])); //date('N', $tomorrow);//วัน
$arr_week_th = array('1'=>'วันจนทร์','วันอังคาร','วันพุธ','วันพฤหัสบดี','วันศุกร์','วันเสาร์','วันอาทิตย์');
$date_N_th = $arr_week_th[$date_N];
$arr_month_th = array('1'=>"มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม");
$m = $arr_tomorrow[1];
$date_m_th = $arr_month_th[$m];
$text_today = $arr_today[2] . ' ' .$arr_month_th[$tm] .' '. $todayy;
$w_title = 'Daily';
$w_description = 'ดูดวงรายวัน วันที่ '. $text_today;
$w_keywords = 'ดูดวงรายวัน วันที่ '. $text_today;
?>
<title>Daily</title>
<meta name="title" content="<?php echo $w_title?> | <?php echo $webmain ?>">
<meta name="description" content="<?php echo $w_description?>">
<meta name="keywords" content="<?php echo $w_keywords?>">
<!-- Bootstrap core CSS -->
<link href="plugin/bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="plugin/bootstrap-3.3.7/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="plugin/bootstrap-3.3.7/js/ie-emulation-modes-warning.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link href="css/styles.css" rel="stylesheet">
</head>
<style>
.bg_tab2{padding-bottom:30px;}
.img-fluid{width:100%;max-width: 100%;
height: auto;}
</style>
<body>
<?php $rasi = array(
'0' => [
'ปี' => 'ชวด',
'ธาตุน้ำ' => '2515',
'ธาตุไม้' => '2527',
'ธาตุไฟ' => '2479,2539',
'ธาตุดิน' => '2491,2551',
'ธาตุทอง' => '2503,2563',
],
'1' => [
'ปี' => 'ฉลู',
'ธาตุน้ำ' => '2515',
'ธาตุไม้' => '2527',
'ธาตุไฟ' => '2479,2539',
'ธาตุดิน' => '2491,2551',
'ธาตุทอง' => '2503,2563',
],
'2' => [
'ปี' => 'ขาล',
'ธาตุน้ำ' => '',
'ธาตุไม้' => '',
'ธาตุไฟ' => '',
'ธาตุดิน' => '',
'ธาตุทอง' => '',
],
'3' => [
'ปี' => 'เถาะ',
'ธาตุน้ำ' => '',
'ธาตุไม้' => '',
'ธาตุไฟ' => '',
'ธาตุดิน' => '',
'ธาตุทอง' => '',
],
'4' => [
'ปี' => 'มะโรง',
'ธาตุน้ำ' => '',
'ธาตุไม้' => '',
'ธาตุไฟ' => '',
'ธาตุดิน' => '',
'ธาตุทอง' => '',
],
'5' => [
'ปี' => 'มะเส็ง',
'ธาตุน้ำ' => '',
'ธาตุไม้' => '',
'ธาตุไฟ' => '',
'ธาตุดิน' => '',
'ธาตุทอง' => '',
],
'6' => [
'ปี' => 'มะเมีย',
'ธาตุน้ำ' => '',
'ธาตุไม้' => '',
'ธาตุไฟ' => '',
'ธาตุดิน' => '',
'ธาตุทอง' => '',
],
'7' => [
'ปี' => 'มะแม',
'ธาตุน้ำ' => '',
'ธาตุไม้' => '',
'ธาตุไฟ' => '',
'ธาตุดิน' => '',
'ธาตุทอง' => '',
],
'8' => [
'ปี' => 'วอก',
'ธาตุน้ำ' => '',
'ธาตุไม้' => '',
'ธาตุไฟ' => '',
'ธาตุดิน' => '',
'ธาตุทอง' => '',
],
'9' => [
'ปี' => 'ระกา',
'ธาตุน้ำ' => '',
'ธาตุไม้' => '',
'ธาตุไฟ' => '',
'ธาตุดิน' => '',
'ธาตุทอง' => '',
],
'10' => [
'ปี' => 'จอ',
'ธาตุน้ำ' => '',
'ธาตุไม้' => '',
'ธาตุไฟ' => '',
'ธาตุดิน' => '',
'ธาตุทอง' => '',
],
'11' => [
'ปี' => 'กุน',
'ธาตุน้ำ' => '',
'ธาตุไม้' => '',
'ธาตุไฟ' => '',
'ธาตุดิน' => '',
'ธาตุทอง' => '',
],
);
/*echo '<pre>';
print_r($rasi);
echo '</pre>';*/
?>
<div class="container">
<div class="logo" style="margin-top:5px;"> <img src="image/logo.jpg" width="265" height="75"> </div>
<div class="bg_tab2">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<img src="image/rasi2.jpg" alt="" class="img-fluid">
</div>
</div>
</div>
</div><!-- /.container -->
<?php include('include/footer_js.php');?>
</body>
</html>