Hacked By AnonymousFox

Current Path : C:/AppServ/www/timetable_student/home/
Upload File :
Current File : C:/AppServ/www/timetable_student/home/changepass.php

<? 
include("../lib/session.php");
include("../lib/config.php");
include("../lib/connect.php");
include("../lib/function.php");
include("../lib/register_global.php");
if($System_Session_User_ID=="")
{
echo"<meta http-equiv=\"refresh\" content=\"0;URL=../index.php\">";
}
$gw=$_GET["gw"];

if($gw==""){$gw="201638";}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>ระบบประเมินรายวิชา/การสอนอาจารย์ </title>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<link href="../css/menu.css" rel="stylesheet" type="text/css" />
<link href="../css/font.css" rel="stylesheet" type="text/css" />
<link href="../css/piya_style.css" rel="stylesheet" type="text/css" />
<link href="../css/table.css" rel="stylesheet" type="text/css" />
<style>
.input1{ 

background: #006600; 

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

font-size:14px;  

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); 

border-left:none; 

border-top:none; 

margin:10px 0 10px 0; 

} 

.input1:hover{ 

background: #62A062; 

}

.input2{ 

background:#F50000; 

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

font-size:14px;  

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; 

} 

.input2:hover{ 

background:#FF4B1A; 

}
.input3{ 

background: #999999; 

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

font-size:14px;  

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); 

border-left:none; 

border-top:none; 

margin:10px 0 10px 0; 

} 

.input3:hover{ 

background: #D5D5D5; 

}
.input31 {
background: #999999; 

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

font-size:14px;  

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); 

border-left:none; 

border-top:none; 

