diff --git a/application/controllers/login.php b/application/controllers/login.php index fb0dec95..deecba61 100644 --- a/application/controllers/login.php +++ b/application/controllers/login.php @@ -82,10 +82,10 @@ class Login extends CI_Controller { log_message('ERROR','#####loggin_name : ' . $res->FirstName); $sessionArray = array('userId'=>$res->userId, - // 'role'=>$res->roleId, + 'role'=>$res->roleId, 'roleText'=>$res->role, 'name'=>$res->FirstName, - //'Designation'=>$res->Designation, + // 'Designation'=>$res->Designation, 'DEPCode'=>$res->DEPCode, 'HeadDept'=>$res->HeadDept, 'depaccess'=>$this->login_model->Accessdep($res->EmpID), diff --git a/application/libraries/BaseController.php b/application/libraries/BaseController.php index e0a76c98..5767b992 100644 --- a/application/libraries/BaseController.php +++ b/application/libraries/BaseController.php @@ -40,14 +40,14 @@ class BaseController extends CI_Controller { if (! isset ( $isLoggedIn ) || $isLoggedIn != TRUE) { redirect ( 'login' ); } else { - //$this->role = $this->session->userdata ( 'role' ); + $this->role = $this->session->userdata ( 'role' ); // session_start(); log_message('ERROR','#####In BaseController - isLoggedIn function ci session : ' . $this->session->userdata ( 'name' )); // log_message('ERR?OR','#####In BaseController - isLoggedIn function session super global methid : ' . $_SESSION['name']); $this->vendorId = $this->session->userdata ( 'userId' ); $this->name = $this->session->userdata ( 'name' ); $this->roleText = $this->session->userdata ( 'roleText' ); - //$this->Designation = $this->session->userdata ( 'Designation' ); + // $this->Designation = $this->session->userdata ( 'Designation' ); $this->DEPCode = $this->session->userdata ( 'DEPCode' ); $this->HeadDept = $this->session->userdata ( 'HeadDept' ); $this->DepartmentName = $this->session->userdata ( 'DepartmentName' ); diff --git a/application/views/dashboard.php b/application/views/dashboard.php index c26fca56..44e691db 100644 --- a/application/views/dashboard.php +++ b/application/views/dashboard.php @@ -1,886 +1,965 @@ EmpCount; + $Empcnt = ''; + if (!empty($EmpCount)) { + foreach ($EmpCount as $Emp) { + $Empcnt = $Emp->EmpCount; + } } - - -} - ?> - - +
-
- - -
- -
-

Accounts Department Dashboard

-
- -
- -
-
- -
-
-
- -
- Employees - -
-
-
-
-
- -
-
- - - - - - - - - - - - - - - -
- -
- -
- -
- -
- -
-
- -
-

TOTAL NO OF EMPLOYEES

-
- -

totemp;?>

-

 

- - - -
-
- -
-
-
-
- -
- -
-

TOTAL LOAN

-
- - -

totloan;?>

-

 

- - - +
+ + +
+ +
+
+

Accounts Department Dashboard

+
+
+ +
+ +
+
+ +
+
+
+ +
+ Employees +
- -
- -
- - - LOAN TO BE RECOVERED : - - - - totrec;?> - - -
-
- - -
- - -
- -

SALARY COST

-
- -

-

- - - -
-
- - -
- THIS MONTH :
-
-
- -
- - - - - -
- -
-

TOTAL EMPLOYEES ABSENT

- -

-
- -

- - - -

-

ABSENT


- -
- -

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

- - 'Select Employee'); - //print_r( $options); - - if(!empty($emplist)) - { - foreach ($emplist as $SID): - - - $options[$SID->EmpID] = $SID->name.' '.' - '.' '.$SID->EmpID; - - endforeach; - } - - echo form_dropdown('emp', $options,set_value('emp'),'id="emp"' ,'class="form-control select2'); - - ?> - -

- - - - - - Click here to Employee Performance Report
+
- - -
-
+
+
+ + -
- -
-
-
+ + + + + + + -
-
-
- -
-

0

-
Working Days
- -
- -
-

0

-
Days Present
- -
- -
+ +
+ +
+ +
+ +
+ +
+ +
+
+ +
+ +

TOTAL NO OF EMPLOYEES

+
+
+ -
- + echo form_dropdown('emp', $options, set_value('emp'), 'id="emp"', 'class="form-control select2'); - -
- - + + + +
+
+ +
+ +
+
+
+ +
+
+
+ +
+

0

+
Working Days
+ +
+ +
+

0

+
Days Present
+ +
+ +
+ +
-
-
-
-
-

0

-
Working Days
- -
- -
-

0

-
Days Present
- -
- - +
+ +
+
+ +
+ +
+
+
+
+

0

+
Working Days
+ +
+ +
+

0

+
Days Present
+ +
+ + - -
+ +
+
-
- + -
- +
+ - + + +
+ +
+
+

NAME OF ABSENTEES

+ +
+ + -
- -
-
-

NAME OF ABSENTEES

-
- - - - -
- -
- -
- +
+ +
+ +
+ -
- - - - - '; - - ?> - + '; -
- - - + + ?> + +
- - + + +
- - - + + +
- + + +
- + +
+ + + + + + - - - - - - -
- -
- - - + - + }); - - - -
- -
-

