| 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 : /home/cp648411/www/simded.com/wallpaper/profile/ |
Upload File : |
<?php include('../include/class.php');?>
<?php //include('../include/check.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="../../images/favicon.ico">
<?php
$og_title = 'วอลเปเปอร์สายมู';
$description_fa = 'วอลเปเปอร์สายมู เพื่อความสิริมงคล ';
$og_image = 'https://www.kainumber.com/wallpaper/600315.jpg';
$og_image2 = 'https://www.kainumber.com/wallpaper/600315.jpg';
$og_image3 = 'http://www.kainumber.com/wallpaper/600315.jpg';
?>
<?php
if($_SESSION["wal_member_login"]==''){
$_SESSION["wal_member_login"]=0;
$_SESSION['wal_member_id']=$_COOKIE['_gid'];;
$_SESSION["wal_member_name"] = '';
$_SESSION["wal_member_lastname"] = '';
}
?>
<?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">
-->
<!-- Bootstrap core CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/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 -->
<link href="../../css/style_wall2.css?v=1.1" rel="stylesheet">
<link href="../../css/style.css?v=1.1" rel="stylesheet">
<script src="../include/function.js"></script>
</head>
<body>
<?php $menu = 'wallpaper';?>
<?php include('../themev2/menu.php')?>
<style>
body {color:#ffffff;}
.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 #c2c2c2;
width: auto;
border-radius: 10px;
background-color: #FFF;
margin-bottom: 40px;
margin-top: 40px;
}
.div_measure:hover {
border: 2px solid #8c0506;
}
.div_measure_img {
border-bottom: 8px solid #F00;
}
.div_measure_img2 {
border-bottom: 8px solid #92278f;
}
.div_measure_name {
font-size: 15px;
font-weight: bold;
margin-top: 15px;
color: #333;
}
.form-control {
border: 1px solid #8c0506;
}
@media (max-width: 768px) {
.div_measure {
height: auto;
}
}
.Bgfooter {
margin-top: -35px;
}
select option {
margin: 40px;
background-color: #FFF;
color: #000;
}
.pagination>li:last-child>a,
.pagination>li:last-child>span {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
.pagination>li:first-child>a,
.pagination>li:first-child>span {
margin-left: 0;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
.pagination>.active>a,
.pagination>.active>a:focus,
.pagination>.active>a:hover,
.pagination>.active>span,
.pagination>.active>span:focus,
.pagination>.active>span:hover {
z-index: 2;
color: #000;
cursor: default;
background-color: #fff200;
border-color: #e1e1e1;
}
.pagination>li>a,
.pagination>li>span {
position: relative;
float: left;
padding: 6px 12px;
margin-left: 5px;
line-height: 1.42857143;
color: #000000;
text-decoration: none;
background-color: #e1e1e1;
border: 1px solid #e1e1e1;
}
.div1 {
padding-top: 25px;
padding-left: 25px;
padding-bottom: 25px;
}
.H_title {
color: #ffff00;
font-size: 41px;
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: 30px;
}
.div1 {
padding-top: 25px;
padding-left: 0px;
}
}
.div_text_cut {
overflow-wrap: break-word;
overflow: hidden;
height: 34px;
}
.div_text_cut2 {
height: 22px;
overflow-wrap: break-word;
overflow: hidden;
}
.div_text_cut3 {
height: 105px;
overflow-wrap: break-word;
overflow: hidden;
}
.img-responsive2 {
display: block;
height: 224px;
width: auto;
}
@media (max-width: 768px) {
.img-responsive2 {
height: 131px;
}
.div_text_cut {
font-size: 12px;
max-height: 7rem;
}
.div_text_cut2 {
height: 26px;
overflow-wrap: break-word;
overflow: hidden;
}
.div_text_cut3 {
height: auto;
max-height: 75px;
overflow-wrap: break-word;
overflow: hidden;
padding: 0px 35px;
}
.div_measure_name {
padding: 0px;
}
.Divmeasure {
padding: 0px 32px;
}
}
.control-group {
display: flex;
margin-bottom: 15px;
}
.btn-1 {
color: #fff;
background-color: #732584;
border-color: #732584;
}
.btn-1:hover {
background-color: #ffffff;
}
.hilight_new {
color: #000;
}
.hilight_new::after {
border: 50px solid #8c0506;
border-bottom: 50px solid transparent;
border-right: 50px solid transparent;
border-top-left-radius: 10px;
width: 0px;
height: 0px;
margin-top: -2px;
margin-left: 13px;
padding: 0px;
z-index: 99;
position: absolute;
}
.hilight_new2::before {
content: "ชำระเงินแล้ว";
color: #ffffff;
position: absolute;
z-index: 99;
padding-top: 30px;
text-align: center;
align-items: center;
margin-left: -9px;
margin-top: 2px;
transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
/* IE 9 */
-moz-transform: rotate(-45deg);
/* Firefox */
-webkit-transform: rotate(-45deg);
/* Safari and Chrome */
-o-transform: rotate(-45deg);
/* Opera */
}
.hilight_new3 {
border-bottom: 50px solid transparent;
border-right: 50px solid transparent;
border-top-left-radius: 10px;
width: 0px;
height: 0px;
margin-top: -2px;
margin-left: 13px;
padding: 0px;
z-index: 99;
position: absolute;
}
.hilight_new4 {
position: absolute;
z-index: 99;
padding-top: 28px;
padding-left: 5px;
text-align: center;
align-items: center;
transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
/* IE 9 */
-moz-transform: rotate(-45deg);
/* Firefox */
-webkit-transform: rotate(-45deg);
/* Safari and Chrome */
-o-transform: rotate(-45deg);
/* Opera */
}
.rounded-pill {
border-radius: 50rem !important;
}
.alert {
position: relative;
padding: 1rem 1rem;
margin-bottom: 1rem;
border: 1px solid transparent;
border-radius: 0.25rem;
}
.alert-warning {
color: #664d03;
background-color: #fff3cd;
border-color: #ffecb5;
}
.alert-dismissible {
padding-right: 3rem;
}
.fade {
transition: opacity .15s linear;
}
.alert-dismissible .btn-close {
position: absolute;
top: 0;
right: 0;
z-index: 2;
padding: 1.25rem 1rem;
}
.btn-close {
box-sizing: content-box;
width: 1em;
height: 1em;
padding: 0.25em 0.25em;
color: #000;
background: transparent url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e) center/1em auto no-repeat;
border: 0;
border-radius: 0.25rem;
opacity: .5;
}
.alert-success {
color: #732584;
background-color: #d1b3d8;
border-color: #d1b3d8;
}
@media (min-width: 768px) {
.modal-dialog {
width: 600px;
margin: 15% auto;
}
}
.modal-header .close {
margin-top: -24px;
}
.bt_login,
.bt_login:hover,
.bt_login:active,
.bt_login:visited {
background-image: none;
background-color: #8c0506;
text-align: center;
border: 1px solid #ffffff;
color: #ffffff;
}
</style>
<?php
$list = array('table'=>'wal_member','where'=>'id = "'.$_SESSION['wal_member_id'].'" AND status = "1"');
$view = $view_db->view($list);
$row1 = $view_db->q($view);
?>
<div class="bg-3-cover">
<div class="container-fluid" style="padding-top:25px;">
<div class="row" style="justify-content: center;display: flex;">
<div class="col-xs-12 col-md-8 ">
<?php if(@$_SESSION['er']){ ?>
<!-- Modal -->
<div
style="position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1038;background: rgb(2 3 2 / 78%);">
</div>
<div class="modal" id="Modal1" tabindex="-1" role="dialog" aria-labelledby="ModalLabel1"
aria-hidden="true" style="display: block;padding-right: 17px;">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalLabel1" style="color: #000000;">แจ้งเตือน!</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"
onclick="closes()">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" style="color: #ffffff;">
<?php echo @$_SESSION['er']; ?>
<small class="text-danger">*รายการที่ใช้ส่วนลดราคา 0
บาทจะไม่สามารถกลับมาค้นหาได้</small><br>
<small class="text-danger">*การใช้งานเว็บไซต์ผ่านเบราว์เซอร์บนแอพพลิเคชั่น Line
จะไม่สามารถดาวน์โหลดวอลเปอร์ได้</small><br>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="closes()"
data-dismiss="modal">ยันยัน</button>
<!--<button type="button" class="btn btn-primary">ยืนยัน</button>-->
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<br>
<div class="row " style="justify-content: center; display: flex;">
<div class="col-md-4 col-xs-12">
<div class=" rounded-pill" onclick="location.href='../home/'"
style="background-color: #dd1444;
height: 64px;text-align: center;
border-radius;
background-repeat: no-repeat;
d-position: 85%;
color: #ffffff;">
<h1 style="padding-top: 12px;">เลือกวอลเปเปอร์</h1>
</div>
</div>
</div>
</div>
<br>
<div class="row " style="margin: 0px;">
<div class="col-md-2"></div>
<div class="col-md-8">
<div style="margin-top:0px;">
<div class="row" style="padding: 20px 20px;">
<div class="col-sm-12 col-xs-12">
<h3>ค้นหาวอลเปเปอร์</h3>
<p>*reference1 , reference2 คือ ข้อมูลอ้างอิงการชำระเงินค้นหาได้จากประวัติการชำระเงินจากธนาคาร
</p>
</div>
<div class="col-xs-12 col-sm-5" style="margin-bottom: 15px;">
<input type="text" class="form-control corner_cancel rounded-pill w-div" name="ref1" id="ref1"
placeholder="reference1" required>
<small id="ref1_text" style="display:none;">กรุณากรอก reference1</small>
</div>
<div class="col-xs-12 col-sm-5" style="margin-bottom: 15px;">
<input type="text" class="form-control corner_cancel rounded-pill w-div" name="ref2" id="ref2"
placeholder="reference2" required>
<small id="ref2_text" style="display:none;">กรุณากรอก reference2</small>
</div>
<div class="col-xs-12 col-sm-2" style="margin-bottom: 15px;">
<input type="button" class="form-control rounded-pill w-div btn bt_login" name="submit"
id="submit" value="ค้นหา" onclick="checkWall()">
</div>
</div>
</div>
</div>
</div>
<div class="row" style="margin-top:0px;margin: 0px;">
<div class="col-md-1"></div>
<div class="col-md-10">
<div class="row" style="justify-content: center;display: flex;">
<?php
$max_rows = 12; // แสดงจำนวนแถวต่อหน้า
$page_number = 0;
if(isset($_GET['page_number']))
{
$page_number = $_GET['page_number'];
}
//$sql_s = 'status = "success" AND idm = "'.$_SESSION['wal_member_id'].'"';
if($_GET['ref1']==true && $_GET['ref2']==true){
$sql_s = 'status = "success" AND BillPayment_Reference1 = "'.@$_GET['ref1'].'" AND BillPayment_Reference2 = "'.@$_GET['ref2'].'"';
$ag = 1;
}elseif($_GET['ido']==true){
$sql_s = 'status = "success" AND id_order = "'.@$_GET['ido'].'"';
$ag = 0;
}else{
$sql_s = 'status = "fail"';
$ag=0;
}
$all_array = array('table'=>'wal_order','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 = mysqli_num_rows($all_result);
$total_pages = ceil($total_rows/$max_rows)-1;
//print_r($all_sql);
if($total_rows>0){
////////////////////////////////////////
$list = array('table'=>'wal_order','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);
while($row_se = $view_db->q_ro($result))
{
$list_i = array('table'=>'wallpapers','where'=>'id = "'.$row_se['image'].'" AND status = "1"');
$view_i = $view_db->view($list_i);
$row_i = $view_db->q($view_i);
$link_s='dowload.php?id='.$row_se['id'].'&ag='.$ag;
$category_n = explode(',',$row_i['category']);
?>
<div class="col-md-6 col-xs-12 col-sm-6 Divmeasure" onclick="location.href='<?php echo $link_s; ?>'">
<div class="div_measure ">
<div class="row hilight_new">
<div class="col-md-4 col-xs-12 col-sm-5 hilight_new2">
<div class="div1 " align="center">
<a href="<?php echo $link_s; ?>">
<img src="../../redbag/wallpaper/thumb/<?php echo ($row_i['image_show']!='')?$row_i['image_show']:$row_i['image']; ?>"
width="227" height="173" class=" img-responsive2">
</a>
</div>
</div>
<div class="col-md-8 col-xs-12 col-sm-7" style="padding-right: 30px;">
<div style="" align="center" onclick="location.href='<?php echo $link_s; ?>'">
<?php
$list_c = array('table'=>'wal_category','where'=>'id = "'.$row_i['name'].'"');
$view_c = $view_db->view($list_c);
$row_c = $view_db->q($view_c);
?>
<div class="div_measure_name" <?php echo $css_text; ?>>
<div class="div_text_cut2"><?php echo $row_c['name']; ?></div>
<?php
$text_category = explode(',',$row_i['name_m']);
$text_category2 = '';
if($text_category[0]!=''){
for ($i=0; $i < count($text_category) ; $i++) {
$list_c2 = array('table'=>'wal_category_supplement','where'=>'id = "'.$text_category[$i].'"');
$view_c2 = $view_db->view($list_c2);
$row_c2 = $view_db->q($view_c2);
if($text_category2==''){
$text_category2 = '( เสริม'.$row_c2['name'];
}else{
if($i == count($text_category)-1){
$text_category2 = $text_category2." และ".$row_c2['name'].' )';
}else {
$text_category2 = $text_category2." ".$row_c2['name'];
}
}
}
}
if(strlen($text_category2) > 70){ $css_text2 = 'font-size:14px;';}
if(strlen($text_category2) > 90){ $css_text2 = 'font-size:12px;';}
?>
<div class="div_text_cut" style="color: #652d90; <?php echo $css_text2; ?> ">
<?php echo $text_category2; ?></div>
<div class="div_text_cut3"><?php echo $row_i['detail']; ?></div>
<?php
$list_tv = array('table'=>'wal_type_value','where'=>'id = "'.$row_i['type_value'].'"');
$view_tv = $view_db->view($list_tv);
$row_tv = $view_db->q($view_tv);
?>
<div class="div_text_cut" style="color: #652d90;font-size: 75%; ">
(<?php echo $row_tv['name']; ?>)</div>
<div class="div_text_cut">
<span
style="<?php echo ($row_i['type']==1)?'text-decoration: line-through;color: red;':''; ?>">ราคา
<?php echo $row_i['price']?> บาท</span>
<?php if($row_i['type']==1){ ?>
<span style="font-size: 75%;">ราคา 0 บาท</span>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
<?php }else{ ?>
<div class="col-sm-12 col-xs-12" align="center">
ไม่พบข้อมูล
</div>
<?php } ?>
</div>
</div>
<div class="row" style="margin: 0px;">
<div class="col-md-2"></div>
<div class="col-md-8 ">
<br>
<hr>
<div class="row" style="padding: 20px 20px;">
<div class="col-sm-12 col-xs-12" align="center">
<p>ติดต่อสอบถามเพิ่มเติมได้ที่</p>
lineID : <a href='#'>@tsv8792g</a>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-12 text-center">
<?php include('../../include/ad_google.php'); ?>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function closes() {
var Modal1 = document.getElementById('Modal1').style.display = 'none';
location.reload();
}
function checkWall() {
var ref1 = document.getElementById('ref1');
var ref1_text = document.getElementById('ref1_text');
var ref2 = document.getElementById('ref2');
var ref2_text = document.getElementById('ref2_text');
if (ref1.value == '') {
ref1_text.style.display = 'block';
} else {
ref1_text.style.display = 'none';
}
if (ref2.value == '') {
ref2_text.style.display = 'block';
} else {
ref2_text.style.display = 'none';
}
if (ref1.value != '' && ref2.value != '') {
window.location.href = 'wallpaper.php?ref1=' + ref1.value + '&ref2=' + ref2.value;
}
}
</script>
<?php
unset($_SESSION['er']);
unset($_SESSION['con']);
?>
<!-- /.body -->
<?php include('../themev2/footer2.php')?>
<?php include('../include/footer_js3.php')?>