margin:10px 0 10px 0; 
}
.graph { 
position: relative; /* IE is dumb */
width: 400px; 
border: 1px solid #000000; 
padding: 2px; 
}
.graph .barred { 
display: block;
position: relative;
background: #FFA29B; 
text-align: center; 
color: #333; 
height: 2em; 
line-height: 2em; 
}
.graph .bargreen { 
display: block;
position: relative;
background: #89B889; 
text-align: center; 
color: #333; 
height: 2em; 
line-height: 2em; 
}
.graph .bar span { position: absolute; left: 1em; }
.style20 {color: #FFFFFF}
.style21 {color: #990000}
.style22 {color: #000033}
</style>
</head>

<body onload="MM_preloadImages('../images/menu/menu_03.png','../images/menu/menu_01_over.png','../images/menu/menu_05_over.png')">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="49%" height="100" align="center" bgcolor="#0866C6" ><img src="logo.png" width="567" height="102" /></td>
    <td width="51%" align="center" bgcolor="#0866C6" ><table width="60%" border="0" align="right" cellpadding="5" cellspacing="5">
      <tr>
        <td width="31%" rowspan="3"><div align="center"><img src="../../timetable/images/student/<?=$System_Session_UserName?>.jpg"  height="130" alt="Photo" border="3" style="border-color:#3984D0" /></div></td>
        <td width="69%" class="login"><div align="left">นศพ.
          <?=$System_Session_FullName?>
        </div></td>
      </tr>
      <tr>
         <td bgcolor="2074CA"><div align="left"><span class="login"><a href="changepass.php">เปลี่ยนรหัสผ่าน</a>&nbsp;</span></div></td>
      </tr>
      <tr>
        <td bgcolor="2074CA" class="login"><div align="left"><a href="../system/logout.php"> ออกจากระบบ</a>&nbsp;</div></td>
      </tr>
    </table></td>
  </tr>
  
  <tr>
    <td colspan="2" align="center" valign="top"><table width="100%" border="0">
      <tr>
        <td width="19%" rowspan="2" valign="top" bgcolor="#282828"><table width="100%" border="1" style="border-collapse:collapse" bordercolor="#232323" cellpadding="7" cellspacing="7">
            <tr>
              <td bgcolor="#232323"><div align="center" class="login">เมนู</div></td>
            </tr>
			<tr>
              <td bgcolor="#282828"><div align="center"><strong><span class="login"><a href="home.php">ประกาศ</a></span></strong></div></td>
            </tr>
          <tr>
              <td bgcolor="#282828"><div align="center"><strong><span class="login"><a href="personal.php">ระเบียนประวัติ</a></span></strong></div></td>
            </tr>
			<tr>
              <td bgcolor="#282828"><div align="center"><strong><span class="login"><a href="consult.php">อาจารย์ที่ปรึกษา</a></span></strong></div></td>
            </tr>
          <tr>
              <td bgcolor="#282828"><div align="center"><span class="login"><a href="table.php"><strong>ตารางเรียน/สอบ</strong></a></span></div></td>
            </tr>
          <tr>
              <td bgcolor="#282828"><div align="center"><strong><span class="login"><a href="grade.php">ผลการศึกษา</a></span></strong></div></td>
            </tr>
			 <tr>
              <td bgcolor="#282828"><div align="center"><span class="login"><a href="activity.php"><strong>กิจกรรมนักศึกษา</strong></a></span></div></td>
            </tr>
			 <tr>
              <td bgcolor="#282828"><div align="center"><span class="login"><a href="stat.php"><strong>สถิติการเข้าใช้ระบบ</strong></a></span></div></td>
            </tr>
			 <tr>
              <td bgcolor="#282828"><div align="center"><span class="login"><a href="request.php"><strong>ปรึกษา อ.ที่ปรึกษา</strong></a></span></div></td>
            </tr>				
          </table>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p></td>
        <td width="81%" bgcolor="#DDDDDD"><div align="left"><strong> &nbsp;&nbsp;&nbsp;&nbsp;ยินดีต้อนรับเข้าสู่ระบบบริการการศึกษา</strong></div></td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF" valign="top"><br />
        <table width="95%" border="0" align="center" cellpadding="3" cellspacing="0">
            <tbody>
              <tr>
                <td width="10"></td>
                <td width="100%"><div align="left"><font face="CordiaUPC" color="#000080" size="6"><b>เปลี่ยนรหัสผ่าน </b></font></div></td>
              </tr>
            </tbody>
          </table>
          <br />
          <table width="94%"  border="0" align="center" cellpadding="0" cellspacing="0">
                    
                    <tr>
                      <td><? 
					   if($action==""){
					  ?>
					  
			</p>
                   <form name="myForm" id="myForm" method="post" enctype="multipart/form-data">
				   	<input name="action" id="action" type="hidden" value="<?=$action?>">
					<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="2">
					
					  <tr>
                        <td width="30%"><div align="right" >ชื่อผู้ใช้งาน :</div></td>
                        <td width="70%"><div align="left">
                          <?=$System_Session_UserName?>
                        </div></td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td><div align="left"><span ><font color="#FF0000"><u>หมายเหตุ</u></font> : กรุณากรอกรหัสผ่านอย่างน้อย 4 ตัวอักษร </span></div></td>
                      </tr>
                      <tr>
                        <td><div align="right" >รหัสผ่าน : </div></td>
                        <td><div align="left">
                          <input name="inputPassword" id="inputPassword" type="password" size="20" >
                          <span class="style6">                        
                          *</span></div></td>
                      </tr>
                      <tr>
                        <td><div align="right" >ยืนยันรหัสผ่าน : </div></td>
                        <td><div align="left">
                          <input name="inputConfirmPassword" id="inputConfirmPassword" type="password" size="20" >
                          <span class="style6">*</span></div></td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td><table width="24%"  border="0" align="left" cellpadding="0" cellspacing="0">
                          <tr>
                            <td width="51%" align="center"><input type="button" name="Button2" value="   บันทึกข้อมูล   " onclick="verifySubmit();" />                            </td>
                            <td width="24%" align="center">&nbsp;</td>
                            <td width="25%" align="center"><input type="button" name="Button22" value="   ยกเลิก   " onclick="window.location.href='home.php'" /></td>
                          </tr>
                        </table></td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                      </tr>
                    </table>
					<br>
					<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="2">
                     </table>
                            <br>
                            <br>
                            <br>
                            <script language="JavaScript" src="../../webengine/lib/checkemail.js" type="text/javascript"></script>
                                              <script language="JavaScript" type="text/javascript">
								function isBlank(myObj) { if(myObj.value=='') { return true; } return false; }
								function isNumber(myObj) { return !isNaN(myObj.value*1) }
								function isEqual(myObj1,myObj2) {	if(myObj1.value==myObj2.value) { return true; }	return false;}
								function verifySubmit() {
									with(document.myForm) {
										//if(isBlank(inputEmail)) {alert("กรุณากรอกชื่อผู้ใช้งาน");  inputEmail.focus(); return false; }
										//if(!isBlank(inputEmail)) {
											//if(inputEmail.value.length<4){ alert("กรุณากรอกชื่อผู้ใช้งานอย่างน้อย 4 ตัวอักษร");  inputEmail.focus(); return false; }
										//}
										if(isBlank(inputPassword)) {alert("กรณากรอกรหัสผ่าน");  inputPassword.focus(); return false; }
										if(!isBlank(inputPassword)) {
											if(inputPassword.value.length<4){ alert("กรุณากรอกรหัสผ่านอย่างน้อย 4 ตัวอักษร");  inputPassword.focus(); return false; }
											if(!isEqual(inputPassword,inputConfirmPassword)) { alert("รหัสผ่าน กับ ยืนยันรหัสผ่านไม่ตรงกัน กรุณากรอกใหม่"); inputPassword.focus(); return false; }
										}
										
										/*myfile = inputPhoto.value;
										if(myfile!='') {
										myfile = myfile.toLowerCase();
										Temp = myfile.charAt(myfile.length-4) + myfile.charAt(myfile.length-3) + myfile.charAt(myfile.length-2) + myfile.charAt(myfile.length-1);
										if(isBlank(inputPhoto)) {alert("กรุณาใส่ภาพแสดงตัว");  inputPhoto.focus(); return false; }
										if(Temp=='.jpg' || Temp=='.JPG' || Temp=='.gif' || Temp=='.GIF' || Temp=='jpeg' || Temp=='JPEG') {
												// Do Nothing..
										} else {	alert('กรุณาใส่ภาพที่สามสกุล *.jpg , *.gif เท่านั้น');inputPhoto.focus();	return false; }
										}*/
									}
									document.myForm.action.value='addnew';
									document.myForm.submit();
								}
								</script>
<p>
                   </form>
                    <p>
			<!---------------Register Form Finish----------------->
			<? } else if($action=="addnew"){

						$sql="update evaluateicm_system_student set evaluateicm_system_student_Password='$inputPassword' where evaluateicm_system_student_ID='$System_Session_User_ID'";
						$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");

					?>
						<!---------------Register success already Start----------------->
                    <table width="50%"  border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#ECECEC" >
					  <tr>
						<td bordercolor="#FFFFFF">
						<div align="center">
							<p><span class="style2"><br>
				  คุณได้เปลี่ยนชื่อผู้ใช้งาน รหัสผ่านของคุณเรียบร้อยแล้ว </span><span class="style3"></span></p>
							<table width="20%"  border="0" align="center" cellpadding="4" cellspacing="0">
							  <tr>
								<td><div align="center"><input name="Button" type="reset" class="input_bt_100px" value="กลับไปหน้าหลัก" onClick="window.location.href='home.php'"></div></td>
							  </tr>
							</table>
							<br>
						</div></td>
					  </tr>
					</table>
			<? } ?></td>
                    </tr>
            </table></td>
      </tr>
      
    </table>    </td>
  </tr>
</table>
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox