Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ltman.eemo.co.kr
/
public_html
/
www
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/ltman.eemo.co.kr/public_html/www/ltman_feed_check_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(); $vv2=str_replace("-","",$farm_code); $is_rs=RS("select * from farm_feed_order_log where parts_no='$parts_no' and deli_date='$deli_date' order by no desc limit 0,1 "); /* if($is_rs[no]) { $arr_rst['rst']='is'; $arr_rst['deli_date']=$is_rs[deli_date]; $arr_rst['order_ton']=$is_rs[order_ton]; echo json_encode($arr_rst); exit; } else { $arr_rst['rst']='1'; echo json_encode($arr_rst); } */ $rs_prd=RS("select * from feed_company_factory_product where no='$feed_gubun' "); $rs_fac=RS("select * from feed_company_factory where no='{$rs_prd[factory_no]}' "); $rs_fcom=RS("select * from feed_company where no='{$rs_fac[feed_company_no]}' "); $vv_t=strtotime(date('Y-m-d')." ".sprintf("%02d",$rs_fac[magam_time]).":00:00"); $vv_neil=date("Y-m-d", strtotime("+1 day")); if($vv_t < time() && $deli_date == $vv_neil) { $arr_rst['rst']='magam'; $arr_rst['tel']=$rs_fac[tel]; $arr_rst['tel2']=$rs_fac[dam_tel]; $arr_rst['magam_time']=$rs_fac[magam_time]; echo json_encode($arr_rst); exit; } $arr_rst['rst']='1'; echo json_encode($arr_rst); ?>