Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
master-absenku-custom
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nurchamim
master-absenku-custom
Commits
ef3c3a2b
Commit
ef3c3a2b
authored
Jan 27, 2026
by
nurchamim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
menghilangkan session status khusus
parent
23931417
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
30 additions
and
38 deletions
+30
-38
application/controllers/Auth.php
+2
-6
application/controllers/Auto_login.php
+2
-5
application/controllers/Dropdown_menu.php
+3
-4
application/controllers/Jabatan.php
+1
-1
application/controllers/Lokasi.php
+1
-1
application/controllers/Pengalaman_kerja.php
+1
-1
application/controllers/Pengumuman.php
+1
-1
application/views/jabatan/home.php
+4
-4
application/views/karyawan/data_diri/detail.php
+5
-5
application/views/karyawan/data_diri/form.php
+3
-3
application/views/lokasi/google/home.php
+1
-1
application/views/lokasi/home.php
+1
-1
application/views/pkwt/master/ttd/home.php
+1
-1
application/views/shift/home.php
+4
-4
No files found.
application/controllers/Auth.php
View file @
ef3c3a2b
...
...
@@ -92,14 +92,12 @@ class Auth extends MY_Controller
users.id_company,
tb_paket.komponen_web,
tb_paket.komponen,
master_jabatan.level_user,
IF(p_notification.notif_hrd = '1','1',IF(p_notification.notif_finance = '1','6','0')) AS level_khusus"
)
master_jabatan.level_user"
)
->
from
(
"users"
)
->
join
(
"data_karyawan"
,
"data_karyawan.id_karyawan = users.id_karyawan"
)
->
join
(
"master_company"
,
"data_karyawan.id_company = master_company.id_company"
)
->
join
(
"tb_paket"
,
"tb_paket.id_tb_paket = master_company.id_tb_paket"
)
->
join
(
"master_jabatan"
,
"master_jabatan.id_jabatan = data_karyawan.id_jabatan"
)
->
join
(
"p_notification"
,
"p_notification.id_karyawan = data_karyawan.id_karyawan"
,
"LEFT"
)
->
where
(
"users.username"
,
$username
)
->
where
(
"data_karyawan.status IN ('1','2','3','4')"
);
...
...
@@ -295,7 +293,6 @@ class Auth extends MY_Controller
'id_departemen_arr'
=>
$id_departemen_arr
,
'id_jabatan'
=>
$rows
->
id_jabatan
,
'level_user'
=>
$level_user
,
'level_khusus'
=>
$rows
->
level_khusus
,
'is_sales'
=>
(
$is_sales
&&
$is_sales
->
num_rows
()
>
0
)
?
true
:
false
,
'is_sales_skip_approval'
=>
(
$is_sales
&&
$is_sales
->
row
()
->
approval
==
'0'
)
||
(
$level_user
==
'1'
)
?
true
:
false
,
'is_sales_atasan'
=>
(
$is_sales_atasan
>
0
)
?
true
:
false
,
...
...
@@ -439,8 +436,7 @@ class Auth extends MY_Controller
$_SESSION
[
'id_cabang'
],
$_SESSION
[
'id_departemen'
],
$_SESSION
[
'id_jabatan'
],
$_SESSION
[
'level_user'
],
$_SESSION
[
'level_khusus'
]
$_SESSION
[
'level_user'
]
);
redirect
(
route
(
'login'
));
...
...
application/controllers/Auto_login.php
View file @
ef3c3a2b
...
...
@@ -21,12 +21,10 @@ class Auto_login extends CI_Controller{
data_karyawan.id_jabatan,
data_karyawan.foto,
users.id_company,
master_jabatan.level_user,
IF(p_notification.notif_hrd = '1','1',IF(p_notification.notif_finance = '1','6','0')) AS level_khusus"
)
master_jabatan.level_user"
)
->
from
(
"users"
)
->
join
(
"data_karyawan"
,
"data_karyawan.id_karyawan = users.id_karyawan"
)
->
join
(
"master_jabatan"
,
"master_jabatan.id_jabatan = data_karyawan.id_jabatan"
)
->
join
(
"p_notification"
,
"p_notification.id_karyawan = data_karyawan.id_karyawan"
,
"LEFT"
)
->
where
(
"users.username"
,
$username
)
->
where
(
"data_karyawan.status IN ('1','2','3','4')"
);
$select_user
=
$this
->
db
->
get
();
...
...
@@ -52,8 +50,7 @@ class Auto_login extends CI_Controller{
'id_departemen'
=>
$rows
->
id_departemen
,
'id_departemen_arr'
=>
$id_departemen_arr
,
'id_jabatan'
=>
$rows
->
id_jabatan
,
'level_user'
=>
$level_user
,
'level_khusus'
=>
$rows
->
level_khusus
);
'level_user'
=>
$level_user
);
$session_v2
=
array
(
'id_user'
=>
$id_user
,
'usergroup'
=>
$level_user
,
...
...
application/controllers/Dropdown_menu.php
View file @
ef3c3a2b
...
...
@@ -357,13 +357,12 @@ class Dropdown_menu extends MY_Controller
public
function
lokasi_absensi
()
{
$search
=
$this
->
input
->
get
(
"q"
);
$search
=
$this
->
input
->
get
(
"q"
);
$id_company
=
$this
->
id_company
;
$level_user
=
$this
->
level_user
;
$level_khusus
=
$this
->
level_khusus
;
$id_cabang
=
$this
->
id_cabang
;
$id_cabang
=
$this
->
id_cabang
;
if
(
$level_user
!=
"1"
&&
$level_khusus
!=
"1"
)
{
if
(
$level_user
!=
"1"
)
{
$this
->
db
->
where
(
"id_cabang"
,
$id_cabang
);
}
...
...
application/controllers/Jabatan.php
View file @
ef3c3a2b
...
...
@@ -36,7 +36,7 @@ class Jabatan extends MY_Controller
$row
[]
=
$field
->
nama
;
$row
[]
=
$field
->
level
;
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
))
||
in_array
(
$this
->
session
->
userdata
(
'level_khusus'
),
array
(
"1"
))
)
{
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
)))
{
if
(
$field
->
kode_jabatan
==
'HR'
)
{
$row
[]
=
''
;
}
else
{
...
...
application/controllers/Lokasi.php
View file @
ef3c3a2b
...
...
@@ -39,7 +39,7 @@ class Lokasi extends MY_Controller
$row
[]
=
$dt
->
lat_asli
;
$row
[]
=
$dt
->
long_asli
;
$row
[]
=
$dt
->
jarak
;
if
(
in_array
(
$this
->
session
->
userdata
(
'level_user'
),
array
(
"1"
,
"5"
))
||
in_array
(
$this
->
session
->
userdata
(
'level_khusus'
),
array
(
"1"
))
)
{
if
(
in_array
(
$this
->
session
->
userdata
(
'level_user'
),
array
(
"1"
,
"5"
)))
{
if
(
$paket
==
15
)
{
$row
[]
=
' <a href="'
.
site_url
(
"master/lokasi/edit"
)
.
'/'
.
md5
(
$dt
->
id_kantor
)
.
'" title="Ubah" style="color:#f0ad4e">
<i class="btn_edit fa fa-edit (alias) "> </i>
...
...
application/controllers/Pengalaman_kerja.php
View file @
ef3c3a2b
...
...
@@ -64,7 +64,7 @@ class Pengalaman_kerja extends MY_Controller
$btn_delete
=
'<a href="#" class="btn_delete_pengalaman text-danger" onclick="modal_delete(`'
.
md5
(
$field
->
id_riwayat_pekerjaan
)
.
'`)"title="'
.
strtoupper
(
$this
->
lang
->
line
(
'hapus'
))
.
'">
<i class="fa fa-trash"></i>
</a>'
;
if
(
in_array
(
$this
->
session
->
userdata
(
'level_user'
),
array
(
"1"
))
||
in_array
(
$this
->
session
->
userdata
(
'level_khusus'
),
[
"1"
])
)
{
if
(
in_array
(
$this
->
session
->
userdata
(
'level_user'
),
array
(
"1"
)))
{
$row
[]
=
$btn_detail
.
" "
.
$btn_edit
.
" "
.
$btn_delete
;
}
else
{
$row
[]
=
$btn_detail
;
...
...
application/controllers/Pengumuman.php
View file @
ef3c3a2b
...
...
@@ -45,7 +45,7 @@ class Pengumuman extends MY_Controller
$row
[]
=
$this
->
_target_pengumuman
(
$field
->
target
,
$field
->
target_id
,
$field
->
id_cabang
);
if
(
$this
->
session
->
userdata
(
'level_user'
)
==
'1'
||
$this
->
session
->
userdata
(
'level_khusus'
)
==
'1'
)
{
if
(
$this
->
session
->
userdata
(
'level_user'
)
==
'1'
)
{
$row
[]
=
'<a href="'
.
route
(
'informasi.pengumuman.detail'
)
.
'/'
.
md5
(
$field
->
id_pengumuman
)
.
'" class="text-primary" title="DETAIL">
<i class="btn_detail fa fa-info-circle (alias) "> </i></a>
<a href="'
.
route
(
'informasi.pengumuman.form.edit'
)
.
'/'
.
md5
(
$field
->
id_pengumuman
)
.
'" class="text-warning" title="EDIT">
...
...
application/views/jabatan/home.php
View file @
ef3c3a2b
...
...
@@ -38,7 +38,7 @@
"bSortable"
:
false
}
<?php
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
))
||
in_array
(
$this
->
session
->
userdata
(
'level_khusus'
),
array
(
"1"
))
)
{
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
)))
{
?>
,
{
"aTargets"
:
[
4
],
...
...
@@ -56,7 +56,7 @@
});
<?php
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
))
||
in_array
(
$this
->
session
->
userdata
(
'level_khusus'
),
array
(
"1"
))
)
{
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
)))
{
?>
$
(
'td:eq(4)'
,
nRow
).
css
({
...
...
@@ -227,7 +227,7 @@
</div>
<div
class=
"content-header-right col-md-6 col-12"
>
<?php
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
))
||
in_array
(
$this
->
session
->
userdata
(
'level_khusus'
),
array
(
"1"
))
)
{
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
)))
{
?>
<div
class=
"float-md-right"
>
<button
type=
"button"
class=
"btn_tambah btn btn-biru"
>
...
...
@@ -271,7 +271,7 @@
<th
class=
"text-left text-uppercase"
>
<?=
$this
->
lang
->
line
(
'nama'
)
?>
</th>
<th
class=
"text-left"
>
LEVEL
</th>
<?php
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
))
||
in_array
(
$this
->
session
->
userdata
(
'level_khusus'
),
array
(
"1"
))
)
{
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
)))
{
?>
<th
class=
"text-center"
>
<?=
$this
->
lang
->
line
(
'aksi'
)
?>
</th>
<?php
...
...
application/views/karyawan/data_diri/detail.php
View file @
ef3c3a2b
...
...
@@ -9,7 +9,7 @@
echo
$tab
.
"<br>"
;
}
?>
<?php
if
(
in_array
(
$this
->
session
->
userdata
(
'level_user'
),
array
(
"1"
))
||
in_array
(
$this
->
session
->
userdata
(
'level_khusus'
),
array
(
"1"
))
)
{
if
(
in_array
(
$this
->
session
->
userdata
(
'level_user'
),
array
(
"1"
)))
{
?>
<div
class=
"row mb-2"
>
<div
class=
"col-md-12 text-right"
>
...
...
@@ -133,7 +133,7 @@ if (in_array($this->session->userdata('level_user'), array("1")) || in_array($th
</fieldset>
</div>
</div>
<div
class=
"row"
>
<
!-- <
div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="form-label" for="no_bpjs_kes">
<?=
$this
->
lang
->
line
(
'no_bpjs_kes'
)
?>
</label>
...
...
@@ -146,13 +146,13 @@ if (in_array($this->session->userdata('level_user'), array("1")) || in_array($th
<p class="form-control-static">
<?=
$row
->
no_bpjs_tk
!=
''
?
$row
->
no_bpjs_tk
:
'-'
?>
</p>
</div>
</div>
</div>
<div
class=
"row"
>
</div>
-->
<!--
<div class="row">
<div class="col-md-6">
<label class="form-label" for="jml_anak">
<?=
$this
->
lang
->
line
(
'jml_anak'
)
?>
</label>
<p class="form-control-static">
<?=
$row
->
jml_anak
!=
''
?
$row
->
jml_anak
:
'-'
?>
</p>
</div>
</div>
</div>
-->
<div
class=
"row mt-3"
>
<div
class=
"col-md-12 text-primary"
>
...
...
application/views/karyawan/data_diri/form.php
View file @
ef3c3a2b
...
...
@@ -964,9 +964,9 @@
<label>
<?=
$this
->
lang
->
line
(
'cabang'
)
?>
<i
class=
"text-danger"
>
*
</i></label>
<select
id=
"cabang"
class=
"select2 form-control"
style=
"border-radius: 5px; width: 100%;"
>
<?php
if
(
isset
(
$data
->
id_cabang
))
{
echo
'<option value="'
.
$data
->
id_cabang
.
'" selected>'
.
$data
->
kode_cabang
.
' - '
.
$data
->
nama_cabang
.
'</option>'
;
}
if
(
isset
(
$data
->
id_cabang
))
{
echo
'<option value="'
.
$data
->
id_cabang
.
'" selected>'
.
$data
->
kode_cabang
.
' - '
.
$data
->
nama_cabang
.
'</option>'
;
}
?>
</select>
</fieldset>
...
...
application/views/lokasi/google/home.php
View file @
ef3c3a2b
...
...
@@ -188,7 +188,7 @@
<th
class=
"text-left"
>
LONGITUDE
</th>
<th
class=
"text-center"
>
RADIUS (METER)
</th>
<?php
if
(
in_array
(
$this
->
session
->
userdata
(
'level_user'
),
array
(
"1"
,
"5"
))
||
in_array
(
$this
->
session
->
userdata
(
'level_khusus'
),
array
(
"1"
))
)
{
if
(
in_array
(
$this
->
session
->
userdata
(
'level_user'
),
array
(
"1"
,
"5"
)))
{
?>
<th>
AKSI
</th>
<?php
...
...
application/views/lokasi/home.php
View file @
ef3c3a2b
...
...
@@ -204,7 +204,7 @@
<th
class=
"text-left"
>
LONGITUDE
</th>
<th
class=
"text-center"
>
RADIUS (METER)
</th>
<?php
if
(
in_array
(
$this
->
session
->
userdata
(
'level_user'
),
array
(
"1"
,
"5"
))
||
in_array
(
$this
->
session
->
userdata
(
'level_khusus'
),
array
(
"1"
))
)
{
if
(
in_array
(
$this
->
session
->
userdata
(
'level_user'
),
array
(
"1"
,
"5"
)))
{
?>
<th>
<?=
$this
->
lang
->
line
(
'aksi'
)
?>
</th>
<?php
...
...
application/views/pkwt/master/ttd/home.php
View file @
ef3c3a2b
...
...
@@ -181,7 +181,7 @@
</div>
<div
class=
"content-header-right col-md-6 col-12"
>
<?php
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
))
||
in_array
(
$this
->
level_khusus
,
array
(
"1"
))
)
{
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
)))
{
?>
<div
class=
"float-md-right"
>
<button
type=
"button"
class=
"btn_tambah btn btn-biru"
>
...
...
application/views/shift/home.php
View file @
ef3c3a2b
...
...
@@ -252,7 +252,7 @@
</div>
<div
class=
"content-header-right col-md-6 col-12"
>
<?php
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
,
"5"
))
||
in_array
(
$this
->
session
->
userdata
(
'level_khusus'
),
array
(
"1"
))
)
{
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
,
"5"
)))
{
?>
<div
class=
"float-md-right"
>
<button
type=
"button"
class=
"btn_tambah btn btn-biru"
>
...
...
@@ -271,7 +271,7 @@
<div
class=
"card-body"
>
<div
class=
"row filter"
>
<?php
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
,
"4"
))
||
in_array
(
$this
->
khusus
,
array
(
"1"
))
||
$this
->
multi_cabang
==
true
)
{
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
,
"4"
))
||
$this
->
multi_cabang
==
true
)
{
?>
<div
class=
"col-md-4"
>
<select
id=
"id_cabang"
class=
"form-control select2"
></select>
...
...
@@ -305,7 +305,7 @@
<th
class=
"text-center text-uppercase"
>
<?=
$this
->
lang
->
line
(
'jam_pulang_shift'
)
?>
</th>
<th
class=
"text-center text-uppercase"
>
<?=
$this
->
lang
->
line
(
'max_jam_pulang_shift'
)
?>
</th>
<?php
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
,
"5"
))
||
in_array
(
$this
->
session
->
userdata
(
'level_khusus'
),
array
(
"1"
))
)
{
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
,
"5"
)))
{
?>
<th
class=
"text-center"
>
<?=
$this
->
lang
->
line
(
'aksi'
)
?>
</th>
<?php
...
...
@@ -371,7 +371,7 @@
"bSortable"
:
false
},
<?php
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
,
"5"
))
||
in_array
(
$this
->
session
->
userdata
(
'level_khusus'
),
array
(
"1"
))
)
{
if
(
in_array
(
$this
->
level_user
,
array
(
"1"
,
"5"
)))
{
?>
{
"aTargets"
:
[
-
1
],
"bSortable"
:
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment