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_chulha_plan_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) { ${$key}=mysql_real_escape_string(trim($value)); } $arr_rst=array(); $rs=RS("select * from farm_chulha_plan where parts_no='$parts_no' and jdate='$jdate' "); mysql_query("update farm_chulha_plan set is_confirm='-1', is_confirm_date=now(), is_reject_sau='$sau' where parts_no='$parts_no' and jdate='$jdate' ") or die(); $arr_log_nos=array(); $result_log=mysql_query("select * from farm_chulha_plan where parts_no='$parts_no' and jdate='$jdate' ") or die(); while($rs_log=mysql_fetch_array($result_log)) { $arr_log_nos[]=$rs_log[no]; } asort($arr_log_nos); $str_log_nos=implode(",",$arr_log_nos); mysql_query("update farm_msg_alarm set is_confirm='-1', is_chk='1', chk_date=now() where str_chulha_plan_nos='$str_log_nos' and is_confirm='0' and is_confirm_msg='1' ") or die(); $arr_rst['rst']='1'; echo urldecode(json_encode($arr_rst)); ?>