? 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/private_html/libs/
File Upload :
Current File : /home/admin/domains/happytokorea.com/private_html/libs/agents.php

<table id="Table_01" width="680" height="294" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="680" height="24" background="images/box_item_01.jpg" style="padding-left:20px;text-align:left"><font color=#FFFFF><b>บริษัททัวร์ใกล้บ้าน</td>
	</tr>
	<tr>
		<td height="11">
			<img src="images/box_item_02.jpg" width="680" height="11" alt=""></td>
	</tr>
	<tr>
		<td width="680" height="237" background="box_item_03.jpg" valign="top" style="text-align:left;padding-left:20px;padding-right:20px;">
<?
function SearchFontpage(){
	$output.="<table width=\"550\" height=\"20\">
	
	<form method=\"GET\" action=\"$link\" name=\"search\"><tr><td width=\"100%\">
	<input type='hidden' name='option' value='search'>
		<input type='hidden' name='page' value='1'>
		ค้นหาตาม <select size=\"1\" name=\"key\" class=\"backend_inputbox\">";
	$keysearch=array('name'=>"ชื่อบริษัท",'email'=>"Email",'tel'=>"โทรศัพท์",'mobile'=>"เบอร์มือถือ",'address'=>"ที่อยู่");
	foreach($keysearch as $key=>$value){
		if($_GET['key']==$key){
			$output.="<option value=\"$key\" selected>$value</option>";
		}//end if $_GET['key']
		else{
$output.="<option value=\"$key\">$value</option>";
		}
	}

	if($_GET){
			foreach ($_GET as $key => $value){
				if($key != "key" && $key != "keyword" && $key !="search"&&$key!="page"&&$key!="option"){
					$output.= "<input type='hidden' name='$key' value='$value'>\n";
				}
			}
		}
	$output.="</select>";
	if($_GET['keyword']!=""){
	$output.="&nbsp;<input type='textbox' name='keyword' size=\"20\" value=".$_GET['keyword']." class=\"backend_inputbox\">";
	}else{
		$output.="&nbsp;<input type='textbox' name='keyword' size=\"25\" class=\"backend_inputbox\">";
		}
	$output.="<input type='submit' value=\" ค้นหา \" size=10>";
	$output.="</td></tr></form></table>";
return $output;
}
function list_by_zone_fontpage(){
$zone=$_GET['zone'];
$output.="

<table width=\"98%\" border=0>
	<tr><form name=\"form_zone\" action=\"\"><td width=\"100%\" align=\"left\"  height=\"20\">
แสดงตามเขต&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<select name=\"list_zone\" onchange=\"document.form_zone.submit()\" class=\"backend_inputbox\">";
$output.="<option value=\"All\" selected> --เลือกทั้งหมด--</option>";
global $cfg;
foreach($cfg['bkk_zone'] as $k=>$v){
	if($_GET['list_zone']==$k){
	$output.="<option value=\"$k\" selected>$v</option>";
	}else{
	$output.="<option value=\"$k\">$v</option>";
	}
}
if($_GET){
			foreach ($_GET as $key => $value){
				if($key != "Submit" && $key != "list_zone"){
					$output.= "<input type='hidden' name='$key' value='$value'>";
				}
			}
		}
$output.="</select> เฉพาะใน กรุงเทพๆ</td></form></tr></table>";
return $output;
}//end function company
function list_by_typeFontpage(){
$agent_type=$_GET['agent_type'];
$output.="

<table width=\"98%\" border=0>
	<tr><form name=\"form_agent_type\" action=\"\"><td width=\"100%\" align=\"left\"  height=\"20\">
แสดงตามประเภท&nbsp;&nbsp;
<select name=\"list_agent_type\" onchange=\"document.form_agent_type.submit()\" class=\"backend_inputbox\">";
$output.="<option value=\"All\" selected> --เลือกทั้งหมด--</option>";
global $cfg;
foreach($cfg['world_zone'] as $k=>$v){
	if($_GET['list_agent_type']==$v){
	$output.="<option value=\"$v\" selected>$v</option>";
	}else{
	$output.="<option value=\"$v\">$v</option>";
	}
}
if($_GET){
			foreach ($_GET as $key => $value){
				if($key != "Submit" && $key != "list_agent_type"){
					$output.= "<input type='hidden' name='$key' value='$value'>";
				}
			}
		}
$output.="</select></td></form></tr></table>";
return $output;
}//end function Type
function list_by_province_fontpage(){
$province=$_GET['province'];
$output.="

<table width=\"98%\" border=0>
	<tr><form name=\"form_province\" action=\"\"><td width=\"100%\" align=\"left\"  height=\"20\">
แสดงตามจังหวัด&nbsp;&nbsp;&nbsp;
<select name=\"list_province\" onchange=\"document.form_province.submit()\" class=\"backend_inputbox\">";
$output.="<option value=\"All\" selected> --เลือกทั้งหมด--</option>";
global $global_Province;
foreach($global_Province as $k=>$v){
	if($_GET['list_province']==$k){
	$output.="<option value=\"$k\" selected>$v</option>";
	}else{
	$output.="<option value=\"$k\">$v</option>";
	}
}
if($_GET){
			foreach ($_GET as $key => $value){
				if($key != "Submit" && $key != "list_province"){
					$output.= "<input type='hidden' name='$key' value='$value'>";
				}
			}
		}
$output.="</select></td></form></tr></table>";
return $output;
}//end function company
echo "<a href=\"index.php\">หน้าแรก</a> >> <a href=\"index.php?mod=agents\">Agents</a> ";
if($_GET['id']!=''){
	$event=$db->getDataOneRow('event',$_GET['id'],'id');
echo " >> {$event['topic']} ";
}

