27 Commits ecd41152e6 ... c158e1e41c

Auteur SHA1 Message Date
  hokky c158e1e41c Merge branch 'master' of http://git.daboryhost.com:10880/youhk/kbgolf il y a 1 mois
  youhk 2a911c264f 241014-1348-Kim il y a 1 mois
  hokky 7b6eab17c9 241001-1357-Kim il y a 1 mois
  kimhi65 b2cf2a1a9d 240912-1518-Kim il y a 2 mois
  kbgolf 0f9ec1a0fc 240912-1517-Kim il y a 2 mois
  kimhi65 049b5e4d31 240912-1228-Kim il y a 2 mois
  kimhi65 83e965dc00 240912-1227-Kim il y a 2 mois
  kimhi65 30bc8793e3 240906-1818-Kim il y a 2 mois
  EricKIm 9d8f07b220 240906-1623-Kim il y a 2 mois
  kimhi65 312b07717a 240906-1557-Kim il y a 2 mois
  EricKIm 7e9a098748 240906-1555-Kim il y a 2 mois
  kimhi65 2b9808abf9 240816-0006-Kim il y a 3 mois
  System User for kbgolf 3472cd41fd 240814-1542-Kim il y a 3 mois
  hokky 4942443081 240814-1541-Kim il y a 3 mois
  root f73a595a42 240813-1146-Kim il y a 3 mois
  wngur6076 16fb940d0a t il y a 3 mois
  kimhi65 918a741eb6 240813-0955-Kim il y a 3 mois
  wngur6076 b63fe919cd t il y a 3 mois
  wngur6076 97bdd232e0 t il y a 3 mois
  wngur6076 c09066eb17 t il y a 3 mois
  kimhi65 0413900eca 240812-1631-Kim il y a 3 mois
  kimhi65 282e3c3348 240812-0919-Kim il y a 3 mois
  kimhi65 d086622280 240808-1846-Kim il y a 3 mois
  System User for kbgolf 592181fd82 240807-1845-Kim il y a 3 mois
  System User for kbgolf 146be808f3 240807-1809-Kim il y a 3 mois
  System User for kbgolf e228025c3b 240806-0913-Kim il y a 3 mois
  System User for kbgolf a0af85c322 240805-1711-Kim il y a 3 mois

+ 1 - 1
erp/para/ko_KR/etc/code-title/t

@@ -149,7 +149,7 @@ class IndexController extends Controller
 
         // main blog List
         $query = "(post_type_id = 41 or post_type_id = 44 or post_type_id = 50) and status ='1'";
