Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ltms.eemo.co.kr
/
public_html
/
super
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/ltms.eemo.co.kr/public_html/super/bunyang_schedule_reject_ok.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 hatchery_plan_ok_log where no='$log_no' "); /* mysql_query("delete from hatchery_plan_ok_log where parts_no='{$rs[parts_no]}' and dong_no='{$rs[dong_no]}' ") or die(mysql_error()); mysql_query("delete from hatchery_plan_log where contract_parts_no='{$rs[parts_no]}' and dong_no='{$rs[dong_no]}' ") or die(mysql_error()); */ //mysql_query("delete from hatchery_plan_ok_log where parts_no='{$rs[parts_no]}' and jdate='{$rs[jdate]}' ") or die(mysql_error()); //mysql_query("delete from hatchery_plan_log where contract_parts_no='{$rs[parts_no]}' and jdate='{$rs[jdate]}' ") or die(mysql_error()); $result_log=mysql_query("select * from hatchery_plan_ok_log where parts_no='{$rs[parts_no]}' and (is_farm_confirm='-1' or is_ltman_confirm='-1') ") or die(); while($rs_log=mysql_fetch_array($result_log)) { mysql_query("delete from hatchery_plan_log where contract_parts_no='{$rs[parts_no]}' and jdate='{$rs_log[jdate]}' ") or die(mysql_error()); } mysql_query("delete from hatchery_plan_ok_log where parts_no='{$rs[parts_no]}' and (is_farm_confirm='-1' or is_ltman_confirm='-1') ") or die(mysql_error()); $arr_rst['rst']='1'; echo json_encode($arr_rst); ?>