?>
</div>
<div id="search_agent">
<?
function ListAlphabet(){
$alphabet=Array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
$str = strtoupper($_GET['alphabet']);
$output.="<div class='alphabet'>";
$output.="<a href='$PHPSELF?mod=agents'>All</a>&nbsp;&nbsp;&nbsp;";
foreach($alphabet as $v){
if($str==$v){
$output.="<b>$v</b>";

}else{$output.="<a href=\"$PHPSELF?mod=agents&alphabet=$v\">$v</a>";}//end if str=$vs
$output.="&nbsp;&nbsp;&nbsp;";
}//end foreach
$output.="</div>";
return $output;
}
echo list_by_province_fontpage();
echo list_by_zone_fontpage();
//echo  list_by_typeFontpage();
echo SearchFontpage();
echo ListAlphabet();
?>
</div>
<?
if($_GET['id']==''){
require_once('class_agents.php');
$agents=new agents;
$agents->total_links(10);
$agents->setLimit(20);
$agents->setPage();
echo $agents->listData();
}else{
	echo "<div id='gallery_name'>{$g['name']}<br>{$g['title']}</div>";
$html.="<div class=\"gallery_box2\" >";
$html.="
<div><a href=\"javascript:void(0)\"><img src=\"files/event/{$event['photo']}\" width=\"130\" height=\"86\" border=0  onclick=\"Popup2('files/event/{$event['photo']}','shopPhoto',805,605);\"></a></div>";
$html.="<div class=\"event_topic\"  id=\"{$event['photo']}\">{$event['topic']}&nbsp;{$event['datetime']}<div><i>{$event['timeadd']}</i></div></div>";
$html.="<div class=\"event_detail\">{$event['detail']}&nbsp;</div>";
$html.="
</div>";	
echo $html;

}
?>
</td>
	</tr>
	<tr>
		<td>
			<img src="images/box_item_05.jpg" width="680" height="23" alt=""></td>
	</tr>
</table>

T1KUS90T
  root-grov@210.1.60.28:~$