| 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 : /home2/cp648411/public_html/kainumber.com/reading/ |
Upload File : |
<?php include('../include/class.php');?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script>
window.onload = function() {
// document.getElementById("reading_results").focus();
// $('html, body').animate({ scrollTop: $('#reading_results').offset().top }, 'slow');
// $('html, body').animate( scrollTop: $('#reading_results').offset().top );
};
</script>
<?php
function gen_rand( $from , $to , $amount )
{
$keepvalue = array();
for($i=0;$i<$amount;$i++) {
$value = rand($from , $to);
if ( in_array( $value , $keepvalue) ) {
$i = count($keepvalue)-1;
} else {
$keepvalue[] = $value;
}
}
return $keepvalue;
}
function sh_ad($var1)
{
if($var1 == 1){ $text = '<a href="https://simded.com/home/reading.php" target="_blank"><img src="../image/c1gif.gif" class="img-fluid rounded-4"></a>';}
if($var1 == 2){ $text = '<a href="https://homhuan.com/" target="_blank"><img src="../image/hh1gif.gif" class="img-fluid rounded-4"></a>';}
if($var1 == 3){ $text = '<a href="https://simded.com/seamsi/index.php" target="_blank"><img src="../image/scGif.gif" class="img-fluid rounded-4"></a>';}
if($var1 == 4){ $text = '<a href="https://simded.com/home/reading.php" target="_blank"><img src="../image/LL12.gif" class="img-fluid rounded-4"></a>';}
return $text;
}
$arr_num = gen_rand( 1 , 4 ,2);
$p1 = $arr_num[0];
$p2 = $arr_num[1];
$phonenumber = $_GET['phonenumber'];
$ID_card = $_GET['ID_card'];
$img_fa = 'http://www.kainumber.com/image/text_logo1.webp';
$arrnum =array();
if($phonenumber <> '')
{
include('perl.php');
$Fullscore_p = 100 * count($pass3_all);
$percent_number = (($TotalScore_plus - abs($TotalScore_delete))*100)/$Fullscore_p;
$img_fa = 'http://www.kainumber.com/image/text_logo1.webp';
$title_fa = $Phone_class->phonenumber_cover($phonenumber).'('.$p1_sum_number.')';
if($percent_number <= 40){ $txt_sum = 'เบอร์นี้จัดอยู่ในเกณฑ์ที่แย่ สมควรเปลี่ยนเบอร์อย่างยิ่ง';$img_fa = 'http://www.kainumber.com/image/text_logo_shareX.webp';}
if($percent_number >= 41 && $percent_number <= 65){ $txt_sum = 'เบอร์นี้ยังมีตัวเลขที่ไม่ดีอยู่การเปลี่ยนเบอร์ขึ้นอยู่กับวิจารณญาณของผู้ใช้เบอร์';$img_fa = 'http://www.kainumber.com/image/text_logo_shareX.webp'; }
if($percent_number >= 66 && $percent_number <= 85){ $txt_sum = 'เบอร์นี้อยู่ในเกณฑ์ดี ถ้าเปลี่ยนควรหาเบอร์ที่เหมาะสมกับดวงของท่านให้มากขึ้น'; $img_fa = 'http://www.kainumber.com/image/text_logo_shareX.webp';}
if($percent_number >= 86){ $txt_sum = 'เบอร์นี้อยู่ในเกณฑ์ที่ดีมาก ขึ้นอยู่กับดวงแต่ละบุคคลและการใช้งาน';$img_fa = 'http://www.kainumber.com/image/text_logo_shareX.webp'; }
$description_fa = $txt_sum;
$arrnum = $Phone_class->readingber($phonenumber);
}
function Switch_numbers($value)
{
$rest_1 = substr($value, 0,1);
$rest_2 = substr($value, 1,1);
if($rest_1 <= $rest_2)
{
$set_1 = $rest_1.$rest_2;
$set_2 = $rest_2.$rest_1;
$set = $set_1.','.$set_2;
}else
{
$set_1 = $rest_1.$rest_2;
$set_2 = $rest_2.$rest_1;
$set = $set_2.','.$set_1;
}
return $set;
}
if($ID_card <> '')
{
$arrnum = $Phone_class->readingidcard($ID_card);
$Fullscore = 100 * count($arrnum);
foreach( $arrnum as $value )
{
//$set_number = Switch_numbers($value);
$list = array('table'=>'meaningnumber,score','where'=>'meaningnumber.id = score.meaning_id AND meaningnumber.number LIKE "%'.$value.'%" LIMIT 0 , 1');
$view = $view_db->view($list);
$row = $view_db->q($view);
$arr_num[$value] = $row['scoretotal'];
$total = $total + $row['scoretotal'];
$detail = $detail . $row['detail'];
}
$percent_number = ($total*100)/$Fullscore;
$img_fa = 'http://www.kainumber.com/image/text_logo1.webp';
$title_fa = $Phone_class->phonenumber_cover($phonenumber).'('.$p1_sum_number.')';
if($percent_number <= 40){ $txt_sum = 'เบอร์นี้จัดอยู่ในเกณฑ์ที่แย่ สมควรเปลี่ยนเบอร์อย่างยิ่ง';$img_fa = 'http://www.kainumber.com/image/text_logo_shareX.webp';}
if($percent_number >= 41 && $percent_number <= 65){ $txt_sum = 'เบอร์นี้ยังมีตัวเลขที่ไม่ดีอยู่การเปลี่ยนเบอร์ขึ้นอยู่กับวิจารณญาณของผู้ใช้เบอร์';$img_fa = 'http://www.kainumber.com/image/text_logo_shareX.webp'; }
if($percent_number >= 66 && $percent_number <= 85){ $txt_sum = 'เบอร์นี้อยู่ในเกณฑ์ดี ถ้าเปลี่ยนควรหาเบอร์ที่เหมาะสมกับดวงของท่านให้มากขึ้น'; $img_fa = 'http://www.kainumber.com/image/text_logo_shareX.webp';}
if($percent_number >= 86){ $txt_sum = 'เบอร์นี้อยู่ในเกณฑ์ที่ดีมาก ขึ้นอยู่กับดวงแต่ละบุคคลและการใช้งาน';$img_fa = 'http://www.kainumber.com/image/text_logo_shareX.webp'; }
$description_fa = $txt_sum;
}
//$arrnum_un = array_unique($arrnum);
foreach( $arrnum as $value )
{
$list_cs = array('table'=>'category_score','where'=>'number = "'.$value.'"');
$view_cs = $view_db->view($list_cs);
$row_cs = $view_db->q($view_cs);
$arr_cs['lucky'] = $arr_cs['lucky'] + $row_cs['lucky'];
$arr_cs['work'] = $arr_cs['work'] + $row_cs['work'];
$arr_cs['love'] = $arr_cs['love'] + $row_cs['love'];
$arr_cs['money'] = $arr_cs['money'] + $row_cs['money'];
$arr_cs['education'] = $arr_cs['education'] + $row_cs['education'];
$arr_cs['health'] = $arr_cs['health'] + $row_cs['health'];
}
$arrnum = $Phone_class->ck_numeric($phonenumber);
$work = $Phone_class->scorestar($arr_cs['work']);
$money = $Phone_class->scorestar($arr_cs['money']);
$love = $Phone_class->scorestar($arr_cs['love']);
$health = $Phone_class->scorestar($arr_cs['health']);
$lucky = $Phone_class->scorestar($arr_cs['lucky']);
$education = $Phone_class->scorestar($arr_cs['education']);
?>
<?php include('../include/header_2.php'); ?>
<?php $menu = 'forecast'; ?>
<?php include('../theme/menu.php'); ?>
<?php
//$phonenumber = $_GET['phonenumber'];
if($phonenumber <> '')
{
if($percent_number <= 40)
{
?>
<style>
.border-kai2{border: 3px solid #ff0000;}
.border-kai-bottom2{
border-image-source: linear-gradient(to top, #ff0000, #ff0000);
background: linear-gradient( #ff0000, #ff0000);
}
.border-kai-right{
border-image-source: linear-gradient(to top, #ff0000, #ff0000);
border-right: 3px solid #ff0000;
}
</style>
<?php
}
if($percent_number >= 41 && $percent_number <= 65)
{
?>
<style>
.border-kai2{border: 3px solid #ff4200;}
.border-kai-bottom2{
border-image-source: linear-gradient(to top, #ff4200, #ff4200);
background: linear-gradient( #ff4200, #ff4200);
}
.border-kai-right{
border-image-source: linear-gradient(to top, #ff4200, #ff4200);
border-right: 3px solid #ff4200;
}
</style>
<?php
}
if($percent_number >= 66 && $percent_number <= 85)
{
?>
<style>
.border-kai2{border: 3px solid #fff200;}
.border-kai-bottom2{
border-image-source: linear-gradient(to top, #fff200, #fff200);
background: linear-gradient( #fff200, #fff200);
}
.border-kai-right{
border-image-source: linear-gradient(to top, #fff200, #fff200);
border-right: 3px solid #fff200;
}
</style>
<?php
}
if($percent_number >= 86)
{
?>
<style>
.border-kai2{border: 3px solid #2fe140;}
.border-kai-bottom2{
border-image-source: linear-gradient(to top, #2fe140, #2fe140);
background: linear-gradient( #2fe140, #2fe140);
}
.border-kai-right{
border-image-source: linear-gradient(to top, #2fe140, #2fe140);
border-right: 3px solid #2fe140;
}
</style>
<?php
}
}
?>
<!-- /.body -->
<style>
.bn_forecast{margin-top:0px;height:50px;font-size:20px;}
@media (max-width:768px)
{
.bn_forecast{margin-top:15px;height:50px;font-size:20px;}
}
.line_gif{padding:0px;border:0px solid #FFF;}
.gif2{border:0px solid;margin-top:15px;}
.gif2_L{padding:0px;margin-left:-17px;}
.gif2_R{padding:0px;padding-left:10px;}
.ad_google2{ padding-left:0px;padding-top:20px;}
.fm_reading{padding-top:30px;}
.br_s{ display:inline}
@media (max-width:768px)
{
.border-kai2{text-align: -webkit-center;}
.line_gif{margin:0 auto;text-align:center;max-width:599px;}
.gif2{margin:0 auto;max-width:599px;border:0px solid;margin-top:15px;padding-left:15px;}
.gif2_L{padding:0px;margin-left:-17px;padding-top:20px;}
.gif2_R{padding:0px;padding-left:10px;padding-top:20px;}
.ad_google2{ padding-left:15px;margin-top:20px;}
.fm_reading{padding-top:0px;}
.br_s{ display:none}
}
@media (max-width:500px)
{
.gif2_L{padding:0px;padding-left:15px;padding-top:15px;}
.gif2_R{padding:0px;padding-left:15px;padding-top:15px;}
.ad_google2{ padding-left:15px;margin-top:20px;}
.fm_reading{padding-top:0px;}
.br_s{ display:none}
}
.flashing{ animation: blink 1s infinite alternate;}
@keyframes blink {
0% { opacity: 1; }
20% { opacity: 0.5;}
40% { opacity: 1; }
60% { opacity: 0.5; }
80% { opacity: 1; }
100% { opacity: 0.5; }
}
</style>
<div class="container mt-3 mt-md-0 px-lg-5" <?php if($_GET['phonenumber'] == '' && $_GET['ID_card'] == ''){echo 'id="reading_results"';} ?>>
<div class="row justify-content-center px-lg-5 ">
<div class="col-auto text-center mb-3 text-white mt-md-0">
<h1 class="fw-loungethbold mt-md-0 border-kai-bottom-light">ทำนายเบอร์</h1>
<!--<hr class="line1">-->
</div>
</div>
<div class="row justify-content-center px-xxl-5 px-3">
<div class="col-12 col-md-12 px-xxl-2 px-lg-4 fw-loungethbold mb-md-0">
<form class="" action="../reading/index.php" method="get" name="fmforecastphone" onsubmit="return fm_fmforecastphone();">
<div class="row pe-lg-1 px-xxl-1 justify-content-center align-center mb-3 mb-md-1">
<div class="col-12 col-md-2 col-xxl-fix me-md-2">
<label for="textInput" class="">อาจารย์ไก่ทำนายเบอร์ฟรี</label>
</div>
<div class="col-10 col-md-6 col-xxl-6 ps-0 me-md-0 me-xxl-0 ms-xxl-d-1">
<input type="number" class="form-control h-fix" id="phonenumber" name="phonenumber" placeholder="หมายเลขโทรศัพท์"
onkeypress="return validate_number(event)" value="<?php echo $_GET['phonenumber'];?>" maxlength="10">
</div>
<div class="col-2 col-md-2 col-xxl-2 px-0 me-xxl-2 pe-xxl-1 text-start">
<button type="submit" class="btn btn-kai1 w-fix h-fix">ทำนาย</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="container px-xxl-5">
<div class="row fm_reading pt-md-0" style="">
<div class="col-md-12 px-xxl-3">
<!-- /.forecast_number -->
<?php
if( $_GET['phonenumber'] == '' && $_GET['ID_card'] == '')
{
?>
<div class="row justify-content-center">
<div class="col-md-5 col-lg-3 text-center text-md-end mb-4 mb-md-0 pe-0" >
<div class="col-md-12 mb-4"><a href="https://lin.ee/egzGHWJ" target="_blank"><img src="../image/linegif2.gif" class="img-fluid rounded-4"></a></div>
<div class="col-md-12"><a href="https://www.facebook.com/kainumber/" target="_blank"><img src="../image/kk2.gif" class="img-fluid rounded-4"></a></div>
</div>
<div class="col-md-5 col-lg-3 text-center text-md-start">
<div class="col-md-12 mb-4"> <?php echo sh_ad($p1); ?></div>
<div class="col-md-12"> <?php echo sh_ad($p2); ?></div>
</div>
</div>
<div class="row justify-content-center">
<div class="col-md-7">
<div style="padding:15px 0">
<?php include('../include/ad_google.php')?>
</div>
</div>
</div>
<?php
}
?>
</div>
<?php
if( $_GET['phonenumber'] == '' && $_GET['ID_card'] == '')
{
?>
<?php
}
?>
</div>
</div>
<?php
if( $_GET['phonenumber'] == '' && $_GET['ID_card'] == '')
{
?>
<?php include("footer.php"); ?>
<?php } ?>
</div>
<style>
.h_120{min-height:120px;}
.h_160{min-height:165px;}
@media (max-width:1024px)
{
.h_160{min-height:185px;}
}
@media (max-width:768px)
{
.h_160{min-height:100px;}
.h_120{min-height:80px;}
}
</style>
<div id="reading_results">
<?php
if($phonenumber <> '')
{
?>
<?php
$phonenumber = $_GET['phonenumber'];
include('perl.php');
$Fullscore_p = 100 * count($pass3_all);
$percent_number = (($TotalScore_plus - abs($TotalScore_delete))*100)/$Fullscore_p;
$list_pho = array('table'=>'phonenumber','where'=>'phonenumber = "'.$phonenumber.'"');
$view_pho = $view_db->view($list_pho);
$row_pho = $view_db->q($view_pho);
$dpr = 0;
$dpr = $percent_number*4.4;
$dpr = 440 - $dpr;
?>
<?php
if($percent_number <= 40)
{
?>
<style>
.border-kai2{border: 3px solid #ff0000;}
.border-kai-bottom2{
border-image-source: linear-gradient(to top, #ff0000, #ff0000);
background: linear-gradient( #ff0000, #ff0000);
}
.border-kai-right{
border-image-source: linear-gradient(to top, #ff0000, #ff0000);
border-right: 3px solid #ff0000;
}
.border-kai-bottom-n{border-bottom: 3px solid #ff0000;}
.border-kai-right-n{border-right: 3px solid #ff0000;}
.progressbar__svg-circle1{stroke: #ff0000;}
.shadow-html {filter: drop-shadow(0 0 5px #ff0000);}
</style>
<?php
}
if($percent_number >= 41 && $percent_number <= 65)
{
?>
<style>
.border-kai2{border: 3px solid #ff4200;}
.border-kai-bottom2{
border-image-source: linear-gradient(to top, #ff4200, #ff4200);
background: linear-gradient( #ff4200, #ff4200);
}
.border-kai-right{
border-image-source: linear-gradient(to top, #ff4200, #ff4200);
border-right: 3px solid #ff4200;
}
.border-kai-bottom-n{border-bottom: 3px solid #ff4200;}
.border-kai-right-n{border-right: 3px solid #ff4200;}
.progressbar__svg-circle1{stroke: #ff4200;}
.shadow-html {filter: drop-shadow(0 0 5px #ff4200);}
</style>
<?php
}
if($percent_number >= 66 && $percent_number <= 85)
{
?>
<style>
.border-kai2{border: 3px solid #fff200;}
.border-kai-bottom2{
border-image-source: linear-gradient(to top, #fff200, #fff200);
background: linear-gradient( #fff200, #fff200);
}
.border-kai-right{
border-image-source: linear-gradient(to top, #fff200, #fff200);
border-right: 3px solid #fff200;
}
.border-kai-bottom-n{border-bottom: 3px solid #fff200;}
.border-kai-right-n{border-right: 3px solid #fff200;}
.progressbar__svg-circle1{stroke: #fff200;}
.shadow-html {filter: drop-shadow(0 0 5px #fff200);}
</style>
<?php
}
if($percent_number >= 86)
{
?>
<style>
.border-kai2{border: 3px solid #2fe140;}
.border-kai-bottom2{
border-image-source: linear-gradient(to top, #2fe140, #2fe140);
background: linear-gradient( #2fe140, #2fe140);
}
.border-kai-right{
border-image-source: linear-gradient(to top, #2fe140, #2fe140);
border-right: 3px solid #2fe140;
}
.border-kai-bottom-n{border-bottom: 3px solid #2fe140;}
.border-kai-right-n{border-right: 3px solid #2fe140;}
.progressbar__svg-circle1{stroke: #2fe140;}
.shadow-html {filter: drop-shadow(0 0 5px #2fe140);}
</style>
<?php
}
?>
<style media="screen">
.progressbar1{width: 150px;height: 147px;}
.progressbar__svg-circle1{
fill:none;
stroke-width: 10px;
stroke-linecap: round;
stroke-linejoin: round;
}
.circle-html1 {
-webkit-animation: anim_circle-html1 1s ease-in-out forwards;
animation: anim_circle-html1 1s ease-in-out forwards;
}
circle {
cx: 72;
cy: 70;
r: 50;
}
.progressbar_text2{top: 2px;}
@media (max-width:1280px) {
.progressbar1{width: 150px;height: 140px;}
.progressbar_text2{top: -2px;}
circle {
cx: 72;
cy: 65;
r: 50;
}
}
@-webkit-keyframes anim_circle-html1 {
to {
stroke-dashoffset: <?php echo $dpr; ?>;
}
}
@keyframes anim_circle-html1 {
to {
stroke-dashoffset: <?php echo $dpr; ?>;
}
}
table { font-size: 23px;}
table tr td { color: #212529!important; vertical-align: top; }
</style>
<div class="container mt-0 mt-md-0 px-lg-5 px-3">
<div class="row px-md-5 mb-3 pt-md-0">
<div class="col-md-12 px-md-2 " >
<div class="row border-kai2 bg-white text-dark" style="cursor: pointer;">
<div class="col-12 col-lg-8 pt-2 py-md-0 px-0 px-md-4 overflow-auto">
<div class=" h-100">
<div class="text-center d-flex pt-3 d-none d-md-flex">
<div class="col-8 col-md-8 border-kai-bottom-n border-kai-right-n">เบอร์</div>
<div class="col-4 col-md-4 border-kai-bottom-n border-kai-right-n">ผลรวม</div>
</div>
<div class="text-center d-flex pt-0 d-flex d-md-none">
<div class="col-8 col-md-8 border-kai-bottom-n border-kai-right-n">เบอร์</div>
<div class="col-4 col-md-4 border-kai-bottom-n ">ผลรวม</div>
</div>
<div class="text-center d-flex">
<div class="col-8 col-md-8 border-kai-right-n pb-0 pt-3"> <h2 class="fw-bold"><?php echo $Phone_class->phonenumber($phonenumber)?></h2> </div>
<div class="col-4 col-md-4 pb-0 pt-3 pb-lg-3 pb-xl-2 border-kai-right-n d-none d-md-flex justify-content-center"><h2 class="fw-bold"><?php echo $p1_sum_number; ?></h2></div>
<div class="col-4 col-md-4 pb-0 pt-3 pb-lg-3 pb-xl-2 d-flex d-md-none justify-content-center"><h2 class="fw-bold"><?php echo $p1_sum_number; ?></h2></div>
</div>
</div>
</div>
<div class="col-12 col-lg-4 d-none d-lg-block">
<div class="">
<div class="container__progressbars text-center lh-sm d-flex" >
<div class="progressbar1">
<svg class="progressbar__svg ">
<circle class="progressbar__svg-circle1 circle-html1 shadow-html"
style="stroke-dashoffset: ;"> </circle>
</svg>
<span class="progressbar__text shadow-html">
<h5 class="progressbar_text2 mb-0 pb-0 text-dark" > <?php echo number_format($percent_number,2); ?>%</h5>
</span>
</div>
<div class="" style="margin-left: -5px;">
<h6 class="progressbar_text2 mt-1 mb-0 text-dark" style="top: 2px"> ผลรวมเป็น</h6>
<small class="progressbar_text2 fix-s text-dark" style="top: 2px">(คิดเป็นเปอร์เซ็น)</small>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-4 d-block d-lg-none px-0">
<div class="d-flex px-md-2 align-item-center align-items-center">
<div class="col-8" center style="text-align: center; text-align: -webkit-center;">
<div class="progressbar1">
<svg class="progressbar__svg ">
<circle class="progressbar__svg-circle1 circle-html1 shadow-html"
style="stroke-dashoffset: ;"> </circle>
</svg>
<span class="progressbar__text shadow-html">
<h5 class="progressbar_text2 mb-0 pb-0 text-dark" > <?php echo number_format($percent_number,2); ?>%</h5>
</span>
</div>
</div>
<div class="col-4" center style="text-align: center; text-align: -webkit-center;">
<div class="">
<h6 class="progressbar_text2 mt-1 mb-0 text-dark" style="top: 2px;"> ผลรวมเป็น</h6>
<small class="progressbar_text2 text-dark" style="top: 2px;font-size: small;">(คิดเป็นเปอร์เซ็น)</small>
</div>
</div>
</div>
</div>
<!--<hr class="line1 my-1">-->
</div>
</div>
</div>
</div>
<?php $perr = number_format($percent_number,0); ?>
<div class="container mt-2 mt-md-0 px-lg-5 px-3">
<div class="row px-md-5 mb-3 pt-md-0">
<div class="col-md-12 px-md-2 " >
<div class="row ">
<div class="col-12 col-sm-12 col-lg-4 pb-3 py-lg-0 px-0 pe-lg-3 overflow-auto">
<div class=" border-kai2 h-100 px-4 py-3 lh-sm text-dark bg-white" style="cursor: pointer;">
<table>
<tr>
<td>การงาน</td>
<td class="ps-3">
<?php echo @$work; ?>
</td>
</tr>
<tr>
<td>การเรียน</td>
<td class="ps-3">
<?php echo @$education; ?>
</td>
</tr>
<tr>
<td>การเงิน</td>
<td class="ps-3">
<?php echo @$money; ?>
</td>
</tr>
<tr>
<td>ความรัก</td>
<td class="ps-3">
<?php echo @$love; ?>
</td>
</tr>
<tr>
<td>สุขภาพ</td>
<td class="ps-3">
<?php echo @$health; ?>
</td>
</tr>
<tr>
<td>โชคดี</td>
<td class="ps-3">
<?php echo @$lucky; ?>
</td>
</tr>
</table>
</div>
</div>
<div class="col-12 col-sm-12 col-lg-8 px-0 ps-lg-0">
<div class="border-kai2 h-100 px-4 py-3 lh-sm text-dark bg-white" style="cursor: pointer;">
<table>
<tr>
<td style="width:35%;">
น้ำหนักคำพยากรณ์
<br>
<small class="d-none d-lg-block">( คำนวณเลขมงคล 7 หลัก )</small>
</td>
<td class="ps-3 d-block" colspan="2">
<?php echo substr($phonenumber,0,3); ?>.
<?php
foreach ($p2_score as $value)
{
$number_2 = $number_2 . $value['combination'].' ';
}
echo $number_2;
?>
</td>
</tr>
<tr>
<td>เบอร์จัดอยู่ในระดับ</td>
<td class="ps-3">
<?php
if($percent_number <= 40){ ?><span style="color:#ff0000;cursor: pointer;">เบอร์นี้จัดอยู่ในเกณฑ์ที่แย่ สมควรเปลี่ยนเบอร์อย่างยิ่ง</span><?php }
if($percent_number >= 41 && $percent_number < 66){ ?><span style="color:#C60;cursor: pointer;">เบอร์นี้ยังมีตัวเลขที่ไม่ดีอยู่การเปลี่ยนเบอร์ขึ้นอยู่กับวิจารณญาณของผู้ใช้เบอร์ </span><?php }
if($percent_number >= 66 && $percent_number < 86){ ?><span style="color:#ffc000;cursor: pointer;">เบอร์นี้อยู่ในเกณฑ์ดี ถ้าเปลี่ยนควรหาเบอร์ที่เหมาะสมกับดวงของท่านให้มากขึ้น </span><?php }
if($percent_number >= 86){ ?><span style="color:#090;cursor: pointer;">เบอร์นี้อยู่ในเกณฑ์ที่ดีมาก ขึ้นอยู่กับดวงแต่ละบุคคลและการใช้งาน</span><?php }
?>
</td>
</tr>
<tr>
<td>อยู่ในหมวด</td>
<td class="ps-3" style="cursor: pointer;">
<?php
rsort($pass3_all);
$list_cat = array('table'=>'meaningnumber','where'=>'number LIKE "%'.$pass3_all[0]['list'].'%"');
$view_cat = $view_db->view($list_cat);
$row_cat = $view_db->q($view_cat);
?>
<?php echo $Phone_class->catshort_number('',$phonenumber);; ?>
</td>
</tr>
</table>
</div>
</div>
<!--<hr class="line1 my-1">-->
</div>
</div>
</div>
</div>
<div class="container mt-3 mt-md-0 px-lg-5 px-3">
<div class="row px-md-5 mb-3 ">
<div class="col-md-12 px-md-3 text-center" style="cursor: pointer;">
<h4 class="pb-0 mb-0 fw-loungethbold d-none d-md-block" style="color: #ffc000;">* เบอร์ดีหรือไม่ดีนั้น ส่วนหนึ่งอยู่ที่การนำไปใช้ กับงานที่เหมาะสมด้วย *</h4>
<h5 class="pb-0 mb-0 fw-loungethbold d-block d-md-none" style="color: #ffc000;letter-spacing: 2px;">* เบอร์ดีหรือไม่ดีนั้น ส่วนหนึ่งอยู่ที่การนำไปใช้ กับงานที่เหมาะสมด้วย *</h5>
</div>
</div>
</div>
<div class="container px-lg-5 px-3">
<div class="row px-md-5 mb-3 pt-md-0">
<div class="col-md-12 px-md-2" >
<div class="row border-kai2 py-4 bg-white text-dark" style="cursor: pointer;">
<div class="col-12 col-md-12 text-center text-md-start">
<?php
foreach( $pass3_all as $value )
{
$list_de = array('table'=>'meaningnumber','where'=>'number LIKE "%'.$value['list'].'%"');
$view_de = $view_db->view($list_de);
$row_de = $view_db->q($view_de);
?><div style="margin-top:20px;"><?php echo $row_de['detail']?></div><?php
}
if($arr_P4['list'] <> '')
{
$list_de4 = array('table'=>'meaningnumber','where'=>'number LIKE "%'.$arr_P4['list'].'%"');
$view_de4 = $view_db->view($list_de4);
$row_de4 = $view_db->q($view_de4);
?><div style="margin-top:20px;"><?php echo $row_de4['detail']?></div><?php
}
?>
</div>
</div>
</div>
</div>
</div>
<div class="container px-lg-5 px-3">
<div class="row px-md-5 mb-3 mb-md-0">
<div class="col-md-12 px-md-2" >
<div class="row py-2 py-md-0">
<div class="col-12 col-md-12">
<!--
<div align="right" style="padding-top:10px;"><a href="../home/" style="color:#FFF;">กลับ...</a></div>
-->
<div align="right">
<!--
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
-->
<script>
var this_main_number = 0;
function share_to_fb()
{
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent('http://www.kainumber.com/reading/index.php?phonenumber=<?php echo $_GET['phonenumber']?>'),'addthis_popup','toolbar=0,status=0,width=626,height=436');
}
</script>
<a onClick="javascript:share_to_fb();"
style="cursor: pointer;color:#FFF;"
title="แบ่งปันให้เพื่อน">
<img src="../image/fa-b.webp" width="50" style="border:none;"/>
แชร์
</a>
</div>
</div>
<div class="col-12 col-md-12 mb-3" align="center">
<input class="btn btn-kai1 px-4" type="button" value="ย้อนกลับ" onclick="window.location.href='<?php echo $_SESSION['HTTP_REFERER']; ?>'">
</div>
</div>
<?php include('../theme/btn_hi.php'); ?>
<div class="row py-4 py-md-0">
<div class="col-12 col-md-12">
<div class="row justify-content-center" style="margin-bottom:15px;">
<div class="col-md-5 col-lg-3 text-center text-md-end mb-4 mb-md-0 pe-0">
<div class="col-md-12 mb-3"><a href="http://line.me/ti/p/O-MUYsqUwe" target="_blank"><img src="../image/linegif2.gif" class="img-fluid rounded-4"></a></div>
<div class="col-md-12"><a href="https://www.facebook.com/kainumber/" target="_blank"><img src="../image/kk2.gif" class="img-fluid rounded-4"></a></div>
</div>
<div class="col-md-5 col-lg-3 text-center text-md-start">
<div class="col-md-12 mb-3"><?php echo sh_ad($p1); ?></div>
<div class="col-md-12"><?php echo sh_ad($p2); ?></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container mt-5 mt-md-0 px-md-5">
<div class="row px-md-5 d-md-flex justify-content-center ">
<div class="col-12 col-md-auto text-center px-0 mb-3 mb-md-0">
<a href="https://lin.ee/egzGHWJ" target="_blank" class="text-decoration-none text-light">
<img src="../image/line_n1.webp" alt="" >
@kainumber
</a>
</div>
<span class="col-md-auto px-2 d-none d-md-block">/</span>
<div class="col-12 col-md-auto text-center px-0">
<a href="https://th-th.facebook.com/kainumber/" target="_blank" class="text-decoration-none text-light">
<img src="../image/fb_n1.webp" alt="" >
อาจารย์ไก่ เบอร์มงคล
</a>
</div>
</div>
<div class="row px-md-5 d-md-flex justify-content-center">
<div class="col-12 col-md-5 text-center mt-3">
<img src="../image/text_logotop.webp" alt="" class="img-fluid col-8 col-md-8">
</div>
</div>
</div>
<?php
// $Fullscore = 5 * count($pass3_all);//จำนวนค่าที่นำมาคำนวณ
?>
<?php //include('recommend.php')?>
<?php //include('../theme/phone_guide.php')?>
<?php
$list = array(
'table'=>'log_reading',
'phonenumber'=>"'".@$_GET['phonenumber']."'",
'type'=>'1',
'createtime_U'=>"'".date("U")."'",
'createtime'=>"'".date("Y-m-d H:i:s")."'",
);
$add = $actiondata_db->add_db($list);
}
if($ID_card <> '')
{
?>
<?php
$dpr = 0;
$dpr = $percent_number*4.4;
$dpr = 440 - $dpr;
//echo $dpr;
?>
<?php
if($percent_number <= 40)
{
?>
<style>
.progressbar__svg-circle1{stroke: #ff0000;}
.shadow-html {filter: drop-shadow(0 0 5px #ff0000);}
</style>
<?php
}
if($percent_number >= 41 && $percent_number <= 65)
{
?>
<style>
.progressbar__svg-circle1{stroke: #ff4200;}
.shadow-html {filter: drop-shadow(0 0 5px #ff4200);}
</style>
<?php
}
if($percent_number >= 66 && $percent_number <= 85)
{
?>
<style>
.progressbar__svg-circle1{stroke: #fff200;}
.shadow-html {filter: drop-shadow(0 0 5px #fff200);}
</style>
<?php
}
if($percent_number >= 86)
{
?>
<style>
.progressbar__svg-circle1{stroke: #2fe140;}
.shadow-html {filter: drop-shadow(0 0 5px #2fe140);}
</style>
<?php
}
?>
<div class="container mt-5 mt-md-0 px-lg-5 px-3">
<div class="row px-md-5 mb-3 pt-md-0">
<div class="col-md-12 px-md-2 " >
<div class="row">
<div class="col-12 col-md-12 border-kai2 py-3 px-4 overflow-auto">
<div class="text-center d-flex border-kai-bottom">
<div class="col-12 col-md-12 border-kai-bottom-n">บัตรประชาชน</div>
</div>
<div class="text-center d-flex justify-content-center">
<div class="col-8 col-md-12 pb-0 pt-3 f-fix"><?php echo $Phone_class->idcard($ID_card); ?></div>
</div>
</div>
<!--<hr class="line1 my-1">-->
</div>
</div>
</div>
</div>
<style media="screen">
.progressbar1{width: 160px;height: 160px;}
.progressbar__svg-circle1{stroke-width: 10px;}
.circle-html1 {
-webkit-animation: anim_circle-html1 1s ease-in-out forwards;
animation: anim_circle-html1 1s ease-in-out forwards;
}
@-webkit-keyframes anim_circle-html1 {
to {
stroke-dashoffset: <?php echo $dpr; ?>;
}
}
@keyframes anim_circle-html1 {
to {
stroke-dashoffset: <?php echo $dpr; ?>;
}
}
</style>
<div class="container px-lg-5 px-3">
<div class="row px-md-5 mb-3 pt-md-0">
<div class="col-md-12 px-md-2" >
<div class="row border-kai2 py-4 justify-content-between align-items-center">
<div class="col-12 col-lg-3 mb-5 mb-lg-0">
<div class="container__progressbars text-center lh-sm" >
<div class="progressbar1">
<svg class="progressbar__svg">
<circle cx="74" cy="75" r="55" class="progressbar__svg-circle1 circle-html1 shadow-html"> </circle>
</svg>
<span class="progressbar__text shadow-html">
<h6 class="progressbar_text2 mb-0 pb-0" style="top: 2px"> <?php echo number_format($percent_number,2); ?>%</h6>
</span>
</div>
<h5 class="progressbar_text2 mt-3 mb-0" style="top: 2px"> ผลรวมเป็น</h5>
<small class="progressbar_text2 fix-s" style="top: 2px">(คิดเป็นเปอร์เซ็น)</small>
</div>
</div>
<div class="col-12 col-lg-8 text-center text-md-start">
<div class="row">
<div class="col-md-6 lh-sm">
<div>น้ำหนักคำพยากรณ์</div>
<div>( คำนวณเลขมงคล 7 หลัก )</div>
</div>
<div class="col-md-6">
<div>
<?php echo substr($ID_card,0,7); ?>.
<?php
foreach( $arrnum as $value )
{
$number_2 = $number_2 . $value.' ';
}
echo $number_2;
?>
</div>
</div>
</div>
<div class="row mt-3">
<div class="col-md-6">
<div>เบอร์จัดอยู่ในระดับ</div>
</div>
<div class="col-md-6">
<div>
<span style="">ดวงเกิดของคุณสามารถหนุนดวงให้ดีขึ้นได้ด้วยเบอร์มงคล เพื่อให้เหมาะสมกับดวงเกิดและการใช้งาน</span>
</div>
</div>
</div>
<div class="row mt-3">
<div class="col-md-6">
<div>อยู่ในหมวด</div>
</div>
<div class="col-md-6">
<div>
<?php
asort($arr_num);
$i=1;
foreach($arr_num as $Key=>$value){
if($i==1)
{
$list_cat = array('table'=>'meaningnumber','where'=>'number LIKE "%'.$Key.'%"');
$view_cat = $view_db->view($list_cat);
$row_cat = $view_db->q($view_cat);
}
$i++;
}
?>
<?php //echo $row_cat['title']; ?>
<?php echo $Phone_class->catshort_number('',$phonenumber);; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container mt-5 mt-md-0 px-lg-5 px-3">
<div class="row px-md-5 mb-3 ">
<div class="col-md-12 px-md-3 text-center" style="cursor: pointer;">
<h2 class="pb-0 mb-0 fw-loungethbold " style="color: #ffc000;">* ดวงเกิดดีหรือไม่ดีนั้น เราสามารถหนุนดวงได้ด้วยเบอร์มงคล *</h2>
</div>
</div>
</div>
<div class="container px-lg-5 px-3">
<div class="row px-md-5 mb-3 pt-md-0">
<div class="col-md-12 px-md-2" >
<div class="row border-kai2 py-4 py-md-3">
<div class="col-12 col-md-12 text-center text-md-start">
<?php
foreach($arr_num as $Key=>$value)
{
$list_de = array('table'=>'meaningnumber','where'=>'number LIKE "%'.$Key.'%"');
$view_de = $view_db->view($list_de);
$row_de = $view_db->q($view_de);
?><div class="px-xxl-5" style="margin-top:20px;"><?php echo $row_de['detail']?></div><?php
}
?>
</div>
</div>
</div>
</div>
</div>
<div class="container px-lg-5 px-3">
<div class="row px-md-5 mb-3">
<div class="col-md-12 px-md-2" >
<div class="row py-4 py-md-0">
<div class="col-12 col-md-12">
<!--
<div align="right" style="padding-top:10px;"><a href="../home/" style="color:#FFF;">กลับ...</a></div>
-->
<div align="right">
<!--
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
-->
<script>
var this_main_number = 0;
function share_to_fb()
{
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent('http://www.kainumber.com/reading/index.php?ID_card=<?php echo $_GET['ID_card']?>'),'addthis_popup','toolbar=0,status=0,width=626,height=436');
}
</script>
<a
onClick="javascript:share_to_fb();"
style="cursor: pointer;color:#FFF;"
title="แบ่งปันให้เพื่อน">
<img src="../image/fa-b.webp" width="50" style="border:none;"/>แชร์</a>
</div>
</div>
<div class="col-12 col-md-12 mb-3 md-md-0" align="center">
<input class="btn btn-kai1 px-4" type="button" value="ย้อนกลับ" onclick="window.location.href='<?php echo $_SESSION['HTTP_REFERER']; ?>'">
</div>
</div>
</div>
</div>
</div>
<?php include("footer.php"); ?>
<div class="container mt-5 px-md-5 mt-md-3">
<div class="row d-md-flex justify-content-center ">
<?php include("../theme/link_line.php"); ?>
<div class="col-12 col-md-auto text-center px-0 mb-3 mb-md-0">
</div>
</div>
</div>
<div class="container mt-5 px-md-5 mt-md-3">
<div class="row px-md-5 d-md-flex justify-content-center ">
<div class="col-12 col-md-auto text-center px-0 mb-3 mb-md-0">
<a href="https://lin.ee/egzGHWJ" target="_blank" class="text-decoration-none text-light">
<img src="../image/line_n1.webp" alt="" >
@kainumber
</a>
</div>
<span class="col-md-auto px-2 d-none d-md-block">/</span>
<div class="col-12 col-md-auto text-center px-0">
<a href="https://th-th.facebook.com/kainumber/" target="_blank" class="text-decoration-none text-light">
<img src="../image/fb_n1.webp" alt="" >
อาจารย์ไก่ เบอร์มงคล
</a>
</div>
</div>
<div class="row px-md-5 d-md-flex justify-content-center">
<div class="col-12 col-md-5 text-center mt-3">
<img src="../image/text_logotop.webp" alt="" class="img-fluid col-8 col-md-8">
</div>
</div>
</div>
<!-- <?php //include('recommend.php')?> -->
<?php //include('../theme/phone_guide.php')?>
<?php
$list = array(
'table'=>'log_reading',
'phonenumber'=>"'".@$_GET['ID_card']."'",
'type'=>'2',
'createtime_U'=>"'".date("U")."'",
'createtime'=>"'".date("Y-m-d H:i:s")."'",
);
$add = $actiondata_db->add_db($list);
}
?>
</div>
<?php //include('footer.php')?>
<script>
function fm_forecastid()
{
if(document.fmforecastid.ID_card.value==""){alert("ขออภัยค่ะกรุณากรอกหมายเลขบัตรประชาชน13หลัก");document.fmforecastid.ID_card.focus();return false;}
if(isNaN(document.fmforecastid.ID_card.value)){alert("ขออภัยค่ะกรุณากรอกหมายเลขบัตรประชาชน13หลัก");document.fmforecastid.ID_card.focus();return false;}
if(document.fmforecastid.ID_card.value.length <13){alert("ขออภัยค่ะกรุณากรอกหมายเลขบัตรประชาชน13หลัก");document.fmforecastid.ID_card.focus();return false;}
}
</script>
<script>
function validate_number(evt) {
var theEvent = evt || window.event;
var key = theEvent.keyCode || theEvent.which;
key = String.fromCharCode( key );
var regex = /[0-9]|\./;
if( !regex.test(key) ) {
theEvent.returnValue = false;
if(theEvent.preventDefault) theEvent.preventDefault();
}
}
</script>
<!-- /.body -->
<?php include('../include/footer.php')?>
<?php include('../include/footer_js.php')?>