diff --git a/extra/site-guide.html b/extra/site-guide.html index 1d662c0..9a34cee 100644 --- a/extra/site-guide.html +++ b/extra/site-guide.html @@ -168,7 +168,7 @@
  • s20260612_04_jq_calculator.html(學校作業)
  • sechskies_brand_color_spec.html(品牌色規範)
  • totoga2/readable_ebookcontent.html(電子書內容草稿)
  • -
  • vedio/vedio-list.html(深夜清單,追劇進度預覽頁)
  • +
  • vedio/vedio-list.html(影片清單,追劇進度預覽頁)
  • vedio/vedio-list/(追劇清單後台練習,非本站主線)
  • @@ -218,7 +218,7 @@ 2026-07-30 分岔 - 本機原有 4 個未 push commit(variety/vedio-list.html 深夜清單、concert/captain-aura.htmlyellow-note/practice-room.html 等),同時遠端 origin/main 多了 1 個新 commit(calendar2026.html 2026 行事曆頁+admin/ 後台系統,改動 assets/js/map.jsmember/member.html) + 本機原有 4 個未 push commit(variety/vedio-list.html 影片清單、concert/captain-aura.htmlyellow-note/practice-room.html 等),同時遠端 origin/main 多了 1 個新 commit(calendar2026.html 2026 行事曆頁+admin/ 後台系統,改動 assets/js/map.jsmember/member.html) 衝突檔案 diff --git a/vedio/vedio-list.html b/vedio/vedio-list.html index 5348706..00f69ff 100644 --- a/vedio/vedio-list.html +++ b/vedio/vedio-list.html @@ -351,15 +351,11 @@

    綜藝裡的失控笑聲、戲劇裡的心跳停拍,都值得被好好記下來:看到哪一季、哪一集、哪一句台詞剛把你釘在沙發上。

    - 這裡先收兩部最近在追的:一部是把人丟進肯亞還能笑到缺氧的韓綜, - 一部是把 1997 年的青春寫得又甜又疼的韓劇。 + 把人丟進肯亞還能笑到缺氧的韓綜,把 1997 年的青春寫得又甜又疼的韓劇。 點進去,進度與入口都在;先別急著一次追完,慢慢養也很好看。

    - +
    diff --git a/vedio/vedio-list/admin.php b/vedio/vedio-list/admin.php index 0790701..ffb1c4b 100644 --- a/vedio/vedio-list/admin.php +++ b/vedio/vedio-list/admin.php @@ -5,7 +5,7 @@ - 深夜清單|管理後台 + 影片清單|管理後台 @@ -14,7 +14,7 @@
    -

    深夜清單後台

    +

    影片清單後台

    ADMIN · CRUD
    diff --git a/vedio/vedio-list/back/add.php b/vedio/vedio-list/back/add.php index fbb0f7b..7978465 100644 --- a/vedio/vedio-list/back/add.php +++ b/vedio/vedio-list/back/add.php @@ -1,40 +1,51 @@ q("SELECT MAX(`rank`) AS m FROM `dramas`"); - $nextRank = ((int)($maxRank[0]['m'] ?? 0)) + 1; + $type = $_POST['type'] ?? ''; - $data = [ - 'title' => trim($_POST['title'] ?? ''), - 'type' => $_POST['type'] ?? 'drama', - 'platform' => $_POST['platform'] ?? '其他', - 'watch_url' => trim($_POST['watch_url'] ?? ''), - 'current_season' => max(1, (int)($_POST['current_season'] ?? 1)), - 'current_episode' => max(0, (int)($_POST['current_episode'] ?? 0)), - 'current_position' => trim($_POST['current_position'] ?? ''), - 'progress_note' => trim($_POST['progress_note'] ?? ''), - 'status' => $_POST['status'] ?? 'want', - 'rating' => $_POST['rating'] !== '' ? $_POST['rating'] : null, - 'intro' => trim($_POST['intro'] ?? ''), - 'note' => trim($_POST['note'] ?? ''), - 'sh' => 1, - 'rank' => $nextRank, - ]; + if (!in_array($type, ['variety', 'drama'], true)) { + $error = '請選擇正確的類型(綜藝或戲劇)。'; + } else { + $maxRank = $Drama->q("SELECT MAX(`rank`) AS m FROM `dramas`"); + $nextRank = ((int)($maxRank[0]['m'] ?? 0)) + 1; - // DB::save 用字串拼接;null 改空字串避免 SQL 破掉 - if ($data['rating'] === null) { - $data['rating'] = ''; + $data = [ + 'title' => trim($_POST['title'] ?? ''), + 'type' => $type, + 'platform' => $_POST['platform'] ?? '其他', + 'watch_url' => trim($_POST['watch_url'] ?? ''), + 'current_season' => max(1, (int)($_POST['current_season'] ?? 1)), + 'current_episode' => max(0, (int)($_POST['current_episode'] ?? 0)), + 'current_position' => trim($_POST['current_position'] ?? ''), + 'progress_note' => trim($_POST['progress_note'] ?? ''), + 'status' => $_POST['status'] ?? 'want', + 'rating' => $_POST['rating'] !== '' ? $_POST['rating'] : null, + 'intro' => trim($_POST['intro'] ?? ''), + 'note' => trim($_POST['note'] ?? ''), + 'sh' => 1, + 'rank' => $nextRank, + ]; + + // DB::save 用字串拼接;null 改空字串避免 SQL 破掉 + if ($data['rating'] === null) { + $data['rating'] = ''; + } + + $Drama->save($data); + to("?do=drama"); + exit; } - - $Drama->save($data); - to("?do=drama"); - exit; } ?>

    新增作品

    -
    + +

    + + + @@ -54,7 +65,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { - + + diff --git a/vedio/vedio-list/css/vedio-list.css b/vedio/vedio-list/css/vedio-list.css index da9d127..19d8bed 100644 --- a/vedio/vedio-list/css/vedio-list.css +++ b/vedio/vedio-list/css/vedio-list.css @@ -99,6 +99,19 @@ text-align: center; padding: 0.75rem; box-sizing: border-box; + overflow: hidden; +} + +.vedio-list-page .drama-card__poster--image { + padding: 0; + background: var(--color-surface-soft); +} + +.vedio-list-page .drama-card__poster--image img { + width: 100%; + height: 100%; + object-fit: cover; + display: block; } .vedio-list-page .drama-card__meta { diff --git a/vedio/vedio-list/dramas.sql b/vedio/vedio-list/dramas.sql index f9b63f1..3eb68ab 100644 --- a/vedio/vedio-list/dramas.sql +++ b/vedio/vedio-list/dramas.sql @@ -1,4 +1,4 @@ --- 深夜清單 / 追劇資料庫 +-- 影片清單 / 追劇資料庫 -- 本機 XAMPP:phpMyAdmin 匯入此檔即可 CREATE DATABASE IF NOT EXISTS `vedio_list` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; diff --git a/vedio/vedio-list/index.php b/vedio/vedio-list/index.php index cfe89e1..9e0bbcd 100644 --- a/vedio/vedio-list/index.php +++ b/vedio/vedio-list/index.php @@ -5,7 +5,7 @@ - 水晶男孩|深夜清單 + 水晶男孩|影片清單 @@ -17,7 +17,7 @@
    -

    深夜清單

    +

    影片清單

    DRAMA & VARIETY WATCH LIST