| Server IP : 104.21.37.246 / 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/forest/ |
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 = mysql_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>
<body>
<div class="container">
<div class="logo" style="margin-top:5px;"> <img src="image/logo.jpg" width="265" height="75"> </div>
<div class="bg_tab">
<?php
if($row_num > 0)
{
?>
<div class="text_date">
วันที่ <?php echo $text_today; ?>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="">
<ul class="nav nav-tabs">
<li class="active lisun"><a data-toggle="tab" href="#tab_sun">อาทิตย์</a></li>
<li class="limon"><a data-toggle="tab" href="#tab_mon">จันทร์</a></li>
<li class="litue"><a data-toggle="tab" href="#tab_tue">อังคาร</a></li>
<li class="liwed"><a data-toggle="tab" href="#tab_wed">พุธ</a></li>
<li class="lithu"><a data-toggle="tab" href="#tab_thu">พฤหัสบดี</a></li>
<li class="lifri"><a data-toggle="tab" href="#tab_fri">ศุกร์</a></li>
<li class="lisat"><a data-toggle="tab" href="#tab_sat">เสาร์</a></li>
</ul>
<div class="tab-content">
<div id="tab_sun" class="tab-pane fade in active Dsun">
<div class="row">
<div class="col-md-2"><img src="image/icon_sun.png" width="100" height="100" class="img-responsive" ></div>
<div class="col-md-10 fn_detail">
ดูดวงคนเกิด <span class="fn_title" style="color:#F00;"> วันอาทิตย์ </span>
<br><br>
<span class="fn_titlesub" style="color:#F00;">ทั่วไป: </span>
<?php echo $row['sun_general'] ?> <br><br>
<span class="fn_titlesub" style="color:#F00;">การเงิน: </span>
<?php echo $row['sun_money'] ?><br><br>
<span class="fn_titlesub" style="color:#F00;">การงาน:</span>
<?php echo $row['sun_work'] ?><br><br>
<span class="fn_titlesub" style="color:#F00;">ความรักสำหรับคนโสด: </span>
<?php echo $row['sun_single'] ?><br><br>
<span class="fn_titlesub" style="color:#F00;">ความรักสำหรับคนมีคู่แล้ว: </span>
<?php echo $row['sun_couple'] ?> <br><br>
<span class="fn_titlesub" style="color:#F00;">พรุ่งนี้ตรงกับ <?php echo $date_N_th ?> ที่ <?php echo $arr_tomorrow[2] .' '. $date_m_th?>:</span><br>
<?php echo $row['sun_tomorrow']?><br><br>
</div>
</div>
</div>
<div id="tab_mon" class="tab-pane fade Dmon">
<div class="row">
<div class="col-md-2"><img src="image/icon_mon.png" width="100" height="100" class="img-responsive" ></div>
<div class="col-md-10 fn_detail">
ดูดวงคนเกิด <span class="fn_title" style="color:#ffd200;"> วันจันทร์ </span>
<br><br>
<span class="fn_titlesub" style="color:#ffd200;">ทั่วไป: </span>
<?php echo $row['mon_general'] ?> <br><br>
<span class="fn_titlesub" style="color:#ffd200;">การเงิน: </span>
<?php echo $row['mon_money'] ?><br><br>
<span class="fn_titlesub" style="color:#ffd200;">การงาน:</span>
<?php echo $row['mon_work'] ?><br><br>
<span class="fn_titlesub" style="color:#ffd200;">ความรักสำหรับคนโสด: </span>
<?php echo $row['mon_single'] ?><br><br>
<span class="fn_titlesub" style="color:#ffd200;">ความรักสำหรับคนมีคู่แล้ว: </span>
<?php echo $row['mon_couple'] ?> <br><br>
<span class="fn_titlesub" style="color:#ffd200;">พรุ่งนี้ตรงกับ <?php echo $date_N_th ?> ที่ <?php echo $arr_tomorrow[2] .' '. $date_m_th?>:</span><br>
<?php echo $row['mon_tomorrow']?><br><br>
</div>
</div>
</div>
<div id="tab_tue" class="tab-pane fade Dtue">
<div class="row">
<div class="col-md-2"><img src="image/icon_tue.png" width="100" height="100" class="img-responsive" ></div>
<div class="col-md-10 fn_detail">
ดูดวงคนเกิด <span class="fn_title" style="color:#ff00ff;"> วันอังคาร </span>
<br><br>
<span class="fn_titlesub" style="color:#ff00ff;">ทั่วไป: </span>
<?php echo $row['tue_general'] ?> <br><br>
<span class="fn_titlesub" style="color:#ff00ff;">การเงิน: </span>
<?php echo $row['tue_money'] ?><br><br>
<span class="fn_titlesub" style="color:#ff00ff;">การงาน:</span>
<?php echo $row['tue_work'] ?><br><br>
<span class="fn_titlesub" style="color:#ff00ff;">ความรักสำหรับคนโสด: </span>
<?php echo $row['tue_single'] ?><br><br>
<span class="fn_titlesub" style="color:#ff00ff;">ความรักสำหรับคนมีคู่แล้ว: </span>
<?php echo $row['tue_couple'] ?> <br><br>
<span class="fn_titlesub" style="color:#ff00ff;">พรุ่งนี้ตรงกับ <?php echo $date_N_th ?> ที่ <?php echo $arr_tomorrow[2] .' '. $date_m_th?>:</span><br>
<?php echo $row['tue_tomorrow']?><br><br>
</div>
</div>
</div>
<div id="tab_wed" class="tab-pane fade Dwed">
<div class="row">
<div class="col-md-2"><img src="image/icon_wed.png" width="100" height="100" class="img-responsive" ></div>
<div class="col-md-10 fn_detail">
ดูดวงคนเกิด <span class="fn_title" style="color:#00a651;"> วันพุธ </span>
<br><br>
<span class="fn_titlesub" style="color:#00a651;">ทั่วไป: </span>
<?php echo $row['wed_general'] ?> <br><br>
<span class="fn_titlesub" style="color:#00a651;">การเงิน: </span>
<?php echo $row['wed_money'] ?><br><br>
<span class="fn_titlesub" style="color:#00a651;">การงาน:</span>
<?php echo $row['wed_work'] ?><br><br>
<span class="fn_titlesub" style="color:#00a651;">ความรักสำหรับคนโสด: </span>
<?php echo $row['wed_single'] ?><br><br>
<span class="fn_titlesub" style="color:#00a651;">ความรักสำหรับคนมีคู่แล้ว: </span>
<?php echo $row['wed_couple'] ?> <br><br>
<span class="fn_titlesub" style="color:#00a651;">พรุ่งนี้ตรงกับ <?php echo $date_N_th ?> ที่ <?php echo $arr_tomorrow[2] .' '. $date_m_th?>:</span><br>
<?php echo $row['wed_tomorrow']?><br><br>
</div>
</div>
</div>
<div id="tab_thu" class="tab-pane fade Dthu">
<div class="row">
<div class="col-md-2"><img src="image/icon_thu.png" width="100" height="100" class="img-responsive" ></div>
<div class="col-md-10 fn_detail">
ดูดวงคนเกิด <span class="fn_title" style="color:#f7941d;"> วันพฤหัสบดี </span>
<br><br>
<span class="fn_titlesub" style="color:#f7941d;">ทั่วไป: </span>
<?php echo $row['thu_general'] ?> <br><br>
<span class="fn_titlesub" style="color:#f7941d;">การเงิน: </span>
<?php echo $row['thu_money'] ?><br><br>
<span class="fn_titlesub" style="color:#f7941d;">การงาน:</span>
<?php echo $row['thu_work'] ?><br><br>
<span class="fn_titlesub" style="color:#f7941d;">ความรักสำหรับคนโสด: </span>
<?php echo $row['thu_single'] ?><br><br>
<span class="fn_titlesub" style="color:#f7941d;">ความรักสำหรับคนมีคู่แล้ว: </span>
<?php echo $row['thu_couple'] ?> <br><br>
<span class="fn_titlesub" style="color:#f7941d;">พรุ่งนี้ตรงกับ <?php echo $date_N_th ?> ที่ <?php echo $arr_tomorrow[2] .' '. $date_m_th?>:</span><br>
<?php echo $row['thu_tomorrow']?><br><br>
</div>
</div>
</div>
<div id="tab_fri" class="tab-pane fade Dfri">
<div class="row">
<div class="col-md-2"><img src="image/icon_fri.png" width="100" height="100" class="img-responsive" ></div>
<div class="col-md-10 fn_detail">
ดูดวงคนเกิด <span class="fn_title" style="color:#00c8ff;"> วันศุกร์ </span>
<br><br>
<span class="fn_titlesub" style="color:#00c8ff;">ทั่วไป: </span>
<?php echo $row['fri_general'] ?> <br><br>
<span class="fn_titlesub" style="color:#00c8ff;">การเงิน: </span>
<?php echo $row['fri_money'] ?><br><br>
<span class="fn_titlesub" style="color:#00c8ff;">การงาน:</span>
<?php echo $row['fri_work'] ?><br><br>
<span class="fn_titlesub" style="color:#00c8ff;">ความรักสำหรับคนโสด: </span>
<?php echo $row['fri_single'] ?><br><br>
<span class="fn_titlesub" style="color:#00c8ff;">ความรักสำหรับคนมีคู่แล้ว: </span>
<?php echo $row['fri_couple'] ?> <br><br>
<span class="fn_titlesub" style="color:#00c8ff;">พรุ่งนี้ตรงกับ <?php echo $date_N_th ?> ที่ <?php echo $arr_tomorrow[2] .' '. $date_m_th?>:</span><br>
<?php echo $row['fri_tomorrow']?><br><br>
</div>
</div>
</div>
<div id="tab_sat" class="tab-pane fade Dsat">
<div class="row">
<div class="col-md-2"><img src="image/icon_sat.png" width="100" height="100" class="img-responsive" ></div>
<div class="col-md-10 fn_detail">
ดูดวงคนเกิด <span class="fn_title" style="color:#9319dc;"> วันเสาร์ </span>
<br><br>
<span class="fn_titlesub" style="color:#9319dc;">ทั่วไป: </span>
<?php echo $row['sat_general'] ?> <br><br>
<span class="fn_titlesub" style="color:#9319dc;">การเงิน: </span>
<?php echo $row['sat_money'] ?><br><br>
<span class="fn_titlesub" style="color:#9319dc;">การงาน:</span>
<?php echo $row['sat_work'] ?><br><br>
<span class="fn_titlesub" style="color:#9319dc;">ความรักสำหรับคนโสด: </span>
<?php echo $row['sat_single'] ?><br><br>
<span class="fn_titlesub" style="color:#9319dc;">ความรักสำหรับคนมีคู่แล้ว: </span>
<?php echo $row['sat_couple'] ?> <br><br>
<span class="fn_titlesub" style="color:#9319dc;">พรุ่งนี้ตรงกับ <?php echo $date_N_th ?> ที่ <?php echo $arr_tomorrow[2] .' '. $date_m_th?>:</span><br>
<?php echo $row['sat_tomorrow']?><br><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
}
else
{
?>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div style="border:2px solid #F00;background-color:#FFF;color:#F00;font-size:20px; text-align:center;padding:20px;margin:30px 0;"> ไม่พบข้อมูล </div>
</div>
</div>
<?php
}
?>
</div>
<?php
if($row['detail'] <> '')
{
?>
<div class="row" style="margin-top:30px;">
<div class="col-md-6 col-md-offset-3">
<div align="center">
<?php
if($row['img'] == ''){?><img src="image/img_default.jpg" width="452" height="94" class="img-responsive" ><?php }
else
{
?><img src="redbag/daily/<?php echo $row['img']?>" width="452" height="94" class="img-responsive" ><?php
}
?>
</div>
<div style="padding:20px;" align="center">
<?php echo $row['detail']?>
</div>
</div>
</div>
<?php
}
?>
</div><!-- /.container -->
<?php include('include/footer_js.php');?>
</body>
</html>