| Server IP : 104.21.37.246 / Your IP : 104.23.243.33 [ 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 : /home/cp648411/www/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
$w_title = 'Daily';
$w_description = 'ดูดวงรายวัน';
$w_keywords = 'ดูดวงรายวัน';
?>
<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"> <img src="image/logo.jpg" width="265" height="75"> </div>
<div class="bg_tab">
<div class="row">
<div class="col-md-8 col-md-offset-1" style="padding-top:20px;">
<div class="text_date" style="text-align:left;">
<?php
$max_rows = 10; // แสดงจำนวนแถวต่อหน้า
$page_number = 0;
if(isset($_GET['page_number']))
{
$page_number = $_GET['page_number'];
}
$all_array = array('table'=>'daily','where'=>'status = 1');
$start_row = $page_number * $max_rows;
$all_sql = $view_db->view($all_array);
$all_result = $view_db->q_re($all_sql);
$total_rows = $view_db->q_nr($all_result);
$total_rows_num = mysql_num_rows($all_result);
$total_pages = ceil($total_rows/$max_rows)-1;
////////////////////////////////////////
$list = array('table'=>'daily','where'=>'status = 1','limit'=> "$start_row,$max_rows",'order'=> "ORDER BY date DESC");
$view = $view_db->view($list);
$result = $view_db->q_re($view);
$num_tr = 1;
$num = 1+($page_number*$max_rows);
while($row = $view_db->q_ro($result))
{
$G_today = $row['date'];
//$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];
$tm = (int)$arr_today[1];
$todayy = $arr_today[0]+543;
$today = $G_today;
$arr_week_th = array('วันจนทร์','วันอังคาร','วันพุธ','วันพฤหัสบดี','วันศุกร์','วันเสาร์','วันอาทิตย์');
$arr_month_th = array('1'=>"มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม");
$date_m_th = $arr_month_th[$m];
$text_today = $arr_today[2] . ' ' .$arr_month_th[$tm] .' '. $todayy;
?>
<a href="index.php?d=<?php echo $row['date']; ?>" target="_blank" style="color:#000;">ดูดวงรายวัน วันที่ <?php echo $text_today; ?></a><br><br>
<?php
}
?>
<div align="center">
<nav aria-label="Page navigation">
<ul class="pagination pagination-sm">
<?php
if($page_number == 0)
{
}
else
{
$a = $page_number - 1;
?><li><a href="home.php?page_number=<?php echo $a?>">«</a></li><?php
}
for($a=0;$a<=$total_pages;++$a)
{
$b = $a + 1 ;
if($a==$page_number)
{
?><li class="active"><a href="home.php?page_number=<?php echo $a?>" ><?php echo $b; ?></a></li><?php
}
else
{
?><li><a href="home.php?page_number=<?php echo $a?>" ><?php echo $b; ?></a></li><?php
}
}
if($page_number >= $total_pages)
{
}
else
{
$a = $page_number + 1;
?> <li><a href="home.php?page_number=<?php echo $a?>">»</a></li><?php
}
?>
</ul>
</nav>
</div>
</div>
</div>
</div>
</div>
</div><!-- /.container -->
<?php include('include/footer_js.php');?>
</body>
</html>