From ac17b8a84dbdfc46a74a2e8fa75ef533fcb3f557 Mon Sep 17 00:00:00 2001 From: Nitipon094 <62160094@go.buu.ac.th> Date: Sun, 26 Mar 2023 22:27:36 +0700 Subject: [PATCH] edit card tag --- html/exhi/application/views/general/v_general_home.php | 8 +++++--- html/exhi/application/views/general/v_project_2.php | 4 +++- html/exhi/application/views/general/v_project_3.php | 4 +++- html/exhi/application/views/general/v_project_4.php | 4 +++- html/exhi/application/views/general/v_search.php | 4 +++- 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/html/exhi/application/views/general/v_general_home.php b/html/exhi/application/views/general/v_general_home.php index 9d6ff3b..b26a95d 100644 --- a/html/exhi/application/views/general/v_general_home.php +++ b/html/exhi/application/views/general/v_general_home.php @@ -686,10 +686,12 @@ html += `<div><span><b>${row.name_th}</b></span></div>`; (row.cluster_id == 0 & row.team_id == 0) ? html += `<span>${row.prefix}${row.first_name} ${row.last_name}</span><br>`: html += `<span>บริษัท : ${row.cp_name}</span><br>`; (row.cluster_id == 0 & row.team_id == 0) ? html += `<span>อาจารย์ที่ปรึกษา : ${row.is_name}</span><br>`: (row.cluster_id != 0) ? html += `<span>มกุล : ${row.ct_name}</span><br>` : html += `<span>ทีม : ${row.t_name}</span><br>`; - html += '<div class="row mt-2">'; + html += '<div class="card-tags row mt-2">'; row.tags.forEach((t_row, t_index) => { - html += `<div class='col-4 card text-center rancolor'>`; - html += `<span >${t_row.tag_name}</span>`; + html += `<div class='col-md-4 '>`; + html += `<div class='card text-center rancolor'>`; + html += `<span>${t_row.tag_name}</span>`; + html += `</div>`; html += `</div>`; }); html += '</div>'; diff --git a/html/exhi/application/views/general/v_project_2.php b/html/exhi/application/views/general/v_project_2.php index 218d56e..480f63c 100644 --- a/html/exhi/application/views/general/v_project_2.php +++ b/html/exhi/application/views/general/v_project_2.php @@ -264,9 +264,11 @@ html += `<span>มกุล : ${row.ct_name}</span><br>`; html += '<div class="row mt-2">'; row.tags.forEach((t_row, t_index) => { - html += `<div class='col-md-4 card article-loop text-center rancolor'>`; + html += `<div class='col-md-4 '>`; + html += `<div class='card text-center rancolor'>`; html += `<span>${t_row.tag_name}</span>`; html += `</div>`; + html += `</div>`; }); html += '</div>'; html += '</div>'; diff --git a/html/exhi/application/views/general/v_project_3.php b/html/exhi/application/views/general/v_project_3.php index 9706706..2701807 100644 --- a/html/exhi/application/views/general/v_project_3.php +++ b/html/exhi/application/views/general/v_project_3.php @@ -261,9 +261,11 @@ html += `<span>ทีม : ${row.t_name}</span><br>`; html += '<div class="row mt-2">'; row.tags.forEach((t_row, t_index) => { - html += `<div class='col-md-4 card article-loop text-center rancolor'>`; + html += `<div class='col-md-4 '>`; + html += `<div class='card text-center rancolor'>`; html += `<span>${t_row.tag_name}</span>`; html += `</div>`; + html += `</div>`; }); html += '</div>'; html += '</div>'; diff --git a/html/exhi/application/views/general/v_project_4.php b/html/exhi/application/views/general/v_project_4.php index 8fa3309..b38647b 100644 --- a/html/exhi/application/views/general/v_project_4.php +++ b/html/exhi/application/views/general/v_project_4.php @@ -344,9 +344,11 @@ html += `<span>อาจารย์ที่ปรึกษา : ${row.is_name}</span><br>`; html += '<div class="row mt-2">'; row.tags.forEach((t_row, t_index) => { - html += `<div class='col-md-4 card article-loop text-center rancolor'>`; + html += `<div class='col-md-4 '>`; + html += `<div class='card text-center rancolor'>`; html += `<span>${t_row.tag_name}</span>`; html += `</div>`; + html += `</div>`; }); html += '</div>'; html += '</div>'; diff --git a/html/exhi/application/views/general/v_search.php b/html/exhi/application/views/general/v_search.php index c3780d2..79d1ccf 100644 --- a/html/exhi/application/views/general/v_search.php +++ b/html/exhi/application/views/general/v_search.php @@ -371,9 +371,11 @@ $s_value = (!isset($s_value)) ? '' : $s_value; (row.cluster_id == 0 & row.team_id == 0) ? html += `<span>อาจารย์ที่ปรึกษา : ${row.is_name}</span><br>`: (row.cluster_id != 0) ? html += `<span>มกุล : ${row.ct_name}</span><br>` : html += `<span>ทีม : ${row.t_name}</span><br>`; html += '<div class="row mt-2">'; row.tags.forEach((t_row, t_index) => { - html += `<div class='col-md-4 card article-loop text-center rancolor'>`; + html += `<div class='col-md-4 '>`; + html += `<div class='card text-center rancolor'>`; html += `<span>${t_row.tag_name}</span>`; html += `</div>`; + html += `</div>`; }); html += '</div>'; html += '</div>'; -- GitLab