| Server IP : 104.21.37.246 / Your IP : 172.71.28.145 [ 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/wallpaper/ |
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
//($_GET['name'])?$_GET['name']:@$_SESSION['con'][0]['id']
$list = array('table'=>'wallpapers','where'=>'id = "'.@$_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/wallpaper/thumb/'.$img_t;
$og_image3 = 'https://www.simded.com/redbag/wallpaper/thumb/'.$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 = 'wallpaper';?>
<?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;}
.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;}
.H_title2{font-size:35px;text-shadow: 0.1em 0.1em 0.05em #333;font-family:'Superspace';font-weight:bold;}
@media (max-width: 768px)
{
.H_title{text-align:center;font-size:40px;}
}
.div_text_cut{max-height: 10rem;overflow-wrap: anywhere;overflow: hidden;}
.img-responsive{display: block;height: 140px;width: auto;}
@media (max-width: 768px)
{
.img-responsive{height: 107px;}
.div_text_cut{font-size: 12px;max-height: 7rem;}
}
.col-auto {
flex: 0 0 auto;
width: auto;
}
.div_border_1{ border: 2px solid #ffffff;border-radius: 25px;padding: 2rem;}
.div_border_2{
border: 2px solid #fff;
border-radius: 25px;
padding: 2rem;
justify-content: center;
display: flex;
align-items: center;
width: 74%;
}
.w-50{width: 40%;}
@media (max-width: 768px)
{
.w-100{width: 100%}
.w-50{width: 50%;}
}
</style>
<div class="container">
<div class="row">
<div class="col-md-12">
<div style="margin-top:0px;">
<div class="row">
<div class="col-md-6"><div class="H_title" >วอลเปเปอร์สายมู</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';margin-top:35px;">ทำนายทั่วไป >
<a href="../wallpaper/" style="color:#FFF;font-family:'Superspace';">วอลเปเปอร์สายมู </a>
> <a href="../wallpaper/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/wallpaper/<?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="row d-md-flex d-block" style="justify-content: center;display: flex;align-items: center;">
<?php
$css_text = '';
if(strlen($row1['name']) > 70){ $css_text = 'style="font-size:14px;"';}
?>
<div class="div_border_2 text-center">
<div style="width: 50%;">
<img src="../redbag/wallpaper/thumb/<?php echo $row1['image']; ?>" alt="" class="w-100">
</div>
<div class="w-50">
<div class="div_measure_name" <?php echo $css_text; ?>>
<p class="H_title2"><?php echo $row1['name']?></p>
<p class="div_text_cut">
<?php echo $row1['detail']?>
</p>
</div>
</div>
</div>
</div>
<br>
<div class="row" align="center" style="justify-content: center;">
<div class="col-sm-offset-1 col-md-8">
<?php
if($row1['type'] == 1){$action_url = 'action="dowload.php"'; $name_button = 'ดาว์นโหลดฟรี';}
elseif ($row1['type'] == 2) {$action_url = 'action="confirm1.php"';$name_button = 'ยืนยัน';}
elseif ($row1['type'] == 3) {$action_url = 'action="confirm2.php"';$name_button = 'ดาว์นโหลดฟรี';$name_button1 = 'ยืนยัน';}
?>
<form class="form-horizontal" action="dowload.php" method="post" enctype="multipart/form-data" id="fm_data" onSubmit="return checkform_pre();" >
<?php if($row1['type_value'] != 5){ ?>
<div class="form-group">
<label for="inputEmail3" class="col-sm-4 control-label" style="color:#898887;">ชื่อ-นามสกุล :</label>
<div class="col-sm-8">
<input type="text" class="form-control corner_cancel" name="namefull" id="namefull" placeholder="ชื่อ-นามสกุล"
value="<?php echo @$_SESSION['con'][0]['namefull']; ?>">
</div>
</div>
<?php } ?>
<?php if($row1['type_value'] == 2 || $row1['type_value'] == 4){ ?>
<div class="form-group">
<label for="inputEmail3" class="col-sm-4 control-label" style="color:#898887;">ข้อความ :</label>
<div class="col-sm-8">
<textarea name="detail" id="detail" class="form-control corner_cancel" rows="5" maxlength="<?php echo $row1['max_length']; ?>"
placeholder="ข้อความ" style="width:100%;color: #"><?php echo @$_SESSION['con'][0]['detail']; ?></textarea>
</div>
</div>
<?php } ?>
<?php if($row1['type_value'] == 3 || $row1['type_value'] == 4){ ?>
<div class="form-group">
<label for="inputEmail3" class="col-sm-4 control-label" style="color:#898887;">เบอร์โทร :</label>
<div class="col-sm-8">
<input type="tel" class="form-control corner_cancel" name="phonenumber" id="phonenumber" placeholder="088-888-8888"
value="<?php echo @$_SESSION['con'][0]['phonenumber']; ?>"
onkeyup="checkformat_tel(this.value)" maxlength="12" >
</div>
</div>
<?php } ?>
<input type="hidden" id="ev" value="<?php echo @$row1['type_value']; ?>">
<input type="hidden" id="name_id" name="name_id" value="<?php echo $_GET['name']; ?>">
<div class="form-group">
<div class="col-sm-offset-4 col-sm-8">
<?php if($row1['type'] == 1 || $row1['type'] == 3){ ?>
<input class="btn btn-default corner_cancel bt_login" type="submit" style="color:#FFF;" value=" ดาว์นโหลดฟรี">
<?php } ?>
<?php if($row1['type'] == 2 || $row1['type'] == 3){ ?>
<input class="btn btn-default corner_cancel bt_login" type="button" style="color:#FFF;" value=" สั่งซื้อ"
onclick="confirm_data('<?php echo $_GET['name']; ?>')">
<a style="color:#898887;text-decoration:none;" href="include/clear.php" >ยกเลิก</a>
<?php } ?>
</div>
</div>
</form>
</div>
</div>
<div style="border:#00F solid 0px;margin-top:40px;">
<?php include('../themes/google_ad.php');?>
</div>
</div>
</div>
<script type="text/javascript">
function checkformat_tel(val){
var val_length = val.length;
if(val_length==10){
val_s = val[0]+val[1]+val[2]+"-"+val[3]+val[4]+val[5]+'-'+val[6]+val[7]+val[8]+val[9]
document.getElementById('phonenumber').value = val_s;
}
}
</script>
<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')?>
<script>
function confirm_data(id) {
checkform_pre();
var data = 'id='+id;
<?php if($row1['type_value'] != 5){ ?>
var name_full = document.getElementById('namefull').value;
data = data + '&namefull='+name_full;
<?php } ?>
<?php if($row1['type_value'] == 2 || $row1['type_value'] == 4){ ?>
var detail = document.getElementById('detail').value;
data = data + '&detail='+detail;
<?php } ?>
<?php if($row1['type_value'] == 3 || $row1['type_value'] == 4){ ?>
var phonenumber = document.getElementById('phonenumber').value;
data = data + '&phonenumber='+phonenumber;
<?php } ?>
//console.log(data);
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
//document.getElementById("txtHint").innerHTML = this.responseText;
console.log(this.responseText);
window.location.href = 'confirm.php';
}
};
xmlhttp.open("GET", "confirm1.php?" + data, true);
xmlhttp.send();
}
function checkform_pre(){
var ev = document.getElementById('ev');
if(ev.value==1){
var en = document.getElementById('namefull');
if(en.value==''){
if(confirm('ยืนยันไม่กรอกชื่อ-นามสกุล ใช่หรือไม่')){
var ed = document.getElementById('detail');
if(ed.value==''){
if(confirm('ยืนยันไม่กรอกข้อความ ใช่หรือไม')){
return true;
}else{
ed.focus();
return false;
}
}else{
return true;
}
}else{
en.focus();
return false;
}
}else{
return true;
}
}
if(ev.value==2){
var ed = document.getElementById('detail');
if(ed.value==''){
if(confirm('ยืนยันไม่กรอกข้อความ ใช่หรือไม')){
return true;
}else{
ed.focus();
return false;
}
}else{
return true;
}
}
if(ev.value==3){
var en = document.getElementById('namefull');
if(en.value==''){
if(confirm('ยืนยันไม่กรอกชื่อ-นามสกุล ใช่หรือไม่')){
var et = document.getElementById('phonenumber');
if(et.value==''){
if(confirm('ยืนยันไม่กรอกเบอร์โทรศัพท์ ใช่หรือไม่')){
return true;
}else{
et.focus();
return false;
}
}else{
return true;
}
}else{
en.focus();
return false;
}
}else{
return true;
}
}
if(ev.value==4){
var en = document.getElementById('namefull');
if(en.value==''){
if(confirm('ยืนยันไม่กรอกชื่อ-นามสกุล ใช่หรือไม่')){
var ed = document.getElementById('detail');
if(ed.value==''){
if(confirm('ยืนยันไม่กรอกข้อความ ใช่หรือไม')){
var et = document.getElementById('phonenumber');
if(et.value==''){
if(confirm('ยืนยันไม่กรอกเบอร์โทรศัพท์ ใช่หรือไม่')){
return true;
}else{
et.focus();
return false;
}
}else{
return true;
}
}else{
ed.focus();
return false;
}
}else{
return true;
}
}else{
en.focus();
return false;
}
}else{
return true;
}
}
}
function ch_nameful(){
var en = document.getElementById('namefull');
if(en.value==''){
if(confirm('ยืนยันไม่กรอกชื่อ-นามสกุล ใช่หรือไม่')){
return true;
}else{
en.focus();
return false;
}
}else{
return true;
}
}
function ch_message(){
var ed = document.getElementById('detail');
if(ed.value==''){
if(confirm('ยืนยันไม่กรอกข้อความ ใช่หรือไม')){
return true;
}else{
ed.focus();
return false;
}
}else{
return true;
}
}
function ch_phone(){
var et = document.getElementById('phonenumber');
if(et.value==''){
if(confirm('ยืนยันไม่กรอกเบอร์โทรศัพท์ ใช่หรือไม่')){
return true;
}else{
et.focus();
return false;
}
}else{
return true;
}
}
</script>