| Server IP : 172.67.216.113 / Your IP : 172.71.28.146 [ 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/seamsi/ |
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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<link rel="apple-touch-icon" href="../image/icon.webp"/>
<link rel="apple-touch-icon" sizes="72x72" href="../image/icon.webp"/>
<link rel="apple-touch-icon" sizes="114x114" href="../image/icon.webp"/>
<link rel="icon" href="../image/favicon.ico">
<?php
$list = array('table'=>'seamsi','where'=>'name_en = "'.$_GET['name'].'" AND status = "1"');
$view = $view_db->view($list);
$row1 = $view_db->q($view);
$og_title = 'เสี่ยงเซียมซี ' . $row1['name'];
$og_image = $row1['image'];
$og_image2 = 'https://www.simded.com/redbag/seamsi/'.$img_t;
$og_image3 = 'https://www.simded.com/redbag/seamsi/'.$img_t;
$name_table = 'seamsi';
$sum = $row1["sum"] + 1;
$list = array(
'table'=>$name_table,
'id'=>$row1["id"],
'sum'=>$sum,
'up_date'=>$date
);
$add = $actiondata_db->edit_db($list);
?>
<?php include('../include/meta.php');?>
<meta property="og:image" content="<?php echo $og_image?>">
<meta property="og:image:secure_url" content="<?php echo $og_image3?>">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="600">
<meta property="og:image:height" content="315">
<!-- Bootstrap core CSS -->
<!--<link href="http://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet">-->
<link href="../bootstrap-5/css/bootstrap.min.css" rel="stylesheet">
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<!-- <link href="http://getbootstrap.com/assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">-->
<script src="../bootstrap/js/ie-emulation-modes-warning.js"></script>
<!-- Custom styles for this template -->
<!-- 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="http://getbootstrap.com/assets/js/ie-emulation-modes-warning.js"></script>-->
<script src="../bootstrap/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.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!--
<link href="../css/style.css" rel="stylesheet">
-->
<script src="../include/function.js"></script>
</head>
<body>
<?php include('../css/css.php'); ?>
<?php $menu = 'reading';?>
<?php include('../theme/menu.php')?>
<style>
.Bgfooter{ margin-top:-35px;}
.text_reading{background-color:#ffff00;border-radius:20px;max-width:500px;text-align:center;font-size:23px;padding-top:15px;padding-bottom:15px;margin-top:45px;color:#333;}
.Dloading{background-color:#FFC;padding:10px;position:absolute;z-index:99;border-radius:10px;margin-top:200px;margin-left:0px;}
.H_title{color:#ffff00;font-size:50px;text-align:left;text-shadow: 0.1em 0.1em 0.05em #333;font-family:'Superspace';font-weight:bold;margin-left:10px;}
@media (max-width: 768px)
{
.H_title{text-align:center;font-size:40px;}
}
</style>
<div class="container mt-5 px-lg-5 px-3">
<div class="row px-md-5 mb-3 ">
<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>
</div>
</div>
</div>
<div style="background-image:url(../redbag/seamsi/<?php echo $row1['bg_image']?>);background-position:top center;background-repeat:repeat-x;background-color:transparent;margin-top:20px;background-size: auto 429px;">
<div class="container" style="max-width:1000px;">
<div class="" style="border:0px solid #F00;">
<div class="pt-4" align="center">
<div class="text_reading">
ตั้งจิตอธิษฐาน นึกถึงเรื่องที่อยากถาม แล้วกดปุ่มเสี่ยงทาย
</div>
<div style="border:0px solid #0F0;max-width:370px;margin-top:60px;height:450px;" id="DIV_seamsi">
<div id="Dloading" style="background-color:#FFC;padding:10px;position:absolute;z-index:99;border-radius:10px;margin-top:200px;display:none;margin-left:-85px;color:#000;">กรุณารอคำทำนาย สักครู่...</div>
<div style="position:absolute;padding-top:90px;">
<img id="logo_seamsi" src="../image/logo_seamsi.webp" width="364" height="361" class="img-responsive"/>
</div>
<?php
$fortune = 'cc.webp';
$fortune_gif = 'cd.gif';
if($row1['id'] == '15')
{
$fortune = 'cookie.webp';
$fortune_gif = 'cookie.gif';
}
if($row1['id'] == '16')
{
$fortune = 'wunneeginarrai.webp';
$fortune_gif = 'wunneeginarrai.gif';
}
?>
<div align="center" style="position:absolute;">
<img id="shake" src="../image/<?php echo $fortune ?>" width="380" height="450" class="img-responsive"/>
<img id="shake_gif" src="../image/<?php echo $fortune_gif ?>" width="380" height="450" class="img-responsive" style="display:none;"/>
</div>
<div style="position:absolute;margin-left:110px;margin-top:260px;cursor:pointer;border:0px solid #F00;" onclick="loading_seamsi()">
<img src="../image/btn_reading.webp" width="143" height="143"/ title="กดเสี่ยงทายเซียมซี" id="loading_seamsi">
</div>
</div>
</div>
</div>
<div style="border:#00F solid 0px;margin-top:40px;">
<?php //include('../themes/google_ads.php');?>
<?php include('../include/ad_google.php');?>
</div>
<div style="margin-top:50px;margin-bottom:50px;color:#FFF;">
<?php echo $row1['detail']?>
</div>
</div>
</div>
<div class="container mt-5 px-md-5">
<div class="row px-md-5 d-md-flex justify-content-center pt-md-5">
<div class="col-12 col-md-auto text-center px-0 mb-3 ">
<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>
<!-- /.body -->
<?php include('../include/footer.php')?>
<?php include('../include/footer_js.php')?>
<?php
$list2 = array('table'=>'seamsi_detail','where'=>'seamsi_id = "'.$row1['id'].'" order by RAND() LIMIT 1 ');
$view2 = $view_db->view($list2);
$row2 = $view_db->q($view2);
$bg_1 ='bg_1.webp';
if( $row1['bg_image'] <> '')
{$bg_1 = $row1['bg_image'];
$bg_2 = $row1['bg_image'];
}
$bg_pp ='bg_pp.webp';
if( $row1['bg_pp'] <> '')
{$bg_pp = $row1['bg_pp']; }
$SourceFile = '../redbag/seamsi/'.$bg_pp; //รูปที่ต้องการใส่วอเตอร์มาร์ค
$DestinationFile = 'number/'.$row1['name_en'].'_'.$row2['id'].'.webp'; //ไฟล์รูปภาพที่จะจัดเก็บ
if( file_exists($SourceFile.$DestinationFile) )
{
}
else
{
$text_description = strip_tags($row2['detail']);
include("mark.inc.php"); //นำเข้าไฟล์ฟังก์ชั่น
$WaterMarkText = 'เซียมซีใบที่ '.$row2['number']; //ข้อความที่จะใส่
$text_description = strip_tags($text_description);
$WaterMarkText2 = $util_class->sub_str_2($text_description,'400'); //ข้อความที่จะใส่
$WaterMarkTextn = $row1['name'];
watermarkImage ($SourceFile, $WaterMarkText , $WaterMarkTextn , $WaterMarkText2, $DestinationFile);
}
?>
<script>
$(window).load(function() { // better to use $(document).ready(function(){
$('#loading_seamsi').on('click touchstart', function() {
document.getElementById("Dloading").style.display = "inline";
document.getElementById("shake_gif").style.display = "inline";
document.getElementById("shake").style.display = "none";
setTimeout(function(){ window.location.href = "reading.php?name=<?php echo $_GET['name'];?>&num=<?php echo $row2['id']?>"; }, 3000);
});
});
document.getElementById("DIV_seamsi").addEventListener("mouseover", mouseover_shake);
document.getElementById("DIV_seamsi").addEventListener("mouseout", mouseout_shake);
function mouseover_shake()
{
//document.getElementById("shake").src = "../images/cd.gif";
document.getElementById("shake_gif").style.display = "inline";
document.getElementById("shake").style.display = "none";
//$( "#shake" ).effect( "shake" );
}
function mouseout_shake()
{
//document.getElementById("shake").src = "../images/cc.webp";
document.getElementById("shake_gif").style.display = "none";
document.getElementById("shake").style.display = "inline";
}
</script>