ÿØÿà JFIF ` ` ÿþ
Server : Apache System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : tkt_travelbus ( 1137) PHP Version : 7.0.0p1 Disable Function : mysql_pconnect Directory : /tkt_travelbus/www/toadmin/cal/ |
Upload File : |
<? include "../include/top.html"; if($period_yy == ""){ $period_yy = date('Y'); } if($period_mm == ""){ $period_mm = date('m'); } $period = $period_yy . "-" . $period_mm; // 접근제한 if($TO_MB['mb_id'] != 'tktravel'){ echo " <script language='javascript'> // alert('접근이 제한된 메뉴입니다.'); location.href = '/toadmin/cal/b2b_month_overseas_cal.html'; </script> "; exit; } // 관리자 $admin_arr = member_fetch(" and mb_level <= 10 and del_flag='N' "); // 예약 데이터 // T 티켓 D 투어 P 패키지 L 호텔 B 버스 E 견적서 $res_data = TO_get_reserv_data($period); // 초기화 $total_good_profit = 0; foreach($res_data as $k => $row) { $tab = $row['tab']; // 패키지와 견적서는 투어에 통합 if($tab == 'P' || $tab == 'E') $tab = 'D'; // 예약 수 $data[$tab]['res'] += 1; // 인원 $data[$tab]['person'] += $row['person']; // 판매금액 $data[$tab]['sell_price'] += $row['sales_total'] + $row['agent_total']; // 공급가 $data[$tab]['buy_price'] += $row['buy_total']; // 수익 $data[$tab]['profit'] += ($row['sales_total'] + $row['agent_total']) - $row['buy_total']; // 총 수익 $total_good_profit += ($row['sales_total'] + $row['agent_total']) - $row['buy_total']; } /////////////////////////////////////////////////////////////////////////////////////// // 월별 정산 내역 - 회사 수익 계산 $sql = "select SUM(cal_basic_pay) as total_basic, SUM(cal_km_price) as total_km, SUM(cal_gg_price) as total_gg, SUM(cal_gy_price) as total_gy, SUM(cal_sj_price) as total_sj, SUM(cal_jg_price) as total_jg, SUM(cal_income_tax) as total_income, SUM(cal_incentive_price) as total_incentive, SUM(cal_payable_price) as total_payable FROM TB_CAL_PERSONNEL where cal_year = '{$period_yy}' and cal_month = '{$period_mm}'"; $row3 = db_fetch($sql); $total_insu = $row3['total_km'] + $row3['total_gg'] + $row3['total_gy'] + $row3['total_sj'] + $row3['total_jg']; //4대보험료 회사부담금 $total_incentive = $row3['total_incentive']; // 인센티브 // 인건비 정산 내역 $sql = "select * from TB_CAL_PERSONNEL where cal_year = '{$period_yy}' and cal_month = '{$period_mm}' ORDER BY cal_pseq ASC"; $rs = db_query($sql); for($i=0 ; $row = db_fetch_array($rs) ; $i++) { $row_personnel[] = $row; } // Default 6개 맞춤 for ($i=count($row_personnel); $i<6; $i++){ $row_personnel[] = array(); } // 운영비, 퇴직금 내역 $sql = "select * from TB_CAL_OPERATE where cal_year = '{$period_yy}' and cal_month = '{$period_mm}'"; $rs = db_query($sql); for($i=0 ; $row = db_fetch_array($rs) ; $i++) { switch($row['cal_item_type']){ case "MP"; $row_operate_mp[] = $row; $total_operate_mp += $row['cal_item_price']; break; case "SP"; $row_operate_sp[] = $row; $total_operate_sp += $row['cal_item_price']; break; case "SUR"; $operate_surtax_seq = $row['cal_oseq']; $operate_surtax =$row['cal_item_price']; break; case "GEIN"; $operate_income_seq = $row['cal_oseq']; $operate_income =$row['cal_item_price']; break; case "SUP"; $operate_support_seq = $row['cal_oseq']; $operate_support =$row['cal_item_price']; break; } } // Default 6개 맞춤 for ($i=count($row_operate_mp); $i<12; $i++){ $row_operate_mp[] = array(); } for ($i=count($row_operate_sp); $i<6; $i++){ $row_operate_sp[] = array(); } // 회사 수익 계산 $total_profit = $total_good_profit - $row3['total_basic'] - $total_insu - $operate_surtax - $operate_income + $operate_support - $total_operate_mp - $total_operate_sp - $total_incentive; // 첨부파일 $sql = "select * from TB_CAL_UPFILE where cal_year = '{$period_yy}' and cal_month = '{$period_mm}'"; $rs = db_query($sql); for($i=0 ; $row = db_fetch_array($rs) ; $i++) { $row_upfile[] = $row; } ?> <style> .c_top_table input[type='text'] {text-align:right; padding:5px;} .t_list7 input[type='text']{ height:16px; border:1px solid #cfcfd1; padding-left:3px; padding-right:1px; vertical-align:middle; width:calc(100% - 20px); text-align:right; padding:5px;} .t_list7 .str {text-align:left !important;} .t_list7 th{border-top:none;} .t_list7 {border-top:none;} .c_top_bar_search {padding:10px 16px;} .total th {background-color:#FFF0D9; color:#F00; font-weight:bold; font-size:13px;} .total td {background-color:#FFF0D9; color:#F00; font-weight:bold; font-size:13px;} .large th {height:29px;} .large td {border-right:1px solid #e4e4e4; font-size:13px; font-weight:bold; text-align:center; padding:8px 0px 8px 0px;} .large td:last-child {border-right:none;} .large:first-child td {background:#f9f9f9; height:28px;} .large:last-child td {color:#4169e1;} .large .minus {color:#e14169 !important;} .color_g th {background-color:#f2fcea;color:#4169e1 ; font-weight:bold;} .color_g td {background-color:#f2fcea;color:#4169e1 ; font-weight:bold;} @media print { td {color:#000 !important;} th {color:#000 !important;} div.top_blue{display:none;} div.left_wrap{display:none; width:0;} div .contents_wrap {margin-left:0 !important;} div .contents_wrap_in .title{display:none;} div .contents_wrap_in #frm_search{display:none;} div .log_wrap{display:none;} #footer{display:none;} div #contents {padding:0;} .c_top_table input[type='text']{border:none; color:#000;} .t_list7 input[type='text']{border:none; color:#000;} .t_list7 td {padding:0px;} .cal_print_title {display:block !important;} .no_print{display:none;} } @page { size: a3; page-break-after: always; counter-increment: page; } </style> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title"><strong>월별정산</strong></div> <div class="contents_detail"> <!-- 폼 --> <form name="frm_search" id="frm_search" method="get"> <input type="hidden" name="period_mm" id="period_mm" value="<?=$period_mm?>"> <div class="c_top_bar_search"> <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="여행상품 예약관리 통합검색입니다." class="c_top_table"> <caption>여행상품 예약관리 통합검색</caption> <colgroup> <col width="150px" /> <col /> </colgroup> <tbody> <tr class="bot_line"> <th>검색년월</th> <td><ul class="form_list"> <li class="mr5"> <select name="period_yy" id="item_period_yy"> <? for ($yy=date('Y'); $yy >= 2018; $yy--){ ?> <option value="<?=$yy?>" <?=($yy==$period_yy) ? "selected":""?>><?=$yy?>년</option> <? }?> </select> </li> <li> <ul class="form_in_btn item_period_mm"> <? for($s=1 ; $s<=12 ; $s++){?> <li class="<?if($s==$period_mm)echo "on";?>" month="<?=$s?>"><a href="javascript:;"><?=$s?>월</a></li> <? }?> </ul> </li> <li> <a class="Tbtn red no_print" href="javascript:;" onclick="chk_form();">저장</a> <a href="#" class="Tbtn gray1 no_print" onclick="window.print();">인쇄하기</a> </li> </ul> </td> </tr> </tbody> </table> </div> </form> <!-- /폼 --> <div id="Content_box"> <div class="cal_print_title" style="width:1000px; margin:10px 0 30px; text-align:center; display:none;"> <span style="font-size:40px; color#000;"><?=$period_yy?>년 <?=$period_mm?>월 정산 내역</span> </div> <form name="frm_reserv_good" id="frm_reserv_good" enctype="multipart/form-data" method="post"> <input type="hidden" name="period_yy" id="period_yy" value="<?=$period_yy?>"> <input type="hidden" name="period_mm" id="period_mm" value="<?=$period_mm?>"> <table width="1000" border="0" cellspacing="0" cellpadding="0" class="t_list6"> <colgroup> <col width="600"> <col width="30"> <col width="350"> </colgroup> <tr> <td><h2 class="mt30">▍<?=$period_yy?>년 <?=$period_mm?>월 판매 내역</h2></td> <td rowspan="2"></td> <td><h2 class="mt30">▍월별 정산 합계</h2></td> </tr> <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="c_top_table"> <colgroup> <col width="120px" /> <col width="120px" /> <col width="120px" /> <col width="120px" /> <col width="120px" /> </colgroup> <tbody> <tr class="large"> <th>구분</th> <td>티켓</td> <td>투어 <img src="/image/product/ico_info.png" title="견적관리" class="no_print"></td> <td>버스렌트 <img src="/image/product/ico_info.png" title="버스관리" class="no_print"></td> <td>호텔&패키지</td> </tr> <tr class="large"> <th>확정예약수</th> <td><?=number_format($data['T']['res'])?> 개</td> <td><?=number_format($data['D']['res'])?> 개</td> <td><?=number_format($data['B']['res'])?> 개</td> <td><?=number_format($data['L']['res'])?> 개</td> </tr> <tr class="large"> <th>총인원</th> <td><?=number_format($data['T']['person'])?> 명</td> <td><?=number_format($data['D']['person'])?> 명</td> <td>-</td> <td><?=number_format($data['L']['person'])?> 명</td> </tr> <tr class="large"> <th>총매입액①</th> <td><?=number_format($data['T']['buy_price'])?> 원</td> <td><?=number_format($data['D']['buy_price'])?> 원</td> <td><?=number_format($data['B']['buy_price'])?> 원</td> <td><?=number_format($data['L']['buy_price'])?> 원</td> </tr> <tr class="large"> <th>총매출액②</th> <td><?=number_format($data['T']['sell_price'])?> 원</td> <td><?=number_format($data['D']['sell_price'])?> 원</td> <td><?=number_format($data['B']['sell_price'])?> 원</td> <td><?=number_format($data['L']['sell_price'])?> 원</td> </tr> <tr class="bot_line large"> <th>수익(②-①)</th> <td <? if($data['T']['profit'] < 0) echo 'class="minus"'; ?> ><?=number_format($data['T']['profit'])?> 원</td> <td <? if($data['D']['profit'] < 0) echo 'class="minus"'; ?>> <?=number_format($data['D']['profit'])?> 원</td> <td <? if($data['B']['profit'] < 0) echo 'class="minus"'; ?>> <?=number_format($data['B']['profit'])?> 원</td> <td <? if($data['L']['profit'] < 0) echo 'class="minus"'; ?>> <?=number_format($data['L']['profit'])?> 원</td> </tr> </tbody> </table> </td> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="c_top_table"> <colgroup> <col width="170px" /> <col /> </colgroup> <tbody> <tr class="color_g"> <th>총수익(②-①)</th> <td class="tlc" style="font-size:14px; text-align:right; padding-right:28px;"><b><?=number_format($total_good_profit)?> 원</b></td> </tr> <tr> <th>기본급+인센티브</th> <td class="tlc" style="text-align:right; padding-right:28px;"><?=number_format($row3['total_basic']+$total_incentive)?> 원</td> </tr> <tr> <th>4대 보험료(회사부담) </th> <td class="tlc" style="text-align:right; padding-right:28px;"><?=number_format($total_insu)?> 원</td> </tr> <tr> <th>부가세</th> <td class="tlc" style="padding:2px;"><input name="operate_surtax" type="text" value="<?=number_format($operate_surtax)?>" style="width:104px;" /> 원<input type="hidden" name="operate_surtax_seq" value="<?=$operate_surtax_seq?>"></td> </tr> <tr> <th>종합소득세</th> <td class="tlc" style="padding:2px;"><input name="operate_income" type="text" value="<?=number_format($operate_income)?>" style="width:104px;" /> 원<input type="hidden" name="operate_income_seq" value="<?=$operate_income_seq?>"></td> </tr> <tr> <th>운영비 및 퇴직금</th> <td class="tlc" style="text-align:right; padding-right:28px;"><?=number_format($total_operate_mp+$total_operate_sp)?> 원</td> </tr> <tr> <th>지원금 및 광고수익</th> <td class="tlc" style="padding:2px;"><input name="operate_support" type="text" value="<?=number_format($operate_support)?>" style="width:104px;" /> 원<input type="hidden" name="operate_support_seq" value="<?=$operate_support_seq?>"></td> </tr> <tr class="bot_line total"> <th>회사수익</th> <td class="tlc" style="text-align:right; padding-right:28px;"><?=number_format($total_profit)?> 원</td> </tr> </tbody> </table> </td> </tr> <tr> <td colspan="3"> <h2 class="mt30">▍인건비 정산 내역</h2> <span class="add_btn"><input type="button" class="Table_btn red item_labor_price_add no_print" value="항목추가(+)"></span> </td> </tr> <tr style="border:1px solid #9c9c9c;border-collaspe:collaspe"> <td colspan="3"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_list7 item_labor_price_box"> <colgroup> <col width="50px" /> <col width="100px" /> <col width="115px" /> <col width="85px" /> <col width="85px" /> <col width="85px" /> <col width="85px" /> <col width="85px" /> <col width="95px" /> <col width="95px" /> <col width="120px" /> </colgroup> <thead> <tr> <th rowspan="2">NO</th> <th rowspan="2">이름</th> <th rowspan="2">기본급여</th> <th colspan="4">4대보험</th> <th rowspan="2">장기요양보험</th> <th rowspan="2">소득세<br>+지방소득세</th> <th rowspan="2">성과급<br>+인센티브</th> <th rowspan="2">차인지급액</th> </tr> <tr> <th>국민연금</th> <th>건강보험</th> <th>고용보험</th> <th>산재보험</th> </tr> </thead> <tbody> <? foreach($row_personnel as $k => $v){ ?> <tr> <td><?=++$p_cnt?><input type="hidden" name="personnel_seq[]" value="<?=$v['cal_pseq']?>"></td> <td><input name="cal_staff_nm[]" type="text" value="<?=$v['cal_staff_nm']?>" class="str"/></td> <td><input name="cal_basic_pay[]" type="text" value="<?=$v['cal_basic_pay']?>" /></td> <td><input name="cal_km_price[]" type="text" value="<?=$v['cal_km_price']?>"/></td> <td><input name="cal_gg_price[]" type="text" value="<?=$v['cal_gg_price']?>"/></td> <td><input name="cal_gy_price[]" type="text" value="<?=$v['cal_gy_price']?>"/></td> <td><input name="cal_sj_price[]" type="text" value="<?=$v['cal_sj_price']?>"/></td> <td><input name="cal_jg_price[]" type="text" value="<?=$v['cal_jg_price']?>"/></td> <td><input name="cal_income_tax[]" type="text" value="<?=$v['cal_income_tax']?>"/></td> <td><input name="cal_incentive_price[]" type="text" value="<?=$v['cal_incentive_price']?>"/></td> <td style="text-align:right; padding-right:10px;"> <? if($v['cal_payable_price'] > 0) { ?> <b><?=number_format($v['cal_payable_price']);?> 원</b> <? } else { ?> - <? } ?> </td> </tr> <? } ?> <tr class="total"> <td colspan="2">합계</td> <td><?=number_format($row3['total_basic'])?> 원</td> <td><?=number_format($row3['total_km'])?> 원</td> <td><?=number_format($row3['total_gg'])?> 원</td> <td><?=number_format($row3['total_gy'])?> 원</td> <td><?=number_format($row3['total_sj'])?> 원</td> <td><?=number_format($row3['total_jg'])?> 원</td> <td><?=number_format($row3['total_income'])?> 원</td> <td><?=number_format($row3['total_incentive'])?> 원</td> <td><?=number_format($row3['total_payable'])?> 원</td> </tr> </tbody> </table> </td> </tr> <tr> </tr> <tr> <td> <h2 class="mt30">▍운영비 정산 내역</h2> <span class="add_btn"><input type="button" class="Table_btn red item_operate_mp_add no_print" value="항목추가(+)" ></span> </td> <td rowspan="2"></td> <td> <h2 class="mt30">▍퇴직금 정산 내역</h2> <span class="add_btn"><input type="button" class="Table_btn red item_operate_sp_add no_print" value="항목추가(+)" ></span> </td> </tr> <tr> <td style="border:1px solid #9c9c9c;border-collaspe:collaspe"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_list7 item_operate_mp_box"> <colgroup> <col width="50px" /> <col width="200px" /> <col width="100px" /> <col width="50px" /> <col width="200px" /> <col width="100px" /> </colgroup> <thead> <tr> <th>NO</th> <th>항목</th> <th>지출비용</th> <th>NO</th> <th>항목</th> <th>지출비용</th> </tr> </thead> <tbody> <tr> <? foreach($row_operate_mp as $k => $v){ ?> <td><?=++$o_cnt?><input type="hidden" name="operate_seq[]" value="<?=$v['cal_oseq']?>"><input type="hidden" name="cal_item_type[]" value="MP"></td> <td><input name="cal_item_name[]" type="text" value="<?=$v['cal_item_name']?>" class="str"/></td> <td><input name="cal_item_price[]" type="text" value="<?=$v['cal_item_price']?>"/></td> <? if($o_cnt % 2 == 0) { ?> <tr></tr> <? } ?> <? } ?> </tr> <tr class="total"> <td colspan="3"></td> <td colspan="2">합계</td> <td><?=number_format($total_operate_mp)?> 원</td> </tr> </tbody> </table> </td> <td style="vertical-align:top;border:1px solid #9c9c9c;border-collaspe:collaspe"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_list7 item_operate_sp_box"> <colgroup> <col width="50px" /> <col width="280px" /> <col width="150px" /> </colgroup> <thead> <tr> <th>NO</th> <th>이름</th> <th>퇴직 위로금</th> </tr> </thead> <tbody> <? foreach($row_operate_sp as $k => $v){ ?> <tr> <td><?=++$t_cnt?><input type="hidden" name="operate_seq[]" value="<?=$v['cal_oseq']?>"><input type="hidden" name="cal_item_type[]" value="SP"></td> <td><input name="cal_item_name[]" type="text" value="<?=$v['cal_item_name']?>" class="str"/></td> <td><input name="cal_item_price[]" type="text" value="<?=$v['cal_item_price']?>"/></td> </tr> <? } ?> <tr class="total"> <td colspan="2">합계</td> <td><?=number_format($total_operate_sp)?> 원</td> </tr> </tbody> </table> </td> </tr> <tr class="no_print"> <td colspan="3"> <h2 class="mt30">#파일 첨부</h2> </td> </tr> <tr class="no_print"> <td colspan="3"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="c_top_table"> <colgroup> <col width="100px" /> <col /> <col width="100px" /> <col /> </colgroup> <tbody> <tr <?if($f==5) echo "class='bot_line'";?>> <? for($f=0; $f<=5; $f++) { ?> <th height="35">파일 <?=$f+1?></th> <td> <?if(!$row_upfile[$f][upfile]){?> <input type="file" name="CAL_FILE<?=$f?>" class="input_file input_text no_print" size="50" style="height:18px;" /> <? } else { ?> <input type="hidden" name="MFILE<?=$f?>" value="<?=$row_upfile[$f][upfile]?>" /> <img src="../../image/board/bullet_disk.gif" align="top" /> <a href="../lib/Download.php?Type=CAL&FileName=<?=$row_upfile[$f][upfile]?>&FileNameOrg=<?=$row_upfile[$f][upfile_org]?>" title="다운로드"><span class="style_3"><?=$row_upfile[$f][upfile_org]?></span></a> <img src="../image/btn/btn_delete.gif" align="top" style="cursor:pointer" alt="삭제" onclick="fnc_ImageDel('<?=$row_upfile[$f][seq]?>','<?=$row_upfile[$f][upfile]?>');" class="no_print"/> <?}?> </td> <? if($f%2 == 1) { echo "</tr><tr>"; } ?> <? } ?> </tr> </tbody> </table> </td> </tr> </table> </form> </div> <div class="btn_wrap_C mt30 mb30" style="width:1000px; margin:0;background-color:#edf0f5"> <a class="Bbtn red no_print" href="javascript:;" onclick="chk_form();">저장</a> </div> </div> </div> <iframe name="IMGIF" id="IMGIF" width="0" height="0" style="display:none;"></iframe> <script type="text/javascript"> // 폼 저장 function chk_form() { var f = document.frm_reserv_good; if(!confirm('저장하시겠습니까?')) return; f.action = "month_cal_proc.html"; f.submit(); } $(document).ready(function(){ // 년도 변경 $("#item_period_yy").on("change",function(){ $("#period_mm").val('01'); document.frm_search.submit(); }); // 월 변경 $(".item_period_mm li").on("click",function(){ var mm = parseInt($(this).attr('month'));; if(mm<10) mm='0'+mm; $("#period_mm").val(mm); document.frm_search.submit(); }); // 키 입력 시 콤마 추가 $(".t_list7 input[type='text']").on("keyup", function(){ var name = $(this).attr('name'); if(name != 'cal_staff_nm[]' && name != 'cal_item_name[]'){ if($(this).val() != ""){ $(this).val(comma($(this).val())); } } }); // 전체 텍스트박스 콤마 추가 $(".t_list7 input[type='text']").each(function(){ var name = $(this).attr('name'); if(name != 'cal_staff_nm[]' && name != 'cal_item_name[]' && $(this).val() != ''){ $(this).val(comma($(this).val())); } }); }); // 인건비 라인 추가 var html_labor_price = '<tr>'; html_labor_price += '<td><input type="button" class="Table_btn blue" value="삭제" onclick="$(this).parent().parent().remove();"><input type="hidden" name="personnel_seq[]" value=""></td>'; html_labor_price += '<td><input name="cal_staff_nm[]" type="text" class="str"/></td>'; html_labor_price += '<td><input name="cal_basic_pay[]" type="text" value=""/></td>'; html_labor_price += '<td><input name="cal_km_price[]" type="text" value=""/></td>'; html_labor_price += '<td><input name="cal_gg_price[]" type="text" value=""/></td>'; html_labor_price += '<td><input name="cal_gy_price[]" type="text" value=""/></td>'; html_labor_price += '<td><input name="cal_sj_price[]" type="text" value=""/></td>'; html_labor_price += '<td><input name="cal_jg_price[]" type="text" value=""/></td>'; html_labor_price += '<td><input name="cal_income_tax[]" type="text" value=""/></td>'; html_labor_price += '<td><input name="cal_incentive_price[]" type="text" value=""/></td>'; html_labor_price += '<td><b>-</b></td>'; html_labor_price += '</tr>'; $(function(){ $(".item_labor_price_add").on("click",function(){ $(".item_labor_price_box tbody").append(html_labor_price); }); }); // 운영비 라인 추가 var html_operate_mp = '<tr>'; html_operate_mp += '<td><input type="button" class="Table_btn blue" value="삭제" onclick="$(this).parent().parent().remove();"><input type="hidden" name="operate_seq[]" value=""><input type="hidden" name="cal_item_type[]" value="MP"></td>'; html_operate_mp += '<td><input name="cal_item_name[]" type="text" class="str"/></td>'; html_operate_mp += '<td><input name="cal_item_price[]" type="text" value=""/></td>'; html_operate_mp += '<td>-<input type="hidden" name="operate_seq[]" value=""><input type="hidden" name="cal_item_type[]" value="MP"></td>'; html_operate_mp += '<td><input name="cal_item_name[]" type="text" class="str"/></td>'; html_operate_mp += '<td><input name="cal_item_price[]" type="text" value=""/></td>'; html_operate_mp += '</tr>'; $(function(){ $(".item_operate_mp_add").on("click",function(){ $(".item_operate_mp_box tbody").append(html_operate_mp); }); }); // 퇴직금 라인 추가 var html_operate_sp = '<tr>'; html_operate_sp += '<td><input type="button" class="Table_btn blue" value="삭제" onclick="$(this).parent().parent().remove();"><input type="hidden" name="operate_seq[]" value=""><input type="hidden" name="cal_item_type[]" value="SP"></td>'; html_operate_sp += '<td><input name="cal_item_name[]" type="text" class="str"/></td>'; html_operate_sp += '<td><input name="cal_item_price[]" type="text" value=""/></td>'; html_operate_sp += '</tr>'; $(function(){ $(".item_operate_sp_add").on("click",function(){ $(".item_operate_sp_box tbody").append(html_operate_sp); }); }); // 첨부파일 삭제 함수 (20090820 ) function fnc_ImageDel(seq, file_name) { if (confirm('정말 삭제하시겠습니까?')) { var Url = "cal_file_del.php?seq=" + seq + "&file_name=" + file_name; IMGIF.location.href = Url; } } </script> <? include "../include/footer.html"; ?>