Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
nonga.eemo.co.kr
/
public_html
/
www
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/nonga.eemo.co.kr/public_html/www/breeder_claim_list_append_do.php
<? session_cache_limiter('no-cache, must-revalidate'); session_start(); header("Pragma: no-cache"); header("Cache-Control: no-cache,must-revalidate"); header("Content-Type: text/html; charset=utf-8"); include_once("dbconn.php"); include_once("lib.php"); foreach($_GET as $key => $value) { ${$key}=mysql_real_escape_string(trim($value)); } foreach($_POST as $key => $value) { ${$key}=mysql_real_escape_string(trim($value)); } $arr_rst=array(); $arr_rst['data']=array(); if(!is_numeric($last_id)) { $query="select * from farm_claim_input_log where 1 and farm_no='$farm_no' "; } else { $query="select * from farm_claim_input_log where no < '$last_id' and farm_no='$farm_no' "; } $query.=" order by no desc limit 0, 5 "; $result=mysql_query($query) or die(); while($rs=mysql_fetch_array($result)) { $rs_dong=RS("select * from farm_dong_info where no='{$rs[dong_no]}' "); $arr_gubun=array(); if($rs[chk_pesa]==1) { $arr_gubun[]="폐사발생"; } if($rs[chk_jilb]==1) { $arr_gubun[]="난계대질병"; } if($rs[chk_yakchu]==1) { $arr_gubun[]="약추발생"; } if($rs[chk_unsong]==1) { $arr_gubun[]="운송시 문제"; } if($rs[chk_weight]==1) { $arr_gubun[]="중량미달"; } if($rs[chk_else]==1) { $arr_gubun[]="기타"; } $str_gubun=implode("<br>",$arr_gubun); $obj=(object) $c; $obj->jdate=$rs[jdate]; $obj->dong_name=urlencode($rs_dong[dong_name]); $obj->gubun=urlencode($str_gubun); $obj->rst=urlencode($rs[answer_cont]!=''?"요청확인":''); $obj->no=$rs[no]; array_push($arr_rst['data'],$obj); } echo urldecode(json_encode($arr_rst)); ?>