Hacked By AnonymousFox

Current Path : C:/AppServ/www/mfu/webengine/home/
Upload File :
Current File : C:/AppServ/www/mfu/webengine/home/showtrue1.php

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

$Eduyear=$_GET["Eduyear"];
$Faculty=$_GET["Faculty"];
$inputmonth=$_GET["inputmonth"];
$inputyear=$_GET["inputyear"];
$Datemoney=$_GET["Datemoney"];
$Noorder=$_GET["Noorder"];
$Hospital=$_GET["Hospital"];
$Studentyear=$_GET["Studentyear"];

$sqlck="select * from transfer_money where Trans1='$inputyear' and Trans2='$inputmonth' and Trans3='$Eduyear' and Trans4='$Faculty' and Datemoney='$Datemoney' and Noorder='$Noorder' and Hospital='$Hospital' and Studentyear='$Studentyear'";
$queryck=mysql_query($sqlck);
$rowck=mysql_fetch_array($queryck);
$Idrefer=$rowck[Id];

?>
<html>
<head>

<title><?=$System_Variable_Title?>
</title>
 
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
 
<script language="JavaScript" 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/mystyle.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.style3 {font-size: 16px}
-->
</style>
</head> 
<body bgcolor="#E9E6DF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../../images/thai.gif','../../images/eng.gif','../../images/chaina.gif','../../images/object/topbar-thai-over.gif','../../images/object/topbar-english-over.gif','../images/bullet/lang_over_02_1.gif','../images/bullet/lang_over_01_1.gif')">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="15" height="300">&nbsp;</td>
                  <td align="left" valign="top">&nbsp;		    </p>
		  <table width="95%" border="1" align="center" style="border-collapse:collapse" bordercolor="#666666">
            <tr>
              <td><div align="center"><br />
                 <span class="style3">
                 <? if($Hospital=="1"){?> โรงพยาบาลกลาง<? } ?>
                 <? if($Hospital=="3"){?> โรงพยาบาลเจริญกรุงประชารักษ์<? } ?>
              </span> &nbsp;&nbsp; <br>
              <br><span class="style3">
              ชั้นปี  <?=$Studentyear?>
              ปีการศึกษา <?=$Eduyear?>
              </span> <span class="style3">
              <?=$Faculty?>
              </span><br>
              <br />
                  <br />
                 <span class="style3"> เดือน<? if($inputmonth=="01"){?>มกราคม <? } ?>
                  <? if($inputmonth=="02"){?>กุมภาพันธ์<? } ?>
                  <? if($inputmonth=="03"){?>มีนาคม<? } ?>
                  <? if($inputmonth=="04"){?>เมษายน<? } ?>
                  <? if($inputmonth=="05"){?> พฤษภาคม<? } ?>
                  <? if($inputmonth=="06"){?>มิถุนายน<? } ?>
                  <? if($inputmonth=="07"){?>กรกฏาคม<? } ?>
                  <? if($inputmonth=="08"){?>สิงหาคม<? } ?>
                  <? if($inputmonth=="09"){?>กันยายน<? } ?>
                  <? if($inputmonth=="10"){?>ตุลาคม<? } ?>
                  <? if($inputmonth=="11"){?> พฤศจิกายน<? } ?>
                  <? if($inputmonth=="12"){?>ธันวาคม<? } ?>
                ปี พ.ศ.
                <? if($inputyear=="2016"){?>2559<? } ?>
    <? if($inputyear=="2017"){?> 2560<? } ?>
    <? if($inputyear=="2018"){?> 2561<? } ?>
    </span>
              <br />
              <br />
              </div></td>
            </tr>
          </table>
		  <p align="center">
		  </p>
          <table width="95%" border="1" align="center" style="border-collapse:collapse">
            <tr>
              <td width="13%" bgcolor="#515151"><div align="center" class="style16 style1">ลำดับที่</div></td>
              <td width="17%" bgcolor="#515151"><div align="center" class="style16 style1">ชื่อ</div></td>
              <td width="17%" bgcolor="#515151"><div align="center" class="style16 style1">นามสกุล</div></td>
              <td width="21%" bgcolor="#515151"><div align="center" class="style1">หมายเลขบัญชี</div></td>
              <td width="16%" bgcolor="#515151"><div align="center" class="style1">จำนวนเงิน </div></td>
            </tr>
		  <? 
		  echo $sqltime="select * from cm_mod_detailoverall a,cmteacher b where a.cm_mod_detailoverall_ID=b.cmteacher_DetailoverallID  and b.cmteacher_TeacherID    and a.cm_mod_detailoverall_DateFrom like '%$inputyear-$inputmonth%'  and a.cm_mod_detailoverall_Eduyear='$Eduyear' and a.cm_mod_detailoverall_Teacher='$Faculty' and b.cmteacher_Hos='$Hospital' and a.cm_mod_detailoverall_Studentyear='$Studentyear' group by b.cmteacher_TeacherID "; 
		$querytime=mysql_query($sqltime);
		$numtime=mysql_num_rows($querytime);
		$i=1;
		 while($rowtime=mysql_fetch_array($querytime)){
		 
		  ?>
            <tr>
              <td><div align="center">
                <?=$i?></div></td>
              <td><div align="left">
                  <?
							  $sqlteach="select * from mfu_mod_teacher  where Id='$rowtime[cmteacher_TeacherID]'";
                          $Queryteach=mysql_query($sqlteach);
							 $Rowteach=mysql_fetch_array($Queryteach);
							 echo $Rowteach[name];
					?>
              </div></td>
              <td><div align="left">
                <?
							 echo $Rowteach[lname];
					?>
              </div></td>
              <td><div align="center"><?
							 echo $Rowteach[datediff];
					?></div></td>
              <td>
              <div align="center"> 
              <?
			 
			  $sqlprice="select Money,Ordering from transfer_money2 where Ordering='$i' and Idrefer='$Idrefer'";
			  $queryprice=mysql_query($sqlprice);
			  $rowprice=mysql_fetch_array($queryprice);
			   if($rowprice[Ordering]=="1"){
			  echo number_format($rowprice[Money]);
			  }else{
			  
			  $sqlprice="select Money,Ordering from transfer_money2 where Ordering='$i' and Idrefer='$Idrefer'";
			  $queryprice=mysql_query($sqlprice);
			  $rowprice=mysql_fetch_array($queryprice);
			  
			  $j=$i-1;
			  $sqlprice1="select Money,Ordering from transfer_money2 where Ordering='$j' and Idrefer='$Idrefer'";
			  $queryprice1=mysql_query($sqlprice1);
			  $rowprice1=mysql_fetch_array($queryprice1);
			  echo number_format($totalminus=$rowprice[Money]-$rowprice1[Money]);
			  }
			  ?>
			   </div>			    </td>
            </tr>
          
            <? $i++; } ?>  
            <tr>
              <td colspan="4"><DIV align="right"><strong>รวมเป็นเงินทั้งสิ้น</strong></DIV></td>
              <td align="center"> 
			  <b>
			  <?
              $sqlpricetotal="select Money from transfer_money2 where Ordering='$numtime' and Idrefer='$Idrefer'";
			  $querypricetotal=mysql_query($sqlpricetotal);
			  $rowpricetotal=mysql_fetch_array($querypricetotal);
			  ?>
             <?=number_format($rowpricetotal[0])?> 
             </b>
			  </td>
            </tr>
          </table>
		    </p>
		  <p align="center">วันที่  <?=ShowDateLongTh($rowck[Datemoney])?>
		    
		    ฎีกาที่   <?=$rowck[Noorder]?> 
		   
		    <br>
		    <br>
		  </p>
		  <p align="center">
		  <input type="button" name="Button" value="พิมพ์เอกสาร" onClick="javascript:this.style.display='none';window.print();">
 
          
&nbsp; </p>
                    <p align="right">&nbsp;</p>
                    </div>
                  </td>
                  <td width="15">&nbsp;</td>
                </tr>
            </table>
</body>
</html>
<? 
include("../lib/disconnect.php");
?>

Hacked By AnonymousFox1.0, Coded By AnonymousFox