From 8a72daa2bd983b3057fbdd5c4ef1d0100832e870 Mon Sep 17 00:00:00 2001 From: Woraprat <73052317+aeworaprat@users.noreply.github.com> Date: Wed, 15 Mar 2023 23:28:43 +0700 Subject: [PATCH] update year --- html/exhi/application/views/project/v_project_manage.php | 4 ++-- html/exhi/application/views/project/v_project_manage_user.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/html/exhi/application/views/project/v_project_manage.php b/html/exhi/application/views/project/v_project_manage.php index 8b1de2d..0cf4cba 100644 --- a/html/exhi/application/views/project/v_project_manage.php +++ b/html/exhi/application/views/project/v_project_manage.php @@ -150,7 +150,7 @@ function create_table(data) { const template_clone = template.content.cloneNode(true); template_clone.querySelector('.index').innerText = index+1 template_clone.querySelector('.name').innerText = row.name_th; - template_clone.querySelector('.year').innerText = (+row.date+543); + template_clone.querySelector('.year').innerText = row.date; let graduation if(row.cluster_id != 0){ graduation = 2 @@ -188,7 +188,7 @@ function create_option_year(data){ data.forEach((row, index) => { option = document.createElement("option") option.setAttribute("value", row.date) - option.text = (+row.date+543) + option.text = row.date; selectList.appendChild(option) }) } 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 d5a3de7..44e9fa8 100644 --- a/html/exhi/application/views/project/v_project_manage_user.php +++ b/html/exhi/application/views/project/v_project_manage_user.php @@ -150,7 +150,7 @@ function create_table(data) { const template_clone = template.content.cloneNode(true); template_clone.querySelector('.index').innerText = index+1 template_clone.querySelector('.name').innerText = row.name_th; - template_clone.querySelector('.year').innerText = (+row.date+543); + template_clone.querySelector('.year').innerText = row.date; let graduation if(row.cluster_id != 0){ graduation = 2 @@ -187,7 +187,7 @@ function create_option_year(data){ data.forEach((row, index) => { option = document.createElement("option") option.setAttribute("value", row.date) - option.text = (+row.date+543) + option.text = row.date selectList.appendChild(option) }) } -- GitLab