Hacked By AnonymousFox

Current Path : C:/AppServ/www/bhz/
Upload File :
Current File : C:/AppServ/www/bhz/editpass4.php

<?php 
include("lib/config.php");
include("lib/connect.php");

include("lib/config.php");
include("lib/connect.php");
include("lib/session.php");

if($System_Session_User_ID=="") {
echo "<SCRIPT LANGUAGE=\"JavaScript\">window.location = \"index.php\";alert(\"You must Login first.\");</SCRIPT>";
 } 

$sql="select * from hospital where Id='$System_Session_User_ID'";
$query=mysql_query($sql);
$row=mysql_fetch_array($query);
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<title>:: รายงานผลการดำเนินงานตามแผนกลยุทธ์การขับเคลื่อนเขตสุขภาพกรุงเทพมหานคร (Bangkok Health Zoning) ::</title>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->	
	<link rel="icon" type="image/png" href="images/icons/list.ico"/>
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="fonts/Linearicons-Free-v1.0.0/icon-font.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="vendor/animate/animate.css">
<!--===============================================================================================-->	
	<link rel="stylesheet" type="text/css" href="vendor/css-hamburgers/hamburgers.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="vendor/animsition/css/animsition.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="vendor/select2/select2.min.css">
<!--===============================================================================================-->	
<!--===============================================================================================-->
<style type="text/css">
<!--
.header {
  text-align: center;
  background: #2F4F4F; color:white;
  font-size: 20px; 
}.header2 {
  padding: 15px;
  text-align: center;
  background: #CCFF99; 
  font-size: 20px; 
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.button {
  background-color: #4CAF50; /* Green */
  border: none;
  color: white;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
}
.button2 {
  background-color: #A4F2C5; /* Green */
  border: none;
  color: green;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;  border: 2px solid #4CAF50;

}
.button1 {
  background-color: white; 
  color: black; 
  border: 2px solid #4CAF50;
}

.button1:hover {
  background-color: #4CAF50;
  color: white;
}
.button2:hover {
  background-color: #4CAF50;
  color: white;
}
.inputlogin{

background:#056839;

font-family:Tahoma, Geneva, sans-serif;

font-size:16px;  

padding: 5px 10px 5px 10px;

color: #fff;

font-weight: bold;

-moz-border-radius: 6px;

-webkit-border-radius: 6px;

-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);

-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);

text-shadow: 0 -1px 1px rgba(0,0,0,0.25);

border-bottom: 1px solid rgba(0,0,0,0.25);

cursor: pointer;

border-left:none;

border-top:none;

margin:10px 0 10px 0;

}

.inputlogin:hover{

background:#727FB2;

}
.style1 {
	color: #056839;
	font-weight: bold;
}
.nore{
	background-image: url("search2.jpg");
  	background-repeat: no-repeat;
}
.top{
	background-image: url("header.jpg");
  	background-repeat: no-repeat;
}
.style2 {font-weight: bold}
-->
</style>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
	<table width="100%" border="1" style="border-collapse:collapse" bordercolor="#CCCCCC" cellpadding="10">
	  
	  <tr>
	    <td width="66%" align="center" bgcolor="#05291B" class="top" b><br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br></td>
      </tr>
	  <tr>
	    <td bgcolor="#2F4F4F" align="center"><span class="header"> ระบบรายงานผลการดำเนินงานตามแผนกลยุทธ์การขับเคลื่อนเขตสุขภาพกรุงเทพมหานคร (Bangkok Health Zoning) <span class="header">ปีงบประมาณ 2567 </span></span></td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF" align="center"><span class="page_title">
	      <input type="submit" name="button4" id="button15" class="inputlogin" value="แก้ไขรหัสผ่าน"  onclick="window.location='editpass4.php'" />
	      <br>
	      ยินดีต้อนรับ ! <span class="style2">
          <?=$System_Session_FullName?>
          </span> เข้าสู่ระบบ&nbsp;&nbsp;
<input type="submit" name="button" id="button" class="inputlogin" value="ออกจากระบบ"  onclick="window.location='system/logoutmain.php'" />
	    </span></td>
      </tr>
	  
      <?
	  if($dept==""&&$zone==""){
	  $sql1="select * from hospital where Id='$System_Session_User_ID' order by Zone asc,Type asc,Id asc";
	  }
	  if($dept!=""){
	  	  $sql1="select * from hospital where Name like '%$dept%' order by Type asc,Id asc";
	  }
	    if($zone!=""){
	  	  $sql1="select * from hospital where Zone='$zone' order by Type asc,Id asc";
	  }
	   if($dept!=""&&$zone!=""){
	  $sql1="select * from hospital where Zone='$zone' and Name like '%$dept%' order by Type asc,Id asc";
	  }
	 // echo $sql1;
	  $query1=mysql_query($sql1);
	  $i=1;
	  while($row1=mysql_fetch_array($query1)){
	  ?>
	  <? $i++; } ?>
</table>
		<table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>
			  
<div align="center">
<h2>แก้ไขรหัสผ่านใหม่<br>
  [รหัสผ่านต้องมี 8 หลักขึ้นไป มีอักษรตัวใหญ่และเล็ก ตัวเลขและอักขระพิเศษอย่างน้อย 1 ตัว]</h2>
  
  <?php
										if( preg_match("/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z0-9])(?!.*\s).{8,15}$/", $text1) ) {
$sql="update hospital set Password='$text1' where Id='$System_Session_User_ID'";
$query=mysql_query($sql);
echo"<div align=center><font color=#006600><h2>แก้ไขรหัสผ่านเรียบร้อยแล้ว</h2></font></div>";
} 
										
										?>
<form name="form1" action="#"> 
<input type='text' name='text1' maxlength="15"/>
<br>
<input type="submit" name="submit" value="บันทึกข้อมูล" onClick="CheckPassword(document.form1.text1)" class="inputlogin"/>
</form>
</div>
 <script type="text/javascript">
 function CheckPassword(inputtxt) 
{ 
var decimal=  /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z0-9])(?!.*\s).{8,15}$/;
if(inputtxt.value.match(decimal)) 
{ 
}else{ 
alert("รหัสผ่านของท่านไม่ตรงตามเงื่อนไข กรุณาใส่รหัสผ่านใหม่อีกครั้ง");
}
} 
</script>
              </td>
          </tr>
        </table><p>
        <hr>
          <div align="center"><input type="submit" name="submit2" value="กลับไปหน้าหลัก" onClick="window.location='main4.php'" class="inputlogin"/></div>
        </p>
        </td></tr>
 </table>
</td>
</tr>
</table>
</div><br />
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox