0byt3m1n1-V2
Path:
/
home
/
bangtoey
/
domains
/
bangtoey.go.th
/
public_html
/
admin
/
[
Home
]
File: main.php
<? session_start(); if(isset($_POST["user"])){ $user=trim($_POST["user"]); } if(isset($_POST["passwd"])){ $passwd=trim($_POST["passwd"]); } if(($user=="") or ($passwd=="")){ session_destroy(); $message="กรุณา Login ก่อน !"; $url="index.php"; include "alert.php"; die;exit; } require_once('Connections/conndb.php'); $pass5 = md5($passwd); $uname = trim($user); $query_m = "select * from tbl_admin where user_name='$uname' and user_password='$pass5' "; $result_m = mysql_query($query_m) or die(mysql_error()); $num_rows = mysql_num_rows($result_m); if ($num_rows > 0 ) { $row = mysql_fetch_assoc($result_m); $ulevel = $row["user_level"]; $u_ip = $_SERVER["REMOTE_ADDR"]; $now = date("Y-m-d H:i:s",time()); $query_m = "insert into tbl_session (id,user_name,ip_address,log_time,log_status) values ('','$uname','$u_ip','$now','i') "; $result_d = mysql_query($query_m); $_SESSION["user"] = $user; $_SESSION["passwd"] = $passwd; $_SESSION["level"] = $ulevel; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><!-- InstanceBegin template="/Templates/template_a.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <!-- InstanceBeginEditable name="doctitle" --> <!-- InstanceEndEditable --> <?php require_once('Connections/conndb.php'); mysql_select_db($database_conndb, $conndb); ?> <title>องค์การบริหารส่วนตำบลบางเตย ที่อยู่ 8/8 หมู่2 ตำบลบางเตย อำเภอเมืองฉะเชิงเทรา จังหวัดฉะเชิงเทรา 24000 ::www.bangtoey.go.th</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <link href="../styles.css" rel="stylesheet" type="text/css"> <!-- InstanceBeginEditable name="head" --><style type="text/css"> <!-- a:link { text-decoration: underline; } a:visited { text-decoration: underline; } a:hover { text-decoration: none; } a:active { text-decoration: underline; } --> </style> <style type="text/css"> <!-- .style7 {color: #FF0000} --> </style> <style type="text/css"> <!-- body { background-color: #F4FDDC; } --> </style><!-- InstanceEndEditable --> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color: #3CFFFF; } --> </style> <!--styles --> <link href="../styles.css" rel="stylesheet" type="text/css" /> <link href="../css/Hover%20Buttons.css" rel="stylesheet" type="text/css"/> <link href="../css/Hoverable-Sidenav.css" rel="stylesheet" type="text/css"/> <!--<script src="https://platform-api.sharethis.com/js/sharethis.js#property=5d255a83d97c100012d80679&product='inline-share-buttons' async='async" type='text/javascript'> --> </script> <!--styles --> <!--menutop hover --> <link href="../imagehover.css-master/css/demo-page.css" rel="stylesheet" media="all"> <link href="../imagehover.css-master/css/imagehover.min.css" rel="stylesheet" media="all"> <link rel='shortcut icon' type='image/x-icon' href='/favicon.ico' /> <!--end --> <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } .style6 {color: #FFFFFF} --> </style></head> <body background="../images/0bg1.png" style="background-repeat:no-repeat; background-position:top"> <!--<div id="mySidenav" class="sidenav"> <a href="http://new.huayyai.go.th/index.php" id="about"> </a> <a href="http://new.huayyai.go.th/news.php?cat_id=1" id="blog"> </a> <a href="http://new.huayyai.go.th/news.php?cat_id=4" id="projects"> </a> <a href="http://new.huayyai.go.th/albums/index.php" id="contact"> </a> </div> --> <!-- content --> <div align="center"> <table width="950" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="top"><tr> <td height="650" align="center" valign="top" background="../images/head-1.png" style="background-repeat:no-repeat"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="515" align="center" valign="top"> </td> </tr> <tr> <td height="364" align="center" valign="top"><iframe src="/title_head.html" width="980" height="335" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></td> </tr> <tr> <td align="center" valign="top"><iframe src="/menu-top.html" width="980" height="53" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></td> </tr> <tr> <td height="150" align="center" valign="top"> </td> </tr> </table></td> </tr> </td> </tr> <tr> <td align="center" valign="top"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="top"> </td> </tr> <tr> <td align="center" valign="top"><!-- InstanceBeginEditable name="EditRegion3" --> <table width="80%" border="0" cellspacing="0"> <tr align="center" > <td align="left" class="styles1"> </td> </tr> <tr align="center" > <td height="22" align="left" bgcolor="#99FFFF" class="styles1"><div align="right" style="color:#246630;"><a href="main.php#top" class="styles1" style="color:#002F5E;">หน้า Admin</a> | <?if($ulevel==1){?> <a href="add_admin.php#top" class="styles1" style="color:#002F5E;">ข้อมูลผู้ดูแลระบบ</a> <?} else {?> <a href="changepass.php#top" class="styles1" style="color:#002F5E;">เปลี่ยนรหัสผ่าน</a> <?}?> | <a href="signout.php" class="styles1" style="color:#002F5E;">ออกจากระบบ </a></div></td> </tr> <tr align="center" > <td height="5" align="left"></td> </tr> <tr> <td align="center" valign="top" bgcolor="#33FFFF"><div align="left"><a href="../koo.zip" target="_blank" class="title3"><img src="../images/icc5.png" width="16" height="16" border="0"> ดาวน์โหลดคู่มือการใช้งาน คลิก</a></div></td> </tr> <tr> <td align="center" valign="top"> </td> </tr> <tr> <td align="center" valign="top"><table width="90%" cellspacing="0" cellpadding="0"> <tr> <td width="57%" valign="top"><table width="506" border="0" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF" class="box1"> <tr> <td width="496" height="25" background="../images/bg4.gif" class="styles" ><div align="center" class="title3">ผู้ดูแลระบบ ( <?=$_SESSION["user"];?> )</div></td> </tr> <tr> <td ><div align="left"><img src="../images/icc4.png" width="16" height="16" border="0"> <a href="../albums/add_albums.php" class="styles2" > โปรแกรมภาพกิจกรรม</a></div></td> </tr> <tr> <td ><div align="left"><img src="../images/icc4.png" width="16" height="16" border="0"> <a href="../albums1/add_albums.php" class="styles2" > ประมวลภาพกิจกรรม</a></div></td> </tr> <tr> <td ><div align="left"><img src="../images/icc4.png" width="16" height="16" border="0"> <a href="../otops/add_otop_albums.php" class="styles2" > โปรแกรมสินค้าชุมชน</a></div></td> </tr> <tr> <td ><div align="left"><img src="../images/icc4.png" width="16" height="16" border="0"> <a href="../travels/add_travel_albums.php" class="styles2" > โปรแกรมสถานที่ท่องเที่ยว</a></div></td> </tr> <tr> <td ><div align="left"><img src="../images/icc4.png" width="16" height="16" border="0"> <a href="../contacts/admin.php" class="styles2"> โปรแกรมติดต่อสอบถาม / ร้องทุกข์ </a></div></td> </tr> <tr> <td ><div align="left"><img src="../images/icc4.png" width="16" height="16" border="0"> <a href="../calendar/admin/admin.php" ></a><a href="../calendar/admin.php?date=<?=date('j-n-Y') ?>" class="styles2"> โปรแกรมปฏิทินกิจกรรม</a></div></td> </tr> <tr> <td ><div align="left"><img src="../images/icc4.png" width="16" height="16" border="0"> <a href="../poll/admin.php" class="styles2" > โปรแกรมแบบสำรวจความคิดเห็น</a></div></td> </tr> <tr> <td ><div align="left"><img src="../images/icc4.png" width="16" height="16" border="0"> <a href="../personal/admin/addphoto.php" ><span class="styles2"> โปรแกรมระบบบุคลากร</span></a></div></td> </tr> <tr> <td ><div align="left"><img src="../images/icc4.png" width="16" height="16" border="0"> <a href="../webboard/admin/admin.php?Category=board" ><span class="styles2"> โปรแกรมกระดานสนทนา</span></a> <div align="left"></div> </div></td> </tr> <tr> <td ><div align="left"><img src="../images/icc4.png" width="16" height="16" border="0"> <a href="../admin/f_q_report.php" ><span class="styles2"> โปรแกรมแบบสอบถามความพึงพอใจ</span></a> <div align="left"></div> </div></td> </tr> <tr> <td > </td> </tr> <tr> <td > </td> </tr> <tr> <td bgcolor="#CCFFCC" ><div align="center" class="title-c">E-service</div></td> </tr> <tr> <td ><img src="../images/ii.gif" width="10" height="11" border="0"><a href="../form/admin_form_1.php" target="_blank" class="title3"><strong>เรื่องร้องเรียน/ร้องทุกข์ </strong></a></td> </tr> <tr> <td ><img src="../images/ii.gif" width="10" height="11" border="0"><a href="../form/admin_form_6.php" target="_blank" class="title3"><strong>ร้องเรียนการทุจริต</strong></a></td> </tr> <tr> <td ><img src="../images/ii.gif" width="10" height="11" border="0"><a href="../form/admin_form_4.php" target="_blank" class="title3"><strong>คำร้องทั่วไป</strong></a></td> </tr> <!-- <tr> <td ><img src="../images/ii.gif" width="10" height="11" border="0"><strong><a href="../form/admin_form_3.php" class="title3">คำร้องขอรับถังขยะมูลฝอย</a></strong></td> </tr> <tr> <tr> <td ><img src="../images/ii.gif" width="10" height="11" border="0"><strong><a href="../form/admin_form_5.php" class="title3">คำร้องบริการเก็บขยะมูลฝอย</a></strong></td> </tr> --> <tr> <td ><img src="../images/ii.gif" width="10" height="11" border="0"><strong><a href="../form/admin_form_2.php" class="title3">คำร้องขอสนับสนุนน้ำอุปโภค-บริโภค</a></strong></td> </tr> <tr> <td ><img src="../images/ii.gif" width="10" height="11" border="0"><strong><a href="../form/admin_form_7.php" class="title3">คำร้องกองคลัง งานจัดเก็บรายได้ งานพัสดุ งานการเงินและบัญชี</a></strong></td> </tr> <tr> <td > </td> </tr> <tr> <td > </td> </tr> <tr> <td ><div align="center"><a href="http://crm1.pasworld.co.th/promise.php?company_code=677" target="_blank" class="style7">*****ข้อมูลสัญญาเว็บไซต์...คลิกที่นี่*****</a></div></td> </tr> <tr> <td > </td> </tr> </table></td> <td width="48%" valign="top"> <table width="500" border="0" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF" class="box1"> <tr> <td width="556" height="30" background="../images/bg4.gif" class="styles" ><div align="center" class="title3">ผู้ดูแลระบบ</div></td> </tr> <tr> <td ><div align="center"><span class="title3">(<span class="style7">หากเพิ่มเมนูในหน้านี้รบกวนแจ้งทางบริษัทให้ดึงเมนูไปโชว์หน้าเว็บด้วยนะค่ะ</span>)</span></div></td> </tr> <tr> <td ><table width="512" border="0" cellspacing="0" cellpadding="0"> <tr align="center" valign="middle"> <td width="502"><a href="../news/add_category.php" class="styles2"> <? include "../news/show_cat.php"; ?> </a></td> </tr> </table></td> </tr> <tr> <td ></td> </tr> <tr> <td > </td> </tr> <tr> <td > </td> </tr> <tr> <td > </td> </tr> <tr> <td> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="center" valign="top"> </td> </tr> </table> <!-- InstanceEndEditable --></td> </tr> </table></td> </tr> <tr> <td align="center" valign="top"> </td> </tr> <tr> <td align="center" valign="top"> </td> </tr> <tr> <td align="center" valign="top" style="background-repeat:no-repeat"><img src="../images/foot.png"></td> </tr> </table> </div> <!-- end_content --> <tr><td><a style="display:scroll;position:fixed;bottom:5px;right:5px;" class="backtotop" href="#top" rel="nofollow" title="Back to Top"><img src="../images/up.png" border="0" /></a></td> </tr> <map name="Map6" id="Map6"><area shape="rect" coords="210,1,302,41" href="http://www.tratlocal.go.th/index.php" target="_blank" /> </map> </body> <!-- InstanceEnd --></html> <? include("Connections/close_db.php"); } else { session_destroy(); include("Connections/close_db.php"); $message="Username or Password Incorrect !"; $url="index.php"; include "alert.php"; } ?>
©
2018.