diff --git a/html/exhi/application/models/project/Da_project.php b/html/exhi/application/models/project/Da_project.php index 867dfb0d52673d81071d57c43df66eb139b2629b..3985c300091b152a8d52d4cac6998ef91b2b1abf 100644 --- a/html/exhi/application/models/project/Da_project.php +++ b/html/exhi/application/models/project/Da_project.php @@ -81,6 +81,8 @@ class Da_project extends Exhibition_Model ,date = ? ,company_id = ? ,cluster_id = ? + ,team_id = 0 + ,instructor_id = 0 WHERE project_id = ?"; $this->db->query($sql, [$name, $name_en, $image_logo, $image_cover, $year, $company, $select, $id]); } @@ -94,6 +96,8 @@ class Da_project extends Exhibition_Model ,date = ? ,company_id = ? ,team_id = ? + ,cluster_id = 0 + ,instructor_id = 0 WHERE project_id = ?"; $this->db->query($sql, [$name, $name_en, $image_logo, $image_cover, $year, $company, $select, $id]); } @@ -106,6 +110,8 @@ class Da_project extends Exhibition_Model ,image_cover = ? ,date = ? ,company_id = ? + ,cluster_id = 0 + ,team_id = 0 ,instructor_id = ? WHERE project_id = ?"; $this->db->query($sql, [$name, $name_en, $image_logo, $image_cover, $year, $company, $select, $id]); diff --git a/html/exhi/application/models/project/M_project.php b/html/exhi/application/models/project/M_project.php index b36c9b4f66f01249416cd03e50a105b6ffa75bf9..7ca185b50fa59e1c1a1ad52ba627581a2d562aab 100644 --- a/html/exhi/application/models/project/M_project.php +++ b/html/exhi/application/models/project/M_project.php @@ -46,6 +46,7 @@ class M_project extends Da_project public function get_project_by_id($id){ $sql = "SELECT * FROM {$this->db_name}.project + join company on project.company_id = company.company_id Where project_id = $id"; $query = $this->db->query($sql); return $query; diff --git a/html/exhi/application/views/general/v_general_select.php b/html/exhi/application/views/general/v_general_select.php index c8d5d63ba693aa2dc5af7784ff21d8e6be97abf3..a658009d1010cdb999e7bb85154087b6dce435f0 100644 --- a/html/exhi/application/views/general/v_general_select.php +++ b/html/exhi/application/views/general/v_general_select.php @@ -177,6 +177,9 @@ span{ <div class="row"> <p style="white-space: pre-line; font-size: 20px; margin-left: 5px;"><?php echo $project->name_th ?></p> </div> + <div class="row"> + <p style="white-space: pre-line; font-size: 20px; margin-left: 5px;">บริษัท : <?php echo $project->name ?></p> + </div> <?php if($project->cluster_id != 0){ ?> <div class="row"> <p style="white-space: pre-line; font-size: 20px; margin-left: 5px;">มกุล : <?php echo $project->select ?></p>