403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/www/myoffice/2565/modules/tkk3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/myoffice/2565/modules/tkk3/addedit2.php
<?
CheckUser($_SESSION['user_user'], $_SESSION['user_pwd']);
?>
<?php
include 'includes/connect.php';
?>
<script language="JavaScript1.2">
<!--
window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>
<script type="text/javascript">
function myoffice(val, group_num)
{
if(val==true)
{
	document.getElementById("group"+group_num+"").style.display="";
}
else
{
	document.getElementById("group"+group_num+"").style.display="none";
}

}
</script>
<script type="text/javascript">
function myoffice1(val, group_num)
{
if(val==true)
{
	document.getElementById("group1"+group_num+"").style.display="";
}
else
{
	document.getElementById("group1"+group_num+"").style.display="none";
}

}
</script>
<script>
    function checkall(formname,checkname,thestate){
      var el_collection=eval("document.forms."+formname+"."+checkname)
      for (c=0;c<el_collection.length;c++)
      el_collection[c].checked=thestate
    }
 </script>
<script language="JavaScript">

//******************************************
function checkregis() {

if(document.myform.TOPIC.value=="") {
alert("กรุณาใส่ชื่อเรื่อง") ;
document.myform.TOPIC.select() ;
return false ;
}

if(document.myform.NAMECOM.value=="") {
alert("กรุณากรอกวันเดือนปี") ;
document.myform.NAMECOM.select() ;
return false ;
}
//********************************************
}
</script>
	<TABLE cellSpacing=0 cellPadding=0 width=1005 height=500 border=0>
      <TBODY>
        <TR>
          <TD vAlign=top>
				<TABLE width="800" bgcolor=#FFFFFF align=center cellSpacing=0 cellPadding=0 border=0>
				<TR>
					<TD height="1" class="dotline"></TD>
				</TR>
				<TR>
					<TD>
<?
  if($_GET[op] == "tkk3_edit" AND $_GET[action] == "edit"){
	//////////////////////////////////////////// กรณีแก้ไข Database Edit
	if(CheckLevelUser($_SESSION['user_user'],$_GET[op])){
//	CheckUser($_SESSION['user_user']);
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$res[user] = $db->select_query("SELECT * FROM ".TB_user." WHERE username='".$_SESSION['user_user']."' ");
		$arr[user] = $db->fetch($res[user]);
		//ดึงค่า
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$res[tkk3] = $db->select_query("SELECT * FROM ".TB_TKK3." WHERE id='".$_GET[id]."' ");
		$arr[tkk3] = $db->fetch($res[tkk3]);
		$db->closedb ();
		//require("includes/class.resizepic.php");
		//$FILE = $_FILES['FILE'];
		$FILE = $_FILES['files1'];
			$FILE = $_FILES['files2'];
			$FILE = $_FILES['files3'];
			$FILE = $_FILES['files4'];
		if (!$_POST[CATEGORY]){
			echo "<script language='javascript'>" ;
			echo "alert('กรุณากรอกข้อมูลต่างๆให้ครบถ้วน')" ;
			echo "</script>" ;
			echo "<script language='javascript'>javascript:history.back()</script>";
			exit();
	}
//==========================================================================================
//======================================================== BEGIN ===== UPLOAD 1 ============
//==========================================================================================
// นำฟังก์ชั่น Ramdom password มาใช้เพื่อกำหนดชื่อไฟล์ป้องกันการซ้ำกัน
 if($_FILES["files1"]["tmp_name"] != "")
{
			$upload = $_FILES["files1"]["tmp_name"];
			$upload_file = $_FILES["files1"]["type"];
			require 'includes/gen_file_name.php';
			$upload_time=$gen_file_name;
//ตรวจสอบชนิดของไฟล์
	if (( $upload_file!="application/pdf" ) AND ($upload_file!="application/msword") AND ($upload_file!="application/vnd.ms-excel") AND ($upload_file!="application/vnd.openxmlformats-officedocument.wordprocessingml.document") AND ($upload_file!="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") AND  ($upload_file!="application/x-zip-compressed")AND ($upload_file!="application/octet-stream")){
			echo "<script language='javascript'>" ;
			echo "alert('กรุณาใช้ไฟล์ .pdf .doc .xls .zip ')" ;
			echo "</script>" ;
			echo "<script language='javascript'>javascript:history.back()</script>";
			exit();
		}

#แปลงนามสกุล และทำการ upload
if( $upload_file == "application/pdf" )
				{
						$filename = $upload_name.".pdf";
				}
if( $upload_file == "application/msword" )
				{
						$filename = $upload_name.".doc";
				}
		if( $upload_file == "application/vnd.openxmlformats-officedocument.wordprocessingml.document" )
				{
						$filename = $upload_name.".docx";
				}
				if( $upload_file == "application/vnd.ms-excel" )
				{
						$filename = $upload_name.".xls";
				}
				if( $upload_file == "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" )
				{
						$filename = $upload_name.".xlsx";
				}
				if( $upload_file == "application/x-zip-compressed" )
				{
						$filename = $upload_name.".zip";
				}

							if( $upload_file == "application/octet-stream" )
				{
						$filename = $upload_name.".rar";
				}
				$new1_upload = $upload_time.$filename;
copy($_FILES["files1"]["tmp_name"], "data/tkk3/$new1_upload");		
@unlink("data/tkk3/".$_POST[temp_file1]);
}
//======================================================== END ======= UPLOAD 4 ============
// เร่อม
 if($_FILES["files2"]["tmp_name"] != "")
{
			$upload = $_FILES["files2"]["tmp_name"];
			$upload_file = $_FILES["files2"]["type"];
			require 'includes/gen_file_name.php';
			$upload_time=$gen_file_name;
//ตรวจสอบชนิดของไฟล์
	if (( $upload_file!="application/pdf" ) AND ($upload_file!="application/msword") AND ($upload_file!="application/vnd.ms-excel") AND ($upload_file!="application/vnd.openxmlformats-officedocument.wordprocessingml.document") AND ($upload_file!="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") AND  ($upload_file!="application/x-zip-compressed")AND ($upload_file!="application/octet-stream")){
			echo "<script language='javascript'>" ;
			echo "alert('กรุณาใช้ไฟล์ .pdf .doc .xls .zip ')" ;
			echo "</script>" ;
			echo "<script language='javascript'>javascript:history.back()</script>";
			exit();
		}

#แปลงนามสกุล และทำการ upload
if( $upload_file == "application/pdf" )
				{
						$filename = $upload_name.".pdf";
				}
if( $upload_file == "application/msword" )
				{
						$filename = $upload_name.".doc";
				}
		if( $upload_file == "application/vnd.openxmlformats-officedocument.wordprocessingml.document" )
				{
						$filename = $upload_name.".docx";
				}
				if( $upload_file == "application/vnd.ms-excel" )
				{
						$filename = $upload_name.".xls";
				}
				if( $upload_file == "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" )
				{
						$filename = $upload_name.".xlsx";
				}
				if( $upload_file == "application/x-zip-compressed" )
				{
						$filename = $upload_name.".zip";
				}

							if( $upload_file == "application/octet-stream" )
				{
						$filename = $upload_name.".rar";
				}
				$new2_upload = $upload_time.$filename;
copy($_FILES["files2"]["tmp_name"], "data/tkk3/$new2_upload");		
@unlink("data/tkk3/".$_POST[temp_file2]);
}
//======================================================== END ======= UPLOAD 2 ============
// เร่อม
 if($_FILES["files3"]["tmp_name"] != "")
{
			$upload = $_FILES["files3"]["tmp_name"];
			$upload_file = $_FILES["files3"]["type"];
			require 'includes/gen_file_name.php';
			$upload_time=$gen_file_name;
//ตรวจสอบชนิดของไฟล์
	if (( $upload_file!="application/pdf" ) AND ($upload_file!="application/msword") AND ($upload_file!="application/vnd.ms-excel") AND ($upload_file!="application/vnd.openxmlformats-officedocument.wordprocessingml.document") AND ($upload_file!="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") AND  ($upload_file!="application/x-zip-compressed")AND ($upload_file!="application/octet-stream")){
			echo "<script language='javascript'>" ;
			echo "alert('กรุณาใช้ไฟล์ .pdf .doc .xls .zip ')" ;
			echo "</script>" ;
			echo "<script language='javascript'>javascript:history.back()</script>";
			exit();
		}

#แปลงนามสกุล และทำการ upload
if( $upload_file == "application/pdf" )
				{
						$filename = $upload_name.".pdf";
				}
if( $upload_file == "application/msword" )
				{
						$filename = $upload_name.".doc";
				}
		if( $upload_file == "application/vnd.openxmlformats-officedocument.wordprocessingml.document" )
				{
						$filename = $upload_name.".docx";
				}
				if( $upload_file == "application/vnd.ms-excel" )
				{
						$filename = $upload_name.".xls";
				}
				if( $upload_file == "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" )
				{
						$filename = $upload_name.".xlsx";
				}
				if( $upload_file == "application/x-zip-compressed" )
				{
						$filename = $upload_name.".zip";
				}

							if( $upload_file == "application/octet-stream" )
				{
						$filename = $upload_name.".rar";
				}
				$new3_upload = $upload_time.$filename;
copy($_FILES["files3"]["tmp_name"], "data/tkk3/$new3_upload");		
@unlink("data/tkk3/".$_POST[temp_file3]);
}
//======================================================== END ======= UPLOAD 2 ============
// เร่อม
 if($_FILES["files4"]["tmp_name"] != "")
{
			$upload = $_FILES["files4"]["tmp_name"];
			$upload_file = $_FILES["files4"]["type"];
			require 'includes/gen_file_name.php';
			$upload_time=$gen_file_name;
//ตรวจสอบชนิดของไฟล์
	if (( $upload_file!="application/pdf" ) AND ($upload_file!="application/msword") AND ($upload_file!="application/vnd.ms-excel") AND ($upload_file!="application/vnd.openxmlformats-officedocument.wordprocessingml.document") AND ($upload_file!="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") AND  ($upload_file!="application/x-zip-compressed")AND ($upload_file!="application/octet-stream")){
			echo "<script language='javascript'>" ;
			echo "alert('กรุณาใช้ไฟล์ .pdf .doc .xls .zip ')" ;
			echo "</script>" ;
			echo "<script language='javascript'>javascript:history.back()</script>";
			exit();
		}

#แปลงนามสกุล และทำการ upload
if( $upload_file == "application/pdf" )
				{
						$filename = $upload_name.".pdf";
				}
if( $upload_file == "application/msword" )
				{
						$filename = $upload_name.".doc";
				}
		if( $upload_file == "application/vnd.openxmlformats-officedocument.wordprocessingml.document" )
				{
						$filename = $upload_name.".docx";
				}
				if( $upload_file == "application/vnd.ms-excel" )
				{
						$filename = $upload_name.".xls";
				}
				if( $upload_file == "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" )
				{
						$filename = $upload_name.".xlsx";
				}
				if( $upload_file == "application/x-zip-compressed" )
				{
						$filename = $upload_name.".zip";
				}

							if( $upload_file == "application/octet-stream" )
				{
						$filename = $upload_name.".rar";
				}
				$new4_upload = $upload_time.$filename;
copy($_FILES["files4"]["tmp_name"], "data/tkk3/$new4_upload");		
@unlink("data/tkk3/".$_POST[temp_file4]);
}
//======================================================== END ======= UPLOAD 4 ============
	
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$db->update_db(TB_TKK3,array(
			"category"=>",".implode(",", $_POST[CATEGORY]).",",
			"cat"=>"".addslashes(htmlspecialchars($_POST[CAT]))."",
			"topic"=>"".addslashes(htmlspecialchars($_POST[TOPIC]))."",
			"namecom"=>"".addslashes(htmlspecialchars($_POST[NAMECOM]))."",
			"posted"=>"$_POST[POSTED]",
			"post_date"=>"".TIMESTAMP."",
			"update_date"=>"".TIMESTAMP."",
			"enable_comment"=>"".addslashes(htmlspecialchars($_POST[ENABLE_COMMENT])).""
		)," id=$_GET[id] ");
		$db->closedb ();
if($new1_upload !=""){
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$db->update_db(TB_TKK3,array(
			"category"=>",".implode(",", $_POST[CATEGORY]).",",
			"full_text"=>"$new1_upload"
			)," id=$_GET[id] ");
		$db->closedb ();
	}
if($new2_upload !=""){
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$db->update_db(TB_TKK3,array(
			"category"=>",".implode(",", $_POST[CATEGORY]).",",
			"full_texts"=>"$new2_upload"
			)," id=$_GET[id] ");
		$db->closedb ();
	}

if($new3_upload !=""){
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$db->update_db(TB_TKK3,array(
			"category"=>",".implode(",", $_POST[CATEGORY]).",",
			"full_textu"=>"$new3_upload"
			)," id=$_GET[id] ");
		$db->closedb ();
	}

if($new4_upload !=""){
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$db->update_db(TB_TKK3,array(
			"category"=>",".implode(",", $_POST[CATEGORY]).",",
			"full_texto"=>"$new4_upload"
			)," id=$_GET[id] ");
		$db->closedb ();
	}
} else {
		//ทำการแก้ไขข้อมูลลงดาต้าเบส
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$db->update_db(TB_TKK3,array(
			"category"=>",".implode(",", $_POST[CATEGORY]).",",
			"cat"=>"".addslashes(htmlspecialchars($_POST[CAT]))."",
			"topic"=>"".addslashes(htmlspecialchars($_POST[TOPIC]))."",
			"namecom"=>"".addslashes(htmlspecialchars($_POST[NAMECOM]))."",
			"posted"=>"$_POST[POSTED]",
			"post_date"=>"".TIMESTAMP."",
			"update_date"=>"".TIMESTAMP."",
			"enable_comment"=>"".addslashes(htmlspecialchars($_POST[ENABLE_COMMENT])).""
		)," id=$_GET[id] ");
		$db->closedb ();

if($new1_upload !=""){
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$db->update_db(TB_TKK3,array(
			"category"=>",".implode(",", $_POST[CATEGORY]).",",
			"full_text"=>"$new1_upload"
			)," id=$_GET[id] ");
		$db->closedb ();
	}

if($new2_upload !=""){
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$db->update_db(TB_TKK3,array(
			"category"=>",".implode(",", $_POST[CATEGORY]).",",
			"full_texts"=>"$new2_upload"
			)," id=$_GET[id] ");
		$db->closedb ();
	}

if($new3_upload !=""){
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$db->update_db(TB_TKK3,array(
			"category"=>",".implode(",", $_POST[CATEGORY]).",",
			"full_textu"=>"$new3_upload"
			)," id=$_GET[id] ");
		$db->closedb ();
	}

if($new4_upload !=""){
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$db->update_db(TB_TKK3,array(
			"category"=>",".implode(",", $_POST[CATEGORY]).",",
			"full_texto"=>"$new4_upload"
			)," id=$_GET[id] ");
		$db->closedb ();
	}
}

		//ทำการสร้างไฟล์ text ของข่าวสาร
		$Filename = TIMESTAMP.".txt";
		$txt_name = "data/tkk3text/".$Filename."";
		$txt_open = @fopen("$txt_name", "w");
		@fwrite($txt_open, "".$_POST[DETAIL]."");
		@fclose($txt_open);
	
		
		$ProcessOutput .= "<BR><BR>";
		$ProcessOutput .= "<CENTER><IMG SRC=\"images/icon/login-welcome.gif\" BORDER=\"0\"></A><BR><BR>";
		$ProcessOutput .= "<FONT COLOR=\"#336600\"><B>ได้ทำการแก้ไข เรียบร้อยแล้ว</B></FONT><BR><BR>";
		$ProcessOutput .= "<A HREF=\"?name=tkk3&category=".$arr[user][id]."\"><B>กลับหน้าหลักเอกสาร</B></A>";
		$ProcessOutput .= "<meta http-equiv=\"refresh\" content=\"1 ;url=?name=tkk3&file=bookperson&op=tkk3_read&category=".$arr[user][id]."\">";
		$ProcessOutput .= "</CENTER>";
		$ProcessOutput .= "<BR><BR>";
	
	echo $ProcessOutput ;
}
else if($_GET[op] == "tkk3_edit"){
	//////////////////////////////////////////// กรณีแก้ไข Form
	if(CheckLevelUser($_SESSION['user_user'],$_GET[op])){
		//ดึงค่า
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$res[tkk3] = $db->select_query("SELECT * FROM ".TB_TKK3." WHERE id='".$_GET[id]."' ");
		$arr[tkk3] = $db->fetch($res[tkk3]);
		$db->closedb ();

		//อ่านค่าจากไฟล์ Text เพื่อแก้ไข
		$Filetkk3Topic = "data/tkk3text/".$arr[tkk3][post_date].".txt";
		$file_open = @fopen($Filetkk3Topic, "r");
		$TextContent = @fread ($file_open, @filesize($Filetkk3Topic));
		@fclose ($file_open);
		$TextContent = stripslashes($TextContent);
//	CheckUser($_SESSION['user_user']);
		?>

<FORM NAME="myform" METHOD=POST ACTION="?name=tkk3&file=addedit2&op=tkk3_edit&action=edit&id=<?=$_GET[id];?>" enctype="multipart/form-data" onSubmit="return checkregis()">
<TABLE width=850 height="80" align="center" background="images/124.jpg" border=0 cellPadding=0 cellSpacing=0>
     <TR>
          <TD align="center" vAlign=top><B>ระบบส่งหนังสือราชการภายใน</B>
		  </TD>
		  </TR>
     <TR>
          <TD vAlign=top>
<TABLE width=800 height="80" align="center" border=0 cellPadding=0 cellSpacing=0>
     <TR>
          <TD vAlign=top>
<BR>
<B> เรื่อง:</B>
<INPUT TYPE="text" NAME="TOPIC" size="100" VALUE="<?=$arr[tkk3][topic];?>" >
<BR><BR>
<B> รายละเอียด:</B><BR>
<?
include("FCKeditor/fckeditor.php") ;
$oFCKeditor = new FCKeditor('DETAIL') ;
$oFCKeditor->BasePath	= 'FCKeditor/' ;
$oFCKeditor->Width	= '100%' ;
$oFCKeditor->Height	= '300' ;
$oFCKeditor->Value		= $TextContent ;
$oFCKeditor->Create() ;
?>
<BR><BR>
<B>  กลุ่มที่ส่ง:<select NAME="NAMECOM">
                            <option value=""></option>
                              <?
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
$res[user] = $db->select_query("SELECT * FROM ".TB_user." WHERE level='11' and status='3' ORDER BY id ");
while ($arr[user] = $db->fetch($res[user])){
	   echo "<option value=\"".$arr[user][category_name]."\"";
	   echo ">".$arr[user][category_name]."</option>";
}
$db->closedb ();
?>
		  </TD>
				</TR>
        <TR>
          <TD>
<BR>	

<TABLE width=900 align="center" border=0 cellPadding=0 cellSpacing=0>
<tr>
<td>
<B>ส่งถึง :</B>&nbsp;&nbsp;<img src="images/arrow_nn.gif">
<?
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$res[category] = $db->select_query("SELECT * FROM ".TB_WORKING_CAT." WHERE status='1' or status='2'  ORDER by id ");
		while ($arr[category] = $db->fetch($res[category])){
?>
<font color=blue><B><u><input type="checkbox"  onclick="myoffice(this.checked, '<?=$arr[category][id];?>')" /><?=$arr[category][category_name];?></u></B></font>

<div id="group<?=$arr[category][id];?>" style="display:none;">
<a href="javascript:checkall('myform','v<?=$arr[category][id];?>',true)">เลือกทั้งหมด</a>  &nbsp;&nbsp;
<a href="javascript:checkall('myform','v<?=$arr[category][id];?>',false)">เอาออกทั้งหมด</a> <BR>
<TABLE WIDTH="900" align="center" bgcolor="#FFFFcd" border=0 cellspacing="0" cellpadding="0">
<tr>
<?
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
$res[user] = $db->select_query("SELECT * FROM ".TB_user." WHERE working='".$arr[category][id]."' and status='1' ORDER BY id  ");
while ($arr[user] = $db->fetch($res[user])){
?>
<td width="25%"  valign="top">
<input type="checkbox" name="CATEGORY[]"  id="v<?=$arr[category][id];?>"  value="<?=$arr[user][id];?>"><b> <?=$arr[user][category_name];?></b>
<?
$count++;

if (($count%3) == 0) { echo "<TR><TD></TD></TR>"; $count=0; 
} else{
	echo "</TD>";
} 
?>
<?
}
$db->closedb ();
?>
    </tr>
  </table>
</div>
<?
}
?>
</td></tr>
  </table>
</TD>
</TR>
</table>
<TABLE width=600 height="80" align="center" border=0 cellPadding=0 cellSpacing=0>
     <TR>
          <TD vAlign=top>
<BR>
 <?
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
$res[user] = $db->select_query("SELECT * FROM ".TB_user." WHERE username='".$_SESSION['user_user']."' ");
$arr[user] = $db->fetch($res[user]);
?>
	<INPUT TYPE="hidden" NAME="ENABLE_COMMENT" size="5" VALUE="1">
	<INPUT TYPE="hidden" NAME="POSTED" VALUE="<?=$arr[user][category_name];?>" readonly style=\"color: #FF0000">
	<INPUT TYPE="hidden" NAME="CAT" VALUE="<?=$arr[user][id];?>" readonly style=\"color: #FF0000">
 <table width="750" align="center" border="0" cellspacing="0" cellpadding="0">
	  <tr> 
<br>
      <td align="right">
<font face="MS Sans serif" ><b>ไฟล์ 1 : <input type="file" name="files1"  size="30"style="background-color:#F5F3F3">
</td>
 <td>
&nbsp;&nbsp;<? if($arr[tkk3][full_text]<>'') {?> <A HREF="data/tkk3/<?echo $arr[tkk3][full_text];?>" target="_blank"><img src="images/attach.gif" width="10">ไฟล์ 1</A><INPUT TYPE="hidden" NAME="temp_file1" value="<? echo $arr[tkk3][full_text] ?>"><? } ?>
</td>
</tr>
<tr>
 <td align="right">
<font face="MS Sans serif" ><b>ไฟล์ 2 : <input type="file" name="files2" size="30"style="background-color:#F5F3F3">
</td>
<td width="150">
&nbsp;&nbsp;<? if($arr[tkk3][full_texts]<>'') {?> <A HREF="data/tkk3/<?echo $arr[tkk3][full_texts];?>" target="_blank">&nbsp;&nbsp;<img src="images/attach.gif" width="10"> ไฟล์ 2</A><INPUT TYPE="hidden" NAME="temp_file2" value="<? echo $arr[tkk3][full_texts] ?>"><? } ?>
</td>
</tr>
<tr>
 <td align="right">
 <font face="MS Sans serif" ><b>ไฟล์ 3  : <input type="file" name="files3" size="30"style="background-color:#F5F3F3">
</td>
<td width="150">
&nbsp;&nbsp;<? if($arr[tkk3][full_textu]<>'') {?> <A HREF="data/tkk3/<?echo $arr[tkk3][full_textu];?>" target="_blank"> <img src="images/attach.gif" width="10">ไฟล์ 3</A><INPUT TYPE="hidden" NAME="temp_file3" value="<? echo $arr[tkk3][full_textu] ?>"><? } ?>
</td>
</tr>
<tr>
 <td align="right">
<font face="MS Sans serif" ><b>ไฟล์ 4 : <input type="file" name="files4" size="30"style="background-color:#F5F3F3">
</td>
<td width="150">
&nbsp;&nbsp;<? if($arr[tkk3][full_texto]<>'') {?> <A HREF="data/tkk3/<?echo $arr[tkk3][full_texto];?>" target="_blank"> <img src="images/attach.gif" width="10">ไฟล์ 4</A><INPUT TYPE="hidden" NAME="temp_file4" value="<? echo $arr[tkk3][full_texto] ?>"><? } ?>
</td>
</tr>
<tr>
 <td colspan="2" align="center">
	<INPUT TYPE="submit" value=" บันทึกแก้ไข " name="submit"> 
</td>
    </tr>
  </table>
</FORM>
<?
	}else{
		//กรณีไม่ผ่าน
		$ProcessOutput = $PermissionFalse ;
	}
	echo $ProcessOutput ;
}

?>
					</TD>
				</TR>
			</TABLE>
			<!-- user -->
		  </TD>
        </TR>
      </TBODY>
    </TABLE>

Youez - 2016 - github.com/yon3zu
LinuXploit