Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
cts.eemo.co.kr
/
public_html
/
src
/
web
/
view
/
qr
/
code
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/cts.eemo.co.kr/public_html/src/web/view/qr/code/receipt2.php
<?php use CTS\CTS; CTS::$layout ='blank'; $qr_sale = $_REQUEST['qr_sale']; $qr_url = $_REQUEST['qr_url']; $tmpSql = "SELECT * FROM sale WHERE sale_idx = $qr_sale"; $tmpRes = \DB::query($tmpSql); $tmpSql = "SELECT sale_idx FROM sale WHERE sale_type = '{$tmpRes[0]['sale_type']}' AND sale_date LIKE '{$tmpRes[0]['sale_date']}%' AND sale_farm = '{$tmpRes[0]['sale_farm']}' "; $tmpRes = \DB::query($tmpSql); $getSaleIdx = ''; for ($i=0; $i < count($tmpRes); $i++) { if($i == 0 ) { $getSaleIdx =$tmpRes[$i]['sale_idx']; }else { $getSaleIdx = $getSaleIdx .", '". $tmpRes[$i]['sale_idx']."'"; } } $tmpSql = "SELECT Q.qr_url, Q.qr_sale, S.sale_flock FROM qr Q, sale S WHERE Q.qr_sale = S.sale_idx AND Q.qr_sale in ($getSaleIdx)"; $tmpRes = \DB::query($tmpSql); rsort($tmpRes); // $qr_img = "/web/files/qr/".$qr_url; ?> <style> table { font-size : 10px; } .tdborder { border: 1px solid black; } .tdboerleft { border-left: 1px dotted black; } .textcenter{ text-align:center; } .textleft{ text-align:left; } .textright{ text-align:right; } .td10{ width: 10px; } .td30{ width: 30px; } .td50{ width: 50px; } .td100{ width: 100px; } .td150{ width: 150px; } .td200{ width:200px; } .td250{ width:250px; } .td500{ width: 500px; } .td700{ width: 700px; } /* #layout-sidenav { display : none; } */ #content { overflow : auto !important; } </style> <!-- <div class="columns columns-right btn-group float-left"> <button class="btn btn-outline-primary " type="button" onclick="print_doc()" class="fas fa-print"> <i class="fas fa-print d-block"> 프린트 하기</i> </button> <button class="btn btn-outline-primary " type="button" onclick="back()" class="fas fa-print"> <i class="fas fa-print d-block"> 뒤로가기</i> </button> </div> <div id="docs"> --> <!-- 부화장 보관용 --> <table style = "border-collapse:collapse;"> <thead class="textcenter"> <tr> <td><br/></td> </tr> <tr> <td><br/></td> </tr> <tr> <th class="td700" colspan="6">초생추 인수증</th> </tr> <tr> <th class="td700" colspan="6">(부화장 보관용)</th> </tr> <tr> <td><br/></td> </tr> </thead> <tbody> <tr> <td colspan="2" class=""> 품 명 : </td> <td colspan="4" class=""><input type="text" class="td500" style="border: none"></td> </tr> <tr> <td colspan="2" class=""> 수 량 : </td> <td colspan="4" class=""><input type="text" class="td500" style="border: none"></td> </tr> <tr> <td colspan="2" class=""> 차량번호 : </td> <td colspan="4" class=""><input type="text" class="td500" style="border: none"></td> </tr> <tr> <td colspan="2" class=""> 운송기사 : </td> <td colspan="1" class=""><input type="text" class="td300" style="border: none"></td> <td colspan="2" class=""> 서 명 : </td> <td colspan="1" class=""><input type="text" class="td100" style="border: none"></td> </tr> <tr> <td colspan="2" class=""> 농 장 장 : </td> <td colspan="1" class=""><input type="text" class="td300" style="border: none"></td> <td colspan="2" class=""> 서 명 : </td> <td colspan="1" class=""><input type="text" class="td100" style="border: none"></td> </tr> <tr> <td><br/></td> </tr> <tr> <th colspan="6" class="textcenter"> 상기 내용과 같이 초생추를 인계 및 인수함 </th> </tr> <tr> <td colspan="6"> <div style="justify-content: space-between; display: flex;"> <?php for ($i=0; $i < count($tmpRes); $i++) { ?> <div> <div style="text-align:center;"> <!-- QR 코드 --> <img class="" src="<?="/web/files/qr/".$tmpRes[$i]['qr_url']?>" width="80xp;" alt=""> <br/> <!-- 일련번호 --> <?=$tmpRes[$i]['sale_flock'] . ":". $tmpRes[$i]['qr_sale'];?> </div> </div> <?php } ?> </div> </td> </tr> <tr> <th colspan="2" class="textcenter"> </th> <th class="textright" colspan="4">20<input type="text" class="border td50" style="border: none">. <input type="text" class="border td50" style="border: none">. <input type="text" class="border td50" style="border: none"> </th> </tr> <tr> <td><br/></td> </tr> <tr> <th colspan="6" class="textcenter"> 농 업 회 사 법 인 (주) 한 국 원 종 </th> </tr> <tr style="border-bottom: 1px dotted black"> <th class="td100"></th> <td colspan="6"><br/><br/></td> <th class="td100"></th> </tr> </tbody> </table> <!-- 본사 보관용 --> <table style = "border-collapse:collapse;"> <thead class="textcenter"> <tr> <td><br/></td> </tr> <tr> <td><br/></td> </tr> <tr> <th class="td700" colspan="6">초생추 인수증</th> </tr> <tr> <th class="td700" colspan="6">(본 사 보관용)</th> </tr> </thead> <tbody> <tr> <td colspan="2" class=""> 품 명 : </td> <td colspan="4" class=""><input type="text" class="td500" style="border: none"></td> </tr> <tr> <td colspan="2" class=""> 수 량 : </td> <td colspan="4" class=""><input type="text" class="td500" style="border: none"></td> </tr> <tr> <td colspan="2" class=""> 차량번호 : </td> <td colspan="4" class=""><input type="text" class="td500" style="border: none"></td> </tr> <tr> <td colspan="2" class=""> 운송기사 : </td> <td colspan="1" class=""><input type="text" class="td300" style="border: none"></td> <td colspan="2" class=""> 서 명 : </td> <td colspan="1" class=""><input type="text" class="td100" style="border: none"></td> </tr> <tr> <td colspan="1" class=""> 농 장 장 : </td> <td colspan="3" class=""><input type="text" class="td300" style="border: none"></td> <td colspan="1" class=""> 서 명 : </td> <td colspan="2" class=""><input type="text" class="td100" style="border: none"></td> </tr> <tr> <td><br/></td> </tr> <tr> <th colspan="6" class="textcenter"> 상기 내용과 같이 초생추를 인계 및 인수함 </th> </tr> <tr> <td colspan="6"> <div style="justify-content: space-between; display: flex;"> <?php for ($i=0; $i < count($tmpRes); $i++) { ?> <div> <div style="text-align:center;"> <!-- QR 코드 --> <img class="" src="<?="/web/files/qr/".$tmpRes[$i]['qr_url']?>" width="80xp;" alt=""> <br/> <!-- 일련번호 --> <?=$tmpRes[$i]['sale_flock'] . ":". $tmpRes[$i]['qr_sale'];?> </div> </div> <?php } ?> </div> </td> </tr> <tr> <th colspan="2" class="textcenter"> </th> <th class="textright" colspan="4">20<input type="text" class="border td50" style="border: none">. <input type="text" class="border td50" style="border: none">. <input type="text" class="border td50" style="border: none"> </th> </tr> <tr> <td><br/></td> </tr> <tr> <th colspan="6" class="textcenter"> 농 업 회 사 법 인 (주) 한 국 원 종 </th> </tr> <tr style="border-bottom: 1px dotted black"> <th class="td100"></th> <td colspan="6"><br/><br/></td> <th class="td100"></th> </tr> </tbody> </table> <!-- 인수자 보관용 --> <table style = "border-collapse:collapse;"> <thead class="textcenter"> <tr> <td><br/></td> </tr> <tr> <td><br/></td> </tr> <tr> <th class="td700" colspan="6">초생추 인수증</th> </tr> <tr> <th class="td700" colspan="6">(인수자 보관용)</th> </tr> </thead> <tbody> <tr> <td colspan="2" class=""> 품 명 : </td> <td colspan="4" class=""><input type="text" class="td500" style="border: none"></td> </tr> <tr> <td colspan="2" class=""> 수 량 : </td> <td colspan="4" class=""><input type="text" class="td500" style="border: none"></td> </tr> <tr> <td colspan="2" class=""> 차량번호 : </td> <td colspan="4" class=""><input type="text" class="td500" style="border: none"></td> </tr> <tr> <td colspan="2" class=""> 운송기사 : </td> <td colspan="1" class=""><input type="text" class="td300" style="border: none"></td> <td colspan="2" class=""> 서 명 : </td> <td colspan="1" class=""><input type="text" class="td100" style="border: none"></td> </tr> <tr> <td colspan="2" class=""> 농 장 장 : </td> <td colspan="1" class=""><input type="text" class="td300" style="border: none"></td> <td colspan="2" class=""> 서 명 : </td> <td colspan="1" class=""><input type="text" class="td100" style="border: none"></td> </tr> <tr> <td><br/></td> </tr> <tr> <th colspan="6" class="textcenter"> 상기 내용과 같이 초생추를 인계 및 인수함 </th> </tr> <tr> <td colspan="6"> <div style="justify-content: space-between; display: flex;"> <?php for ($i=0; $i < count($tmpRes); $i++) { ?> <div> <div style="text-align:center;"> <!-- QR 코드 --> <img class="" src="<?="/web/files/qr/".$tmpRes[$i]['qr_url']?>" width="80xp;" alt=""> <br/> <!-- 일련번호 --> <?=$tmpRes[$i]['sale_flock'] . ":". $tmpRes[$i]['qr_sale'];?> </div> </div> <?php } ?> </div> </td> </tr> <tr> <th colspan="2" class="textcenter"> </th> <th class="textright" colspan="4">20<input type="text" class="border td50" style="border: none">. <input type="text" class="border td50" style="border: none">. <input type="text" class="border td50" style="border: none"> </th> </tr> <tr> <td><br/></td> </tr> <tr> <th class="td100"></th> <th colspan="6" class="textcenter"> 농 업 회 사 법 인 (주) 한 국 원 종 </th> </tr> </tbody> </table> <script> // function print_doc(){ // var popupWindow = window.open("receipt_print.php?qr_url=<?=$qr_url?>&qr_sale=<?=$qr_sale?>", "_blank" ); // window.print(); // } // function back() { // history.back(); // } </script>