Bash

parent 9906ed44
......@@ -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>
......@@ -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($kehadiranX) {
$tanggal = $kehadiranX[3];
$waktu = $kehadiranX[4];
$ruangan = Ruangan::model()->find(array('condition' => "RFID LIKE '%$kehadiran[5]%'"));
$ruangan = Ruangan::model()->find(array('condition' => "RFID LIKE '%$kehadiranX[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`='$kehadiranX[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' => $kehadiranX[1],
)
);
......
......@@ -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
......
......@@ -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)))); ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment