| Server IP : 172.67.216.113 / Your IP : 104.23.243.33 [ 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 : /home/cp648411/www/simded.com/seamsi/ |
Upload File : |
<?php
include('../include/class.php');
include('../include/sql_injection_get.php');
$list = array('table'=>'seamsi','where'=>'name_en = "'.$_GET['name'].'" AND status = "1"');
$view = $view_db->view($list);
$row = $view_db->q($view);
$bg_1 ='bg_1.jpg';
if( $row['bg_image'] <> '')
{$bg_1 = $row['bg_image'];
$bg_2 = $row['bg_image'];
}
$bg_pp ='bg_pp.jpg';
if( $row['bg_pp'] <> '')
{$bg_pp = $row['bg_pp']; }
$list2 = array('table'=>'seamsi_detail','where'=>'id = "'.$_GET['num'].'" order by RAND() LIMIT 1 ');
$view2 = $view_db->view($list2);
$row2 = $view_db->q($view2);
$og_title = 'เสี่ยงเซียมซี ' . $row['name'];
if($row2['image'] <> '')
{
$bg_2 = $row2['image'];
}
$text_description = $row2['detail'];
$text_og_description = $util_class->sub_str_2($text_description,'200');
$img_t = $row['image'];
$og_description = $text_og_description;
$DestinationFile = 'number/'.$row['name_en'].'_'.$row2['id'].'.jpg'; //ไฟล์รูปภาพที่จะจัดเก็บ
/*include("mark.inc.php"); //นำเข้าไฟล์ฟังก์ชั่น
$SourceFile = '../redbag/seamsi/'.$bg_pp; //รูปที่ต้องการใส่วอเตอร์มาร์ค
$DestinationFile = 'number/'.$row['name_en'].'_'.$row2['id'].'.jpg'; //ไฟล์รูปภาพที่จะจัดเก็บ
$WaterMarkText = 'เซียมซีใบที่ '.$row2['number']; //ข้อความที่จะใส่
$WaterMarkText2 = $util_class->sub_str_2($text_description,'500'); //ข้อความที่จะใส่
$WaterMarkText2 = strip_tags($WaterMarkText2);
$WaterMarkTextn = $row['name'];
watermarkImage ($SourceFile, $WaterMarkText , $WaterMarkTextn , $WaterMarkText2, $DestinationFile);*/
$DestinationFile = 'number/'.$row['name_en'].'_'.$row2['id'].'.jpg'; //ไฟล์รูปภาพที่จะจัดเก็บ
$og_image = 'https://www.simded.com/seamsi/'.$DestinationFile;
$og_image2 = 'https://www.simded.com/seamsi/'.$DestinationFile;
$og_image3 = 'http://www.simded.com/seamsi/'.$DestinationFile;
/*$og_image = 'https://www.simded.com/redbag/seamsi/'.$bg_2;
$og_image2 = 'https://www.simded.com/redbag/seamsi/'.$bg_2;
$og_image3 = 'http://www.simded.com/redbag/seamsi/'.$bg_2;*/
?>
<!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">
<?php include('../include/meta.php');?>
<meta property="og:image" content="<?php echo $og_image3?>">
<meta property="og:image:secure_url" content="<?php echo $og_image?>">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="599">
<meta property="og:image:height" content="360">
<?php include('../include/cssfile.php');?>
<?php include('../loginfacebook/config_fb.php');?>
</head>
<body>
<?php
include('../themes/menu.php');
?>
<style>
.BG_seamsi{ background-image:url(../redbag/seamsi/<?php echo $bg_1;?>);background-position:top center;background-repeat:repeat-x;background-color:#FFF;margin-top:20px;background-size: auto 429px;}
.BG_seamsi_pp{max-width:599px;margin-top:50px;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;}
@media (max-width: 768px)
{
.BG_seamsi_pp{max-width:599px;margin-top:50px;padding:30px 20px;background-position:top center;
background-repeat:repeat-y;height:auto;}
}
.seamsi_text{font-weight:bold;padding:30px 30px;font-size:24px;}
.Bgfooter{ margin-top:-35px;}
</style>
<div class="container">
<div class="row">
<div class="col-md-12">
<div style="margin-top:0px;">
<div class="row">
<div class="col-md-3"><div class="HeadText" style="text-align:left;width:100%;margin-bottom:10px;" > เสี่ยงเซียมซี </div></div>
<div class="col-md-9 hidden-xs hidden-sm " style="font-size:16px;color:#F00;margin-top:15px;text-align:right;">ทำนายฟรี >
<a href="../seamsi/" style="color:#F00;">เสี่ยงทายเซียมซี </a> >
<a href="../seamsi/predict.php?name=<?php echo $_GET['name']; ?>" style="color:#F00;"><?php echo $row['name'] ?> </a> >
ใบเซียมซี
</div>
</div>
</div>
<div class="row">
<div class="col-md-12" align="center" style="font-size:40px;font-weight:bold;"> <?php echo $row['name']; ?> </div>
</div>
</div>
</div>
</div>
<div class="BG_seamsi" >
<div class="container" style="max-width:1000px;">
<div class="" align="center">
<div class="BG_seamsi_pp" style="">
<div style="border:0px solid #F00;">
<?php
$text_se = 'เซียมซีใบที่' . $row2['number'];
if($row['id']==16)
{
$text_se = $row2['detail'];
}
?>
<div style="font-size:36px;font-weight:bold;padding-top:20px;" align="center"><?php echo $text_se;?></div>
<?php
if($row['id'] <> 16)
{
?>
<div style="color:#F00;font-size:14px;" align="center"><?php echo $row['name']; ?></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 style="font-size:34px;color:#F00;">
เลขมงคล <?php //echo $row2['number'];?>
</div>-->
<div class="div_com">
<div class="col-md-12" style="margin-top:20px;margin-bottom:20px;">
<a
onClick="javascript:share_to_fb();"
style="cursor: pointer;color:#FFF;"
title="แบ่งปันให้เพื่อน">
<img src="../images/btn_face.png" width="198" height="53" />
</a>
</div>
</div>
</div>
</div>
</div>
<div class="row" align="center" style="border:0px solid #F00;max-width:600px;margin:0 auto;">
<div class="col-md-12 div_mobile" style="margin-top:20px;">
<div data-href="https://www.simded.com/seamsi/reading.php?name=<?php echo $_GET['name']?>&num=<?php echo $_GET['num']?>" data-layout="button_count" data-size="large" data-mobile-iframe="true"><a class="fb-xfbml-parse-ignore" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://www.simded.com/seamsi/reading.php?name=<?php echo $_GET['name']?>&num=<?php echo $_GET['num']?>&src=sdkpreparse"><img src="../images/btn_face.png" width="198" height="53" /></a></div>
</div>
<div class="col-md-6" style="margin-top:20px;">
<a type="button" href="../seamsi/predict.php?name=<?php echo $_GET['name'] ?>" class="btn btn-danger"
style="width:198px;font-size:20px;height:53px;background: linear-gradient(to bottom, rgba(235,28,36,1) 0%,rgba(158,11,15,1) 95%);border-radius:16px;padding-top:10px;">เสี่ยงเซียมซีใหม่</a></div>
<div class="col-md-6" style="margin-top:20px;">
<button type="button" onclick="location.href='../seamsi/'" class="btn btn-link" style="width:198px;font-size:20px;height:53px;background: linear-gradient(to bottom, rgba(53,175,71,1) 0%,rgba(2,98,15,1) 95%);border-radius:16px;color:#FFF;border:1px solid #5cc26a;text-decoration:none;">เลือกใหม่</button>
</div>
</div>
<div style="border:#00F solid 0px;margin-top:40px;">
<?php include('../themes/google_ad.php');?>
</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('http://www.facebook.com/sharer.php?u='+encodeURIComponent('http://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>
<?php
include('../themes/contact_btn2.php');
?>
<style>
.drop_se{border-radius:20px;border:1px solid #ffff00;height:38px;
-webkit-appearance: none;
-moz-appearance: none;
padding-left:45px;
appearance: none;
background: url("../images/icon_arrow.png") #ffff00 no-repeat 98.5% !important; /* !important used for overriding all other customisations */
background: url("../images/icon_arrow.png") #ffff00 no-repeat calc(7% - 10px) !important; /* Better placement regardless of input width */
background-color:#ffff00;
font-size:20px;font-weight:bold;margin-top:-8px;
}
.div_seamsi_fm{background-image:url(../images/bg_seamsi.jpg); background-repeat:no-repeat;max-width:948px;margin:0 auto;height:211px;margin-top:20px;}
.ad_seamsi{border:0px solid #F00;max-width:750px;margin-top:30px;}
@media (max-width: 768px)
{
.div_seamsi_fm{ padding-left:100px; }
}
@media (max-width: 736px)
{
.drop_se{ margin-bottom:15px;}
}
.div_measure{border:2px solid #d7d7d7;max-width:286px;height:286px;border-radius:10px;background-color:#FFF;margin-bottom:20px;margin:0 auto;margin-top:40px;}
.div_measure:hover{border:2px solid #FF0000;}
.div_measure_img{border-bottom:8px solid #F00;}
.div_measure_img2{border-bottom:8px solid #92278f;}
.div_measure_name{font-size:18px;font-weight:bold;margin-top:15px;}
@media (max-width: 768px)
{
.div_measure{ height:260px;}
}
.Bgfooter{ margin-top:-35px;}
select option {
margin: 40px;
background-color:#FFF;
color: #000;
}
</style>
<div>
<div class="row">
<div class="col-md-12" align="center" style="font-size:40px;font-weight:bold;margin-top:15px;"> เลือกเซียมซีจากวัดดัง </div>
</div>
</div>
<div style="background-image:url(../images/bgmap.jpg);background-repeat:no-repeat;background-color:#FFF;margin-top:20px;">
<div class="container" style="max-width:1000px;">
<div class="row" style="margin-top:25px;">
<?php
$max_rows = 12; // แสดงจำนวนแถวต่อหน้า
$page_number = 0;
if(isset($_GET['page_number']))
{
$page_number = $_GET['page_number'];
}
$sql_s = 'status = "1" AND type = 1 ';
$all_array = array('table'=>'seamsi','where'=>$sql_s);
$start_row = $page_number * $max_rows;
$all_sql = $view_db->view($all_array);
$all_result = $view_db->q_re($all_sql);
$total_rows = $view_db->q_nr($all_result);
$total_rows_num = mysql_num_rows($all_result);
$total_pages = ceil($total_rows/$max_rows)-1;
////////////////////////////////////////
$list = array('table'=>'seamsi','where'=>$sql_s, 'limit'=> "$start_row,$max_rows",'order'=> "ORDER BY id DESC");
$view = $view_db->view($list);
$result = $view_db->q_re($view);
$num_tr = 1;
$num = 1+($page_number*$max_rows);
?>
<div class="row" align="right" style="margin-top:30px;">
<div class="col-md-12 BerDedToday-page">
<?php
if($total_rows_num > 0)
{
page_news($page_number,$total_pages,'reading.php','&name='.$_GET['name'].'&num='.$_GET['num']);
}
?>
</div>
</div>
<?php
while($row_se = $view_db->q_ro($result))
{
?>
<div class="col-md-4 col-xs-6 col-sm-6 Divmeasure">
<div class="div_measure ">
<div style="padding:25px;" align="center">
<a href="predict.php?name=<?php echo $row_se['name_en'];?>">
<img src="../redbag/seamsi/<?php echo $row_se['image']?>" width="227" height="173" class="div_measure_img img-responsive"></a>
<?php
$css_text = '';
if(strlen($row_se['name']) > 70){ $css_text = 'style="font-size:14px;"';}
?>
<div class="div_measure_name" <?php echo $css_text; ?>>
<?php echo $row_se['name']?>
</div>
</div>
</div>
</div>
<?php
}
?>
</div>
<div class="row" align="right" style="margin-top:30px;">
<div class="col-md-12 BerDedToday-page">
<?php
if($total_rows_num > 0)
{
page_news($page_number,$total_pages,'reading.php','&name='.$_GET['name'].'&num='.$_GET['num']);
}
?>
</div>
</div>
</div>
</div>
<?php
include('../themes/footer.php');
include('../include/footer_js.php');
?>