X7ROOT File Manager
PHP:
7.2.34
OS:
Linux
User:
cp648411
Root
/
home2
/
cp648411
/
public_html
/
kainumber.com
/
home
📤 Upload
📝 New File
📁 New Folder
Close
Editing: index_test.php
<?php include('../include/class.php');?> <?php $phonenumber = $_GET['phonenumber']; $img_fa = 'http://www.kainumber.com/image/text_logotop.jpg'; if($phonenumber <> '') { include('perl.php'); echo '<pre>'; print_r($pass3_all); echo '</pre>'; echo count($pass3_all); $Fullscore_p = 100 * count($pass3_all); echo '<pre>'; echo $TotalScore_plus - abs($TotalScore_delete); echo '</pre>'; $percent_number = (($TotalScore_plus - abs($TotalScore_delete))*100)/$Fullscore_p; $img_fa = 'http://www.kainumber.com/image/text_logotop.jpg'; $title_fa = $Phone_class->phonenumber_cover($phonenumber).'('.$p1_sum_number.')'; if($percent_number <= 40){ $txt_sum = 'เบอร์นี้จัดอยู่ในเกณฑ์ที่แย่ สมควรเปลี่ยนเบอร์อย่างยิ่ง';$img_fa = 'http://www.kainumber.com/image/sharer4.jpg';} if($percent_number >= 41 && $percent_number <= 65){ $txt_sum = 'เบอร์นี้ยังมีตัวเลขที่ไม่ดีอยู่การเปลี่ยนเบอร์ขึ้นอยู่กับวิจารณญาณของผู้ใช้เบอร์';$img_fa = 'http://www.kainumber.com/image/sharer3.jpg'; } if($percent_number >= 66 && $percent_number <= 85){ $txt_sum = 'เบอร์นี้อยู่ในเกณฑ์ดี ถ้าเปลี่ยนควรหาเบอร์ที่เหมาะสมกับดวงของท่านให้มากขึ้น'; $img_fa = 'http://www.kainumber.com/image/sharer2.jpg';} if($percent_number >= 86){ $txt_sum = 'เบอร์นี้อยู่ในเกณฑ์ที่ดีมาก ขึ้นอยู่กับดวงแต่ละบุคคลและการใช้งาน';$img_fa = 'http://www.kainumber.com/image/sharer1.jpg'; } $description_fa = $txt_sum; } ?> <?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> body { background-image:url(../image/bg_header_red.jpg);background-repeat:no-repeat;} </style> <?php } if($percent_number >= 41 && $percent_number <= 65) { ?> <style> body { background-image:url(../image/bg_header_or.jpg);background-repeat:no-repeat;} </style> <?php } if($percent_number >= 66 && $percent_number <= 85) { ?> <style> body { background-image:url(../image/bg_header_ya.jpg);background-repeat:no-repeat;} </style> <?php } if($percent_number >= 86) { ?> <style> body { background-image:url(../image/bg_header_gre.jpg);background-repeat:no-repeat;} </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;} } </style> <div class="container"> <div class="row" style="padding-top:30px;"> <div class="col-md-12"> <!-- /.forecast_number --> <form class="form-horizontal" action="index.php" method="get" name="fmforecast" onSubmit="return fm_forecast();"> <div class="form-group"> <label for="inputEmail3" class="col-sm-3 control-label" style="font-size:20px;margin-top:5px;">อาจารย์ไก่ทำนายเบอร์</label> <div class="col-sm-7"> <input type="text" class="form-control" maxlength="10" style="color:#000;padding-left:10px;height:50px;font-size:20px;" name="phonenumber" value="<?php echo $_GET['phonenumber'];?>" placeholder="หมายเลขโทรศัพท์" id="phonenumber"> </div> <div class="col-sm-2"> <input type="submit" value="ทำนาย" class="bn_snumber bn_forecast"> </div> </div> </form> <?php if( $_GET['phonenumber'] == '') { ?> <div align="center"> <img src="../image/bg_forecast.png" class="img-responsive" /> </div> <?php } ?> <!-- /.forecast_number --> </div> </div> </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> <?php if($phonenumber <> '') { ?> <div class="container" style="padding-top:25px;"> <div class="row"> <div class="col-md-8 font_number" > <div><?php echo $Phone_class->phonenumber($phonenumber)?></div> </div> <div class="col-md-4 font_numbersum"> <div> <div align="center" style="font-size:12px;">ผลรวมเป็น</div> <div><?php echo $p1_sum_number; ?></div> </div> </div> </div> <div class="row" style="margin-top:25px;"> <div class="col-md-8" > <div class="row"> <div class="col-md-6 number_detail_left"> <div class="ndl_head">ผลรวมเป็น</div> <div>( คิดเป็นเปอร์เซ็นต์ )</div> </div> <div class="col-md-6 number_detail_right"> <?php ?> <div> <?php /* foreach( $pass3_all as $value ) { echo $value['list'] . '=> '.$value['score'].'<br>'; } echo '<br>'.$TotalScore_plus .' : ' . $TotalScore_delete .'<br>';*/ ?> <?php //$percent_number = (($TotalScore_plus - abs($TotalScore_delete))*100)/$Fullscore_p; ?> <?php $percent_number = number_format($percent_number, 2, '.', ''); ?> <?php if($percent_number <= 40){ ?><span style="color:#F00"><?php echo $percent_number ?> %</span><?php } if($percent_number >= 41 && $percent_number < 66){ ?><span style="color:#C60"><?php echo $percent_number ?> %</span><?php } if($percent_number >= 66 && $percent_number < 86){ ?><span style="color:#FF0"><?php echo $percent_number ?> %</span><?php } if($percent_number >= 86){ ?><span style="color:#090"><?php echo $percent_number ?> %</span><?php } ?> </div> </div> </div> <div class="row"> <div class="col-md-6 number_detail_left h_120"> <div class="ndl_head">น้ำหนักคำพยากรณ์</div> <div>( คำนวณเลขมงคล 7 หลัก )</div> </div> <div class="col-md-6 number_detail_right h_120"> <div> <?php echo substr($phonenumber,0,3); ?>. <?php foreach ($p2_score as $value) { $number_2 = $number_2 . $value['combination'].' '; } echo $number_2; ?></div> </div> </div> <div class="row h_160"> <div class="col-md-6 number_detail_left h_160"> <div class="ndl_head" style="padding-top:15px;">เบอร์จัดอยู่ในระดับ</div> </div> <div class="col-md-6 number_detail_right h_160"> <div> <?php if($percent_number <= 40){ ?><span style="color:#F00;font-size:26px;">เบอร์นี้จัดอยู่ในเกณฑ์ที่แย่ สมควรเปลี่ยนเบอร์อย่างยิ่ง</span><?php } if($percent_number >= 41 && $percent_number < 66){ ?><span style="color:#C60;font-size:22px;">เบอร์นี้ยังมีตัวเลขที่ไม่ดีอยู่การเปลี่ยนเบอร์ขึ้นอยู่กับวิจารณญาณของผู้ใช้เบอร์ </span><?php } if($percent_number >= 66 && $percent_number < 86){ ?><span style="color:#FF0;font-size:22px;">เบอร์นี้อยู่ในเกณฑ์ดี ถ้าเปลี่ยนควรหาเบอร์ที่เหมาะสมกับดวงของท่านให้มากขึ้น </span><?php } if($percent_number >= 86){ ?><span style="color:#090;font-size:26px;">เบอร์นี้อยู่ในเกณฑ์ที่ดีมาก ขึ้นอยู่กับดวงแต่ละบุคคลและการใช้งาน</span><?php } ?> </div> </div> </div> <div class="row"> <div class="col-md-6 number_detail_left"> <div class="ndl_head" style="padding-top:15px;">อยู่ในหมวด</div> </div> <?php /* $list_cat = array('table'=>'meaningnumber','where'=>'number LIKE "%'.$p1_sum_number.'%"'); $view_cat = $view_db->view($list_cat); $row_cat = $view_db->q($view_cat);*/ $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); ?> <div class="col-md-6 number_detail_right"> <div><?php echo $row_cat['title']; ?></div> </div> </div> </div> <div class="col-md-4"> <?php $element = $Phone_class->element($p1_sum_number);?> <?php $arr_element = $Phone_class->element_forecast($element);?> <div> <div align="center"><img src="../image/img_<?php echo $arr_element['nameimg']?>.png" width="340" height="350" class="img-responsive"></div> <div align="center" class="ndl_head">ธาตุ<?php echo $arr_element['name']?></div> </div> </div> </div> <br> <?php $Fullscore = 5 * count($pass3_all);//จำนวนค่าที่นำมาคำนวณ ?> <br> <div align="center"><img src="../image/line2.png" class="img-responsive" style="padding:15px 0"></div> <div style="font-size:16px;" align="center">เบอร์ดีหรือไม่ดีนั้น ส่วนหนึ่งอยู่ที่การนำไปใช้ กับงานที่เหมาะสมด้วย</div> <div align="center"><img src="../image/line2.png" class="img-responsive" style="padding:15px 0"></div> <?php /* $list_de_s = array('table'=>'meaningnumber','where'=>'number LIKE "%'.$p1_sum_number.'%"'); $view_de_s = $view_db->view($list_de_s); $row_de_s = $view_db->q($view_de_s); ?><div style="margin-top:20px;"><?php echo $row_de_s['detail']?></div><?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;font-size:16px;"><?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;font-size:16px;"><?php echo $row_de4['detail']?></div><?php } ?> <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.png" width="50" style="border:none;"/>Share</a> </div> </div> <?php include('recommend.php')?> <?php $list = array( 'table'=>'log_reading', 'phonenumber'=>"'".@$_GET['phonenumber']."'", 'createtime_U'=>"'".date("U")."'", 'createtime'=>"'".date("Y-m-d H:i:s")."'", ); $add = $actiondata_db->add_db($list); } ?> <?php include('footer.php')?> <!-- /.body --> <?php include('../include/footer.php')?> <?php include('../include/footer_js.php')?>
Save
Cancel