From be7456ab7618bc57a3f1f3afabd28ed17a0637e9 Mon Sep 17 00:00:00 2001 From: Woraprat <73052317+aeworaprat@users.noreply.github.com> Date: Thu, 9 Mar 2023 00:45:40 +0700 Subject: [PATCH] update project view --- html/exhi/application/views/general/v_general_select.php | 4 ++-- html/exhi/application/views/project/v_project_manage.php | 4 ++-- html/exhi/application/views/project/v_project_manage_user.php | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/html/exhi/application/views/general/v_general_select.php b/html/exhi/application/views/general/v_general_select.php index 0e17ea7..6f5e392 100644 --- a/html/exhi/application/views/general/v_general_select.php +++ b/html/exhi/application/views/general/v_general_select.php @@ -63,10 +63,10 @@ body { /* cursor: pointer; */ } -.card:hover { +/* .card:hover { */ /* transform: scale(1.02); box-shadow: 0 10px 20px rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .06); */ -} +/* } */ .section { padding: 40px 0; diff --git a/html/exhi/application/views/project/v_project_manage.php b/html/exhi/application/views/project/v_project_manage.php index 52ca129..6f91fc0 100644 --- a/html/exhi/application/views/project/v_project_manage.php +++ b/html/exhi/application/views/project/v_project_manage.php @@ -118,7 +118,7 @@ option { </div> </td> <td class="text-center"> - <a type="button" title="ดู" class="btn btn-default view" ><i class="fas fa-search"></i></a> + <a type="button" title="ดู" class="btn btn-default view" w><i class="fas fa-search"></i></a> <button type="button" title="แก้ไข" class="btn btn-default edit"><i class="fas fa-edit"></i></button> </td> </template> @@ -167,7 +167,7 @@ function create_table(data) { update_status(row.project_id, row.status) }) template_clone.querySelector('.edit').addEventListener('click', function(){ window.location.href = '<?php echo site_url().'/Project/show_project_edit/';?>'+row.project_id }) - template_clone.querySelector('.view').addEventListener('click', function(){ window.location.href = '<?php echo site_url().'/General/show_select/';?>'+row.project_id }) + template_clone.querySelector('.view').addEventListener('click', function(){ window.open('<?php echo site_url().'/General/show_select/';?>'+row.project_id) }) tr.appendChild(template_clone); table.appendChild(tr); diff --git a/html/exhi/application/views/project/v_project_manage_user.php b/html/exhi/application/views/project/v_project_manage_user.php index 01d72ee..2611630 100644 --- a/html/exhi/application/views/project/v_project_manage_user.php +++ b/html/exhi/application/views/project/v_project_manage_user.php @@ -118,7 +118,7 @@ option { </div> </td> <td class="text-center"> - <a type="button" title="ดู" class="btn btn-default" ><i class="fas fa-search"></i></a> + <a type="button" title="ดู" class="btn btn-default view" ><i class="fas fa-search"></i></a> <button type="button" title="แก้ไข" class="btn btn-default edit"><i class="fas fa-edit"></i></button> </td> </template> @@ -167,6 +167,7 @@ function create_table(data) { update_status(row.project_id, row.status) }) template_clone.querySelector('.edit').addEventListener('click', function(){ window.location.href = '<?php echo site_url().'/Project/show_project_edit_user/';?>'+row.project_id }) + template_clone.querySelector('.view').addEventListener('click', function(){ window.open('<?php echo site_url().'/General/show_select/';?>'+row.project_id) }) tr.appendChild(template_clone); table.appendChild(tr); }); -- GitLab