From 3f1b5c18e0328f466d589c37122510a62f07fd07 Mon Sep 17 00:00:00 2001 From: saravanakumar_kandasami Date: Tue, 2 May 2017 12:02:40 +0530 Subject: [PATCH] change costcenter based MVC --- application/controllers/CostCenter.php | 5 +- application/logs/log-2017-05-02.php | 7 + application/views/addCostCenter.php | 603 +++++++++++-------------- 3 files changed, 267 insertions(+), 348 deletions(-) create mode 100644 application/logs/log-2017-05-02.php diff --git a/application/controllers/CostCenter.php b/application/controllers/CostCenter.php index 426922aa..78a1bf3f 100644 --- a/application/controllers/CostCenter.php +++ b/application/controllers/CostCenter.php @@ -3,7 +3,7 @@ require APPPATH . '/libraries/BaseController.php'; /** - * Class : purchaseorder (PurchaseorderController) + * Class : Cost Center (Cost Center Controller) * User Class to control all user related operations. * @author : VenbaMail Mali * @version : 1.1 @@ -18,6 +18,9 @@ class CostCenter extends BaseController { parent::__construct(); $this->load->model('costcenter_model'); + //$this->load->library('session'); + $this->load->library('form_validation'); + $this->isLoggedIn(); } /** diff --git a/application/logs/log-2017-05-02.php b/application/logs/log-2017-05-02.php new file mode 100644 index 00000000..8da17d4b --- /dev/null +++ b/application/logs/log-2017-05-02.php @@ -0,0 +1,7 @@ + + +ERROR - 2017-05-02 07:36:45 --> Severity: Notice --> Undefined variable: option C:\xampp\htdocs\siddharth_application\application\views\addCostCenter.php 86 +ERROR - 2017-05-02 07:36:45 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\system\helpers\form_helper.php 332 +ERROR - 2017-05-02 08:23:39 --> Severity: Notice --> Undefined variable: option C:\xampp\htdocs\siddharth_application\application\views\addCostCenter.php 83 +ERROR - 2017-05-02 08:23:39 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\system\helpers\form_helper.php 332 +ERROR - 2017-05-02 08:23:56 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\system\helpers\form_helper.php 332 diff --git a/application/views/addCostCenter.php b/application/views/addCostCenter.php index ef91608d..9950c462 100644 --- a/application/views/addCostCenter.php +++ b/application/views/addCostCenter.php @@ -33,7 +33,13 @@
- + +
+ 'CostCode','value' => set_value('CostCode'),'id'=>'CostCode', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
@@ -41,17 +47,26 @@
- +
+ 'CostName','value' => set_value('CostName'),'id'=>'CostName', 'class' => 'form-control' ,'required' => 'true'); + echo form_input($data); + ?> +
-
- Department - +
+ +
+ +
@@ -62,362 +77,246 @@
Selected Department - + +

-
+
- + - - -
-
-
- - -
+

+
- - - +
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Budget Type Budget Year Budget Amount Remarks Action
PO20170.00Remarks - -
SO20170.00Remarks - -
IO20170.00Remarks - -
CO20170.00Remarks - -
+ + + + + PO + 2017 + 0.00 + Remarks + + + -
-
-
+ + + + SO + 2017 + 0.00 + Remarks + + + + + + + IO + 2017 + 0.00 + Remarks + + + + + + + + CO + 2017 + 0.00 + Remarks + + + + + + + + + + +
+ + - + @@ -456,7 +355,17 @@ $("#mytable #checkall").click(function () { - +