| Server IP : 172.67.216.113 / Your IP : 172.71.28.145 [ 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/theme/ |
Upload File : |
<!-- /.category -->
<div class="container mt-5 mt-md-4 px-lg-5 px-3">
<div class="row px-md-5 mb-3 pt-md-0">
<div class="col-md-12 px-md-2 d-flex justify-content-between align-baseline" >
<div class="">
<h2 class="pb-0 mb-0 border-kai-bottom-light fw-loungethbold">เบอร์มงคลแนะนำ</h2>
<!--<hr class="line1 my-1">-->
</div>
<a href="../home/search.php" class="text-decoration-none text-kai-link">ดูเพิ่มเติม</a>
</div>
</div>
</div>
<div class="container mt-5 mt-md-4 px-lg-5 px-3">
<?php ?>
<div class="row px-md-5">
<?php
$list_phr = array('table'=>'phonenumber','where'=>'status = 1 AND status_number = 1 ','order'=> "ORDER BY id DESC LIMIT 20");
$view_phr = $view_db->view($list_phr);
$result_phr = $view_db->q_re($view_phr);
while($row_phr = $view_db->q_ro($result_phr))
{
$output2='';
$arr_P3_all=array();
$pass3_all_n=array();
$Fullscore_p=0;
$TotalScore_plus=0;
$TotalScore_delete=0;
$percent_number=0;
$phonenumber = $row_phr['phonenumber'];
include('perl.php');
$Fullscore_p = 100 * count($pass3_all_n);
$percent_number = (($TotalScore_plus - abs($TotalScore_delete))*100)/$Fullscore_p;
$list_phrn = array('table'=>'mobilenetwork','where'=>'id = "'.$row_phr['mobilenetwork'].'"','order'=> "ORDER BY id DESC LIMIT 0 , 1");
$view_phrn = $view_db->view($list_phrn);
$row_phrn = $view_db->q($view_phrn);
$se = explode(',',$row_phr['category']);
$list_phrc = array('table'=>'category','where'=>'id = "'.$se[0].'"','order'=> "ORDER BY id DESC LIMIT 0 , 1");
$view_phrc = $view_db->view($list_phrc);
$row_phrc = $view_db->q($view_phrc);
$list_phre = array('table'=>'element','where'=>'id = "'.$row_phr['element_id'].'"','order'=> "ORDER BY id DESC LIMIT 0 , 1");
$view_phre = $view_db->view($list_phre);
$row_phre = $view_db->q($view_phre);
/*
*/
$cate_img='';
/*
if($row_phrc['id']==7){$cate_img='icon-01-love.webp';}
if($row_phrc['id']==8){$cate_img='icon-02-office.webp';}
if($row_phrc['id']==10){$cate_img='icon-05-foster.webp';}
if($row_phrc['id']==11){$cate_img='icon-04-money.webp';}
if($row_phrc['id']==12){$cate_img='icon-03-family.webp';}
if($row_phrc['id']==13){$cate_img='icon-07-chat.webp';}
if($row_phrc['id']==16){$cate_img='icon-06-health.webp';}
if($row_phrc['id']==17){$cate_img='icon-08-avoid.webp';}
*/
$short_number1 = $Phone_class->catshort_number2('',$phonenumber);
$short_number1_t = $Phone_class->catshort_number($short_number1,$phonenumber);
// echo $short_number1;
if($short_number1==7){$cate_img='icon-01-love.webp';}
if($short_number1==8){$cate_img='icon-02-office.webp';}
if($short_number1==10){$cate_img='icon-05-foster.webp';}
if($short_number1==11){$cate_img='icon-04-money.webp';}
if($short_number1==12){$cate_img='icon-03-family.webp';}
if($short_number1==13){$cate_img='icon-07-chat.webp';}
if($short_number1==16){$cate_img='icon-06-health.webp';}
if($short_number1==17){$cate_img='icon-08-avoid.webp';}
$network_img='';
if($row_phr['mobilenetwork']==1){$network_img='0222- ais.webp';}
if($row_phr['mobilenetwork']==2){$network_img='01- ddd.webp';}
if($row_phr['mobilenetwork']==3){$network_img='03- true.webp';}
if($row_phr['mobilenetwork']==8){$network_img='05- yyyy.webp';}
$dpr = 0;
$dpr = $percent_number*1.67;
//$dpr = $percent_number*1.5;
$dpr = 440 -$dpr;
// /echo $dpr;
?>
<style media="screen">
</style>
<div class="col-12 col-sm-6 col-md-6 col-lg-4 col-xxl-3 px-1 mb-3">
<div class="border-kai2 px-3 py-2 text-center cursor-pointer h-fix-phone" onclick="location.href='../reading/detail.php?phonenumber=<?php echo $row_phr['phonenumber']; ?>'">
<h2 class="pb-1 mb-0 border-kai-bottom mb-2 pt-1" style="font-size: 31px;">
<?php echo $Phone_class->phonenumber($row_phr['phonenumber']);?>
</h2>
<div class="row">
<div class="col-3 p-0">
<div class="container__progressbars" >
<div class="progressbar">
<svg class="progressbar__svg">
<circle cx="23" cy="26" r="27" class="progressbar__svg-circle circle-html1 shadow-html"
style="stroke-dashoffset: <?php echo $dpr; ?>;"> </circle>
</svg>
<span class="progressbar__text shadow-html">
<!--<img src="../redbag/category/icon-01-love.webp" alt="" class="w-100" >-->
<img src="../redbag/category/<?php echo $cate_img; ?>" alt="" class="w-100" >
</span>
</div>
<small class="progressbar_text2 fix-s" style="top: 9px"> <?php echo number_format($percent_number,2); ?>%</small>
</div>
</div>
<div class="col-6 px-0">
<div class="border-kai-bottom w-100">
<!--<small class="small-kai "><?php echo $row_phrc['name']; ?></small>-->
<label style="<?php if(strlen($short_number1_t)>=51){echo 'font-size: 20px;padding-bottom: 2px;';} ?>" >
<?php echo $short_number1_t; ?></label>
</div>
<div class="border-kai-bottom w-100">
<img src="../redbag/mobilenetwork/<?php echo $network_img; ?>" alt="" height="33" >
</div>
<!--<small class="small-kai"><?php echo $row_phr['price']; ?>-</small>-->
<label style="top: 5px;position: relative;"><?php echo $row_phr['price']; ?>-</small>
</div>
<div class="col-3 p-0 border-kai-left pe-2" >
<div class="py-0 pe-1">
<div class="border-kai-bottom w-100">
<label class="fix-l" >ผลรวม</label>
<h1 class="ps-2 p-0 m-0 fix-h1"><?php echo $row_phr['sum_number']; ?></h1>
</div>
<small class="fix-s">ธาตุ<?php echo $row_phre['name']; ?></small>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="container my-5 my-md-3 px-md-5">
<div class="row px-md-5">
<div class="col-md-12 px-md-2 d-md-flex justify-content-center align-baseline text-center" >
<p class="pe-md-2 mb-3">เลือกเครือข่าย</p>
<div class="d-md-flex mb-3 mb-md-0">
<div class="px-md-0">
<img src="../image/01- dd.webp" alt="" class="px-md-1 img-fluid" onclick="location.href='../home/search.php?network=2'">
<img src="../image/02- ais.webp" alt="" class="px-md-1 img-fluid" onclick="location.href='../home/search.php?network=1'">
<img src="../image/04- gg.webp" alt="" class="px-md-1 img-fluid" onclick="location.href='../home/search.php?network=3'">
<img src="../image/05- yy.webp" alt="" class="px-md-1 img-fluid" onclick="location.href='../home/search.php?network=8'">
</div>
</div>
<p class="ps-md-2">ที่คุณชอบ</p>
</div>
</div>
</div>
<!-- /.category -->