Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
egg.eemo.co.kr
/
public_html
/
super5
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/egg.eemo.co.kr/public_html/super5/geyul_ltms_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(); mysql_query("update contractor_company set is_ltms='1' where no='$no' ") or die(); $result=mysql_query("select * from breed_settting where company_no='2' and breed_type='CC' and jong_type='1' order by egg_jong asc, day_num asc ") or die(); while($rs=mysql_fetch_array($result)) { $is_rs=RS("select * from breed_settting where company_no='$no' and breed_type='CC' and jong_type='1' and egg_jong='{$rs[egg_jong]}' and egg_jong_type='{$rs[egg_jong_type]}' and day_num='{$rs[day_num]}' "); if(!$is_rs[no]) { $query="insert into breed_settting set company_no='$no', breed_type='{$rs[breed_type]}', jong_type='{$rs[jong_type]}', egg_jong='{$rs[egg_jong]}', egg_jong_type='{$rs[egg_jong_type]}', day_num='{$rs[day_num]}', day_dote_rate='{$rs[day_dote_rate]}', day_weight='{$rs[day_weight]}', day_water='{$rs[day_water]}', day_feed='{$rs[day_feed]}', day_temp='{$rs[day_temp]}', day_humi='{$rs[day_humi]}', day_fcr='{$rs[day_fcr]}', regdate=now() "; mysql_query($query) or die(); } } $arr_rst['rst']='1'; echo json_encode($arr_rst); ?>