From 184175000c21e3a6833c1660fd9bf0caaa776c7a Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Fri, 23 May 2025 11:05:40 +0530 Subject: [PATCH] CC deopdown added in make creation : GWM --- app/Controllers/Make.php | 6 ++++++ app/Views/make_list.php | 12 +++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/app/Controllers/Make.php b/app/Controllers/Make.php index 116a822..eb8601e 100755 --- a/app/Controllers/Make.php +++ b/app/Controllers/Make.php @@ -4,6 +4,7 @@ namespace App\Controllers; use App\Models\BikemodelsModel; use App\Models\BikemakeModel; +use App\Models\ComplaintModel; use CodeIgniter\API\ResponseTrait; @@ -12,12 +13,15 @@ class Make extends BaseController public $session; use ResponseTrait; + public $BikemakeModel; + public $ComplaintModel; public function __construct() { $this->session = session(); $this->BikemakeModel = new BikemakeModel(); + $this->ComplaintModel = new ComplaintModel(); } public function index() @@ -26,6 +30,8 @@ class Make extends BaseController $BikemakeModel = new BikemakeModel(); $make = $BikemakeModel->orderBy('make')->findAll(); $data['make']=$make; + $cubiccapacity = $this->ComplaintModel->getCubicCapacityName(); + $data['cubiccapacity']=$cubiccapacity; return view('make_list',$data); } diff --git a/app/Views/make_list.php b/app/Views/make_list.php index 1630633..c45d436 100755 --- a/app/Views/make_list.php +++ b/app/Views/make_list.php @@ -115,6 +115,15 @@ +
+ + +
@@ -148,7 +157,8 @@ // console.log( $('#modelname').val()); var formData = { make_id: $('#make_id').val(), - modelname: $('#modelname').val() + modelname: $('#modelname').val(), + cubiccapacity: $('#cubiccapacity').val() }; var model_id =0; $(params).attr('disabled','true').text('Processing...');