Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SmartCard
Project
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
itd-x
SmartCard
Commits
7f3f814f
Commit
7f3f814f
authored
Aug 22, 2014
by
Pintor Jonathan Silitonga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bash
parent
9906ed44
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
22 deletions
+17
-22
private.xml
nbproject/private/private.xml
+2
-14
BeritaAcaraDaftarHadirController.php
protected/controllers/BeritaAcaraDaftarHadirController.php
+6
-6
MJadwalController.php
protected/controllers/MJadwalController.php
+1
-1
_formUpdate.php
protected/views/dJadwal/_formUpdate.php
+8
-1
No files found.
nbproject/private/private.xml
View file @
7f3f814f
...
...
@@ -3,21 +3,9 @@
<editor-bookmarks
xmlns=
"http://www.netbeans.org/ns/editor-bookmarks/2"
lastBookmarkId=
"0"
/>
<open-files
xmlns=
"http://www.netbeans.org/ns/projectui-open-files/2"
>
<group>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/controllers/SiteController.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/controllers/JadwalController.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/kehadiran.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/views/mJadwal/index.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/controllers/RuanganController.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/upload.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/themes/hebo/views/layouts/tpl_navigation.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/views/site/sukses.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/controllers/PegawaiController.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/views/site/excelpath.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/views/site/upload.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/controllers/KurikulumController.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/controllers/MJadwalController.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/views/dJadwal/_formUpdate.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/views/mJadwal/_formJadwal.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/controllers/BeritaAcaraDaftarHadirController.php
</file>
<file>
file:/C:/xampp/htdocs/Test/smartcard/protected/controllers/KelasController.php
</file>
</group>
</open-files>
</project-private>
protected/controllers/BeritaAcaraDaftarHadirController.php
View file @
7f3f814f
...
...
@@ -455,16 +455,16 @@ AND mj.KELAS IN (SELECT KELAS FROM registrasi WHERE registrasi.`NIM`='$nim' ORDE
$this
->
redirect
(
array
(
'MJadwal/index'
));
}
public
function
cekDaftarhadir
(
$kehadiran
)
{
$tanggal
=
$kehadiran
[
3
];
$waktu
=
$kehadiran
[
4
];
public
function
cekDaftarhadir
(
$kehadiran
X
)
{
$tanggal
=
$kehadiran
X
[
3
];
$waktu
=
$kehadiran
X
[
4
];
$ruangan
=
Ruangan
::
model
()
->
find
(
array
(
'condition'
=>
"RFID LIKE '%
$kehadiran[5]
%'"
));
$ruangan
=
Ruangan
::
model
()
->
find
(
array
(
'condition'
=>
"RFID LIKE '%
$kehadiran
X
[5]
%'"
));
// echo $ruangan->SHORT_NAME;
$sql
=
"SELECT * FROM m_jadwal mj INNER JOIN d_jadwal dj ON mj.`ID`=dj.`ID_JADWAL`
WHERE ((dj.RUANGAN='
$ruangan->SHORT_NAME
' AND mj.TANGGAL ='
$tanggal
')
AND ('
$waktu
' BETWEEN (SUBTIME(dj.`START_TIME`,'0:15:00')) AND (ADDTIME(dj.`END_TIME`,'0:15:00')))
AND mj.KELAS IN (SELECT KELAS FROM registrasi WHERE registrasi.`NIM`='
$kehadiran[1]
' ORDER BY SEM DESC))"
;
AND mj.KELAS IN (SELECT KELAS FROM registrasi WHERE registrasi.`NIM`='
$kehadiran
X
[1]
' ORDER BY SEM DESC))"
;
// echo $sql . "<BR>";
$list
=
Yii
::
app
()
->
db
->
createCommand
(
$sql
)
->
queryAll
();
...
...
@@ -473,7 +473,7 @@ AND mj.KELAS IN (SELECT KELAS FROM registrasi WHERE registrasi.`NIM`='$kehadiran
$kehadiran
=
BeritaAcaraDaftarHadir
::
model
()
->
findByAttributes
(
array
(
'ID_DETAIL_JADWAL'
=>
$l
[
'ID'
],
'NIM'
=>
$kehadiran
[
1
],
'NIM'
=>
$kehadiran
X
[
1
],
)
);
...
...
protected/controllers/MJadwalController.php
View file @
7f3f814f
...
...
@@ -29,7 +29,7 @@ class MJadwalController extends Controller {
'users'
=>
array
(
'*'
),
),
array
(
'allow'
,
// allow authenticated user to perform 'create' and 'update' actions
'actions'
=>
array
(
'index'
,
'create'
,
'update'
,
'loadChildByAjax'
,
'create2'
,
'createjadwal'
,
'matkuljadwal'
,
'createexcel'
),
'actions'
=>
array
(
'index'
,
'create'
,
'update'
,
'loadChildByAjax'
,
'create2'
,
'createjadwal'
,
'matkuljadwal'
,
'createexcel'
),
'users'
=>
array
(
'@'
),
),
array
(
'allow'
,
// allow admin user to perform 'admin' and 'delete' actions
...
...
protected/views/dJadwal/_formUpdate.php
View file @
7f3f814f
...
...
@@ -13,7 +13,14 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
<?php
echo
$form
->
textFieldGroup
(
$model
,
'KODE_MK'
,
array
(
'widgetOptions'
=>
array
(
'htmlOptions'
=>
array
(
'class'
=>
'span5'
,
'maxlength'
=>
8
))));
?>
<?php
echo
$form
->
textFieldGroup
(
$model
,
'RUANGAN'
,
array
(
'widgetOptions'
=>
array
(
'htmlOptions'
=>
array
(
'class'
=>
'span5'
,
'maxlength'
=>
20
))));
?>
<?php
$data
=
CHtml
::
listData
(
Ruangan
::
model
()
->
findAll
(),
'ID'
,
'SHORT_NAME'
);
echo
$form
->
dropDownListGroup
(
$model
,
'RUANGAN'
,
array
(
'widgetOptions'
=>
array
(
'data'
=>
$data
,
'htmlOptions'
=>
array
(
'class'
=>
'input-large'
),
)
)
);
?>
<?php
// echo $form->textFieldGroup($model, 'RUANGAN', array('widgetOptions' => array('htmlOptions' => array('class' => 'span5', 'maxlength' => 20)))); ?>
<?
php
// echo $form->textFieldGroup($model, 'TOPIK', array('widgetOptions' => array('htmlOptions' => array('class' => 'span5', 'maxlength' => 255)))); ?>
...
...
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