Admin Dashboard

-
- -
-
- - - -
- -
-
-

44

+ }); + -

User Registrations

-
-
- -
- More info -
-
- - -
-
- -
- - + + - - - -
- -
-

Manager Department Dashboard

-
- -
- -
-
- -
-
-
- -
- Employees - -
-
-
-
-
- -
-
- - +
+ +
+

Admin Dashboard

+
+ +
+
- - - - - + -
-
- -
-
- -
- - - - -
- TODAY'S REQUESTS - TODAY_REQUESTS;?> + - -
- - - + - -
+ +
-
- - - - - + -
-
-
-
-

Monthly Purchase Order

+
+
+
+
+

Monthly Purchase Order

- -
- -
-
-
-

- - = 4) { - $yearl = date('Y').'-'.(date('Y')+1); - } else { - $yearl = (date('Y')-1).'-'.date('Y'); - } - $ab=$yearl; - $fa=substr($ab,0,-5); - $aa=substr($ab,5,5); - echo '1 April, '.$fa.' - 31 March, '.$aa.''; - ?> - - -

+
+ +
+
+
+

+ + = 4) { + $yearl = date('Y') . '-' . (date('Y') + 1); + } else { + $yearl = (date('Y') - 1) . '-' . date('Y'); + } + $ab = $yearl; + $fa = substr($ab, 0, -5); + $aa = substr($ab, 5, 5); + echo '1 April, ' . $fa . ' - 31 March, ' . $aa . ''; + ?> -

- - + +

+ +
+ + +
+ +
+ + + +
+      BUDGET AMOUNT + +

+ +
+ + SERVICE   :  totalservicebudget; ?> + +
+ + +
+
+ +
+ + REVENUE :  totalrevenuebudget; ?> + + + +
+ +
+ +
+ + IMPORT    :  totalimportbudget; ?> + + + +
+
+ +
+ + CAPITAL    :  totalcapitalbudget; ?> + + + +
+ + + +
+ + +
- + + +
- - -
-      BUDGET AMOUNT - -

- -
- - SERVICE   :  totalservicebudget;?> - -
- - -
-
- -
- - REVENUE :  totalrevenuebudget;?> - - - -
- -
- -
- - IMPORT    :  totalimportbudget;?> - - - -
-
- -
- - CAPITAL    :  totalcapitalbudget;?> - - - -
- - - -
- - - +
- - - -
- -
-
-
- - + + + - - - + + + - - - - - - - - -
- -
- - - + - ] - }; - - - var salesChartOptions = { - //Boolean - If we should show the scale at all - showScale: true, - //Boolean - Whether grid lines are shown across the chart - scaleShowGridLines: false, - //String - Colour of the grid lines - scaleGridLineColor: "rgba(0,0,0,.05)", - //Number - Width of the grid lines - scaleGridLineWidth: 1, - //Boolean - Whether to show horizontal lines (except X axis) - scaleShowHorizontalLines: true, - //Boolean - Whether to show vertical lines (except Y axis) - scaleShowVerticalLines: true, - //Boolean - Whether the line is curved between points - bezierCurve: true, - //Number - Tension of the bezier curve between points - bezierCurveTension: 0.3, - //Boolean - Whether to show a dot for each point - pointDot: true, - //Number - Radius of each point dot in pixels - pointDotRadius: 4, - //Number - Pixel width of point dot stroke - pointDotStrokeWidth: 1, - //Number - amount extra to add to the radius to cater for hit detection outside the drawn point - pointHitDetectionRadius: 20, - //Boolean - Whether to show a stroke for datasets - datasetStroke: true, - //Number - Pixel width of dataset stroke - datasetStrokeWidth: 5, - //Boolean - Whether to fill the dataset with a color - datasetFill: true, - //String - A legend template - legendTemplate: "
    -legend\"><% for (var i=0; i
  • \"><%=datasets[i].label%>
  • <%}%>
", - //Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container - maintainAspectRatio: false, - //Boolean - whether to make the chart responsive to window resizing - responsive: true - }; + + + + + + + -legend\"><% for (var i=0; i
  • \"><%if(segments[i].label){%><%=segments[i].label%><%}%>
  • <%}%>", - //String - A tooltip template - tooltipTemplate: "<%=value %> <%=label%> users" - }; - //Create pie or douhnut chart - // You can switch between pie and douhnut using the method below. - pieChart.Doughnut(PieData, pieOptions); - // //----------------- - // //- END PIE CHART - - // //----------------- - - - - - - - - - - -
    + ?> +
    \ No newline at end of file diff --git a/application/views/inwardgateregister.php b/application/views/inwardgateregister.php index 3a595f84..5ed7501a 100644 --- a/application/views/inwardgateregister.php +++ b/application/views/inwardgateregister.php @@ -290,7 +290,7 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));