| Server IP : 172.67.216.113 / Your IP : 104.23.243.32 [ 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/simded.com/themesv2/ |
Upload File : |
<style>
.BG_seamsi{
background-image:url(../redbag/seamsi/<?php echo $bg_1;?>);
background-position:top center;
background-repeat:no-repeat;
background-color:#FFF;
margin-top:20px;
background-size: cover;
max-height: 700px;
}
.BG_seamsi_pp{max-width:599px;margin-top:10rem;padding:30px 20px;background-position:top center;background-image:url(../redbag/seamsi/<?php echo $bg_pp;?>);background-repeat:no-repeat;min-height:771px;background-repeat:repeat-y;border:0px solid #F00;padding-bottom:100px;}
.seamsi_text{font-weight:bold;padding:30px 30px;font-size:24px;}
.title_seamsi{font-size:36px;font-weight:bold;}
@media (max-width: 768px)
{
.BG_seamsi_pp{max-width:599px;margin-top:10rem;padding:30px 20px;background-position:top center;
background-repeat:repeat-y;height:auto;}
.seamsi_text{padding:10px 10px;}
.title_seamsi{font-size:26px;font-weight:bold;}
}
.Bgfooter{ margin-top:-35px;}
</style>
<?php
function thainumDigit($num){
return str_replace(array( '0' , '1' , '2' , '3' , '4' , '5' , '6' ,'7' , '8' , '9' ),
array( "o" , "๑" , "๒" , "๓" , "๔" , "๕" , "๖" , "๗" , "๘" , "๙" ),
$num);
};
?>
<div class="BG_seamsi" >
<div class="container">
<div class="row pt-5 justify-content-center" align="center">
<div class="BG_seamsi_pp rounded-sim py-3 " style="">
<div style="border:0px solid #F00;">
<?php
$text_se = 'เซียมซีใบที่ ' . $row2['number'];
if($row['id']==16)
{
$text_se = $row2['detail'];
}
?>
<div class="title_seamsi" style="padding-top:20px;" align="center"><?php echo $text_se;?></div>
<?php if($row['id'] <> 16) { ?>
<div class="text-danger-sim title_seamsi" align="center">
<?php
$tx_name = explode(" วัด",$row['name']);
echo $tx_name[0];
if($tx_name[1]){
echo "<br>".'วัด'.$tx_name[1];
}
?>
</div>
<?php } ?>
<div class="seamsi_text" align="center">
<?php if($row['id'] <> 16) { ?>
<?php echo $row2['detail'];?>
<?php } ?>
<?php if($row2['image']<> '') { ?>
<img src="../redbag/seamsi/<?php echo $row2['image'];?>" class="img-responsive">
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
echo strlen($row2['detail']);
if(strlen($row2['detail'])>2000){$hfix = 'height: 25rem;';}
elseif(strlen($row2['detail'])>1500){$hfix = 'height:23rem;';}
elseif(strlen($row2['detail'])>1300){$hfix = 'height:19rem;';}
else {$hfix = 'height:18rem;'; }
?>
<div class="" style="<?php echo $hfix; ?>"> </div>
<div class="container">
<?php
function sofa_get_uri(){
$host = $_SERVER['SERVER_NAME'];
$self = $_SERVER['REQUEST_URI'];
$query = !empty($_SERVER['QUERY_URI']) ? $_SERVER['QUERY_STRING'] : null;
$ref = !empty($query) ? "http://$host$self?$query" : "http://$host$self";
return $ref;
}
$link = sofa_get_uri();
?>
<div class="row pb-3" align="center" style="border:0px solid #F00;max-width:600px;margin:0 auto;">
<div class="col-12 text-primary fw-bold text-spacing-md fs-3">
แชร์
</div>
<div class="d-flex justify-content-center pt-3 " >
<div class="line-it-button " data-lang="th" data-type="share-c" data-env="REAL"
data-url="<?php echo $link; ?>"
data-color="default"
data-size="large"
data-count="false"
data-ver="3" style="display: none;">
</div>
<a class="ps-3"
onClick="javascript:share_to_fb();"
style="cursor: pointer;color:#FFF;"
title="แบ่งปันให้เพื่อน">
<img src="../images/logo-facebook.png" width="45" height="45" class="img-fluid" />
</a>
</div>
<script src="https://www.line-website.com/social-plugins/js/thirdparty/loader.min.js" async="async" defer="defer"></script>
<div class="col-md-6 mt-3">
<a type="button" href="../seamsi/predict.php?name=<?php echo $_GET['name'] ?>" class="btn btn-success-sim w-100 fw-bold text-spacing-md fs-4">
เสี่ยงเซียมซีใหม่
</a>
</div>
<div class="col-md-6 mt-3">
<button type="button" onclick="location.href='../seamsi/'" class="btn btn-danger-sim w-100 fw-bold text-spacing-md fs-4" >เลือกใหม่</button>
</div>
</div>
</div>
<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('https://www.facebook.com/sharer.php?u='+encodeURIComponent('https://www.simded.com/seamsi/reading.php?name=<?php echo $_GET['name']?>&num=<?php echo $_GET['num']?>'),'addthis_popup','toolbar=0,status=0,width=626,height=436');
}
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/th_TH/sdk.js#xfbml=1&version=v2.12&appId=1936378513267243&autoLogAppEvents=1';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>