Hacked By AnonymousFox

Current Path : C:/AppServ/www/bhz/
Upload File :
Current File : C:/AppServ/www/bhz/main65.php

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

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

$Yearsend=$_GET["Yearsend"];
if($Yearsend==""){  $Yearsend="2568";  }
if($System_Session_User_ID=="") {
echo "<SCRIPT LANGUAGE=\"JavaScript\">window.location = \"index.php\";alert(\"You must Login first.\");</SCRIPT>";
 } 

$sql="select * from hospital where Id='$System_Session_User_ID'";
$query=mysql_query($sql);
$row=mysql_fetch_array($query);
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<title>:: รายงานผลการดำเนินงานตามแผนกลยุทธ์การขับเคลื่อนเขตสุขภาพกรุงเทพมหานคร (Bangkok Health Zoning) ::</title>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->	
	<link rel="icon" type="image/png" href="images/icons/list.ico"/>
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="fonts/Linearicons-Free-v1.0.0/icon-font.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="vendor/animate/animate.css">
<!--===============================================================================================-->	
	<link rel="stylesheet" type="text/css" href="vendor/css-hamburgers/hamburgers.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="vendor/animsition/css/animsition.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="vendor/select2/select2.min.css">
<!--===============================================================================================-->	
<!--===============================================================================================-->
<style type="text/css">
<!--
.header {
  text-align: center;
  background: #2F4F4F; color:white;
  font-size: 20px; 
}.header2 {
  padding: 15px;
  text-align: center;
  background: #CCFF99; 
  font-size: 20px; 
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.button {
  background-color: #4CAF50; /* Green */
  border: none;
  color: white;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
}
.button2 {
  background-color: #A4F2C5; /* Green */
  border: none;
  color: green;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;  border: 2px solid #4CAF50;

}
.button1 {
  background-color: white; 
  color: black; 
  border: 2px solid #4CAF50;
}

.button1:hover {
  background-color: #4CAF50;
  color: white;
}
.button2:hover {
  background-color: #4CAF50;
  color: white;
}
.inputlogin{

background:#056839;

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

font-size:16px;  

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;

}

.inputlogin:hover{

background:#727FB2;

}
.nore{
	background-image: url("search2.jpg");
  	background-repeat: no-repeat;
}
.top{
	background-image: url("header.jpg");
  	background-repeat: no-repeat;
}
.style2 {font-weight: bold}
-->
</style>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
	<table width="100%" border="1" style="border-collapse:collapse" bordercolor="#CCCCCC" cellpadding="10">
	  
	  <tr>
	    <td colspan="12" align="center" bgcolor="#05291B" class="top" b><br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br></td>
      </tr>
	  <tr>
	    <td colspan="12" bgcolor="#2F4F4F" align="center"><span class="header"> ระบบรายงานผลการดำเนินงานตามแผนกลยุทธ์การขับเคลื่อนเขตสุขภาพกรุงเทพมหานคร (Bangkok Health Zoning)</span></td>
      </tr>
	  <tr>
	    <td colspan="12" bgcolor="#FFFFFF" align="center"><span class="page_title">
	      <input type="submit" name="button4" id="button15" class="inputlogin" value="แก้ไขรหัสผ่าน"  onclick="window.location='editpass65.php'" />
	      <br>
        ยินดีต้อนรับ !
          <span class="style2">
          <?=$System_Session_FullName?>
          </span> เข้าสู่ระบบ                                            &nbsp;&nbsp;
<input type="submit" name="button" id="button" class="inputlogin" value="ออกจากระบบ"  onclick="window.location='system/logoutmain.php'" />
	    </span></td>
      </tr>
	  <tr>
	    <td colspan="12" bgcolor="#FFFFFF" align="center"><strong>เลือกปีงบประมาณ</strong> 
        <input type="submit" name="button" id="button" class="inputlogin" value="2566"  onclick="window.location='main_s65.php'" />
         <input type="submit" name="button" id="button" class="inputlogin" value="2567"  onclick="window.location='main65.php?Yearsend=2567'" />
          <input type="submit" name="button" id="button" class="inputlogin" value="2568"  onclick="window.location='main65.php?Yearsend=2568'" />
               </td>
      </tr>
	  
	  <tr>
	    <td colspan="12" bgcolor="#E6E6E6"><div align="center"><strong>ปีงบประมาณ <?=$Yearsend?></strong></div></td>
      </tr>
	  <tr>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ต.ค. <?=$Yearsend-1?></strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>พ.ย. <?=$Yearsend-1?></strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ธ.ค. <?=$Yearsend-1?></strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ม.ค. <?=$Yearsend?></strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ก.พ. <?=$Yearsend?></strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>มี.ค. <?=$Yearsend?></strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>เม.ย. <?=$Yearsend?></strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>พ.ค. <?=$Yearsend?></strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>มิ.ย. <?=$Yearsend?></strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ก.ค. <?=$Yearsend?></strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ส.ค. <?=$Yearsend?></strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ก.ย. <?=$Yearsend?></strong></div></td>
      </tr>
	  
      <?
	  if($dept==""&&$zone==""){
	  $sql1="select * from hospital where Id='$System_Session_User_ID' order by Zone asc,Type asc,Id asc";
	  }
	  if($dept!=""){
	  	  $sql1="select * from hospital where Name like '%$dept%' order by Type asc,Id asc";
	  }
	    if($zone!=""){
	  	  $sql1="select * from hospital where Zone='$zone' order by Type asc,Id asc";
	  }
	   if($dept!=""&&$zone!=""){
	  $sql1="select * from hospital where Zone='$zone' and Name like '%$dept%' order by Type asc,Id asc";
	  }
	 // echo $sql1;
	  $query1=mysql_query($sql1);
	  $i=1;
	  while($row1=mysql_fetch_array($query1)){
	  ?>
	  <tr>
	    <td align="center"><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='1' and Idsend='$row1[Id]' and Yearsend='$Yearsend'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
          <input type="submit" name="button23" id="button23" class="inputlogin" value="บันทึกข้อมูล
ต.ค. <?=$Yearsend-1?>" 
		  onClick="window.location='<? if ($row1[Type]==1) { ?>save1v.php?Id=<?=$row1[Id]?>&Month=1&Yearsend=<?=$Yearsend?><? } ?><? if ($row1[Type]==2) { ?>save2.php?Id=<?=$row1[Id]?>&Month=1&Yearsend=<?=$Yearsend?><? } ?><? if ($row1[Type]==3) { ?>save3.php?Id=<?=$row1[Id]?>&Month=1&Yearsend=<?=$Yearsend?><? } ?><? if ($row1[Type]==4) { ?>save4.php?Id=<?=$row1[Id]?>&Month=1&Yearsend=<?=$Yearsend?><? } ?>'"  />
          <? } else { ?> <a href="report<?=$row1[Type]?>v.php?Id=<?=$row1[Id]?>&Month=1&Yearsend=<?=$Yearsend?>" target="_blank"><img src="view.jpg" width="50"></a><br>
 <a href="report<?=$row1[Type]?>editv.php?Id=<?=$row1[Id]?>&Month=1&Yearsend=<?=$Yearsend?>" target="_blank"> <img src="edit.png" width="40"></a><br>
  <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='2' and Idsend='$row1[Id]' and Yearsend='$Yearsend'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
          <input type="submit" name="button2" id="button2" class="inputlogin" value="บันทึกข้อมูล
พ.ย. <?=$Yearsend-1?>" 
		  onClick="window.location='<? if ($row1[Type]==1) { ?>save1v.php?Id=<?=$row1[Id]?>&Month=2&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==2) { ?>save2.php?Id=<?=$row1[Id]?>&Month=2&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==3) { ?>save3.php?Id=<?=$row1[Id]?>&Month=2&Yearsend=<?=$Yearsend?><? } ?><? if ($row1[Type]==4) { ?>save4.php?Id=<?=$row1[Id]?>&Month=2&Yearsend=<?=$Yearsend?><? } ?>'"  />
          <? } else { ?>
  <a href="report<?=$row1[Type]?>v.php?Id=<?=$row1[Id]?>&Month=2&Yearsend=<?=$Yearsend?>" target="_blank"><img src="view.jpg" width="50" alt="ดูข้อมูล"></a><br>
 <a href="report<?=$row1[Type]?>editv.php?Id=<?=$row1[Id]?>&Month=2&Yearsend=<?=$Yearsend?>" target="_blank"><img src="edit.png" width="40" alt="แก้ไขข้อมูล"></a><br>
  <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='3' and Idsend='$row1[Id]' and Yearsend='$Yearsend'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
          <input type="submit" name="button24" id="button24" class="inputlogin" value="บันทึกข้อมูล
ธ.ค.<?=$Yearsend-1?>" 
		  onClick="window.location='<? if ($row1[Type]==1) { ?>save1v.php?Id=<?=$row1[Id]?>&Month=3&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==2) { ?>save2.php?Id=<?=$row1[Id]?>&Month=3&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==3) { ?>save3.php?Id=<?=$row1[Id]?>&Month=3&Yearsend=<?=$Yearsend?><? } ?><? if ($row1[Type]==4) { ?>save4.php?Id=<?=$row1[Id]?>&Month=3&Yearsend=<?=$Yearsend?><? } ?>'"  />
          <? } else { ?>
          <a href="report<?=$row1[Type]?>v.php?Id=<?=$row1[Id]?>&Month=3&Yearsend=<?=$Yearsend?>" target="_blank"><img src="view.jpg" width="50"></a><br>
	      <a href="report<?=$row1[Type]?>editv.php?Id=<?=$row1[Id]?>&Month=3&Yearsend=<?=$Yearsend?>" target="_blank"> <img src="edit.png" width="40" alt="แก้ไขข้อมูล"></a><br>
  <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='4' and Idsend='$row1[Id]' and Yearsend='$Yearsend'";
		$querycheck=mysql_query($sqlcheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
          <input type="submit" name="button25" id="button25" class="inputlogin" value="บันทึกข้อมูล
ม.ค.<?=$Yearsend?>" 
		  onClick="window.location='<? if ($row1[Type]==1) { ?>save1v.php?Id=<?=$row1[Id]?>&Month=4&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==2) { ?>save2.php?Id=<?=$row1[Id]?>&Month=4&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==3) { ?>save3.php?Id=<?=$row1[Id]?>&Month=4&Yearsend=<?=$Yearsend?><? } ?><? if ($row1[Type]==4) { ?>save4.php?Id=<?=$row1[Id]?>&Month=4&Yearsend=<?=$Yearsend?><? } ?>'"  />
          <? } else { ?>
          <a href="report<?=$row1[Type]?>v.php?Id=<?=$row1[Id]?>&Month=4&Yearsend=<?=$Yearsend?>" target="_blank"><img src="view.jpg" width="50"></a><br>
          <a href="report<?=$row1[Type]?>editv.php?Id=<?=$row1[Id]?>&Month=4&Yearsend=<?=$Yearsend?>" target="_blank"> <img src="edit.png" width="40" alt="แก้ไขข้อมูล"></a><br>
	      <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='5' and Idsend='$row1[Id]' and Yearsend='$Yearsend'";
		$querycheck=mysql_query($sqlcheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
          <input type="submit" name="button252" id="button252" class="inputlogin" value="บันทึกข้อมูล
ก.พ.<?=$Yearsend?>" 
		  onClick="window.location='<? if ($row1[Type]==1) { ?>save1v.php?Id=<?=$row1[Id]?>&Month=5&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==2) { ?>save2.php?Id=<?=$row1[Id]?>&Month=5&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==3) { ?>save3.php?Id=<?=$row1[Id]?>&Month=5&Yearsend=<?=$Yearsend?><? } ?><? if ($row1[Type]==4) { ?>save4.php?Id=<?=$row1[Id]?>&Month=5&Yearsend=<?=$Yearsend?><? } ?>'"  />
          <? } else { ?>
          <a href="report<?=$row1[Type]?>v.php?Id=<?=$row1[Id]?>&Month=5&Yearsend=<?=$Yearsend?>" target="_blank"><img src="view.jpg" width="50"></a><br>
           <a href="report<?=$row1[Type]?>editv.php?Id=<?=$row1[Id]?>&Month=5&Yearsend=<?=$Yearsend?>" target="_blank"><img src="edit.png" width="40" alt="แก้ไขข้อมูล"></a>
          <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='6' and Idsend='$row1[Id]' and Yearsend='$Yearsend'";
		$querycheck=mysql_query($sqlcheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
          <input type="submit" name="button253" id="button253" class="inputlogin" value="บันทึกข้อมูล
มี.ค.<?=$Yearsend?>" 
		  onClick="window.location='<? if ($row1[Type]==1) { ?>save1v.php?Id=<?=$row1[Id]?>&Month=6&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==2) { ?>save2.php?Id=<?=$row1[Id]?>&Month=6&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==3) { ?>save3.php?Id=<?=$row1[Id]?>&Month=6&Yearsend=<?=$Yearsend?><? } ?><? if ($row1[Type]==4) { ?>save4.php?Id=<?=$row1[Id]?>&Month=6&Yearsend=<?=$Yearsend?><? } ?>'"  />
          <? } else { ?>
          <a href="report<?=$row1[Type]?>v.php?Id=<?=$row1[Id]?>&Month=6&Yearsend=<?=$Yearsend?>" target="_blank"><img src="view.jpg" width="50"></a><br>
           <a href="report<?=$row1[Type]?>editv.php?Id=<?=$row1[Id]?>&Month=6&Yearsend=<?=$Yearsend?>" target="_blank"><img src="edit.png" width="40"></a></span>
          <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='7' and Idsend='$row1[Id]' and Yearsend='$Yearsend'";
		$querycheck=mysql_query($sqlcheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
          <input type="submit" name="button254" id="button254" class="inputlogin" value="บันทึกข้อมูล
เม.ย.<?=$Yearsend?>" 
		  onClick="window.location='<? if ($row1[Type]==1) { ?>save1v.php?Id=<?=$row1[Id]?>&Month=7&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==2) { ?>save2.php?Id=<?=$row1[Id]?>&Month=7&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==3) { ?>save3.php?Id=<?=$row1[Id]?>&Month=7&Yearsend=<?=$Yearsend?><? } ?><? if ($row1[Type]==4) { ?>save4.php?Id=<?=$row1[Id]?>&Month=7&Yearsend=<?=$Yearsend?><? } ?>'"  />
          <? } else { ?>
          <a href="report<?=$row1[Type]?>v.php?Id=<?=$row1[Id]?>&Month=7&Yearsend=<?=$Yearsend?>" target="_blank"><img src="view.jpg" width="50"></a><br>
           <a href="report<?=$row1[Type]?>editv.php?Id=<?=$row1[Id]?>&Month=7&Yearsend=<?=$Yearsend?>" target="_blank"><img src="edit.png" width="40" alt="แก้ไขข้อมูล"></a>
          <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='8' and Idsend='$row1[Id]' and Yearsend='$Yearsend'";
		$querycheck=mysql_query($sqlcheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
          <input type="submit" name="button255" id="button255" class="inputlogin" value="บันทึกข้อมูล
พ.ค.<?=$Yearsend?>" 
		  onClick="window.location='<? if ($row1[Type]==1) { ?>save1v.php?Id=<?=$row1[Id]?>&Month=8&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==2) { ?>save2.php?Id=<?=$row1[Id]?>&Month=8&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==3) { ?>save3.php?Id=<?=$row1[Id]?>&Month=8&Yearsend=<?=$Yearsend?><? } ?><? if ($row1[Type]==4) { ?>save4.php?Id=<?=$row1[Id]?>&Month=8&Yearsend=<?=$Yearsend?><? } ?>'"  />
          <? } else { ?>
          <a href="report<?=$row1[Type]?>v.php?Id=<?=$row1[Id]?>&Month=8&Yearsend=<?=$Yearsend?>" target="_blank"><img src="view.jpg" width="50"></a><br>
           <a href="report<?=$row1[Type]?>editv.php?Id=<?=$row1[Id]?>&Month=8&Yearsend=<?=$Yearsend?>" target="_blank"><img src="edit.png" width="40" alt="แก้ไขข้อมูล"></a>
          <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='9' and Idsend='$row1[Id]' and Yearsend='$Yearsend'";
		$querycheck=mysql_query($sqlcheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
          <input type="submit" name="button2562" id="button2562" class="inputlogin" value="บันทึกข้อมูล
มิ.ย.<?=$Yearsend?>" 
		  onClick="window.location='<? if ($row1[Type]==1) { ?>save1v.php?Id=<?=$row1[Id]?>&Month=9&Yearsend=<?=$Yearsend?><? } ?>
		  <? if ($row1[Type]==2) { ?>save2.php?Id=<?=$row1[Id]?>&Month=9&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==3) { ?>save3.php?Id=<?=$row1[Id]?>&Month=9&Yearsend=<?=$Yearsend?><? } ?><? if ($row1[Type]==4) { ?>save4.php?Id=<?=$row1[Id]?>&Month=9&Yearsend=<?=$Yearsend?><? } ?>'"  />
          <? } else { ?>
          <a href="report<?=$row1[Type]?>v.php?Id=<?=$row1[Id]?>&Month=9&Yearsend=<?=$Yearsend?>" target="_blank"><img src="view.jpg" width="50"></a><br>
           <a href="report<?=$row1[Type]?>editv.php?Id=<?=$row1[Id]?>&Month=9&Yearsend=<?=$Yearsend?>" target="_blank"><img src="edit.png" width="40" alt="แก้ไขข้อมูล"></a>
          <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='10' and Idsend='$row1[Id]' and Yearsend='$Yearsend'";
		$querycheck=mysql_query($sqlcheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
          <input type="submit" name="button257" id="button257" class="inputlogin" value="บันทึกข้อมูล
ก.ค.<?=$Yearsend?>" 
		  onClick="window.location=' <? if ($row1[Type]==1) { ?>save1v.php?Id=<?=$row1[Id]?>&Month=10&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==2) { ?>save2.php?Id=<?=$row1[Id]?>&Month=10&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==3) { ?>save3.php?Id=<?=$row1[Id]?>&Month=10&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==4) { ?>save4.php?Id=<?=$row1[Id]?>&Month=10&Yearsend=<?=$Yearsend?><? } ?>'"  />
          <? } else { ?>
          <a href="report<?=$row1[Type]?>v.php?Id=<?=$row1[Id]?>&Month=10&Yearsend=<?=$Yearsend?>" target="_blank"><img src="view.jpg" width="50"></a><br>
           <a href="report<?=$row1[Type]?>editv.php?Id=<?=$row1[Id]?>&Month=10&Yearsend=<?=$Yearsend?>" target="_blank"><img src="edit.png" width="40" alt="แก้ไขข้อมูล"></a>
          <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='11' and Idsend='$row1[Id]' and Yearsend='$Yearsend'";
		$querycheck=mysql_query($sqlcheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
          <input type="submit" name="button258" id="button258" class="inputlogin" value="บันทึกข้อมูล
ส.ค.<?=$Yearsend?>" 
		  onClick="window.location=' <? if ($row1[Type]==1) { ?>save1v.php?Id=<?=$row1[Id]?>&Month=11&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==2) { ?>save2.php?Id=<?=$row1[Id]?>&Month=11&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==3) { ?>save3.php?Id=<?=$row1[Id]?>&Month=11&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==4) { ?>save4.php?Id=<?=$row1[Id]?>&Month=11&Yearsend=<?=$Yearsend?><? } ?>'"  />
          <? } else { ?>
          <a href="report<?=$row1[Type]?>v.php?Id=<?=$row1[Id]?>&Month=11&Yearsend=<?=$Yearsend?>" target="_blank"><img src="view.jpg" width="50"></a><br>
           <a href="report<?=$row1[Type]?>editv.php?Id=<?=$row1[Id]?>&Month=11&Yearsend=<?=$Yearsend?>" target="_blank"><img src="edit.png" width="40" alt="แก้ไขข้อมูล"></a>
          <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='12' and Idsend='$row1[Id]' and Yearsend='$Yearsend'";
		$querycheck=mysql_query($sqlcheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
          <input type="submit" name="button259" id="button259" class="inputlogin" value="บันทึกข้อมูล
ก.ย.<?=$Yearsend?>" 
		  onClick="window.location=' <? if ($row1[Type]==1) { ?>save1v.php?Id=<?=$row1[Id]?>&Month=12&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==2) { ?>save2.php?Id=<?=$row1[Id]?>&Month=12&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==3) { ?>save3.php?Id=<?=$row1[Id]?>&Month=12&Yearsend=<?=$Yearsend?><? } ?> <? if ($row1[Type]==4) { ?>save4.php?Id=<?=$row1[Id]?>&Month=12&Yearsend=<?=$Yearsend?><? } ?>'"  />
          <? } else { ?>
          <a href="report<?=$row1[Type]?>v.php?Id=<?=$row1[Id]?>&Month=12&Yearsend=<?=$Yearsend?>" target="_blank"><img src="view.jpg" width="50"></a><br>
          <a href="report<?=$row1[Type]?>editv.php?Id=<?=$row1[Id]?>&Month=12&Yearsend=<?=$Yearsend?>" target="_blank"><img src="edit.png" width="40" alt="แก้ไขข้อมูล"></a>
          <? } ?>
        </div></td>
      </tr>
	  <? $i++; } ?>
</table>

</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox