Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
nongapp.eemo.co.kr
/
public_html
/
www
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/nongapp.eemo.co.kr/public_html/www/year_report.php
<? session_set_cookie_params(86400); 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_dong=array(); $result_dong=mysql_query("select * from farm_dong_info where farm_no='{$_COOKIE[ufarm_no]}' order by CAST(dong_name AS DECIMAL(10,2)) asc ") or die(); while($rs_dong=mysql_fetch_array($result_dong)) { $obj=(object) $c; $obj->no=$rs_dong[no]; $obj->dong_name=$rs_dong[dong_name]; $arr_dong[]=$obj; } if(!$sel_year) { $sel_year=date('Y'); } $prev_year=$sel_year-1; $next_year=$sel_year+1; if($next_year > date('Y')) { $next_year=date('Y'); } ?> <!doctype html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, viewport-fit=cover" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="theme-color" content="#000000"> <title><?=$_TITLE?></title> <meta name="description" content="Mobilekit HTML Mobile UI Kit"> <meta name="keywords" content="bootstrap 4, mobile template, cordova, phonegap, mobile, html" /> <link rel="icon" type="image/png" href="assets/img/favicon.png" sizes="32x32"> <link rel="apple-touch-icon" sizes="180x180" href="assets/img/icon/192x192.png"> <link rel="stylesheet" href="assets/css/style.css"> <link rel="manifest" href="__manifest.json"> <link rel="stylesheet" type="text/css" href="assets/js/c3.css"> <script src="https://d3js.org/d3.v5.min.js" charset="utf-8"></script> <script src="assets/js/c3.js"></script> </head> <body> <!-- loader --> <div id="loader"> <div class="spinner-border text-primary" role="status"></div> </div> <!-- * loader --> <!-- App Header --> <div class="appHeader bg-primary text-light"> <div class="left"> <a href="main.php" class="headerButton goBack"> <ion-icon name="chevron-back-outline"></ion-icon> </a> </div> <div class="pageTitle">종합통계</div> <div class="right"></div> </div> <!-- * App Header --> <!-- App Capsule --> <div id="appCapsule"> <div class="wide-block pt-2 pb-2"> <nav> <ul class="pagination"> <li class="page-item"><a class="page-link text-white" href="year_report.php?sel_year=<?=$prev_year?>"><</a></li> <li class="page-item"><a class="page-link" href="#"><?=$sel_year?>년</a></li> <li class="page-item"><a class="page-link" href="year_report.php?sel_year=<?=$next_year?>">></a></li> </ul> </nav> </div> <div class="section full mt-2" id='dv_total'> <div class="section-title">종합 사육성적</div> <div class="content-header mb-05">종합적인 사육요약정리 (출하날짜 있는것중)</div> </div> <div class="blog-post"> <? $arr_avg_ilyung=array(); $arr_avg_weight=array(); $arr_avg_chul_susu=array(); $arr_avg_ipchu_susu=array(); $arr_avg_rate=array(); $arr_avg_feed_rate=array(); $arr_feed_ton=array(); $arr_avg_chulha_weight=array(); $arr_avg_feed_reqrate=array(); $nu_dote=0; $nu_pesa=0; $nu_ipchu=0; $nu_chulha=0; $result_p=mysql_query("select * from farm_parts_dong where farm_no='{$_COOKIE[ufarm_no]}' and year(ipchu_date)='$sel_year' and ipchu_date is not null and chulha_date is not null and ipchu_date != '0000-00-00' and chulha_date != '0000-00-00' ") or die(); while($rs_p=mysql_fetch_array($result_p)) { $c_sdate = new DateTime($rs_p[ipchu_date]); $c_edate = new DateTime($rs_p[chulha_date]); $c_diff = date_diff($c_sdate, $c_edate); $arr_avg_ilyung[]=($c_diff->days+1); $rs_max=RS("select max(weight) as wt from farm_parts_dong_dote where dong_no='{$rs_p[dong_no]}' "); if($rs_max[wt] > 0) { $arr_avg_weight[]=$rs_max[wt]; } if($rs_p[chulha_susu] > 0) { $arr_avg_chul_susu[]=$rs_p[chulha_susu]; } if($rs_p[ipchu_susu] > 0) { $arr_avg_ipchu_susu[]=$rs_p[ipchu_susu]; } $rs_sum=RS("select sum(dote) as dt, sum(pesa) as ps from farm_parts_dong_dote where dong_no='{$rs_p[dong_no]}' "); $nu_dote+=$rs_sum[dt]; $nu_pesa+=$rs_sum[ps]; $nu_ipchu+=$rs_p[ipchu_susu]; $nu_chulha+=$rs_p[chulha_susu]; if($rs_p[ipchu_susu] > 0) { $vv_rate= ( ($rs_p[ipchu_susu]-($rs_sum[dt]+$rs_sum[ps])) / $rs_p[ipchu_susu] ) * 100; $arr_avg_rate[]=$vv_rate; } $rs_sum_feed=RS("select sum(feed_ton) as cnt from farm_parts_feed where parts_no='{$rs_p[parts_no]}' "); $arr_feed_ton[$rs_p[parts_no]]=$rs_sum_feed[cnt]; //sprintf("%.3f",(($rs_sum_feed[cnt]*1000)/$rs_sum_ipchu[cnt3])) $rs_sum_parts=RS("select sum(ipchu_susu) as cnt, sum(chulha_susu) as cnt2 , sum(chulha_weight_kg) as cnt3 from farm_parts_dong where parts_no='{$rs_p[parts_no]}' "); if($rs_sum_parts[cnt2] > 0) { $arr_avg_chulha_weight[$rs_p[parts_no]]=($rs_sum_parts[cnt3]/$rs_sum_parts[cnt2]); } if($rs_sum_parts[cnt3] > 0) { $arr_avg_feed_reqrate[$rs_p[parts_no]]=(($rs_sum_feed[cnt]*1000)/$rs_sum_parts[cnt3]); } } if(count($arr_avg_ipchu_susu) > 0) { $avg_ipchu_susu=sprintf("%.1f",array_sum($arr_avg_ipchu_susu)/count($arr_avg_ipchu_susu)); } else {$avg_ipchu_susu=0;} if(count($arr_avg_ilyung) > 0) { $avg_ilyung=sprintf("%.1f",array_sum($arr_avg_ilyung)/count($arr_avg_ilyung)); } else {$avg_ilyung=0;} if(count($arr_avg_chul_susu) > 0) { $avg_chul_susu=sprintf("%d",array_sum($arr_avg_chul_susu)/count($arr_avg_chul_susu)); } else {$avg_chul_susu=0;} if(count($arr_avg_weight) > 0) { $avg_weight=sprintf("%d",array_sum($arr_avg_weight)/count($arr_avg_weight)); } else {$avg_weight=0;} if(count($arr_avg_rate) > 0) { $avg_rate=sprintf("%.1f",array_sum($arr_avg_rate)/count($arr_avg_rate)); } else {$avg_rate=0;} if(count($arr_feed_ton) > 0) { $nu_feed_ton=array_sum($arr_feed_ton); } else {$nu_feed_ton=0;} if(count($arr_feed_ton) > 0) { $avg_feed_ton=sprintf("%.1f",array_sum($arr_feed_ton)/count($arr_feed_ton)); } else {$avg_feed_ton=0;} if(count($arr_avg_chulha_weight) > 0) { $avg_chulha_weight=sprintf("%.3f",array_sum($arr_avg_chulha_weight)/count($arr_avg_chulha_weight)); } else {$avg_chulha_weight=0;} if(count($arr_avg_feed_reqrate) > 0) { $avg_feed_reqrate=sprintf("%.3f",array_sum($arr_avg_feed_reqrate)/count($arr_avg_feed_reqrate)); } else {$avg_feed_reqrate=0;} ?> <div class="post-header" style='padding-bottom:0;margin-top:0;margin-bottom:0;border-bottom:0;'> <div> <h4 style='font-weight:700'>총 입추수수</h4> </div> <?=number_format($nu_ipchu)?>수 </div> <div class="post-header" style='padding-bottom:0;margin-top:0;margin-bottom:0;border-bottom:0;'> <div> <h4 style='font-weight:700'>총 도/폐사</h4> </div> 도태 : <?=number_format($nu_dote)?>수 , 폐사 : <?=number_format($nu_pesa)?>수 , 합계 : <?=number_format($nu_dote+$nu_pesa)?>수 </div> <div class="post-header" style='padding-bottom:0;margin-top:0;margin-bottom:0;border-bottom:0;'> <div> <h4 style='font-weight:700'>평균 폐사율</h4> </div> <? if($nu_ipchu > 0) { $pesa_rate=sprintf("%.2f",(($nu_dote+$nu_pesa)/$nu_ipchu)*100); echo $pesa_rate."%"; } ?> </div> <!-- <div class="post-header" style='padding-bottom:0;margin-top:0;margin-bottom:0;border-bottom:0;'> <div> <h4 style='font-weight:700'>동당 평균 입추수수</h4> </div> <?=number_format($avg_ipchu_susu)?> 수 </div>--> <div class="post-header" style='padding-bottom:0;margin-top:0;margin-bottom:0;border-bottom:0;'> <div> <h4 style='font-weight:700'>총 출하수수</h4> </div> <?=number_format($nu_chulha)?> 수 </div> <!-- <div class="post-header" style='padding-bottom:0;margin-top:0;margin-bottom:0;border-bottom:0;'> <div> <h4 style='font-weight:700'>동당 평균 출하수수</h4> </div> <?=number_format($avg_chul_susu)?> 수 </div>--> <div class="post-header" style='padding-bottom:0;margin-top:0;margin-bottom:0;border-bottom:0;'> <div> <h4 style='font-weight:700'>출하 평균체중</h4> </div> <?=$avg_chulha_weight?> kg </div> <div class="post-header" style='padding-bottom:0;margin-top:0;margin-bottom:0;border-bottom:0;'> <div> <h4 style='font-weight:700'>평균 육성율</h4> </div> <?=$avg_rate?>% </div> <div class="post-header" style='padding-bottom:0;margin-top:0;margin-bottom:0;border-bottom:0;'> <div> <h4 style='font-weight:700'>평균 사육일령</h4> </div> <?=$avg_ilyung?> 일 </div> <div class="post-header" style='padding-bottom:0;margin-top:0;margin-bottom:0;border-bottom:0;'> <div> <h4 style='font-weight:700'>총 사료입고량</h4> </div> <?=$nu_feed_ton?>톤 </div> <!-- <div class="post-header" style='padding-bottom:0;margin-top:0;margin-bottom:0;border-bottom:0;'> <div> <h4 style='font-weight:700'>평균 사료입고량</h4> </div> <?=$avg_feed_ton?>톤 </div> --> <div class="post-header" style='padding-bottom:0;margin-top:0;margin-bottom:0;border-bottom:0;'> <div> <h4 style='font-weight:700'>평균 사료요구율</h4> </div> <?=$avg_feed_reqrate?> </div> </div> <div class="wide-block p-0" id='dv_dong'> <div class="section full mt-2"> <div class="section-title">동별 사육현황</div> <div class="content-header mb-05">동별 상세내역</div> </div> <div class="blog-post"> <div class="table-responsive"> <table class="table"> <tbody> <? $arr_chart_dong=array(); $arr_chart_ipchu=array(); $arr_chart_chulha=array(); $arr_chart_avgweight=array(); $tt_nu_ipchu=0; $result_dong=mysql_query("select * from farm_dong_info where farm_no='{$_COOKIE[ufarm_no]}' order by CAST(dong_name AS DECIMAL(10,2)) asc") or die(); while($rs_dong=mysql_fetch_array($result_dong)) { $rs_vdong=RS("select sum(ipchu_susu) as isusu, sum(chulha_susu) as csusu, sum(chulha_weight_kg) as kg , parts_no from farm_parts_dong where dong_no='{$rs_dong[no]}' and year(ipchu_date)='$sel_year' "); $rs_dote_sum=RS("select sum(dote) as dt, sum(pesa) as ps, avg(feed) as fd from farm_parts_dong_dote where parts_no='{$rs_vdong[parts_no]}' and dong_no='{$rs_dong[no]}' "); $tt_now_susu += ($rs_vdong[isusu]-($rs_dote_sum[dt]+$rs_dote_sum[ps])); $tt_nu_ipchu+=$rs_vdong[isusu]; if($rs_vdong[isusu]) { $vv_rate=sprintf("%.2f", ( ($rs_vdong[isusu]-($rs_dote_sum[dt]+$rs_dote_sum[ps])) / $rs_vdong[isusu] ) * 100 ); } else { $vv_rate=0; } $rs_avg_temp=RS("select avg(temper) as tp, avg(humi) as hm from farm_parts_dong_dote where parts_no='{$rs_vdong[parts_no]}' and dong_no='{$rs_dong[no]}' and temper > 0 "); $rs_avg_feed=RS("select avg(feed) as fd from farm_parts_dong_dote where parts_no='{$rs_vdong[parts_no]}' and dong_no='{$rs_dong[no]}' and feed > 0 "); $rs_avg_weight=RS("select avg(feed) as fd from farm_parts_dong_dote where parts_no='{$rs_vdong[parts_no]}' and dong_no='{$rs_dong[no]}' and feed > 0 "); if($rs_vdong[csusu] > 0) { $avg_chulha_weight=sprintf("%.3f",$rs_vdong[kg]/$rs_vdong[csusu]); $arr_chart_avgweight[]=sprintf("%.1f",$rs_vdong[kg]/$rs_vdong[csusu]); } else { $avg_chulha_weight=0; $arr_chart_avgweight[]=0; } $arr_chart_dong[]="'".$rs_dong[dong_name]."'"; $arr_chart_ipchu[]=$rs_vdong[isusu] != 0 ? $rs_vdong[isusu] : 0; $arr_chart_chulha[]=$rs_vdong[csusu] != 0 ? $rs_vdong[csusu] : 0; ?> <tr > <td scope="row" style='padding-bottom:0'><div id="countDown" style='font-size:15px;margin-left:0;margin-right:-20px'><div><?=$rs_dong[dong_name]?></div></div></td> <td style='padding-bottom:0'><small>누적도태</small><br><?=number_format($rs_dote_sum[dt])?></td> <td style='padding-bottom:0'><small>누적폐사</small><br><?=number_format($rs_dote_sum[ps])?></td> <td style='padding-bottom:0'><small>도폐합</small><br><?=number_format($rs_dote_sum[dt]+$rs_dote_sum[ps])?></td> </tr> <tr> <td style='border-top:0 !important;'><small>총입추수수</small><br><?=number_format($rs_vdong[isusu])?></td> <td style='border-top:0 !important;'><small>평균육성율</small><br><?=$vv_rate?>%</td> <td style='border-top:0 !important;'><small>평균온도</small><br><?=sprintf("%.1f",$rs_avg_temp[tp])?>℃</td> <td style='border-top:0 !important;'><small>평균습도</small><br><?=sprintf("%.1f",$rs_avg_temp[hm])?>%</td> </tr> <tr> <td style='border-top:0 !important;'><small>총출하수수</small><br><?=number_format($rs_vdong[csusu])?></td> <td style='border-top:0 !important;'><small>출하평균체중</small><br><?=$avg_chulha_weight?>kg</td> </tr> <? } $str_chart_dong=implode(",",$arr_chart_dong); $str_chart_ipchu=implode(",",$arr_chart_ipchu); $str_chart_chulha=implode(",",$arr_chart_chulha); $str_chart_avgweight=implode(",",$arr_chart_avgweight); ?> </tbody> </table> </div> </div> </div> <div class="wide-block p-0" id='dv_dong' style='background:transparent'> <div class="section full mt-2"> <div class="section-title">파스별 사육현황</div> <div class="content-header mb-05">파스별 상세내역</div> </div> <div class="blog-post"> <div class="table-responsive"> <table class="table"> <tbody> <? $arr_chart_parts_seq=array(); $arr_chart_parts_ipchu=array(); $arr_chart_parts_chulha=array(); $arr_chart_parts_avgweight=array(); $result_parts=mysql_query("select sum(ipchu_susu) as isusu, sum(chulha_susu) as csusu, parts_no, ipchu_date, chulha_date, sum(chulha_weight_kg) as kg from farm_parts_dong where farm_no='{$_COOKIE[ufarm_no]}' and year(ipchu_date)='$sel_year' group by parts_no order by ipchu_date asc ") or die(); while($rs_parts=mysql_fetch_array($result_parts)) { $rs_vparts=RS("select * from farm_parts where no='{$rs_parts[parts_no]}' "); $rs_dote_sum=RS("select sum(dote) as dt, sum(pesa) as ps, avg(feed) as fd from farm_parts_dong_dote where parts_no='{$rs_parts[parts_no]}' "); if($rs_parts[isusu] > 0) { $pesa_rate=sprintf("%.2f",(($rs_dote_sum[dt]+$rs_dote_sum[ps])/$rs_parts[isusu])*100); } else { $pesa_rate=0; } if($rs_parts[isusu]) { $vv_rate=sprintf("%.2f", ( ($rs_parts[isusu]-($rs_dote_sum[dt]+$rs_dote_sum[ps])) / $rs_parts[isusu] ) * 100 ); } else { $vv_rate=0; } if($rs_parts[ipchu_date]) { $c_sdate = new DateTime($rs_parts[ipchu_date]); if($rs_parts[chulha_date]) { $c_edate = new DateTime($rs_parts[chulha_date]); } else { $c_edate = new DateTime(date('Y-m-d')); } $c_diff = date_diff($c_sdate, $c_edate); $c_now_il=($c_diff->days+1); } else { $c_now_il=0; } if($rs_parts[csusu] > 0) { $avg_weight=sprintf("%.3f",$rs_parts[kg]/$rs_parts[csusu]); } else { $avg_weight=0; } $rs_avg_temp=RS("select avg(temper) as tp, avg(humi) as hm from farm_parts_dong_dote where parts_no='{$rs_parts[parts_no]}' and temper > 0 "); $rs_sum_feed=RS("select sum(feed_ton) as cnt, sum(jide_su) as cnt2 from farm_parts_feed where parts_no='{$rs_parts[parts_no]}' "); $arr_chart_parts_seq[]="'".$rs_vparts[rounds]."'"; $arr_chart_parts_ipchu[]=$rs_parts[isusu]; $arr_chart_parts_chulha[]=$rs_parts[csusu]; $arr_chart_parts_avgweight[]=sprintf("%.3f",$avg_weight); ?> <tr> <td scope="row" style='padding-bottom:0;border-bottom:0;font-weight:600 !important' colspan='4'><?=$rs_vparts[rounds]?></td> </tr> <tr > <td style='border-top:0 !important;padding-bottom:0'><small>도태</small><br><?=number_format($rs_dote_sum[dt])?></td> <td style='border-top:0 !important;padding-bottom:0'><small>폐사</small><br><?=number_format($rs_dote_sum[ps])?></td> <td style='border-top:0 !important;padding-bottom:0'><small>도폐합</small><br><?=number_format($rs_dote_sum[dt]+$rs_dote_sum[ps])?></td> <td style='border-top:0 !important;padding-bottom:0'><small>도폐사율</small><br><?=$pesa_rate?></td> </tr> <tr> <td style='border-top:0 !important;'><small>입추수수</small><br><?=number_format($rs_parts[isusu])?></td> <td style='border-top:0 !important;'><small>육성율</small><br><?=$vv_rate?>%</td> <td style='border-top:0 !important;'><small>평균온도</small><br><?=sprintf("%.1f",$rs_avg_temp[tp])?>℃</td> <td style='border-top:0 !important;'><small>평균습도</small><br><?=sprintf("%.1f",$rs_avg_temp[hm])?>%</td> </tr> <tr> <td style='border-top:0 !important;'><small>출하수수</small><br><?=number_format($rs_parts[csusu])?></td> <td style='border-top:0 !important;'><small>출하총중량</small><br><?=number_format($rs_parts[kg])?></td> <td style='border-top:0 !important;'><small>사육일령</small><br><?=$c_now_il?>일령</td> <td style='border-top:0 !important;'><small>출하평체</small><br><?=$avg_weight?>kg</td> </tr> <tr> <td style='border-top:0 !important;'><small>출사료입고량</small><br><?=$rs_sum_feed[cnt]?>톤 <br><?=$rs_sum_feed[cnt2]?>포대</td> <td style='border-top:0 !important;'><small>사료요구율</small><br><?if($rs_parts[kg] > 0) {echo sprintf("%.3f",(($rs_sum_feed[cnt]*1000)/$rs_parts[kg]));}?></td> <td style='border-top:0 !important;'><small>입추일</small><br><?=date('m.d',strtotime($rs_parts[ipchu_date]))?></td> <td style='border-top:0 !important;'><small>출하일</small><br><?=date('m.d',strtotime($rs_parts[chulha_date]))?></td> </tr> <? } $str_chart_parts_seq=implode(",",$arr_chart_parts_seq); $str_chart_parts_ipchu=implode(",",$arr_chart_parts_ipchu); $str_chart_parts_chulha=implode(",",$arr_chart_parts_chulha); $str_chart_parts_avgweight=implode(",",$arr_chart_parts_avgweight); ?> </tbody> </table> </div> </div> </div> <div id="chart" style='margin-top:0px;background:#fff'></div> <div id="chart2" style='margin-top:10px'></div> <div id="chart3" style='margin-top:10px;background:#fff'></div> <div id="chart5" style='margin-top:10px'></div> <!-- DialogIconedDanger --> <div class="modal fade dialogbox" id="DialogIconedDanger" data-backdrop="static" tabindex="-1" role="dialog" > <div class="modal-dialog" role="document" > <div class="modal-content"> <div class="modal-icon text-danger"> <ion-icon name="close-circle"></ion-icon> </div> <div class="modal-header"> <h5 class="modal-title">Error</h5> </div> <div class="modal-body" id='DialogIconedDanger_body'> This is a dialog message </div> <div class="modal-footer"> <div class="btn-inline"> <a href="#" class="btn" data-dismiss="modal">확인</a> </div> </div> </div> </div> </div> <!-- * DialogIconedDanger --> <div class="modal fade dialogbox" id="DialogIconedButtonInline" data-backdrop="static" tabindex="-1" role="dialog" > <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id='DialogIconedButtonInline_title'>Dialog title</h5> </div> <div class="modal-body" id='DialogIconedButtonInline_body'> This is a dialog message </div> <div class="modal-footer"> <div class="btn-inline"> <a href="javascript:fn_del_ok()" class="btn btn-text-danger" > 예 </a> <a href="#" class="btn btn-text-primary" data-dismiss="modal"> 아니오 </a> </div> </div> </div> </div> </div> <!-- * Dialog Iconed Inline --> <div class="modal fade dialogbox" id="DialogIconedButtonInline_regok" data-backdrop="static" tabindex="-1" role="dialog" > <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id='DialogIconedButtonInline_title_regok'>파스등록</h5> </div> <div class="modal-body" id='DialogIconedButtonInline_body_regok'> 정말로 등록하시겠습니까? </div> <div class="modal-footer"> <div class="btn-inline"> <a href="javascript:fn_reg_ok()" class="btn btn-text-danger" > 예 </a> <a href="#" class="btn btn-text-primary" data-dismiss="modal"> 아니오 </a> </div> </div> </div> </div> </div> <div class="modal fade dialogbox" id="DialogIconedButtonInline_modyok" data-backdrop="static" tabindex="-1" role="dialog" > <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id='DialogIconedButtonInline_title_modyok'>알림</h5> </div> <div class="modal-body" id='DialogIconedButtonInline_body_modyok'> 이렇게 입력 하시겠습니까? </div> <div class="modal-footer"> <div class="btn-inline"> <a href="javascript:fn_mody_ok()" class="btn btn-text-danger" > 예 </a> <a href="#" class="btn btn-text-primary" data-dismiss="modal"> 아니오 </a> </div> </div> </div> </div> </div> <!-- toast center iconed --> <div id="toast-11" class="toast-box toast-center"> <div class="in"> <ion-icon name="alert-circle" class="text-danger"></ion-icon> <div class="text"> 등록된 축사가 <br>없습니다.<br>동설정을 먼저 하세요. </div> </div> <div class="btn-list"> <button type="button" class="btn btn-sm btn-text-light close-button">CLOSE</button> <a href="dong_set.php" class="btn btn-text-primary btn-block" data-dismiss="modal"> <ion-icon name="share-outline"></ion-icon> 바로가기 </a> </div> </div> <!-- toast center iconed --> </div> <!-- * App Capsule --> <!-- App Bottom Menu --> <?include_once("inc_sidemenu.php");?> <?include_once("inc_bottom_menu.php");?> <!-- * App Bottom Menu --> <!-- ///////////// Js Files //////////////////// --> <!-- Jquery --> <script src="assets/js/lib/jquery-3.4.1.min.js"></script> <!-- Bootstrap--> <script src="assets/js/lib/popper.min.js"></script> <script src="assets/js/lib/bootstrap.min.js"></script> <!-- Ionicons --> <script src="https://unpkg.com/ionicons@5.0.0/dist/ionicons.js"></script> <!-- Owl Carousel --> <script src="assets/js/plugins/owl-carousel/owl.carousel.min.js"></script> <!-- Base Js File --> <script src="assets/js/base.js"></script> </body> </html> <script> <? if(!mysql_num_rows($result_dong)) { ?>toastbox('toast-11');<? } ?> var vv_no; var vv_date; function fn_mody(no,date) { vv_no=no; vv_date=date; $("#DialogIconedButtonInline_modyok").modal("show"); return; } function fn_mody_ok() { var params = jQuery("#frm_reg_"+vv_no+"_"+vv_date).serialize(); params+="&no="+vv_no+"&jdate="+vv_date; //alert(params);return; jQuery.ajax({ url: 'daily_dote_set_do.php', type: 'POST', data:params, contentType: 'application/x-www-form-urlencoded; charset=UTF-8', dataType: 'html', success: function (result) { if (result){ var json = eval("(" + result + ")"); if(json.rst=='1') { window.location.reload(); } else if(json.rst=='double') { } } } }); } var gl_par; function fn_del(no) { $("#DialogIconedButtonInline_body").html("정말로 삭제하시겠습니까?"); $("#DialogIconedButtonInline_title").html("Alert"); $("#DialogIconedButtonInline").modal("show"); gl_par='?no='+no; } function fn_del_ok() { $.post( "parts_set_del_do.php"+gl_par, function( res ) { //alert(res); var json=eval("("+res+")"); if(json.rst=='1') { window.location.reload(true); } else { } }); } </script> <script> c3.generate({ bindto: '#chart', padding: { right: 20, }, title: { text: '동별 입추수수/출하수수' }, point: { show: true }, data: { x: '동명', columns: [ [ '동명', <?=$str_chart_dong?> ], [ '입추', <?=$str_chart_ipchu?> ], [ '출하', <?=$str_chart_chulha?> ] ], type: 'bar' }, axis: { x: { type: 'category', label: '동명' }, y: { label: '수수' }, rotated : false }, /* subchart: { show: true } */ }); c3.generate({ bindto: '#chart2', padding: { right: 20, }, title: { text: '동별 입추수수/출하수수' }, point: { show: true }, data: { x: '동명', columns: [ [ '동명', <?=$str_chart_dong?> ], [ '출하평체', <?=$str_chart_avgweight?> ], ], type: 'bar' }, axis: { x: { type: 'category', label: '동명' }, y: { label: 'kg' }, rotated : false }, /* subchart: { show: true } */ }); c3.generate({ bindto: '#chart3', padding: { right: 20, }, title: { text: '파스별 입추수수/출하수수' }, point: { show: true }, data: { x: '회차명', columns: [ [ '회차명', <?=$str_chart_parts_seq?> ], [ '입추', <?=$str_chart_parts_ipchu?> ], [ '출하', <?=$str_chart_parts_chulha?> ] ], type: 'bar' }, axis: { x: { type: 'category', label: '회차명' }, y: { label: '수수' }, rotated : false }, /* subchart: { show: true } */ }); c3.generate({ bindto: '#chart5', padding: { right: 20, }, title: { text: '파스별 출하평균체중' }, point: { show: true }, data: { x: '회차명', columns: [ [ '회차명', <?=$str_chart_parts_seq?> ], [ '입추', <?=$str_chart_parts_avgweight?> ], ], type: 'bar' }, axis: { x: { type: 'category', label: '회차명' }, y: { label: 'kg' }, rotated : false }, /* subchart: { show: true } */ }); </script>