Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simpkm
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
Farendi Giotivano R.P
simpkm
Commits
e9b446a1
Commit
e9b446a1
authored
Feb 27, 2023
by
novanbagus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ambil nilai
parent
565e140b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
app/Http/Controllers/Reviewer/DaftarSeleksiController.php
+10
-6
No files found.
app/Http/Controllers/Reviewer/DaftarSeleksiController.php
View file @
e9b446a1
...
...
@@ -44,6 +44,8 @@ class DaftarSeleksiController extends Controller
/* AJAX request */
public
function
getData
(
Request
$request
){
$noidentitas
=
$this
->
rBiodata
->
noidentitas
;
## Read value
$draw
=
$request
->
get
(
'draw'
);
$start
=
$request
->
get
(
"start"
);
...
...
@@ -60,7 +62,7 @@ class DaftarSeleksiController extends Controller
$searchValue
=
strtoupper
(
$search_arr
[
'value'
]);
// Search value
// Total records
$statementGlobal
=
" 1=1 AND (NIDN_REVIEWER_ID_1 = '"
.
$
this
->
rBiodata
->
noidentitas
.
"' OR NIDN_REVIEWER_ID_2 = '"
.
$this
->
rBiodata
->
noidentitas
.
"')"
;
$statementGlobal
=
" 1=1 AND (NIDN_REVIEWER_ID_1 = '"
.
$
noidentitas
.
"' OR NIDN_REVIEWER_ID_2 = '"
.
$
noidentitas
.
"')"
;
$totalRecords
=
DaftarProposal
::
select
(
'count(1) as allcount'
)
->
whereRaw
(
$statementGlobal
)
->
count
();
$statement
=
" AND (UPPER(JUDUL) LIKE '%"
.
$searchValue
.
"%') "
;
...
...
@@ -83,16 +85,18 @@ class DaftarSeleksiController extends Controller
$kode
=
$record
->
kode
;
$jenis_pkm
=
$record
->
jenis_pkm
;
$judul
=
$record
->
judul
;
$nilai_1
=
$record
->
nilai_1
;
$nilai_2
=
$record
->
nilai_2
;
$nilai_1
=
DB
::
select
(
"select ambil_jumlah_penilaian_seleksi('"
.
$record
->
reviewer_proposal_id_1
.
"', '"
.
$record
->
jenis_id
.
"')"
)[
0
]
->
ambil_jumlah_penilaian_seleksi
;
$nilai_2
=
DB
::
select
(
"select ambil_jumlah_penilaian_seleksi('"
.
$record
->
reviewer_proposal_id_2
.
"', '"
.
$record
->
jenis_id
.
"')"
)[
0
]
->
ambil_jumlah_penilaian_seleksi
;
$url
=
"https://statik.unesa.ac.id/simpkm/proposal/"
.
$record
->
periode
.
"/"
.
$record
->
upload_dokumen
;
$urut
=
DB
::
select
(
"select ambil_data_reviewer_proposal('"
.
$
this
->
rBiodata
->
noidentitas
.
"', '"
.
$proposal_id
.
"', '1')"
)[
0
]
->
ambil_data_reviewer_proposal
;
$urut
=
DB
::
select
(
"select ambil_data_reviewer_proposal('"
.
$noidentitas
.
"', '"
.
$proposal_id
.
"', '1')"
)[
0
]
->
ambil_data_reviewer_proposal
;
$status_nilai
=
DB
::
select
(
"select ambil_data_reviewer_proposal('"
.
$
this
->
rBiodata
->
noidentitas
.
"', '"
.
$proposal_id
.
"', '2')"
)[
0
]
->
ambil_data_reviewer_proposal
;
$status_nilai
=
DB
::
select
(
"select ambil_data_reviewer_proposal('"
.
$noidentitas
.
"', '"
.
$proposal_id
.
"', '2')"
)[
0
]
->
ambil_data_reviewer_proposal
;
$status_administrasi
=
DB
::
select
(
"select ambil_data_reviewer_proposal('"
.
$
this
->
rBiodata
->
noidentitas
.
"', '"
.
$proposal_id
.
"', '3')"
)[
0
]
->
ambil_data_reviewer_proposal
;
$status_administrasi
=
DB
::
select
(
"select ambil_data_reviewer_proposal('"
.
$noidentitas
.
"', '"
.
$proposal_id
.
"', '3')"
)[
0
]
->
ambil_data_reviewer_proposal
;
$proposal
=
'<a href="'
.
$url
.
'" target="_blank" class="btn btn-primary btn-sm waves-effect waves-light" role="button"><i class="fas fa-search"></i></a>'
;
if
(
$status_nilai
>
0
||
$status_administrasi
==
'2'
)
...
...
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