| Server IP : 104.21.37.246 / 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/taro/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.png"/>
<link rel="apple-touch-icon" sizes="72x72" href="../image/icon.png"/>
<link rel="apple-touch-icon" sizes="114x114" href="../image/icon.png"/>
<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;
?>
<?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/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 $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:18px;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;}
</style>
<div class="container">
<div class="row">
<div class="col-md-12">
<div style="color:#ffff00;font-size:50px;text-align:center;text-shadow: 0.1em 0.1em 0.05em #333;font-family:'Superspace';">เลือกเซียมซีจากวัดดัง</div>
<div style="margin-top:0px;">
<div class="row">
<div class="col-md-6"><div class="HeadText"></div></div>
<div class="col-md-6 hidden-xs hidden-sm " style="font-size:16px;color:#FFF;margin-top:15px;text-align:right;font-family:'Superspace';">ทำนายทั่วไป >
<a href="../seamsi/" style="color:#FFF;font-family:'Superspace';">เสี่ยงทายเซียมซี </a>
> <a href="../seamsi/predict.php?name=<?php echo $_GET['name']; ?>" style="color:#FFF;font-family:'Superspace';"><?php echo $row1['name'] ?> </a>
</div>
</div>
</div>
</div>
</div><!--/row-->
</div>
<div style="background-image:url(../redbag/seamsi/<?php echo $row1['bg_image']?>);background-position:top center;background-repeat:repeat-x;background-color:#FFF;margin-top:20px;">
<div class="container" style="max-width:1000px;">
<div class="" style="border:0px solid #F00;">
<div class="" 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.png" width="364" height="361" class="img-responsive"/>
</div>
<?php
$fortune = 'cc.png';
$fortune_gif = 'cd.gif';
if($row1['id'] == '15')
{
$fortune = 'cookie.png';
$fortune_gif = 'cookie.gif';
}
if($row1['id'] == '16')
{
$fortune = 'wunneeginarrai.png';
$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.png" 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_ad.php');?>
</div>
<div style="margin-top:50px;margin-bottom:50px;color:#000;">
<?php echo $row1['detail']?>
</div>
</div>
</div>
<div class="container">
<div class="row" align="center">
<div class="col-md-12" style="padding:-top:20px;">
<?php include('../themes/google_ad.php');?>
</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.jpg';
if( $row1['bg_image'] <> '')
{$bg_1 = $row1['bg_image'];
$bg_2 = $row1['bg_image'];
}
$bg_pp ='bg_pp.jpg';
if( $row1['bg_pp'] <> '')
{$bg_pp = $row1['bg_pp']; }
$SourceFile = '../redbag/seamsi/'.$bg_pp; //รูปที่ต้องการใส่วอเตอร์มาร์ค
$DestinationFile = 'number/'.$row1['name_en'].'_'.$row2['id'].'.jpg'; //ไฟล์รูปภาพที่จะจัดเก็บ
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.png";
document.getElementById("shake_gif").style.display = "none";
document.getElementById("shake").style.display = "inline";
}
</script>