Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sipenkp_v2
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
reynaldi adriantama
sipenkp_v2
Commits
ff612c86
Commit
ff612c86
authored
Sep 20, 2021
by
reynaldi adriantama
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
session nopeg
parent
03f0a611
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
146 additions
and
39 deletions
+146
-39
module/Application/src/Controller/DosenController.php
module/Application/src/Controller/DosenController.php
+6
-6
module/Application/src/Controller/JsondataController.php
module/Application/src/Controller/JsondataController.php
+36
-20
module/Application/src/Master/GlobalActionController.php
module/Application/src/Master/GlobalActionController.php
+6
-0
module/Application/src/Model/Param.php
module/Application/src/Model/Param.php
+48
-0
module/Application/src/Model/Param/Storage/Mysql.php
module/Application/src/Model/Param/Storage/Mysql.php
+2
-2
module/Application/view/application/admin/pilihpenguji.phtml
module/Application/view/application/admin/pilihpenguji.phtml
+1
-1
module/Application/view/application/admin/updatejadwal.phtml
module/Application/view/application/admin/updatejadwal.phtml
+20
-0
module/Application/view/application/koordinator/pilihpembimbing.phtml
...cation/view/application/koordinator/pilihpembimbing.phtml
+16
-0
module/Application/view/layout/layout_admin.phtml
module/Application/view/layout/layout_admin.phtml
+1
-1
public/.htaccess
public/.htaccess
+9
-9
public/data/pengumuman/323_13117227.pdf
public/data/pengumuman/323_13117227.pdf
+0
-0
public/data/pengumuman/324_13117229.pdf
public/data/pengumuman/324_13117229.pdf
+0
-0
public/data/pengumuman/325_13117229.pdf
public/data/pengumuman/325_13117229.pdf
+0
-0
public/data/reporting/Report Kerja Praktik Teknik Mesin_01 July 2021-30 November 2021.pdf
...ja Praktik Teknik Mesin_01 July 2021-30 November 2021.pdf
+0
-0
public/data/reporting/Report Kerja Praktik Teknik Mesin_01 June 2021-30 November 2021.xlsx
...a Praktik Teknik Mesin_01 June 2021-30 November 2021.xlsx
+0
-0
vendor/Khansia/Access/User.php
vendor/Khansia/Access/User.php
+1
-0
No files found.
module/Application/src/Controller/DosenController.php
View file @
ff612c86
...
...
@@ -44,7 +44,7 @@ class DosenController extends \Application\Master\GlobalActionController
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var nopeg = "'
.
$userSession
->
get
(
'
usernamed
'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nopeg = "'
.
$userSession
->
get
(
'
nopeg
'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nim;'
);
// $this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
...
...
@@ -207,7 +207,7 @@ class DosenController extends \Application\Master\GlobalActionController
// print_r($userSession->get('usernamed'));die;
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var iduser = null'
);
$this
->
headScript
->
appendScript
(
' var nopeg = "'
.
$userSession
->
get
(
'
usernamed
'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nopeg = "'
.
$userSession
->
get
(
'
nopeg
'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nim = "'
.
$urlvar
.
'"'
);
$this
->
headScript
->
appendScript
(
' var PHRASE = "'
.
self
::
PHRASE
.
'"'
);
$this
->
headScript
->
appendScript
(
' var CODE_SUCCESS = "'
.
$result
::
CODE_SUCCESS
.
'"'
);
...
...
@@ -235,7 +235,7 @@ class DosenController extends \Application\Master\GlobalActionController
/* ini hanya contoh return dari factory IndexControllerFactory gan, dani tamvan */
$userSession
=
$this
->
getSession
();
$owner
=
$userSession
->
owner
();
// print_r($userSession->get('nopeg'));die;
if
(
$owner
){
//print_r($result);die;
$view
->
setVariable
(
'dataa'
,
$sessionArray
);
...
...
@@ -246,7 +246,7 @@ class DosenController extends \Application\Master\GlobalActionController
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nopeg = "'
.
$userSession
->
get
(
'
usernamed
'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nopeg = "'
.
$userSession
->
get
(
'
nopeg
'
)
.
'"'
);
// $this->headScript->appendScript(' var iduser = null');
// $this->headScript->appendScript(' var nim = "' . $urlvar . '"');
$this
->
headScript
->
appendScript
(
' var PHRASE = "'
.
self
::
PHRASE
.
'"'
);
...
...
@@ -285,7 +285,7 @@ class DosenController extends \Application\Master\GlobalActionController
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nopeg = "'
.
$userSession
->
get
(
'
usernamed
'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nopeg = "'
.
$userSession
->
get
(
'
nopeg
'
)
.
'"'
);
// $this->headScript->appendScript(' var iduser = null');
// $this->headScript->appendScript(' var nim = "' . $urlvar . '"');
$this
->
headScript
->
appendScript
(
' var PHRASE = "'
.
self
::
PHRASE
.
'"'
);
...
...
@@ -322,7 +322,7 @@ class DosenController extends \Application\Master\GlobalActionController
$actionName
=
$this
->
params
(
'action'
);
$this
->
headScript
->
appendScript
(
' var baseURL = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nopeg = "'
.
$userSession
->
get
(
'
usernamed
'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nopeg = "'
.
$userSession
->
get
(
'
nopeg
'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var nim = "'
.
$urlvar
.
'"'
);
$this
->
headScript
->
appendScript
(
' var identitas = "'
.
$urlid
.
'"'
);
$this
->
headScript
->
appendScript
(
' var PHRASE = "'
.
self
::
PHRASE
.
'"'
);
...
...
module/Application/src/Controller/JsondataController.php
View file @
ff612c86
...
...
@@ -8801,6 +8801,7 @@ class JsondataController extends \Application\Master\GlobalActionController
array_push
(
$allidkp
,
$idkp
);
if
(
$dataAdditional
!=
null
){
$dataArr
=
array
(
'nim_mhs'
=>
self
::
antiInjection
(
$nim
??
null
),
'penguji_1'
=>
self
::
antiInjection
(
$isData
->
penguji1
??
null
),
...
...
@@ -8808,25 +8809,40 @@ class JsondataController extends \Application\Master\GlobalActionController
'jam'
=>
self
::
antiInjection
(
$jam
??
null
),
'ruang'
=>
self
::
antiInjection
(
$isData
->
ruang
??
null
),
'create_date'
=>
$this
->
STORAGE_NOW
(),
'penguji_3'
=>
$dataAdditional
[
0
]
->
nopeg_peng_add
??
null
,
'penguji_4'
=>
$dataAdditional
[
1
]
->
nopeg_peng_add
??
null
,
);
}
else
{
$dataArr
=
array
(
'nim_mhs'
=>
self
::
antiInjection
(
$nim
??
null
),
'penguji_1'
=>
self
::
antiInjection
(
$isData
->
penguji1
??
null
),
'tanggal'
=>
self
::
antiInjection
(
$isData
->
tanggal
??
null
),
'jam'
=>
self
::
antiInjection
(
$jam
??
null
),
'ruang'
=>
self
::
antiInjection
(
$isData
->
ruang
??
null
),
'create_date'
=>
$this
->
STORAGE_NOW
(),
'penguji_3'
=>
null
,
'penguji_4'
=>
null
,
);
}
// print_r($dataArr);die;
$result
=
$model
->
saveGlobal
(
$dataArr
,
'sipenkp_jadwal'
,
true
);
//save additional penguji
if
(
$result
->
code
==
$result
::
CODE_SUCCESS
){
//
if($result->code == $result::CODE_SUCCESS){
for
(
$x
=
0
;
$x
<
count
(
$dataAdditional
);
$x
++
){
$dataAttrs
=
array
(
'id_jadwal'
=>
$result
->
data
,
'create_date'
=>
$this
->
STORAGE_NOW
(),
'nopeg'
=>
$dataAdditional
[
$x
]
->
nopeg_peng_add
,
);
//
for($x = 0; $x < count($dataAdditional); $x++){
//
$dataAttrs = array(
//
'id_jadwal' => $result->data,
//
'create_date' => $this->STORAGE_NOW(),
//
'nopeg' => $dataAdditional[$x]->nopeg_peng_add,
//
);
$resun
=
$model
->
saveGlobal
(
$dataAttrs
,
"sipenkp_penguji"
,
true
);
}
}
//
$resun = $model->saveGlobal($dataAttrs, "sipenkp_penguji", true);
//
}
//
}
if
(
$result
->
code
==
$result
::
CODE_SUCCESS
&&
$resun
->
code
==
$result
::
CODE_SUCCESS
){
if
(
$result
->
code
==
$result
::
CODE_SUCCESS
){
$dataAttr
=
array
(
'update_date'
=>
$this
->
STORAGE_NOW
(),
'id_jadwal'
=>
$result
->
data
,
...
...
module/Application/src/Master/GlobalActionController.php
View file @
ff612c86
...
...
@@ -390,11 +390,17 @@ class GlobalActionController extends \Khansia\Mvc\Controller {
$actionName
=
$this
->
params
(
'action'
);
$controllerName
=
$this
->
params
(
'controller'
);
$uri
=
$this
->
getRequest
()
->
getUri
();
$baseurl
=
sprintf
(
'//%s'
,
$uri
->
getHost
());
if
((
$controllerName
!=
'Application\Controller\ApiController'
&&
$controllerName
!=
'Application\Controller\JsondataController'
)){
$this
->
headScript
->
appendScript
(
' var actionControl = "'
.
$actionName
.
'"'
);
}
$userSess
=
$this
->
getSession
();
$this
->
headScript
->
appendScript
(
' var PHRASE = "'
.
self
::
PHRASE
.
'"'
);
$this
->
headScript
->
appendScript
(
' var role = "'
.
$userSess
->
get
(
'role'
)
.
'"'
);
$this
->
headScript
->
appendScript
(
' var baseglobal = "'
.
$baseurl
.
'"'
);
$this
->
headScript
->
appendScript
(
' var actionControl = "'
.
$actionName
.
'"'
);
$this
->
headScript
->
appendFile
(
'/action-js/global-js/sha256.js'
);
$this
->
headScript
->
appendFile
(
'/action-js/global-js/javaScriptGlobalCustom.js'
);
...
...
module/Application/src/Model/Param.php
View file @
ff612c86
...
...
@@ -1188,6 +1188,54 @@ class Param extends Mapper {
return
$filename
;
}
public
function
generatedatabimbingans
(
$data
,
$tglawal
,
$tglakhir
,
$kodeprodi
,
$urlbase
){
$loadkaprodi
=
$this
->
loadataKaprodi
(
$kodeprodi
);
$datakaprodi
=
$loadkaprodi
->
data
[
0
];
$tglreport
=
$this
->
dateformatter
(
$tglawal
)
.
"-"
.
$this
->
dateformatter
(
$tglakhir
);
$spreadsheet
=
new
Spreadsheet
();
$sheet
=
$spreadsheet
->
getActiveSheet
();
$sheet
->
setCellValue
(
'A2'
,
'No'
);
$sheet
->
setCellValue
(
'B2'
,
'Nim'
);
$sheet
->
setCellValue
(
'C2'
,
'Nama'
);
$sheet
->
setCellValue
(
'D2'
,
'Prodi'
);
$sheet
->
setCellValue
(
'E2'
,
'nopeg_Pembimbing'
);
$i
=
3
;
$no
=
1
;
foreach
(
$data
as
$row
){
$sheet
->
setCellValue
(
'A'
.
$i
,
$no
++
);
$sheet
->
setCellValue
(
'B'
.
$i
,
$row
[
'nim_mhs'
]);
$sheet
->
setCellValue
(
'C'
.
$i
,
$row
[
'nama'
]);
$sheet
->
setCellValue
(
'D'
.
$i
,
$row
[
'dosen_pembimbing'
]);
$sheet
->
setCellValue
(
'E'
.
$i
,
$row
[
'dosen_pembimbing'
]);
$i
++
;
}
$styleArray
=
[
'borders'
=>
[
'allBorders'
=>
[
'borderStyle'
=>
\PhpOffice\PhpSpreadsheet\Style\Border
::
BORDER_THIN
,
],
],
];
$i
=
$i
-
1
;
$sheet
->
getStyle
(
'A2:E'
.
$i
)
->
applyFromArray
(
$styleArray
);
$sheet
->
getColumnDimension
(
'A'
)
->
setAutoSize
(
true
);
$sheet
->
getColumnDimension
(
'B'
)
->
setAutoSize
(
true
);
$sheet
->
getColumnDimension
(
'C'
)
->
setAutoSize
(
true
);
$sheet
->
getColumnDimension
(
'D'
)
->
setAutoSize
(
true
);
$sheet
->
getColumnDimension
(
'E'
)
->
setAutoSize
(
true
);
$filename
=
"Data mahasiswa.xlsx"
;
$writer
=
new
Xlsx
(
$spreadsheet
);
$writer
->
save
(
'./public/data/reporting/'
.
$filename
);
return
$filename
;
}
public
function
loadjadwalperm
(
$idkp
){
$data
=
$this
->
_storage
->
loadjadwalperm
(
$idkp
);
return
$data
;
...
...
module/Application/src/Model/Param/Storage/Mysql.php
View file @
ff612c86
...
...
@@ -2075,7 +2075,7 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
INNER JOIN (SELECT nopeg AS nidp1, nama AS namapenguji1 FROM t_peg_itb) dp2 on j.penguji_1 = nidp1
INNER JOIN (SELECT nopeg AS nidp2, nama AS dosen_pembimbing FROM t_peg_itb) p2 on p.no_peg = p2.nidp2
INNER JOIN t_mahasiswa m on j.nim_mhs = m.nim
WHERE j.id_jadwal != 0 AND
kp.status_kp = '121' OR kp.status_kp = '122'
"
;
WHERE j.id_jadwal != 0 AND
(kp.status_kp = '121' OR kp.status_kp = '122')
"
;
if
(
$peran
==
'pembimbing'
){
$sql1
.=
" AND p2.nidp2 = '
$nopeg
'"
;
...
...
@@ -2107,7 +2107,7 @@ class Mysql extends \Khansia\Db\Storage implements Skeleton {
INNER JOIN t_mahasiswa m on j.nim_mhs = m.nim
INNER JOIN t_prodi on LEFT(m.nim, 3) = t_prodi.id_prodi
INNER JOIN sipenkp_nilai_mahasiswa snm on kp.id_nilai = snm.id_nilai
WHERE j.id_jadwal != 0 AND
kp.status_kp = '121' OR kp.status_kp = '122'
WHERE j.id_jadwal != 0 AND
(kp.status_kp = '121' OR kp.status_kp = '122')
"
;
if
(
$peran
==
'pembimbing'
){
...
...
module/Application/view/application/admin/pilihpenguji.phtml
View file @
ff612c86
...
...
@@ -303,7 +303,7 @@
</div>
<span
style=
"float: right; color: blue;cursor: pointer;
display: none
"
onclick=
"addrowpenguji()"
id=
"addrwp"
>
+Tambah penguji
</span>
<span
style=
"float: right; color: blue;cursor: pointer;"
onclick=
"addrowpenguji()"
id=
"addrwp"
>
+Tambah penguji
</span>
</div>
</div>
...
...
module/Application/view/application/admin/updatejadwal.phtml
View file @
ff612c86
...
...
@@ -168,6 +168,26 @@
</div>
<div
class=
"form-group"
>
<label
class=
"col-lg-2 control-label text-semibold"
>
Penguji :
</label>
<div
class=
"col-lg-10"
>
<select
id=
"pengujis2"
class=
"select"
>
</select>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-lg-2 control-label text-semibold"
>
Penguji :
</label>
<div
class=
"col-lg-10"
>
<select
id=
"pengujis3"
class=
"select"
>
</select>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-lg-2 control-label text-semibold"
>
Tanggal :
</label>
<div
class=
"col-lg-10"
>
...
...
module/Application/view/application/koordinator/pilihpembimbing.phtml
View file @
ff612c86
...
...
@@ -38,6 +38,22 @@
<!--
<
div
class
=
"heading-elements"
>
<
button
type
=
"button"
class
=
"btn btn-primary heading-btn btn-modal"
><
span
class
=
"icon-envelope"
></
span
>
Buat
Surat
Pengajuan
</
button
>
</
div
>
-->
<
div
class
=
"heading-elements"
>
<
ul
class
=
"icons-list"
>
<
li
class
=
"dropdown"
>
<
a
href
=
"#"
class
=
"dropdown-toggle"
data
-
toggle
=
"dropdown"
><
i
class
=
"icon-menu7"
></
i
>
<
span
class
=
"caret"
></
span
></
a
>
<
ul
class
=
"dropdown-menu dropdown-menu-right"
>
<
li
id
=
"data_mah"
><
a
id
=
"data_mah"
>
Download
data
mahasiswa
</
a
></
li
>
<!--
<
li
><
a
href
=
"#"
>
Something
else
here
</
a
></
li
>
<
li
class
=
"divider"
></
li
>
<
li
><
a
href
=
"#"
>
One
more
separated
line
</
a
></
li
>
-->
</
ul
>
</
li
>
</
ul
>
</
div
>
</
div
>
<
div
class
=
"panel-body"
>
...
...
module/Application/view/layout/layout_admin.phtml
View file @
ff612c86
...
...
@@ -282,7 +282,7 @@
<li>
<a
href=
"#"
><i
class=
"icon-pencil"
></i>
<span
class=
"wrapsss"
>
Penilaian Kerja Praktik
</span></a>
<ul>
<
li><a
href=
"
<?php
echo
$this
->
basePath
();
?>
/penilaian/penilaianpenguji"
>
Penilaian Penguji
</a></li
>
<
!-- <li><a href="
<?php
echo
$this
->
basePath
();
?>
/penilaian/penilaianpenguji">Penilaian Penguji</a></li> --
>
<li><a
href=
"
<?php
echo
$this
->
basePath
();
?>
/penilaian/penilaianperusahaan"
>
Penilaian Perusahaan
</a></li>
<li><a
href=
"
<?php
echo
$this
->
basePath
();
?>
/penilaian/nilaikp"
>
Nilai Kerja Praktik
</a></li>
</ul>
...
...
public/.htaccess
View file @
ff612c86
...
...
@@ -18,17 +18,17 @@
##RewriteRule ^(.*)$ %{ENV:BASE}/index.php [L]
##
SetEnv
ITB_HOST 167.205.57.98
SetEnv
ITB_UNAME postgres
SetEnv
ITB_PASS postgres
SetEnv
ITB_PORT 5432
SetEnv
ITB_SCH sipenkp_itb
#SetEnv ITB_HOST 103.126.28.66
#SetEnv ITB_HOST 167.205.57.98
#SetEnv ITB_UNAME postgres
#SetEnv ITB_PASS
khansia215758
#SetEnv ITB_PASS
postgres
#SetEnv ITB_PORT 5432
#SetEnv ITB_SCH ftmd_itb
#SetEnv ITB_SCH sipenkp_itb
SetEnv
ITB_HOST 103.126.28.66
SetEnv
ITB_UNAME postgres
SetEnv
ITB_PASS khansia215758
SetEnv
ITB_PORT 5432
SetEnv
ITB_SCH ftmd_itb
RewriteEngine
On
...
...
public/data/pengumuman/323_13117227.pdf
0 → 100644
View file @
ff612c86
File added
public/data/pengumuman/324_13117229.pdf
0 → 100644
View file @
ff612c86
File added
public/data/pengumuman/325_13117229.pdf
0 → 100644
View file @
ff612c86
File added
public/data/reporting/Report Kerja Praktik Teknik Mesin_01 July 2021-30 November 2021.pdf
0 → 100644
View file @
ff612c86
File added
public/data/reporting/Report Kerja Praktik Teknik Mesin_01 June 2021-30 November 2021.xlsx
0 → 100644
View file @
ff612c86
File added
vendor/Khansia/Access/User.php
View file @
ff612c86
...
...
@@ -57,6 +57,7 @@ class User extends \Khansia\Generic\Objects\Mapper {
new
Map
(
'status'
),
new
Map
(
'prodi'
),
new
Map
(
'koordinator'
),
new
Map
(
'nopeg'
)
),
parent
::
CASE_SENSITIVE
...
...
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