-        $limit = (int)request('limit', 12);
+        $limit = (int)request('limit', 999);
         $page = (int)request('page', 1);
         $mainBlogList = $this->callApiService->callApi([
             'url' => 'post-page',

+ 67 - 47
pro/app/Http/Controllers/MyPage/NoticeController.php

@@ -5,21 +5,22 @@ namespace Themes\kbgolf\pro\app\Http\Controllers\MyPage;
 use App\Http\Controllers\Controller;
 use App\Services\CallApiService;
 use Illuminate\Pagination\LengthAwarePaginator;
+use App\Services\PostService;
 
 class NoticeController extends Controller
 {
     private $callApiService;
 
-    public function __construct(CallApiService $callApiService)
+    public function __construct(CallApiService $callApiService, PostService $postService)
     {
         $this->callApiService = $callApiService;
+        $this->postService = $postService;
     }
 
     public function list()
     {
         $limit = (int)request('limit', 12);
         $page = (int)request('page', 1);
-
         $noticePage = $this->callApiService->callApi([
             'url' => 'list-type1-page',
             'data' => [
@@ -38,66 +39,85 @@ class NoticeController extends Controller
                 ]
             ]
         ]);
+        // dd($noticePage);
+
+        $noticePage['Page'] = new LengthAwarePaginator($noticePage['Page'], $noticePage['PageVars']['QueryCnt'],
+            $limit, $page, ['path' => request()->url()]);
 
         if ($this->callApiService->verifyApiError($noticePage)) {
             notify()->error($noticePage['body'], 'Error', 'bottomRight');
             return redirect()->back();
         }
 
-        $noticePage['Page'] = new LengthAwarePaginator($noticePage['Page'], $noticePage['PageVars']['QueryCnt'],
-            $limit, $page, ['path' => request()->url()]);
-
         return view('views.my-page.notice-list', compact('noticePage'));
     }
 
     public function show($id)
     {
-        $listType1Book = $this->callApiService->callApi([
-            'url' => 'list-type1-book',
-            'data' => [
-                'Book' => [
-                    [
-                        'QueryVars' => [
-                            'QueryName' => 'pro:my-page/post-details',
-                            'SimpleFilter' => "post_code='notice' and mx.id = $id",
-                            'IsntPagination' => true,
-                        ],
-                        'PageVars' => [
-                            'Limit' => 1
-                        ]
-                    ],
-                    [
-                        'QueryVars' => [
-                            'QueryName' => 'pro:my-page/post-details-prenext',
-                            'SimpleFilter' => "mx.id = (select max(id) from pro_post where id < ${id} and post_type_id = 1) and mx.status != '0'",
-                            'SubSimpleFilter' => "",
-                            'IsntPagination' => true,
-                        ],
-                        'PageVars' => [
-                            'Limit' => 1
-                        ]
-                    ],
-                    [
-                        'QueryVars' => [
-                            'QueryName' => 'pro:my-page/post-details-prenext',
-                            'SimpleFilter' => "mx.id = (select min(id) from pro_post where id > ${id} and post_type_id = 1) and mx.status != '0'",
-                            'SubSimpleFilter' => "",
-                            'IsntPagination' => true,
-                        ],
-                        'PageVars' => [
-                            'Limit' => 1
+        $limit = (int)request('limit', 10);
+        $page = (int)request('page', 1);
+        $postDetailsBook = $this->postService->getPostDetailsBook($id, $limit, $page);
+
+        if (!empty($postDetailsBook['PostDetailsPage'][0])) {
+            $userId = $postDetailsBook['PostDetailsPage'][0]['UserId'];
+            $postId = $postDetailsBook['PostDetailsPage'][0]['PostId'];
+            // dd($userId);
+            if($userId){
+                $userPick = $this->callApiService->callApi([
+                    'url' => 'users-pick',
+                    'data' => [
+                        'Page' => [ ['Id' => $userId] ]
+                    ]
+                ]);
+
+                if ($this->callApiService->verifyApiError($userPick)) {
+                    notify()->error($userPick['body'], 'Error', 'bottomRight');
+                    return redirect()->back();
+                }
+                // dd($userPick);
+                $postDetailsBook['PostDetailsPage'][0]['NickName'] = $userPick['Page'][0]['NickName'];
+            }
+            if($postId){
+                $listType1Book = $this->callApiService->callApi([
+                    'url' => 'list-type1-book',
+                    'data' => [
+                        'Book' => [
+                            [
+                                'QueryVars' => [
+                                    'QueryName' => 'pro:my-page/post-details-prenext',
+                                    'SimpleFilter' => "mx.id = (select max(id) from pro_post where id < ${postId} and post_type_id = 1) and mx.status != '0'",
+                                    'SubSimpleFilter' => "",
+                                    'IsntPagination' => true,
+                                ],
+                                'PageVars' => [
+                                    'Limit' => 1
+                                ]
+                            ],
+                            [
+                                'QueryVars' => [
+                                    'QueryName' => 'pro:my-page/post-details-prenext',
+                                    'SimpleFilter' => "mx.id = (select min(id) from pro_post where id > ${postId} and post_type_id = 1) and mx.status != '0'",
+                                    'SubSimpleFilter' => "",
+                                    'IsntPagination' => true,
+                                ],
+                                'PageVars' => [
+                                    'Limit' => 1
+                                ]
+                            ]
                         ]
-                    ],
-                ]
-            ]
-        ]);
+                    ]
+                ]);
 
-        if ($this->callApiService->verifyApiError($listType1Book)) {
-            notify()->error($listType1Book['body'], 'Error', 'bottomRight');
+                if ($this->callApiService->verifyApiError($listType1Book)) {
+                    notify()->error($listType1Book['body'], 'Error', 'bottomRight');
+                    return redirect()->back();
+                }
+            }
+        }else{
+            notify()->error($postDetailsBook['body'], 'Error', 'bottomRight');
             return redirect()->back();
         }
 
-//        dump($listType1Book);
-        return view('views.my-page.notice-details', compact('listType1Book'));
+        return view('views.my-page.notice-details', compact('postDetailsBook', 'listType1Book'));
     }
 }

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
pro/app/Http/Controllers/Page/ContactUsCustomController.php


BIN
pro/resources/assets/brand-images/logo-small.jpg


BIN
pro/resources/assets/brand-images/og.jpg


+ 0 - 1
pro/resources/css/animate.css

@@ -1 +0,0 @@
-../../../../dabory/themes/kbgolf/pro/resources

+ 90 - 92
pro/resources/views/bbs/details.blade.php

@@ -3,109 +3,107 @@
 @section('content')
 
 @php
-    $post = $listType1Book['Book'][0]['Page'][0];
-    $prePost = $listType1Book['Book'][1]['Page'];
-    $nextPost = $listType1Book['Book'][2]['Page'];
+    //$post = $listType1Book['Book'][0]['Page'][0];
+    $prePost = $listType1Book['Book'][0]['Page'];
+    $nextPost = $listType1Book['Book'][1]['Page'];
+    $postDetails = $postDetailsBook['PostDetailsPage'][0];
 @endphp
 
 <div class="sub notice">
-	<div class="container">
-		<div class="navi">
-			<a href="/"><i class="fa-solid fa-house"></i> 홈</a> > 커뮤니티 > 공지사항
-		</div>
-		<div class="title">
-			<h2>공지사항</h2>
-		</div>
-	</div>
-	<!--=====================================
-	BANNER PART START
-	=======================================-->
-	<!-- 필요없음 지움 
-	<section class="inner-section single-banner">
-		<div class="container">
-			<h2>공지사항</h2>
-			<ol class="breadcrumb">
-				<li class="breadcrumb-item"><a href="/">Home</a></li>
-				<li class="breadcrumb-item active" aria-current="page">
-					<a href="{{ route('notice.list') }}">공지사항</a>
-				</li>
-			</ol>
-		</div>
-	</section>
-	-->
-	<!--=====================================
-	BANNER PART END
-	=======================================-->
+   <div class="container">
+      <div class="navi">
+         <a href="/"><i class="fa-solid fa-house"></i> 홈</a> > 커뮤니티 > 공지사항
+      </div>
+      <div class="title">
+         <h2>공지사항</h2>
+      </div>
+   </div>
+   <!--=====================================
+   BANNER PART START
+   =======================================-->
+   <!-- 필요없음 지움
+   <section class="inner-section single-banner">
+      <div class="container">
+         <h2>공지사항</h2>
+         <ol class="breadcrumb">
+            <li class="breadcrumb-item"><a href="/">Home</a></li>
+            <li class="breadcrumb-item active" aria-current="page">
+               <a href="{{ route('notice.list') }}">공지사항</a>
+            </li>
+         </ol>
+      </div>
+   </section>
+   -->
+   <!--=====================================
+   BANNER PART END
+   =======================================-->
 
 
-	<!--=====================================
-		 BLOG DETAILS PART START
-	=======================================-->
-	<section class="inner-section blog-details-part blog-standard-details">
-		<div class="container">
-			<div class="row justify-content-center">
-				<div class="col-lg-12">
-					<article class="blog-details">
-						<div class="blog-details-content">
-							<div class="blog-details-top">
-								<div class="d-flex justify-content-between align-items-center">
-									<div>
-										<h2 class="blog-details-title">{{ $post['C5'] }}</h2>
-										<ul class="blog-details-meta">
-											<li>
-												<i class="fa-regular fa-calendar-days"></i>
-												<span>{{ $post['C7'] }}</span>
-											</li>
-											<li>
-												<i class="fa-solid fa-user"></i>
-												<span>{{ $post['C11'] }}</span>
-											</li>
-											<li>
-												<i class="fa-solid fa-share-nodes"></i>
-												<span>조회수 0</span>
-											</li>
-										</ul>
-									</div>
-								</div>
+   <!--=====================================
+       BLOG DETAILS PART START
+   =======================================-->
+   <section class="inner-section blog-details-part blog-standard-details">
+      <div class="container">
+         <div class="row justify-content-center">
+            <div class="col-lg-12">
+               <article class="blog-details">
+                  <div class="blog-details-content">
+                     <div class="blog-details-top">
+                        <div class="d-flex justify-content-between align-items-center">
+                           <div>
+                              <h2 class="blog-details-title">{{ $postDetails['PostTitle'] }}</h2>
+                              <ul class="blog-details-meta">
+                                 <li>
+                                    <i class="fa-regular fa-calendar-days"></i>
+                                    <span>{{ $postDetails['OfficialDate'] }}</span>
+                                 </li>
+                                 <li>
+                                    <i class="fa-solid fa-user"></i>
+                                    <span>{{ $postDetails['NickName'] }}</span>
+                                 </li>
+                                 <li>
+                                    <i class="fa-solid fa-share-nodes"></i>
+                                    <span>조회수 {{ $postDetails['ViewCnt'] }}</span>
+                                 </li>
+                              </ul>
+                           </div>
+                        </div>
 
-							</div>
+                     </div>
 
-							<!-- 내용 시작 -->
-							<div class="blog-details-cont">
-								{!! $post['C6'] !!}
-							</div>
-							<!--// 내용 끝 -->
+                     <!-- 내용 시작 -->
+                     <div class="blog-details-cont">
+                        {!! $postDetails['PostContents'] !!}
+                     </div>
+                     <!--// 내용 끝 -->
+                  </div>
+               </article>
+               <div class="blog_bottom">
+					<div class="blog-details-navigate">
+						<div class="blog-details-prev">
+							@if ($prePost)
+							    <!--<h4><a href="{{ route('notice.show', $prePost[0]['Id']) }}">{{ $prePost[0]['C2'] }}</a></h4>-->
+								<a class="nav-arrow" href="{{ route('notice.show', $prePost[0]['C3']) }}"><i class="fa-solid fa-arrow-left"></i> 이전</a>
+							@endif
 						</div>
-					</article>
-					<div class="blog_bottom">
-						<div class="blog-details-navigate">
-							<div class="blog-details-prev">
-								@if ($prePost)
-									<!--<h4><a href="{{ route('notice.show', $prePost[0]['Id']) }}">{{ $prePost[0]['C2'] }}</a></h4>-->
-									<a class="nav-arrow" href="{{ route('notice.show', $prePost[0]['Id']) }}"><i class="fa-solid fa-arrow-left"></i> 이전</a>
-								@endif
-							</div>
-							<div class="blog-details-next">
-								@if ($nextPost)
-									<!--<h4><a href="{{ route('notice.show', $nextPost[0]['Id']) }}">{{ $nextPost[0]['C2'] }}</a></h4>-->
-									<a class="nav-arrow" href="{{ route('notice.show', $nextPost[0]['Id']) }}">다음 <i class="fa-solid fa-arrow-right"></i></a>
-								@endif
-							</div>
-						</div>
-						<div class="btn_wrap">
-							<button type="button" class="btn btn_basic" onclick="location.href='{{ route('notice.list') }}'">목록</button>
+						<div class="blog-details-next">
+							@if ($nextPost)
+								<!--<h4><a href="{{ route('notice.show', $nextPost[0]['Id']) }}">{{ $nextPost[0]['C2'] }}</a></h4>-->
+								<a class="nav-arrow" href="{{ route('notice.show', $nextPost[0]['C3']) }}">다음 <i class="fa-solid fa-arrow-right"></i></a>
+							@endif
 						</div>
 					</div>
-
-
-					
+					<div class="btn_wrap">
+						<button type="button" class="btn btn_basic" onclick="location.href='{{ route('notice.list') }}'">목록</button>
+					</div>
 				</div>
-			</div>
-		</div>
-	</section>
-	<!--=====================================
-		BLOG DETAILS PART END
-	=======================================-->
+            </div>
+         </div>
+      </div>
+   </section>
+   <!--=====================================
+      BLOG DETAILS PART END
+   =======================================-->
 </div>
 
 @endsection

+ 84 - 83
pro/resources/views/my-page/notice-list.blade.php

@@ -3,90 +3,91 @@
 @section('content')
 
 <div class="sub notice">
-	<div class="container">
-		<div class="navi">
-			<a href="/"><i class="fa-solid fa-house"></i> 홈</a> > 커뮤니티 > 공지사항
-		</div>
-		<div class="title">
-			<h2>공지사항</h2>
-		</div>
-	</div>
-	<!--=====================================
-	BANNER PART START
-	=======================================-->
-	<!-- 필요없음 지움 
-	<section class="inner-section single-banner">
-		<div class="container">
-			<h2>공지사항12</h2>
-			<ol class="breadcrumb">
-				<li class="breadcrumb-item"><a href="index.html">Home</a></li>
-				<li class="breadcrumb-item active" aria-current="page">
-					<a href="{{ route('notice.list') }}">공지사항</a>
-				</li>
-			</ol>
-		</div>
-	</section>
-	-->
-	<!--=====================================
-	BANNER PART END
-	=======================================-->
+   <div class="container">
+      <div class="navi">
+         <a href="/"><i class="fa-solid fa-house"></i> 홈</a> > 커뮤니티 > 공지사항
+      </div>
+      <div class="title">
+         <h2>공지사항</h2>
+      </div>
+   </div>
+   <!--=====================================
+   BANNER PART START
+   =======================================-->
+   <!-- 필요없음 지움
+   <section class="inner-section single-banner">
+      <div class="container">
+         <h2>공지사항12</h2>
+         <ol class="breadcrumb">
+            <li class="breadcrumb-item"><a href="index.html">Home</a></li>
+            <li class="breadcrumb-item active" aria-current="page">
+               <a href="{{ route('notice.list') }}">공지사항</a>
+            </li>
+         </ol>
+      </div>
+   </section>
+   -->
+   <!--=====================================
+   BANNER PART END
+   =======================================-->
 
 
-	<!--=====================================
-	BLOG STANDARD PART START
-	=======================================-->
-	<section class="inner-section blog-standard">
-		<div class="container">
-			<div class="row justify-content-center">
-				<div class="col-lg-12">
-					<div class="row">
-						<div class="col-lg-12">
-							@component('views.partial.table-options')
-							@endcomponent
-						</div>
-						<div class="col-lg-12 list">
-							@forelse($noticePage['Page'] ?? [] as $notice)
-								<div class="blog-card">
-									<div class="blog-content">
-										<ul class="blog-meta">
-											<li>
-												<i class="fa-regular fa-calendar-days"></i>
-												<span>{{ $notice['C4'] }}</span>
-											</li>
-											<li>
-												<i class="fa-solid fa-user"></i>
-												<span>{{ $notice['C9'] }}</span>
-											</li>
-											<li>
-												<i class="fa-solid fa-share-nodes"></i>
-												<span>조회수 0</span>
-											</li>
-										</ul>
-										<h4 class="blog-title">
-											<a href="{{ route('notice.show', $notice['Id']) }}">{{ $notice['C6'] }}</a>
-										</h4>
-										<p class="blog-desc" style="display: none;">{{ $notice['C7'] }}</p>
-										<button class="blog-btn mb-2" onclick="$('.blog-desc').toggle()">
-											<span>자세히보기</span>
-											<i class="fa-solid fa-arrow-right"></i>
-										</button>
-									</div>
-								</div>
-							@empty
-							@endforelse
-						</div>
-						<div class="col-lg-12">
-							<div class="bottom-paginate d-flex">
-								{{ $noticePage['Page']->appends(['limit' => request('limit'), 'sort' => request('sort')])->links() }}
-							</div>
-						</div>
-					</div>
-				</div>
-			</div>
-		</div>
-	</section>
-	<!--=====================================
-	BLOG STANDARD PART END
-	=======================================-->
+   <!--=====================================
+   BLOG STANDARD PART START
+   =======================================-->
+   <section class="inner-section blog-standard">
+      <div class="container">
+         <div class="row justify-content-center">
+            <div class="col-lg-12">
+               <div class="row">
+                  <div class="col-lg-12">
+                     @component('views.partial.table-options')
+                     @endcomponent
+                  </div>
+                  <div class="col-lg-12 list">
+                     @forelse($noticePage['Page'] ?? [] as $notice)
+                        <div class="blog-card">
+                           <div class="blog-content">
+                              <ul class="blog-meta">
+                                 <li>
+                                    <i class="fa-regular fa-calendar-days"></i>
+                                    <span>{{ $notice['C4'] }}</span>
+                                 </li>
+                                 <li>
+                                    <i class="fa-solid fa-user"></i>
+                                    <span>{{ $notice['C9'] }}</span>
+                                 </li>
+                                 <li>
+                                    <i class="fa-solid fa-share-nodes"></i>
+                                    <span>조회수 {{ $notice['C12'] }}</span>
+                                 </li>
+                              </ul>
+                              <h4 class="blog-title">
+                                 <!-- <a href="{{ route('notice.show', $notice['Id']) }}">{{ $notice['C6'] }}</a> -->
+                                            <a href="{{ route('notice.show', $notice['C10']) }}">{{ $notice['C6'] }}</a>
+                              </h4>
+                              <p class="blog-desc" style="display: none;">{{ $notice['C7'] }}</p>
+                              <button class="blog-btn mb-2" onclick="$('.blog-desc').toggle()">
+                                 <span>자세히보기</span>
+                                 <i class="fa-solid fa-arrow-right"></i>
+                              </button>
+                           </div>
+                        </div>
+                     @empty
+                     @endforelse
+                  </div>
+                  <div class="col-lg-12">
+                     <div class="bottom-paginate d-flex">
+                        {{ $noticePage['Page']->appends(['limit' => request('limit'), 'sort' => request('sort')])->links() }}
+                     </div>
+                  </div>
+               </div>
+            </div>
+         </div>
+      </div>
+   </section>
+   <!--=====================================
+   BLOG STANDARD PART END
+   =======================================-->
 </div>
 @endsection

+ 13 - 13
pro/resources/views/my-page/order-list.blade.php

@@ -92,7 +92,7 @@
 	<div class="container">
 		<div class="guide">※ 모든 항목을 올바르게 입력하셔야 문의하기 버튼이 활성화 됩니다.</div>
 	    <div class="captcha_wrap d-flex flex-column">
-                    <div id="captcha" class="g-recaptcha mb-3 mb-md-0" data-sitekey="6LdEDgcqAAAAAFB0ti6Jwq1jH8nltyjBIcnqHJ5M"></div>
+{{--                    <div id="captcha" class="g-recaptcha mb-3 mb-md-0" data-sitekey="6LdEDgcqAAAAAFB0ti6Jwq1jH8nltyjBIcnqHJ5M"></div>--}}
 			<div class="captch_box">
 			    <div class="d-flex modal-body px-0 m-auto py-5">
 			        <div class="form-group mb-1">
@@ -127,18 +127,18 @@
     {{--    <script src="https://www.google.com/recaptcha/api.js?hl={{ getLocale() }}" async defer></script>--}}
     <script src="https://www.google.com/recaptcha/api.js?hl={{ app()->getLocale() }}" async defer></script>
 <script>
-        $('#contact-us-form').on('submit', function(event) {
-            event.preventDefault()
-            event.stopPropagation()
-
-            var v = grecaptcha.getResponse()
-            if (v.length == 0) {
-                return iziToast.error({ title: 'Error', message: "자동입력방지 기능 - '로봇이 아닙니다.'를 체크해주세요" })
-            }
-
-            click_submit_btn(this)
-            this.submit()
-        });
+        // $('#contact-us-form').on('submit', function(event) {
+        //     event.preventDefault()
+        //     event.stopPropagation()
+        //
+        //     var v = grecaptcha.getResponse()
+        //     if (v.length == 0) {
+        //         return iziToast.error({ title: 'Error', message: "자동입력방지 기능 - '로봇이 아닙니다.'를 체크해주세요" })
+        //     }
+        //
+        //     click_submit_btn(this)
+        //     this.submit()
+        // });
 
         $('#contact-us-form input').on('input', function() {
             input_check()

+ 1 - 0
pro/resources/views/page/fitness.blade.php

@@ -0,0 +1 @@
+google-site-verification: googled16702822efe7c7a.html

+ 1 - 0
verifications/naver84fcb68744ec399514f8c1c34b87a0ab.html

@@ -0,0 +1 @@
+naver-site-verification: naver84fcb68744ec399514f8c1c34b87a0ab.html

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff