From 5f8bb7a0472838bbaff2201f0dcc0c62d1a785ad Mon Sep 17 00:00:00 2001 From: Nitipon094 <62160094@go.buu.ac.th> Date: Wed, 15 Mar 2023 09:33:24 +0700 Subject: [PATCH] modify search --- html/exhi/application/views/general/v_general_home.php | 3 +++ html/exhi/application/views/general/v_search.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/html/exhi/application/views/general/v_general_home.php b/html/exhi/application/views/general/v_general_home.php index 14a03dd..a117155 100644 --- a/html/exhi/application/views/general/v_general_home.php +++ b/html/exhi/application/views/general/v_general_home.php @@ -222,6 +222,9 @@ <div class="content" style="padding: 20px"> <div class="container-fluid"> <div class="row"> + <div class="container-fluid g-3"> + <button class="button button-mid" data-toggle="modal" data-target="#advanceSearcheModal">ค้นหาขั้นสูง</button><br><br><br><br> + </div> <div class="col-md-2 position-relative"> <div class="form-group"> <label for="year" class="form-label">ปี</label> diff --git a/html/exhi/application/views/general/v_search.php b/html/exhi/application/views/general/v_search.php index a8909de..21dc612 100644 --- a/html/exhi/application/views/general/v_search.php +++ b/html/exhi/application/views/general/v_search.php @@ -148,6 +148,7 @@ $cluster = (!isset($cluster)) ? '' : $cluster; $team = (!isset($team)) ? '' : $team; $grade = (!isset($grade)) ? '' : $grade; $year = (!isset($year)) ? '' : $year; +$search = (!isset($search)) ? 'all' : $search; ?> <div class="wrapper"> <div class="container-fluid"> @@ -203,14 +204,13 @@ $year = (!isset($year)) ? '' : $year; </footer> <script> $(document).ready(function() { - if (<?php echo $tag; ?> != '') { + if ('<?php echo $search; ?>' == 'tag') { load_data_tag() load_num_project_tag() } else { load_data() load_num_project() } - }); let current_page = 1; -- GitLab