Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
cts.eemo.co.kr
/
public_html
/
src
/
web
/
view
/
farmData
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/cts.eemo.co.kr/public_html/src/web/view/farmData/dfarm_view.php
<?php use CTS\CTS; $pageTitle="dfarm"; $arrFileType = DOC::arrayFileType(); $file_type = empty($_REQUEST['file_type']) ? "" : $_REQUEST['file_type']; $idx = empty($_REQUEST['idx']) ? "" : $_REQUEST['idx']; // index $dfarmInfo = DOC::getDfarmInfo($idx); // dfarmInfomation $dfarm_type = $dfarmInfo[0]['dfarm_type']; $dfarm_name = $dfarmInfo[0]['dfarm_name']; ?> <div class="ibox-content"> <table class="table table-borderless"> <tr> <td class="float-right"> <div class="col-auto"> <!-- <a href="javascript:excel_update(<?=$idx; ?>)" class="btn btn-warning btn-md"><i class="ion-trash-b"></i><?php echo (" 수 정")?></a> --> <a href="javascript:deleteContent(<?=$idx?>)" class="btn btn-danger btn-md"><i class="ion-trash-b"></i><?php echo (" 삭 제")?></a> <a href="javascript:goList()" class="btn btn-primary btn-md"><i class="ion-navicon-round"></i><?php echo (" 목 록")?></a> </div> </td> </tr> </table> <nav class="nav nav-pills nav-stacked"> <a class="nav-link active">농장정보</a> </nav> <table class="table"> <thead> <tr class="text-center"> <th class="bg-light">계사명</th> <th class="bg-light">길이</th> <th class="bg-light">실길이</th> <th class="bg-light">폭</th> <th class="bg-light">실폭</th> <th class="bg-light">넓이</th> <th class="bg-warning">사육밀도<br/>(5.5수/m2)</th> <th class="bg-light">급이라인</th> <th class="bg-light">급이기수</th> <th class="bg-warning">사육밀도<br/>(14수/개)</th> <th class="bg-light">급수라인</th> <th class="bg-light">급수기수</th> <th class="bg-warning">사육밀도<br/>(10수/개)</th> <th class="bg-light">50인치</th> <th class="bg-light">36인치</th> <th class="bg-light">28인치</th> <th class="bg-light">24인치</th> <th class="bg-light">비고</th> </tr> </thead> <tbody> <?php $sumA = $sumB = $sumC = $sumD = $sumE = $sumF = 0; foreach ($dfarmInfo as $key => $value) { ?> <tr class="text-center"> <td scope="row"><?=$value['dfarm_hname'];?></td> <td><?=$value['dfarm_length'];?></td> <td><?=$value['dfarm_rlength'];?></td> <td><?=$value['dfarm_width'];?></td> <td><?=$value['dfarm_rwidth'];?></td> <td><?=number_format($value['dfarm_area']);?></td> <td class="bg-warning"><?=number_format($value['dfarm_55den']);?></td> <td><?=$value['dfarm_fline'];?></td> <td><?=number_format($value['dfarm_fcnt']);?></td> <td class="bg-warning"><?=number_format($value['dfarm_14den']);?></td> <td><?=$value['dfarm_wline'];?></td> <td><?=number_format($value['dfarm_wcnt']);?></td> <td class="bg-warning"><?=number_format($value['dfarm_10den']);?></td> <td><?=$value['dfarm_50inch'];?></td> <td><?=$value['dfarm_36inch'];?></td> <td><?=$value['dfarm_28inch'];?></td> <td><?=$value['dfarm_24inch'];?></td> <td><?=$value['dfarm_note'];?></td> </tr> <?php $sumA += $value['dfarm_area']; $sumB += $value['dfarm_55den']; $sumC += $value['dfarm_fcnt']; $sumD += $value['dfarm_14den']; $sumE += $value['dfarm_wcnt']; $sumF += $value['dfarm_10den']; } ?> </tbody> <tfoot> <tr class="text-center"> <th class="bg-light">합계</th> <th class="bg-light"></th> <th class="bg-light"></th> <th class="bg-light"></th> <th class="bg-light"></th> <th class="bg-light"><?=number_format($sumA)?></th> <th class="bg-warning"><?=number_format($sumB)?></th> <th class="bg-light"></th> <th class="bg-light"><?=number_format($sumC)?></th> <th class="bg-warning"><?=number_format($sumD)?></th> <th class="bg-light"></th> <th class="bg-light"><?=number_format($sumE)?></th> <th class="bg-warning"><?=number_format($sumF)?></th> <th class="bg-light"></th> <th class="bg-light"></th> <th class="bg-light"></th> <th class="bg-light"></th> <th class="bg-light"></th> </tr> </tfoot> </table> </div> <script> // delete content function deleteContent(file_idx) { var delConfirm=confirm('파일 삭제시 복구되지 않습니다.'); if (delConfirm) { document.location.href = "farmDataProcess.php?process_type=d_dfarm&file_idx="+file_idx+"&file_type=<?=$file_type?>&pageTitle=<?=$pageTitle?>&dfarm_type=<?=$dfarm_type?>&dfarm_name=<?=$dfarm_name?>"; }else { return; } } function goList() { history.go(-1); } </script>