Tambahan Fungsi Baru

parent 63ea6fac
...@@ -4,9 +4,67 @@ ...@@ -4,9 +4,67 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/> <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"> <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group> <group>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/create.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/ruangan/admin.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/create.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/IndexBeritaAcaraKuliah.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/dim/update.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/SearcHDaftarHadir.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/CetakBeritaAcaraKuliah.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/mJadwal/_form.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/dim/create.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/update.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/ruangan/_view.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/_search.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/ruangan/_form.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/ruangan/index.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/index.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/pegawai/index.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/dim/index.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/dim/view.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/_form.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/_view.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/admin.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/admin.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/_view.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/pegawai/view.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/LaporanBeritaAcaraKuliah.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/jadwal/_form2.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/dJadwal/_form.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/index.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/pegawai/_form.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/_formDaftarHadir.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/controllers/MJadwalController.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/controllers/BeritaAcaraKuliahController.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/view.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/jadwal/_form.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/IndexDataSearch.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/IndexAdminByMonth.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/pegawai/_search.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/pegawai/_view.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/update.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/ruangan/update.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/dim/_search.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/view.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/_search.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/pegawai/update.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/controllers/BeritaAcaraDaftarHadirController.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/pegawai/create.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/controllers/JadwalController.php</file> <file>file:/C:/xampp/htdocs/Test/smartcard/protected/controllers/JadwalController.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/ruangan/view.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/IndexCalendar.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/models/MJadwal.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/dim/_form.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/ruangan/create.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/ruangan/_search.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/searchBeritaAcaraDaftarHadir.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/dim/admin.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/dim/_view.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/_form.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/pegawai/admin.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/_formAcaraKuliah.php</file> <file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/_formAcaraKuliah.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraDaftarHadir/_formDaftarHadir.php</file> <file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/createBeritaAcaraKuliah.php</file>
</group> </group>
</open-files> </open-files>
</project-private> </project-private>
...@@ -108,13 +108,12 @@ class BeritaAcaraDaftarHadirController extends Controller { ...@@ -108,13 +108,12 @@ class BeritaAcaraDaftarHadirController extends Controller {
// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser // if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
if (!isset($_GET['ajax'])) if (!isset($_GET['ajax']))
$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin')); $this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
} } else
else
throw new CHttpException(400, 'Invalid request. Please do not repeat this request again.'); throw new CHttpException(400, 'Invalid request. Please do not repeat this request again.');
} }
public function actionCetakLaporan($id) { public function actionCetakLaporan($id) {
$html2pdf = Yii::app()->pdf->HTML2PDF('L', array(210,330), 'en', true, 'UTF-8', array(15, 10, 10, 10)); $html2pdf = Yii::app()->pdf->HTML2PDF('L', array(210, 330), 'en', true, 'UTF-8', array(15, 10, 10, 10));
$message = $id; $message = $id;
$html2pdf->WriteHTML($this->renderPartial('LaporanBeritaAcaraKuliah', array('message' => $message), true)); $html2pdf->WriteHTML($this->renderPartial('LaporanBeritaAcaraKuliah', array('message' => $message), true));
ob_end_clean(); ob_end_clean();
...@@ -159,6 +158,8 @@ class BeritaAcaraDaftarHadirController extends Controller { ...@@ -159,6 +158,8 @@ class BeritaAcaraDaftarHadirController extends Controller {
public function actionsearchBeritaAcaraDaftarHadir() { public function actionsearchBeritaAcaraDaftarHadir() {
$model = new BeritaAcaraDaftarHadir; $model = new BeritaAcaraDaftarHadir;
$djadwal = new DJadwal;
$mjadwal = new MJadwal;
// Uncomment the following line if AJAX validation is needed // Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model); // $this->performAjaxValidation($model);
...@@ -167,33 +168,34 @@ class BeritaAcaraDaftarHadirController extends Controller { ...@@ -167,33 +168,34 @@ class BeritaAcaraDaftarHadirController extends Controller {
$Sem = ""; $Sem = "";
$Kelas_form = ""; $Kelas_form = "";
$T_A = ""; $T_A = "";
if (isset($_POST['BeritaAcaraDaftarHadir'])) { if (isset($_POST['BeritaAcaraDaftarHadir']) || isset($_POST['DJadwal']) || isset($_POST['MJadwal'])) {
//$model->attributes = $_POST['BeritaAcaraKuliah']; //$model->attributes = $_POST['BeritaAcaraKuliah'];
$KODE_MK_form = $_POST['BeritaAcaraDaftarHadir']['KODE_MK']; $KODE_MK_form = $_POST['DJadwal']['KODE_MK'];
$Sem_form = $_POST['BeritaAcaraDaftarHadir']['SEM']; $Kelas_form = $_POST['MJadwal']['KELAS'];
$Kelas_form = $_POST['BeritaAcaraDaftarHadir']['KELAS']; $T_A = $_POST['MJadwal']['TA'];
$T_A = $_POST['BeritaAcaraDaftarHadir']['TA']; $id = $KODE_MK_form . "-" . $Kelas_form . "-" . $T_A;
$id = $KODE_MK_form . "-" . $Sem_form . "-" . $Kelas_form . "-" . $T_A; $hasil = BeritaAcaraDaftarHadir::model()->findAllBySql(" SELECT * FROM berita_acara_daftar_hadir badh JOIN d_jadwal dj ON badh.`ID_DETAIL_JADWAL`=dj.`ID` JOIN m_jadwal mj ON dj.`ID_JADWAL`=mj.`ID`
$hasil = BeritaAcaraDaftarHadir::model()->findAllByAttributes(array('KODE_MK' => $KODE_MK_form, 'KELAS' => $Kelas_form, 'SEM' => $Sem_form)); WHERE mj.`TA`= '$T_A' AND dj.`KODE_MK` = '$KODE_MK_form' AND mj.`KELAS` = '$Kelas_form'");
$hadir= Yii::app()->db->createCommand("SELECT COUNT(*) FROM berita_acara_daftar_hadir where KODE_MK LIKE '$KODE_MK_form' AND SEM LIKE '$Sem_form' AND KELAS LIKE '$Kelas_form' AND TA LIKE '$T_A' AND STATUS LIKE 'H'")->queryAll(); $hadir = Yii::app()->db->createCommand("SELECT COUNT(*) FROM berita_acara_daftar_hadir badh JOIN d_jadwal dj ON badh.`ID_DETAIL_JADWAL`=dj.`ID` JOIN m_jadwal mj ON dj.`ID_JADWAL`=mj.`ID`
$absen= Yii::app()->db->createCommand("SELECT COUNT(*) FROM berita_acara_daftar_hadir where KODE_MK LIKE '$KODE_MK_form' AND SEM LIKE '$Sem_form' AND KELAS LIKE '$Kelas_form' AND TA LIKE '$T_A' AND STATUS LIKE 'A'")->queryAll(); WHERE mj.`TA`= '$T_A' AND dj.`KODE_MK` = '$KODE_MK_form' AND mj.`KELAS` = '$Kelas_form' AND STATUS LIKE 'H'")->queryAll();
var_dump($hadir); $absen = Yii::app()->db->createCommand("SELECT COUNT(*) FROM berita_acara_daftar_hadir badh JOIN d_jadwal dj ON badh.`ID_DETAIL_JADWAL`=dj.`ID` JOIN m_jadwal mj ON dj.`ID_JADWAL`=mj.`ID`
WHERE mj.`TA`= '$T_A' AND dj.`KODE_MK` = '$KODE_MK_form' AND mj.`KELAS` = '$Kelas_form' AND STATUS LIKE 'A'")->queryAll();
$jmlHadir = 0; $jmlHadir = 0;
foreach($hadir as $item) foreach ($hadir as $item) {
{ $jmlHadir = $item['COUNT(*)'];
$jmlHadir = $item['COUNT(*)'];
} }
$jmlabsen = 0; $jmlabsen = 0;
foreach ($absen as $item) foreach ($absen as $item) {
{
$jmlabsen = $item['COUNT(*)']; $jmlabsen = $item['COUNT(*)'];
} }
if ($hasil) if ($hasil)
$this->redirect(array('IndexData', 'id' => $id,'lapet' => $jmlHadir,'lapet2'=>$jmlabsen)); $this->redirect(array('IndexData', 'id' => $id, 'lapet' => $jmlHadir, 'lapet2' => $jmlabsen));
} }
$this->render('SearcHDaftarHadir', array( $this->render('SearcHDaftarHadir', array(
'model' => $model, 'model' => $model,
'djadwal' => $djadwal,
'mjadwal' => $mjadwal,
)); ));
} }
...@@ -204,7 +206,7 @@ class BeritaAcaraDaftarHadirController extends Controller { ...@@ -204,7 +206,7 @@ class BeritaAcaraDaftarHadirController extends Controller {
//echo $lapet2; //echo $lapet2;
//var_dump($lapet) ; //var_dump($lapet) ;
$this->render('IndexDataSearch', array( $this->render('IndexDataSearch', array(
'message' => $id, 'wew'=>$lapet, 'wow'=>$lapet2, 'message' => $id, 'wew' => $lapet, 'wow' => $lapet2,
)); ));
} }
......
...@@ -138,9 +138,15 @@ class BeritaAcaraKuliahController extends Controller { ...@@ -138,9 +138,15 @@ class BeritaAcaraKuliahController extends Controller {
public function actionAdminByDate($id) { public function actionAdminByDate($id) {
//$tanggal = date("Y-m-d"); //$tanggal = date("Y-m-d");
$criteria = new CDbCriteria; $gridDataProvider = new CActiveDataProvider('BeritaAcaraKuliah', array(
$criteria->condition = 'TANGGAL like "%' . $id . '%"'; 'criteria' => array(
$gridDataProvider = new CActiveDataProvider('BeritaAcaraKuliah', array('criteria' => $criteria)); 'join' => "JOIN d_jadwal dj ON t.ID_DETAIL_JADWAL = dj.ID JOIN m_jadwal mj ON dj.ID_JADWAL = mj.ID",
'condition' => 'mj.TANGGAL like "%' . $id . '%"',
),
));
// $criteria = new CDbCriteria;
// $criteria->condition = 'TANGGAL like "%' . $id . '%"';
// $gridDataProvider = new CActiveDataProvider('BeritaAcaraKuliah', array('criteria' => $criteria));
$this->render('adminyDate', array( $this->render('adminyDate', array(
'dataProvider' => $gridDataProvider, 'wew' => $id, 'dataProvider' => $gridDataProvider, 'wew' => $id,
)); ));
...@@ -148,6 +154,8 @@ class BeritaAcaraKuliahController extends Controller { ...@@ -148,6 +154,8 @@ class BeritaAcaraKuliahController extends Controller {
public function actionCetakBeritaAcaraKuliah() { public function actionCetakBeritaAcaraKuliah() {
$model = new BeritaAcaraKuliah; $model = new BeritaAcaraKuliah;
$djadwal = new DJadwal;
$mjadwal = new MJadwal;
// Uncomment the following line if AJAX validation is needed // Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model); // $this->performAjaxValidation($model);
...@@ -155,19 +163,21 @@ class BeritaAcaraKuliahController extends Controller { ...@@ -155,19 +163,21 @@ class BeritaAcaraKuliahController extends Controller {
$KODE_MK_form = ""; $KODE_MK_form = "";
$Kelas_form = ""; $Kelas_form = "";
$Sem = ""; $Sem = "";
if (isset($_POST['BeritaAcaraKuliah'])) { if (isset($_POST['BeritaAcaraKuliah']) || isset($_POST['DJadwal']) || isset($_POST['MJadwal'])) {
//$model->attributes = $_POST['BeritaAcaraKuliah']; //$model->attributes = $_POST['BeritaAcaraKuliah'];
$TA_form = $_POST['BeritaAcaraKuliah']['TA']; $TA_form = $_POST['MJadwal']['TA'];
$KODE_MK_form = $_POST['BeritaAcaraKuliah']['KODE_MK']; $KODE_MK_form = $_POST['DJadwal']['KODE_MK'];
$Kelas_form = $_POST['BeritaAcaraKuliah']['KELAS']; $Kelas_form = $_POST['MJadwal']['KELAS'];
$Sem = $_POST['BeritaAcaraKuliah']['SEM']; $id = $TA_form . "-" . $KODE_MK_form . "-" . $Kelas_form;
$id = $TA_form . "-" . $KODE_MK_form . "-" . $Kelas_form . "-" . $Sem; $hasil = BeritaAcaraKuliah::model()->findAllBySql(" SELECT * FROM berita_acara_kuliah bak JOIN d_jadwal dj ON bak.`ID_DETAIL_JADWAL`=dj.`ID` JOIN m_jadwal mj ON dj.`ID_JADWAL`=mj.`ID`
$hasil = BeritaAcaraKuliah::model()->findAllByAttributes(array('TA' => $TA_form, 'KODE_MK' => $KODE_MK_form, 'KELAS' => $Kelas_form)); WHERE mj.`TA`= '$TA_form' AND dj.`KODE_MK` = '$KODE_MK_form' AND mj.`KELAS` = '$Kelas_form'");
if ($hasil) if ($hasil)
$this->redirect(array('IndexData', 'id' => $id)); $this->redirect(array('IndexData', 'id' => $id));
} }
$this->render('createBeritaAcaraKuliah', array( $this->render('createBeritaAcaraKuliah', array(
'model' => $model, 'model' => $model,
'djadwal' => $djadwal,
'mjadwal' => $mjadwal,
)); ));
} }
......
<?php
class DJadwalController extends Controller
{
/**
* @var string the default layout for the views. Defaults to '//layouts/column2', meaning
* using two-column layout. See 'protected/views/layouts/column2.php'.
*/
public $layout='//layouts/column2';
/**
* @return array action filters
*/
public function filters()
{
return array(
'accessControl', // perform access control for CRUD operations
);
}
/**
* Specifies the access control rules.
* This method is used by the 'accessControl' filter.
* @return array access control rules
*/
public function accessRules()
{
return array(
array('allow', // allow all users to perform 'index' and 'view' actions
'actions'=>array('index','view'),
'users'=>array('*'),
),
array('allow', // allow authenticated user to perform 'create' and 'update' actions
'actions'=>array('create','update'),
'users'=>array('@'),
),
array('allow', // allow admin user to perform 'admin' and 'delete' actions
'actions'=>array('admin','delete'),
'users'=>array('admin'),
),
array('deny', // deny all users
'users'=>array('*'),
),
);
}
/**
* Displays a particular model.
* @param integer $id the ID of the model to be displayed
*/
public function actionView($id)
{
$this->render('view',array(
'model'=>$this->loadModel($id),
));
}
/**
* Creates a new model.
* If creation is successful, the browser will be redirected to the 'view' page.
*/
public function actionCreate()
{
$model=new DJadwal;
// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);
if(isset($_POST['DJadwal']))
{
$model->attributes=$_POST['DJadwal'];
if($model->save())
$this->redirect(array('view','id'=>$model->ID));
}
$this->render('create',array(
'model'=>$model,
));
}
/**
* Updates a particular model.
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id the ID of the model to be updated
*/
public function actionUpdate($id)
{
$model=$this->loadModel($id);
// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);
if(isset($_POST['DJadwal']))
{
$model->attributes=$_POST['DJadwal'];
if($model->save())
$this->redirect(array('view','id'=>$model->ID));
}
$this->render('update',array(
'model'=>$model,
));
}
/**
* Deletes a particular model.
* If deletion is successful, the browser will be redirected to the 'admin' page.
* @param integer $id the ID of the model to be deleted
*/
public function actionDelete($id)
{
if(Yii::app()->request->isPostRequest)
{
// we only allow deletion via POST request
$this->loadModel($id)->delete();
// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
if(!isset($_GET['ajax']))
$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
}
else
throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');
}
/**
* Lists all models.
*/
public function actionIndex()
{
$dataProvider=new CActiveDataProvider('DJadwal');
$this->render('index',array(
'dataProvider'=>$dataProvider,
));
}
/**
* Manages all models.
*/
public function actionAdmin()
{
$model=new DJadwal('search');
$model->unsetAttributes(); // clear any default values
if(isset($_GET['DJadwal']))
$model->attributes=$_GET['DJadwal'];
$this->render('admin',array(
'model'=>$model,
));
}
/**
* Returns the data model based on the primary key given in the GET variable.
* If the data model is not found, an HTTP exception will be raised.
* @param integer the ID of the model to be loaded
*/
public function loadModel($id)
{
$model=DJadwal::model()->findByPk($id);
if($model===null)
throw new CHttpException(404,'The requested page does not exist.');
return $model;
}
/**
* Performs the AJAX validation.
* @param CModel the model to be validated
*/
protected function performAjaxValidation($model)
{
if(isset($_POST['ajax']) && $_POST['ajax']==='djadwal-form')
{
echo CActiveForm::validate($model);
Yii::app()->end();
}
}
}
...@@ -5,16 +5,7 @@ ...@@ -5,16 +5,7 @@
* *
* The followings are the available columns in table 'berita_acara_daftar_hadir': * The followings are the available columns in table 'berita_acara_daftar_hadir':
* @property integer $ID * @property integer $ID
* @property integer $WEEK * @property integer $ID_DETAIL_JADWAL
* @property string $TANGGAL
* @property integer $SESSION
* @property string $START_TIME
* @property string $END_TIME
* @property string $KELAS
* @property integer $TA
* @property integer $SEM
* @property integer $ID_KUR
* @property string $KODE_MK
* @property string $NIM * @property string $NIM
* @property string $STATUS * @property string $STATUS
* @property string $KETERANGAN * @property string $KETERANGAN
...@@ -25,158 +16,103 @@ ...@@ -25,158 +16,103 @@
* *
* The followings are the available model relations: * The followings are the available model relations:
* @property Dim $nIM * @property Dim $nIM
* @property Kurikulum $kODEMK * @property DJadwal $iDDETAILJADWAL
* @property Kurikulum $iDKUR
*/ */
class BeritaAcaraDaftarHadir extends CActiveRecord { class BeritaAcaraDaftarHadir extends CActiveRecord
{
/** /**
* Returns the static model of the specified AR class. * Returns the static model of the specified AR class.
* @param string $className active record class name. * @param string $className active record class name.
* @return BeritaAcaraDaftarHadir the static model class * @return BeritaAcaraDaftarHadir the static model class
*/ */
public static function model($className = __CLASS__) { public static function model($className=__CLASS__)
return parent::model($className); {
} return parent::model($className);
}
/**
* @return string the associated database table name /**
*/ * @return string the associated database table name
public function tableName() { */
return 'berita_acara_daftar_hadir'; public function tableName()
} {
return 'berita_acara_daftar_hadir';
/** }
* @return array validation rules for model attributes.
*/ /**
public function rules() { * @return array validation rules for model attributes.
// NOTE: you should only define rules for those attributes that */
// will receive user inputs. public function rules()
return array( {
array('KELAS', 'required'), // NOTE: you should only define rules for those attributes that
array('WEEK, SESSION, TA, SEM, ID_KUR', 'numerical', 'integerOnly' => true), // will receive user inputs.
array('KELAS', 'length', 'max' => 100), return array(
array('KODE_MK', 'length', 'max' => 10), array('ID_DETAIL_JADWAL', 'required'),
array('NIM', 'length', 'max' => 8), array('ID_DETAIL_JADWAL', 'numerical', 'integerOnly'=>true),
array('STATUS', 'length', 'max' => 7), array('NIM', 'length', 'max'=>8),
array('LAST_UPDATE', 'length', 'max' => 20), array('STATUS', 'length', 'max'=>7),
array('USER_ID, WS', 'length', 'max' => 15), array('LAST_UPDATE', 'length', 'max'=>20),
array('TANGGAL, START_TIME, END_TIME, KETERANGAN, WAKTU_ABSEN', 'safe'), array('USER_ID, WS', 'length', 'max'=>15),
// The following rule is used by search(). array('KETERANGAN, WAKTU_ABSEN', 'safe'),
// Please remove those attributes that should not be searched. // The following rule is used by search().
array('ID, WEEK, TANGGAL, SESSION, START_TIME, END_TIME, KELAS, TA, SEM, ID_KUR, KODE_MK, NIM, STATUS, KETERANGAN, LAST_UPDATE, USER_ID, WS, WAKTU_ABSEN', 'safe', 'on' => 'search'), // Please remove those attributes that should not be searched.
); array('ID, ID_DETAIL_JADWAL, NIM, STATUS, KETERANGAN, LAST_UPDATE, USER_ID, WS, WAKTU_ABSEN', 'safe', 'on'=>'search'),
} );
}
/**
* @return array relational rules. /**
*/ * @return array relational rules.
public function relations() { */
// NOTE: you may need to adjust the relation name and the related public function relations()
// class name for the relations automatically generated below. {
return array( // NOTE: you may need to adjust the relation name and the related
'nim' => array(self::BELONGS_TO, 'Dim', 'NIM'), // class name for the relations automatically generated below.
'kodemk' => array(self::BELONGS_TO, 'Kurikulum', 'KODE_MK'), return array(
'idkur' => array(self::BELONGS_TO, 'Kurikulum', 'ID_KUR'), 'nim' => array(self::BELONGS_TO, 'Dim', 'NIM'),
); 'iddetailjadwal' => array(self::BELONGS_TO, 'DJadwal', 'ID_DETAIL_JADWAL'),
} );
}
/**
* @return array customized attribute labels (name=>label) /**
*/ * @return array customized attribute labels (name=>label)
public function attributeLabels() { */
return array( public function attributeLabels()
'ID' => 'ID', {
'WEEK' => 'Week', return array(
'TANGGAL' => 'Tanggal', 'ID' => 'ID',
'SESSION' => 'Session', 'ID_DETAIL_JADWAL' => 'Id Detail Jadwal',
'START_TIME' => 'Start Time', 'NIM' => 'Nim',
'END_TIME' => 'End Time', 'STATUS' => 'Status',
'KELAS' => 'Kelas', 'KETERANGAN' => 'Keterangan',
'TA' => 'Ta', 'LAST_UPDATE' => 'Last Update',
'SEM' => 'Sem', 'USER_ID' => 'User',
'ID_KUR' => 'Id Kur', 'WS' => 'Ws',
'KODE_MK' => 'Kode Mk', 'WAKTU_ABSEN' => 'Waktu Absen',
'NIM' => 'Nim', );
'STATUS' => 'Status', }
'KETERANGAN' => 'Keterangan',
'LAST_UPDATE' => 'Last Update', /**
'USER_ID' => 'User', * Retrieves a list of models based on the current search/filter conditions.
'WS' => 'Ws', * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
'WAKTU_ABSEN' => 'Waktu Absen', */
); public function search()
} {
// Warning: Please modify the following code to remove attributes that
/** // should not be searched.
* Retrieves a list of models based on the current search/filter conditions.
* @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions. $criteria=new CDbCriteria;
*/
public function search() { $criteria->compare('ID',$this->ID);
// Warning: Please modify the following code to remove attributes that $criteria->compare('ID_DETAIL_JADWAL',$this->ID_DETAIL_JADWAL);
// should not be searched. $criteria->compare('NIM',$this->NIM,true);
$criteria->compare('STATUS',$this->STATUS,true);
$criteria = new CDbCriteria; $criteria->compare('KETERANGAN',$this->KETERANGAN,true);
$criteria->compare('LAST_UPDATE',$this->LAST_UPDATE,true);
$criteria->compare('ID', $this->ID); $criteria->compare('USER_ID',$this->USER_ID,true);
$criteria->compare('WEEK', $this->WEEK); $criteria->compare('WS',$this->WS,true);
$criteria->compare('TANGGAL', $this->TANGGAL, true); $criteria->compare('WAKTU_ABSEN',$this->WAKTU_ABSEN,true);
$criteria->compare('SESSION', $this->SESSION);
$criteria->compare('START_TIME', $this->START_TIME, true); return new CActiveDataProvider($this, array(
$criteria->compare('END_TIME', $this->END_TIME, true); 'criteria'=>$criteria,
$criteria->compare('KELAS', $this->KELAS, true); ));
$criteria->compare('TA', $this->TA); }
$criteria->compare('SEM', $this->SEM); }
$criteria->compare('ID_KUR', $this->ID_KUR); \ No newline at end of file
$criteria->compare('KODE_MK', $this->KODE_MK, true);
$criteria->compare('NIM', $this->NIM, true);
$criteria->compare('STATUS', $this->STATUS, true);
$criteria->compare('KETERANGAN', $this->KETERANGAN, true);
$criteria->compare('LAST_UPDATE', $this->LAST_UPDATE, true);
$criteria->compare('USER_ID', $this->USER_ID, true);
$criteria->compare('WS', $this->WS, true);
$criteria->compare('WAKTU_ABSEN', $this->WAKTU_ABSEN, true);
return new CActiveDataProvider($this, array(
'criteria' => $criteria,
));
}
public function searchCondition($WEEK, $TANGGAL, $SESSION, $ID_KUR, $KODE_MK) {
// Warning: Please modify the following code to remove attributes that
// should not be searched.
$criteria = new CDbCriteria;
$criteria->compare('ID', $this->ID);
$criteria->compare('WEEK', $WEEK, true);
$criteria->compare('TANGGAL', $TANGGAL, true);
$criteria->compare('SESSION', $SESSION, true);
$criteria->compare('START_TIME', $this->START_TIME, true);
$criteria->compare('END_TIME', $this->END_TIME, true);
$criteria->compare('KELAS', $this->KELAS, true);
$criteria->compare('TA', $this->TA);
$criteria->compare('SEM', $this->SEM);
$criteria->compare('ID_KUR', $ID_KUR, true);
$criteria->compare('KODE_MK', $KODE_MK, true);
$criteria->compare('NIM', $this->NIM, true);
$criteria->compare('STATUS', $this->STATUS, true);
$criteria->compare('KETERANGAN', $this->KETERANGAN, true);
$criteria->compare('LAST_UPDATE', $this->LAST_UPDATE, true);
$criteria->compare('USER_ID', $this->USER_ID, true);
$criteria->compare('WS', $this->WS, true);
$criteria->compare('WAKTU_ABSEN', $this->WAKTU_ABSEN, true);
return new CActiveDataProvider($this, array(
'criteria' => $criteria,
'pagination' => array(
'pageSize' => 40,
),
));
}
public function beforeSave() {
$this->TANGGAL = date('Y-m-d', strtotime($this->TANGGAL));
return parent::beforeSave();
}
}
...@@ -5,32 +5,12 @@ ...@@ -5,32 +5,12 @@
* *
* The followings are the available columns in table 'berita_acara_kuliah': * The followings are the available columns in table 'berita_acara_kuliah':
* @property integer $ID * @property integer $ID
* @property integer $WEEK * @property integer $ID_DETAIL_JADWAL
* @property integer $SESSION
* @property integer $TA
* @property integer $ID_KUR
* @property string $KODE_MK
* @property string $SEM
* @property string $KELAS
* @property string $TANGGAL
* @property string $START_TIME
* @property string $END_TIME
* @property string $TOPIK
* @property string $RUANGAN
* @property string $AKTIFITAS
* @property string $PIC
* @property string $TIPE_KULIAH * @property string $TIPE_KULIAH
* @property string $METODE
* @property string $ALAT_BANTU
* @property string $CATATAN * @property string $CATATAN
* @property string $LAST_UPDATE
* @property string $USER_ID
* @property string $WS
* *
* The followings are the available model relations: * The followings are the available model relations:
* @property Kurikulum $kODEMK * @property DJadwal $iDDETAILJADWAL
* @property Pegawai $pIC
* @property Ruangan $rUANGAN
*/ */
class BeritaAcaraKuliah extends CActiveRecord { class BeritaAcaraKuliah extends CActiveRecord {
...@@ -39,7 +19,7 @@ class BeritaAcaraKuliah extends CActiveRecord { ...@@ -39,7 +19,7 @@ class BeritaAcaraKuliah extends CActiveRecord {
* @param string $className active record class name. * @param string $className active record class name.
* @return BeritaAcaraKuliah the static model class * @return BeritaAcaraKuliah the static model class
*/ */
public static function model($className=__CLASS__) { public static function model($className = __CLASS__) {
return parent::model($className); return parent::model($className);
} }
...@@ -57,18 +37,13 @@ class BeritaAcaraKuliah extends CActiveRecord { ...@@ -57,18 +37,13 @@ class BeritaAcaraKuliah extends CActiveRecord {
// NOTE: you should only define rules for those attributes that // NOTE: you should only define rules for those attributes that
// will receive user inputs. // will receive user inputs.
return array( return array(
array('SEM', 'required'), array('ID_DETAIL_JADWAL', 'required'),
array('WEEK, SESSION, TA, ID_KUR', 'numerical', 'integerOnly' => true), array('ID_DETAIL_JADWAL', 'numerical', 'integerOnly' => true),
array('KODE_MK', 'length', 'max' => 10), array('TIPE_KULIAH', 'length', 'max' => 9),
array('SEM', 'length', 'max' => 5), array('CATATAN', 'safe'),
array('KELAS, RUANGAN', 'length', 'max' => 100),
array('AKTIFITAS, TIPE_KULIAH', 'length', 'max' => 9),
array('PIC, LAST_UPDATE', 'length', 'max' => 20),
array('USER_ID, WS', 'length', 'max' => 15),
array('TANGGAL, START_TIME, END_TIME, TOPIK, METODE, ALAT_BANTU, CATATAN', 'safe'),
// The following rule is used by search(). // The following rule is used by search().
// Please remove those attributes that should not be searched. // Please remove those attributes that should not be searched.
array('ID, WEEK, SESSION, TA, ID_KUR, KODE_MK, SEM, KELAS, TANGGAL, START_TIME, END_TIME, TOPIK, RUANGAN, AKTIFITAS, PIC, TIPE_KULIAH, METODE, ALAT_BANTU, CATATAN, LAST_UPDATE, USER_ID, WS', 'safe', 'on' => 'search'), array('ID, ID_DETAIL_JADWAL, TIPE_KULIAH, CATATAN', 'safe', 'on' => 'search'),
); );
} }
...@@ -79,9 +54,7 @@ class BeritaAcaraKuliah extends CActiveRecord { ...@@ -79,9 +54,7 @@ class BeritaAcaraKuliah extends CActiveRecord {
// NOTE: you may need to adjust the relation name and the related // NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below. // class name for the relations automatically generated below.
return array( return array(
'kodemk' => array(self::BELONGS_TO, 'Kurikulum', 'KODE_MK'), 'iddetailjadwal' => array(self::BELONGS_TO, 'DJadwal', 'ID_DETAIL_JADWAL'),
'pic' => array(self::BELONGS_TO, 'Pegawai', 'PIC'),
'ruangan' => array(self::BELONGS_TO, 'Ruangan', 'RUANGAN'),
); );
} }
...@@ -91,27 +64,9 @@ class BeritaAcaraKuliah extends CActiveRecord { ...@@ -91,27 +64,9 @@ class BeritaAcaraKuliah extends CActiveRecord {
public function attributeLabels() { public function attributeLabels() {
return array( return array(
'ID' => 'ID', 'ID' => 'ID',
'WEEK' => 'Week', 'ID_DETAIL_JADWAL' => 'Id Detail Jadwal',
'SESSION' => 'Session',
'TA' => 'Ta',
'ID_KUR' => 'Id Kur',
'KODE_MK' => 'Kode Mk',
'SEM' => 'Sem',
'KELAS' => 'Kelas',
'TANGGAL' => 'Tanggal',
'START_TIME' => 'Start Time',
'END_TIME' => 'End Time',
'TOPIK' => 'Topik',
'RUANGAN' => 'Ruangan',
'AKTIFITAS' => 'Aktifitas',
'PIC' => 'Pic',
'TIPE_KULIAH' => 'Tipe Kuliah', 'TIPE_KULIAH' => 'Tipe Kuliah',
'METODE' => 'Metode',
'ALAT_BANTU' => 'Alat Bantu',
'CATATAN' => 'Catatan', 'CATATAN' => 'Catatan',
'LAST_UPDATE' => 'Last Update',
'USER_ID' => 'User',
'WS' => 'Ws',
); );
} }
...@@ -126,36 +81,13 @@ class BeritaAcaraKuliah extends CActiveRecord { ...@@ -126,36 +81,13 @@ class BeritaAcaraKuliah extends CActiveRecord {
$criteria = new CDbCriteria; $criteria = new CDbCriteria;
$criteria->compare('ID', $this->ID); $criteria->compare('ID', $this->ID);
$criteria->compare('WEEK', $this->WEEK); $criteria->compare('ID_DETAIL_JADWAL', $this->ID_DETAIL_JADWAL);
$criteria->compare('SESSION', $this->SESSION);
$criteria->compare('TA', $this->TA);
$criteria->compare('ID_KUR', $this->ID_KUR);
$criteria->compare('KODE_MK', $this->KODE_MK, true);
$criteria->compare('SEM', $this->SEM, true);
$criteria->compare('KELAS', $this->KELAS, true);
$criteria->compare('TANGGAL', $this->TANGGAL, true);
$criteria->compare('START_TIME', $this->START_TIME, true);
$criteria->compare('END_TIME', $this->END_TIME, true);
$criteria->compare('TOPIK', $this->TOPIK, true);
$criteria->compare('RUANGAN', $this->RUANGAN, true);
$criteria->compare('AKTIFITAS', $this->AKTIFITAS, true);
$criteria->compare('PIC', $this->PIC, true);
$criteria->compare('TIPE_KULIAH', $this->TIPE_KULIAH, true); $criteria->compare('TIPE_KULIAH', $this->TIPE_KULIAH, true);
$criteria->compare('METODE', $this->METODE, true);
$criteria->compare('ALAT_BANTU', $this->ALAT_BANTU, true);
$criteria->compare('CATATAN', $this->CATATAN, true); $criteria->compare('CATATAN', $this->CATATAN, true);
$criteria->compare('LAST_UPDATE', $this->LAST_UPDATE, true);
$criteria->compare('USER_ID', $this->USER_ID, true);
$criteria->compare('WS', $this->WS, true);
return new CActiveDataProvider($this, array( return new CActiveDataProvider($this, array(
'criteria' => $criteria, 'criteria' => $criteria,
)); ));
} }
public function beforeSave() { }
$this->TANGGAL = date('Y-m-d', strtotime($this->TANGGAL));
return parent::beforeSave();
}
}
\ No newline at end of file
<?php
/**
* This is the model class for table "d_jadwal".
*
* The followings are the available columns in table 'd_jadwal':
* @property integer $ID
* @property integer $ID_JADWAL
* @property integer $SESSION
* @property string $START_TIME
* @property string $END_TIME
* @property string $KODE_MK
* @property string $RUANGAN
* @property string $TOPIK
* @property string $SUB_TOPIK
* @property string $OBJEKTIF
* @property string $AKTIFITAS
* @property string $PIC
* @property string $METODE
* @property string $ALAT_BANTU
* @property string $KET
* @property string $LAST_UPDATE
* @property string $USER_ID
* @property string $WS
*
* The followings are the available model relations:
* @property MJadwal $iDJADWAL
* @property Kurikulum $kODEMK
* @property Pegawai $pIC
* @property Ruangan $rUANGAN
*/
class DJadwal extends CActiveRecord {
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return DJadwal the static model class
*/
public static function model($className = __CLASS__) {
return parent::model($className);
}
/**
* @return string the associated database table name
*/
public function tableName() {
return 'd_jadwal';
}
/**
* @return array validation rules for model attributes.
*/
public function rules() {
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
array('ID_JADWAL, SESSION, KODE_MK, PIC, USER_ID, WS', 'required'),
array('ID_JADWAL, SESSION', 'numerical', 'integerOnly' => true),
array('KODE_MK', 'length', 'max' => 8),
array('RUANGAN, PIC, LAST_UPDATE', 'length', 'max' => 20),
array('TOPIK, KET', 'length', 'max' => 255),
array('AKTIFITAS', 'length', 'max' => 9),
array('USER_ID, WS', 'length', 'max' => 15),
array('START_TIME, END_TIME, SUB_TOPIK, OBJEKTIF, METODE, ALAT_BANTU', 'safe'),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
array('ID, ID_JADWAL, SESSION, START_TIME, END_TIME, KODE_MK, RUANGAN, TOPIK, SUB_TOPIK, OBJEKTIF, AKTIFITAS, PIC, METODE, ALAT_BANTU, KET, LAST_UPDATE, USER_ID, WS', 'safe', 'on' => 'search'),
);
}
/**
* @return array relational rules.
*/
public function relations() {
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
'idjadwal' => array(self::BELONGS_TO, 'MJadwal', 'ID_JADWAL'),
'kodemk' => array(self::BELONGS_TO, 'Kurikulum', 'KODE_MK'),
'pic' => array(self::BELONGS_TO, 'Pegawai', 'PIC'),
'ruangan' => array(self::BELONGS_TO, 'Ruangan', 'RUANGAN'),
);
}
/**
* @return array customized attribute labels (name=>label)
*/
public function attributeLabels() {
return array(
'ID' => 'ID',
'ID_JADWAL' => 'Id Jadwal',
'SESSION' => 'Session',
'START_TIME' => 'Start Time',
'END_TIME' => 'End Time',
'KODE_MK' => 'Kode Mk',
'RUANGAN' => 'Ruangan',
'TOPIK' => 'Topik',
'SUB_TOPIK' => 'Sub Topik',
'OBJEKTIF' => 'Objektif',
'AKTIFITAS' => 'Aktifitas',
'PIC' => 'Pic',
'METODE' => 'Metode',
'ALAT_BANTU' => 'Alat Bantu',
'KET' => 'Ket',
'LAST_UPDATE' => 'Last Update',
'USER_ID' => 'User',
'WS' => 'Ws',
);
}
/**
* Retrieves a list of models based on the current search/filter conditions.
* @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
*/
public function search() {
// Warning: Please modify the following code to remove attributes that
// should not be searched.
$criteria = new CDbCriteria;
$criteria->compare('ID', $this->ID);
$criteria->compare('ID_JADWAL', $this->ID_JADWAL);
$criteria->compare('SESSION', $this->SESSION);
$criteria->compare('START_TIME', $this->START_TIME, true);
$criteria->compare('END_TIME', $this->END_TIME, true);
$criteria->compare('KODE_MK', $this->KODE_MK, true);
$criteria->compare('RUANGAN', $this->RUANGAN, true);
$criteria->compare('TOPIK', $this->TOPIK, true);
$criteria->compare('SUB_TOPIK', $this->SUB_TOPIK, true);
$criteria->compare('OBJEKTIF', $this->OBJEKTIF, true);
$criteria->compare('AKTIFITAS', $this->AKTIFITAS, true);
$criteria->compare('PIC', $this->PIC, true);
$criteria->compare('METODE', $this->METODE, true);
$criteria->compare('ALAT_BANTU', $this->ALAT_BANTU, true);
$criteria->compare('KET', $this->KET, true);
$criteria->compare('LAST_UPDATE', $this->LAST_UPDATE, true);
$criteria->compare('USER_ID', $this->USER_ID, true);
$criteria->compare('WS', $this->WS, true);
return new CActiveDataProvider($this, array(
'criteria' => $criteria,
));
}
public function beforeSave() {
$this->TANGGAL = date('Y-m-d', strtotime($this->TANGGAL));
return parent::beforeSave();
}
}
<?php
/**
* This is the model class for table "m_jadwal".
*
* The followings are the available columns in table 'm_jadwal':
* @property integer $ID
* @property integer $WEEK
* @property string $TANGGAL
* @property integer $TA
* @property integer $ID_KUR
* @property string $KELAS
*
* The followings are the available model relations:
* @property DJadwal[] $dJadwals
* @property Kurikulum $iDKUR
*/
class MJadwal extends CActiveRecord {
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return MJadwal the static model class
*/
public static function model($className = __CLASS__) {
return parent::model($className);
}
/**
* @return string the associated database table name
*/
public function tableName() {
return 'm_jadwal';
}
/**
* @return array validation rules for model attributes.
*/
public function rules() {
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
array('TANGGAL, TA, ID_KUR', 'required'),
array('WEEK, TA, ID_KUR', 'numerical', 'integerOnly' => true),
array('KELAS', 'length', 'max' => 20),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
array('ID, WEEK, TANGGAL, TA, ID_KUR, KELAS', 'safe', 'on' => 'search'),
);
}
/**
* @return array relational rules.
*/
public function relations() {
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
'djadwal' => array(self::HAS_MANY, 'DJadwal', 'ID_JADWAL'),
'idkur' => array(self::BELONGS_TO, 'Kurikulum', 'ID_KUR'),
);
}
/**
* @return array customized attribute labels (name=>label)
*/
public function attributeLabels() {
return array(
'ID' => 'ID',
'WEEK' => 'Week',
'TANGGAL' => 'Tanggal',
'TA' => 'Ta',
'ID_KUR' => 'Id Kur',
'KELAS' => 'Kelas',
);
}
/**
* Retrieves a list of models based on the current search/filter conditions.
* @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
*/
public function search() {
// Warning: Please modify the following code to remove attributes that
// should not be searched.
$criteria = new CDbCriteria;
$criteria->compare('ID', $this->ID);
$criteria->compare('WEEK', $this->WEEK);
$criteria->compare('TANGGAL', $this->TANGGAL, true);
$criteria->compare('TA', $this->TA);
$criteria->compare('ID_KUR', $this->ID_KUR);
$criteria->compare('KELAS', $this->KELAS, true);
return new CActiveDataProvider($this, array(
'criteria' => $criteria,
));
}
public function beforeSave() {
$this->TANGGAL = date('Y-m-d', strtotime($this->TANGGAL));
return parent::beforeSave();
}
public function behaviors() {
return array('ESaveRelatedBehavior' => array(
'class' => 'application.components.ESaveRelatedBehavior')
);
}
}
...@@ -7,9 +7,8 @@ ...@@ -7,9 +7,8 @@
$temp = explode("-", $message); $temp = explode("-", $message);
$Kode = $temp[0]; $Kode = $temp[0];
$Sem = $temp[1]; $Kelas = $temp[1];
$Kelas = $temp[2]; $TA = $temp[2];
$TA = $temp[3];
?> ?>
<h2><center><u>BERITA ACARA KULIAH</u></center></h2> <h2><center><u>BERITA ACARA KULIAH</u></center></h2>
<table> <table>
...@@ -39,7 +38,7 @@ $TA = $temp[3]; ...@@ -39,7 +38,7 @@ $TA = $temp[3];
<td> : </td> <td> : </td>
<td> <td>
<?php <?php
echo $Sem; echo $mk->SEM;
?> ?>
</td> </td>
</tr> </tr>
...@@ -51,11 +50,12 @@ $TA = $temp[3]; ...@@ -51,11 +50,12 @@ $TA = $temp[3];
</table> </table>
<?php <?php
$dataProvider = BeritaAcaraKuliah::model()->findAllByAttributes(array('TA' => $TA, 'KODE_MK' => $Kode, 'KELAS' => $Kode)); $dataProvider = new CActiveDataProvider('BeritaAcaraDaftarHadir', array(
$criteria = new CDbCriteria; 'criteria' => array(
$criteria->condition = 'KODE_MK = "' . $Kode . '" and KELAS = "' . $Kelas . '"and SEM = "' . $Sem . '"and TA = "' . $TA . '"'; 'join' => "JOIN d_jadwal dj ON t.ID_DETAIL_JADWAL = dj.ID JOIN m_jadwal mj ON dj.ID_JADWAL = mj.ID",
$dataProvider = new CActiveDataProvider('BeritaAcaraDaftarHadir', array('pagination' => array('pageSize' => 10,), 'criteria' => $criteria)); 'condition' => "mj.TA LIKE '$TA' AND dj.KODE_MK LIKE '$Kode' AND mj.KELAS LIKE '$Kelas' ",
),
'pagination' => array('pageSize' => 10,)));
//echo $count = BeritaAcaraDaftarHadir::model()->countByAttributes(array('KODE_MK'=>$Kode)); //echo $count = BeritaAcaraDaftarHadir::model()->countByAttributes(array('KODE_MK'=>$Kode));
?> ?>
...@@ -70,7 +70,28 @@ $this->widget( ...@@ -70,7 +70,28 @@ $this->widget(
'dataProvider' => $dataProvider, 'dataProvider' => $dataProvider,
'enablePagination' => false, 'enablePagination' => false,
'template' => "{items}", 'template' => "{items}",
'columns' => array('NIM', 'WEEK', 'TANGGAL', 'SESSION', 'KELAS', 'TA', 'SEM', 'ID_KUR', 'KODE_MK', 'STATUS' 'columns' => array(
'NIM', 'STATUS',
array(
'header' => 'Minggu',
'value' => '$data->iddetailjadwal->idjadwal->WEEK',
),
array(
'header' => 'Tanggal',
'value' => '$data->iddetailjadwal->idjadwal->TANGGAL',
),
array(
'header' => 'Sesi',
'value' => '$data->iddetailjadwal->SESSION',
),
array(
'header' => 'Kelas',
'value' => '$data->iddetailjadwal->idjadwal->KELAS',
),
array(
'header' => 'Mata Kuliah',
'value' => '$data->iddetailjadwal->kodemk->SHORT_NAME',
),
),) ),)
); );
?><br/> ?><br/>
...@@ -86,5 +107,5 @@ $this->widget( ...@@ -86,5 +107,5 @@ $this->widget(
</table> </table>
<br><br> <br><br>
<?php <?php
echo CHtml::Button('Cetak Berita Laporan Ini (.pdf)', array('submit' => array('/BeritaAcaraDaftarHadir/CetakLaporan', 'id' => $message))); echo CHtml::Button('Cetak Berita Laporan Ini (.pdf)', array('submit' => array('/BeritaAcaraDaftarHadir/CetakLaporan', 'id' => $message . "-" . $mk->SEM)));
?> ?>
\ No newline at end of file
<?php <?php
$this->menu = array(
$this->menu=array( array('label' => 'List BeritaAcaraKuliah', 'url' => array('index')),
array('label'=>'List BeritaAcaraKuliah','url'=>array('index')), array('label' => 'Manage BeritaAcaraKuliah', 'url' => array('admin')),
array('label'=>'Manage BeritaAcaraKuliah','url'=>array('admin')),
); );
?> ?>
<h1>Find your Berita Acara Daftar Hadir</h1> <h1>Find your Berita Acara Daftar Hadir</h1>
<?php echo $this->renderPartial('_formDaftarHadir', array('model'=>$model)); ?> <?php echo $this->renderPartial('_formDaftarHadir', array('model' => $model, 'mjadwal' => $mjadwal, 'djadwal' => $djadwal)); ?>
\ No newline at end of file \ No newline at end of file
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array( <?php $form=$this->beginWidget('booster.widgets.TbActiveForm',array(
'id'=>'berita-acara-daftar-hadir-form', 'id'=>'berita-acara-daftar-hadir-form',
'enableAjaxValidation'=>false, 'enableAjaxValidation'=>false,
)); ?> )); ?>
...@@ -7,40 +7,40 @@ ...@@ -7,40 +7,40 @@
<?php echo $form->errorSummary($model); ?> <?php echo $form->errorSummary($model); ?>
<?php echo $form->textFieldRow($model,'WEEK',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'WEEK',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'SESSION',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'SESSION',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'START_TIME',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'START_TIME',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'END_TIME',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'END_TIME',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'TA',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'TA',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'SEM',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'SEM',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'ID_KUR',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'ID_KUR',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'KODE_MK',array('class'=>'span5','maxlength'=>10)); ?> <?php echo $form->textFieldGroup($model,'KODE_MK',array('class'=>'span5','maxlength'=>10)); ?>
<?php echo $form->textFieldRow($model,'NIM',array('class'=>'span5','maxlength'=>8)); ?> <?php echo $form->textFieldGroup($model,'NIM',array('class'=>'span5','maxlength'=>8)); ?>
<?php echo $form->textFieldRow($model,'STATUS',array('class'=>'span5','maxlength'=>7)); ?> <?php echo $form->textFieldGroup($model,'STATUS',array('class'=>'span5','maxlength'=>7)); ?>
<?php echo $form->textAreaRow($model,'KETERANGAN',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?> <?php echo $form->textAreaGroup($model,'KETERANGAN',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?>
<?php echo $form->textFieldRow($model,'LAST_UPDATE',array('class'=>'span5','maxlength'=>20)); ?> <?php echo $form->textFieldGroup($model,'LAST_UPDATE',array('class'=>'span5','maxlength'=>20)); ?>
<?php echo $form->textFieldRow($model,'USER_ID',array('class'=>'span5','maxlength'=>15)); ?> <?php echo $form->textFieldGroup($model,'USER_ID',array('class'=>'span5','maxlength'=>15)); ?>
<?php echo $form->textFieldRow($model,'WS',array('class'=>'span5','maxlength'=>15)); ?> <?php echo $form->textFieldGroup($model,'WS',array('class'=>'span5','maxlength'=>15)); ?>
<?php echo $form->textFieldRow($model,'WAKTU_ABSEN',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'WAKTU_ABSEN',array('class'=>'span5')); ?>
<div class="form-actions"> <div class="form-actions">
<?php $this->widget('bootstrap.widgets.TbButton', array( <?php $this->widget('booster.widgets.TbButton', array(
'buttonType'=>'submit', 'buttonType'=>'submit',
'type'=>'primary', 'context'=>'primary',
'label'=>$model->isNewRecord ? 'Create' : 'Save', 'label'=>$model->isNewRecord ? 'Create' : 'Save',
)); ?> )); ?>
</div> </div>
......
...@@ -16,28 +16,24 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array( ...@@ -16,28 +16,24 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
<h3>Tahun Ajaran</h3></CENTER> <h3>Tahun Ajaran</h3></CENTER>
</TD> </TD>
<TD ALIGN="CENTER"><CENTER> <TD ALIGN="CENTER"><CENTER>
<h3>Semester</h3></CENTER> <h3>Kode Mata Kuliah</h3></CENTER>
</TD> </TD>
<TD ALIGN="CENTER"><CENTER> <TD ALIGN="CENTER"><CENTER>
<h3>Mata Kuliah</h3></CENTER> <h3>Kelas</h3></CENTER>
</TD> <TD>
<td ALIGN="CENTER"><center>
<h3>Kelas</h3></center> </TR>
</td>
</TR>
<TR ALIGN="CENTER"> <TR ALIGN="CENTER">
<TD ALIGN="CENTER"> <TD ALIGN="CENTER">
<CENTER> <CENTER>
<?php //echo $form->textFieldGroup($model,'ID_KUR',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php <?php
$data = CHtml::listData(Jadwal::model()->findAll(), 'TA', 'TA'); $ta = CHtml::listData(MJadwal::model()->findAll(), 'TA', 'TA');
echo $form->dropDownListGroup( echo $form->dropDownListGroup(
$model, 'TA', array('wrapperHtmlOptions' => array( $mjadwal, 'TA', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5', 'class' => 'col-sm-5',
), ),
'widgetOptions' => array( 'widgetOptions' => array(
'data' => $data, 'data' => $ta,
'htmlOptions' => array(), 'htmlOptions' => array(),
) )
) )
...@@ -45,31 +41,35 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array( ...@@ -45,31 +41,35 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
?> ?>
</CENTER> </CENTER>
</TD> </TD>
<TD ALIGN="CENTER"><CENTER> <TD ALIGN="CENTER"><CENTER>
<?php //echo $form->textFieldGroup($model,'ID_KUR',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php <?php
$data = CHtml::listData(BeritaAcaraDaftarHadir::model()->findAll(), 'SEM', 'SEM'); $kodemk = CHtml::listData(DJadwal::model()->findAll(), 'KODE_MK', 'KODE_MK');
echo $form->dropDownListGroup( echo $form->dropDownListGroup(
$model, 'SEM', array('wrapperHtmlOptions' => array( $djadwal, 'KODE_MK', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5', 'class' => 'col-sm-5',
), ),
'widgetOptions' => array( 'widgetOptions' => array(
'data' => $data, 'data' => $kodemk,
'htmlOptions' => array(), 'htmlOptions' => array(),
) )
) )
); );
?> ?>
</CENTER> </CENTER>
</TD> </TD>
<TD ALIGN="CENTER"><CENTER> <TD ALIGN="CENTER"><CENTER>
<?php <?php
$data = CHtml::listData(Jadwal::model()->findAll(), 'KODE_MK', 'KODE_MK'); $kelas = CHtml::listData(MJadwal::model()->findAll(), 'KELAS', 'KELAS');
echo $form->dropDownListGroup( echo $form->dropDownListGroup(
$model, 'KODE_MK', array('wrapperHtmlOptions' => array( $mjadwal, 'KELAS', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5', 'class' => 'col-sm-5',
), ),
'widgetOptions' => array( 'widgetOptions' => array(
'data' => $data, 'data' => $kelas,
'htmlOptions' => array(), 'htmlOptions' => array(),
) )
) )
...@@ -77,26 +77,6 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array( ...@@ -77,26 +77,6 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
?> ?>
<CENTER> <CENTER>
</TD> </TD>
<TD ALIGN="CENTER">
<CENTER>
<?php //echo $form->textFieldGroup($model,'ID_KUR',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php
$data = CHtml::listData(Jadwal::model()->findAll(), 'KELAS', 'KELAS');
echo $form->dropDownListGroup(
$model, 'KELAS', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5',
),
'widgetOptions' => array(
'data' => $data,
'htmlOptions' => array(),
)
)
);
?>
</CENTER>
</TD>
</TR> </TR>
<TR > <TR >
<TD ALIGN="CENTER" COLSPAN="4" ><CENTER> <TD ALIGN="CENTER" COLSPAN="4" ><CENTER>
...@@ -110,42 +90,42 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array( ...@@ -110,42 +90,42 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
?> ?>
</div> </div>
</CENTER> </CENTER>
</TD> <TD>
</TR> </TR>
</TABLE> </TABLE>
<?php //echo $form->datePickerGroup($model,'TANGGAL',array('widgetOptions'=>array('options'=>array(),'htmlOptions'=>array('class'=>'span5')), 'prepend'=>'<i class="glyphicon glyphicon-calendar"></i>', 'append'=>'Click on Month/Year to select a different Month/Year.')); ?> <?php //echo $form->datePickerGroup($model,'TANGGAL',array('widgetOptions'=>array('options'=>array(),'htmlOptions'=>array('class'=>'span5')), 'prepend'=>'<i class="glyphicon glyphicon-calendar"></i>', 'append'=>'Click on Month/Year to select a different Month/Year.')); ?>
<?php //echo $form->textFieldGroup($model,'START_TIME',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?> <?php //echo $form->textFieldGroup($model,'START_TIME',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php //echo $form->textFieldGroup($model,'END_TIME',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?> <?php //echo $form->textFieldGroup($model,'END_TIME',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php //echo $form->textAreaGroup($model,'TOPIK', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?> <?php //echo $form->textAreaGroup($model,'TOPIK', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?>
<?php //echo $form->textFieldGroup($model,'RUANGAN',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>100)))); ?> <?php //echo $form->textFieldGroup($model,'RUANGAN',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>100)))); ?>
<?php //echo $form->textFieldGroup($model,'AKTIFITAS',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>15)))); ?> <?php //echo $form->textFieldGroup($model,'AKTIFITAS',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>15)))); ?>
<?php //echo $form->textFieldGroup($model,'PIC',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>20)))); ?> <?php //echo $form->textFieldGroup($model,'PIC',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>20)))); ?>
<?php //echo $form->dropDownListGroup($model,'TIPE_KULIAH', array('widgetOptions'=>array('data'=>array("Regular"=>"Regular","Pengganti"=>"Pengganti",), 'htmlOptions'=>array('class'=>'input-large')))); ?> <?php //echo $form->dropDownListGroup($model,'TIPE_KULIAH', array('widgetOptions'=>array('data'=>array("Regular"=>"Regular","Pengganti"=>"Pengganti",), 'htmlOptions'=>array('class'=>'input-large')))); ?>
<?php //echo $form->textAreaGroup($model,'METODE', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?> <?php //echo $form->textAreaGroup($model,'METODE', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?>
<?php //echo $form->textAreaGroup($model,'ALAT_BANTU', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?> <?php //echo $form->textAreaGroup($model,'ALAT_BANTU', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?>
<?php //echo $form->textAreaGroup($model,'CATATAN', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?> <?php //echo $form->textAreaGroup($model,'CATATAN', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?>
<?php //echo $form->textFieldGroup($model,'LAST_UPDATE',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>20)))); ?> <?php //echo $form->textFieldGroup($model,'LAST_UPDATE',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>20)))); ?>
<?php //echo $form->textFieldGroup($model,'USER_ID',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>15)))); ?> <?php //echo $form->textFieldGroup($model,'USER_ID',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>15)))); ?>
<?php //echo $form->textFieldGroup($model,'WS',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>15)))); ?> <?php //echo $form->textFieldGroup($model,'WS',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>15)))); ?>
<?php $this->endWidget(); ?> <?php $this->endWidget(); ?>
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array( <?php $form=$this->beginWidget('booster.widgets.TbActiveForm',array(
'action'=>Yii::app()->createUrl($this->route), 'action'=>Yii::app()->createUrl($this->route),
'method'=>'get', 'method'=>'get',
)); ?> )); ?>
<?php echo $form->textFieldRow($model,'ID',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'ID',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'WEEK',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'WEEK',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'SESSION',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'SESSION',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'START_TIME',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'START_TIME',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'END_TIME',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'END_TIME',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'TA',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'TA',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'SEM',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'SEM',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'ID_KUR',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'ID_KUR',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'KODE_MK',array('class'=>'span5','maxlength'=>10)); ?> <?php echo $form->textFieldGroup($model,'KODE_MK',array('class'=>'span5','maxlength'=>10)); ?>
<?php echo $form->textFieldRow($model,'NIM',array('class'=>'span5','maxlength'=>8)); ?> <?php echo $form->textFieldGroup($model,'NIM',array('class'=>'span5','maxlength'=>8)); ?>
<?php echo $form->textFieldRow($model,'STATUS',array('class'=>'span5','maxlength'=>7)); ?> <?php echo $form->textFieldGroup($model,'STATUS',array('class'=>'span5','maxlength'=>7)); ?>
<?php echo $form->textAreaRow($model,'KETERANGAN',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?> <?php echo $form->textAreaGroup($model,'KETERANGAN',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?>
<?php echo $form->textFieldRow($model,'LAST_UPDATE',array('class'=>'span5','maxlength'=>20)); ?> <?php echo $form->textFieldGroup($model,'LAST_UPDATE',array('class'=>'span5','maxlength'=>20)); ?>
<?php echo $form->textFieldRow($model,'USER_ID',array('class'=>'span5','maxlength'=>15)); ?> <?php echo $form->textFieldGroup($model,'USER_ID',array('class'=>'span5','maxlength'=>15)); ?>
<?php echo $form->textFieldRow($model,'WS',array('class'=>'span5','maxlength'=>15)); ?> <?php echo $form->textFieldGroup($model,'WS',array('class'=>'span5','maxlength'=>15)); ?>
<?php echo $form->textFieldRow($model,'WAKTU_ABSEN',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'WAKTU_ABSEN',array('class'=>'span5')); ?>
<div class="form-actions"> <div class="form-actions">
<?php $this->widget('bootstrap.widgets.TbButton', array( <?php $this->widget('booster.widgets.TbButton', array(
'buttonType' => 'submit', 'buttonType' => 'submit',
'type'=>'primary', 'context'=>'primary',
'label'=>'Search', 'label'=>'Search',
)); ?> )); ?>
</div> </div>
......
<div class="view"> <div class="view">
<b><?php echo CHtml::encode($data->getAttributeLabel('ID')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('ID')); ?>:</b>
<?php echo CHtml::link(CHtml::encode($data->ID),array('view','id'=>$data->ID)); ?> <?php echo CHtml::link(CHtml::encode($data->ID), array('view', 'id' => $data->ID)); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('WEEK')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('WEEK')); ?>:</b>
<?php echo CHtml::encode($data->WEEK); ?> <?php echo CHtml::encode($data->WEEK); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('SESSION')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('SESSION')); ?>:</b>
<?php echo CHtml::encode($data->SESSION); ?> <?php echo CHtml::encode($data->SESSION); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('START_TIME')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('START_TIME')); ?>:</b>
<?php echo CHtml::encode($data->START_TIME); ?> <?php echo CHtml::encode($data->START_TIME); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('END_TIME')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('END_TIME')); ?>:</b>
<?php echo CHtml::encode($data->END_TIME); ?> <?php echo CHtml::encode($data->END_TIME); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('TA')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('TA')); ?>:</b>
<?php echo CHtml::encode($data->TA); ?> <?php echo CHtml::encode($data->TA); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('SEM')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('SEM')); ?>:</b>
<?php echo CHtml::encode($data->SEM); ?> <?php echo CHtml::encode($data->SEM); ?>
<br /> <br />
<?php /* <?php /*
<b><?php echo CHtml::encode($data->getAttributeLabel('ID_KUR')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('ID_KUR')); ?>:</b>
<?php echo CHtml::encode($data->ID_KUR); ?> <?php echo CHtml::encode($data->ID_KUR); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('KODE_MK')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('KODE_MK')); ?>:</b>
<?php echo CHtml::encode($data->KODE_MK); ?> <?php echo CHtml::encode($data->KODE_MK); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('NIM')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('NIM')); ?>:</b>
<?php echo CHtml::encode($data->NIM); ?> <?php echo CHtml::encode($data->NIM); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('STATUS')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('STATUS')); ?>:</b>
<?php echo CHtml::encode($data->STATUS); ?> <?php echo CHtml::encode($data->STATUS); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('KETERANGAN')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('KETERANGAN')); ?>:</b>
<?php echo CHtml::encode($data->KETERANGAN); ?> <?php echo CHtml::encode($data->KETERANGAN); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('LAST_UPDATE')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('LAST_UPDATE')); ?>:</b>
<?php echo CHtml::encode($data->LAST_UPDATE); ?> <?php echo CHtml::encode($data->LAST_UPDATE); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('USER_ID')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('USER_ID')); ?>:</b>
<?php echo CHtml::encode($data->USER_ID); ?> <?php echo CHtml::encode($data->USER_ID); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('WS')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('WS')); ?>:</b>
<?php echo CHtml::encode($data->WS); ?> <?php echo CHtml::encode($data->WS); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('WAKTU_ABSEN')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('WAKTU_ABSEN')); ?>:</b>
<?php echo CHtml::encode($data->WAKTU_ABSEN); ?> <?php echo CHtml::encode($data->WAKTU_ABSEN); ?>
<br /> <br />
*/ ?> */ ?>
</div> </div>
\ No newline at end of file
<?php <?php
$this->menu = array(
array('label' => 'List BeritaAcaraDaftarHadir', 'url' => array('index')),
$this->menu=array( array('label' => 'Create BeritaAcaraDaftarHadir', 'url' => array('create')),
array('label'=>'List BeritaAcaraDaftarHadir','url'=>array('index')),
array('label'=>'Create BeritaAcaraDaftarHadir','url'=>array('create')),
); );
Yii::app()->clientScript->registerScript('search', " Yii::app()->clientScript->registerScript('search', "
...@@ -23,43 +21,46 @@ return false; ...@@ -23,43 +21,46 @@ return false;
<h1>Manage Berita Acara Daftar Hadirs</h1> <h1>Manage Berita Acara Daftar Hadirs</h1>
<p> <p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b> You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>
&lt;&gt;</b> &lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done. or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p> </p>
<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button btn')); ?> <?php echo CHtml::link('Advanced Search', '#', array('class' => 'search-button btn')); ?>
<div class="search-form" style="display:none"> <div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array( <?php
'model'=>$model, $this->renderPartial('_search', array(
)); ?> 'model' => $model,
));
?>
</div><!-- search-form --> </div><!-- search-form -->
<?php $this->widget('bootstrap.widgets.TbGridView',array( <?php
'id'=>'berita-acara-daftar-hadir-grid', $this->widget('booster.widgets.TbGridView', array(
'dataProvider'=>$dataProvider, 'id' => 'berita-acara-daftar-hadir-grid',
'dataProvider' => $dataProvider,
//'filter'=>$model, //'filter'=>$model,
'columns'=>array( 'columns' => array(
'ID', 'ID',
'WEEK', 'WEEK',
'SESSION', 'SESSION',
'START_TIME', 'START_TIME',
'END_TIME', 'END_TIME',
'TA', 'TA',
'SEM',
'SEM', 'ID_KUR',
'ID_KUR', 'KODE_MK',
'KODE_MK', 'NIM',
'NIM', 'STATUS',
'STATUS', 'KETERANGAN',
'KETERANGAN', 'LAST_UPDATE',
'LAST_UPDATE', 'USER_ID',
'USER_ID', 'WS',
'WS', 'WAKTU_ABSEN',
'WAKTU_ABSEN', //*/
//*/ array(
array( 'class' => 'booster.widgets.TbButtonColumn',
'class'=>'bootstrap.widgets.TbButtonColumn', ),
), ),
), ));
)); ?> ?>
...@@ -9,7 +9,7 @@ array('label'=>'Manage BeritaAcaraDaftarHadir','url'=>array('admin')), ...@@ -9,7 +9,7 @@ array('label'=>'Manage BeritaAcaraDaftarHadir','url'=>array('admin')),
<h1>Berita Acara Daftar Hadirs</h1> <h1>Berita Acara Daftar Hadirs</h1>
<?php $this->widget('bootstrap.widgets.TbListView',array( <?php $this->widget('booster.widgets.TbListView',array(
'dataProvider'=>$dataProvider, 'dataProvider'=>$dataProvider,
'itemView'=>'_view', 'itemView'=>'_view',
)); ?> )); ?>
...@@ -11,7 +11,7 @@ array('label'=>'Manage BeritaAcaraDaftarHadir','url'=>array('admin')), ...@@ -11,7 +11,7 @@ array('label'=>'Manage BeritaAcaraDaftarHadir','url'=>array('admin')),
<h1>View BeritaAcaraDaftarHadir #<?php echo $model->ID; ?></h1> <h1>View BeritaAcaraDaftarHadir #<?php echo $model->ID; ?></h1>
<?php $this->widget('bootstrap.widgets.TbDetailView',array( <?php $this->widget('booster.widgets.TbDetailView',array(
'data'=>$model, 'data'=>$model,
'attributes'=>array( 'attributes'=>array(
'ID', 'ID',
......
...@@ -9,7 +9,6 @@ $temp = explode("-", $message); ...@@ -9,7 +9,6 @@ $temp = explode("-", $message);
$TA = $temp[0]; $TA = $temp[0];
$Kode = $temp[1]; $Kode = $temp[1];
$Kelas = $temp[2]; $Kelas = $temp[2];
$Sem = $temp[3];
?> ?>
<h2><center><u>BERITA ACARA KULIAH</u></center></h2> <h2><center><u>BERITA ACARA KULIAH</u></center></h2>
<table> <table>
...@@ -39,7 +38,7 @@ $Sem = $temp[3]; ...@@ -39,7 +38,7 @@ $Sem = $temp[3];
<td> : </td> <td> : </td>
<td> <td>
<?php <?php
echo $Sem; echo $mk->SEM;
?> ?>
</td> </td>
</tr> </tr>
...@@ -52,27 +51,68 @@ $Sem = $temp[3]; ...@@ -52,27 +51,68 @@ $Sem = $temp[3];
<?php <?php
//$dataProvider = BeritaAcaraKuliah::model()->findAllByAttributes(array('TA'=>$TA, 'KODE_MK'=>$Kode, 'KELAS'=>$Kode)); //$dataProvider = BeritaAcaraKuliah::model()->findAllByAttributes(array('TA'=>$TA, 'KODE_MK'=>$Kode, 'KELAS'=>$Kode));
$criteria = new CDbCriteria; $dataProvider = new CActiveDataProvider('BeritaAcaraKuliah', array(
$criteria->condition = 'TA = "' . $TA . '" and KODE_MK = "' . $Kode . '" and KELAS = "' . $Kelas . '"and SEM = "' . $Sem . '"'; 'criteria' => array(
$dataProvider = new CActiveDataProvider('BeritaAcaraKuliah', array('criteria' => $criteria)); 'join' => "JOIN d_jadwal dj ON t.ID_DETAIL_JADWAL = dj.ID JOIN m_jadwal mj ON dj.ID_JADWAL = mj.ID",
'condition' => "mj.TA LIKE '$TA' AND dj.KODE_MK LIKE '$Kode' AND mj.KELAS LIKE '$Kelas' ",
)));
//$gridDataProvider = new CActiveDataProvider('BeritaAcaraKuliah', array(
// 'criteria' => array(
// 'join' => "JOIN d_jadwal dj ON t.ID_DETAIL_JADWAL = dj.ID JOIN m_jadwal mj ON dj.ID_JADWAL = mj.ID",
// 'condition' => "mj.TANGGAL LIKE '$date'",
// ),
// ));
$this->widget( $this->widget(
'booster.widgets.TbGridView', array( 'booster.widgets.TbGridView', array(
'type' => 'striped', 'type' => 'striped',
'dataProvider' => $dataProvider, 'dataProvider' => $dataProvider,
'template' => "{items}", 'template' => "{items}",
'columns' => array( 'columns' => array(
'TANGGAL', array(
'WEEK', 'header' => 'Kelas',
'SESSION', 'value' => '$data->iddetailjadwal->idjadwal->KELAS',
'RUANGAN', ),
'START_TIME', array(
'END_TIME', 'header' => 'Sesi',
'AKTIFITAS', 'value' => '$data->iddetailjadwal->SESSION',
),
array(
'header' => 'Mata Kuliah',
'value' => '$data->iddetailjadwal->kodemk->SHORT_NAME',
),
array(
'header' => 'Ruangan',
'value' => '$data->iddetailjadwal->RUANGAN',
),
array(
'header' => 'Aktifitas',
'value' => '$data->iddetailjadwal->AKTIFITAS',
),
array(
'header' => 'Tanggal',
'value' => '$data->iddetailjadwal->idjadwal->TANGGAL',
),
array(
'header' => 'Minggu',
'value' => '$data->iddetailjadwal->idjadwal->WEEK',
),
array(
'header' => 'Waktu Mulai',
'value' => '$data->iddetailjadwal->START_TIME',
),
array(
'header' => 'Waktu Selesai',
'value' => '$data->iddetailjadwal->END_TIME',
),
array(
'header' => 'Aktifitas',
'value' => '$data->iddetailjadwal->AKTIFITAS',
),
'TIPE_KULIAH', 'TIPE_KULIAH',
array( array(
'header' => 'Pengajar', 'header' => 'Pengajar',
'name' => 'PIC', 'value' => '$data->iddetailjadwal->pic->NAMA',
'value' => '$data->pic->NAMA',
), ),
),) ),)
); );
...@@ -80,5 +120,5 @@ $this->widget( ...@@ -80,5 +120,5 @@ $this->widget(
<br/> <br/>
<?php <?php
echo CHtml::Button('Cetak Berita Laporan Ini (.pdf)', array('submit' => array('/BeritaAcaraKuliah/CetakBeritaAcaraKuliahPdf', 'id' => $message))); echo CHtml::Button('Cetak Berita Laporan Ini (.pdf)', array('submit' => array('/BeritaAcaraKuliah/CetakBeritaAcaraKuliahPdf', 'id' => $message . "-" . $mk->SEM)));
?> ?>
\ No newline at end of file
...@@ -5,49 +5,20 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array( ...@@ -5,49 +5,20 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
)); ));
?> ?>
<p class="help-block">Fields with <span class="required">*</span> are required.</p> <?php
echo $form->dropDownListGroup(
<?php echo $form->errorSummary($model); ?> $model, 'TIPE_KULIAH', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5',
<?php echo $form->textFieldGroup($model, 'WEEK', array('class' => 'span5')); ?> ),
'widgetOptions' => array(
<?php echo $form->textFieldGroup($model, 'SESSION', array('class' => 'span5')); ?> 'data' => array(
"1" => 'Regular', "2" => 'Pengganti',
<?php echo $form->textFieldGroup($model, 'TA', array('class' => 'span5')); ?> ),
'htmlOptions' => array(),
<?php echo $form->textFieldGroup($model, 'ID_KUR', array('class' => 'span5')); ?> )
)
<?php echo $form->textFieldGroup($model, 'KODE_MK', array('class' => 'span5', 'maxlength' => 10)); ?> );
?>
<?php echo $form->textFieldGroup($model, 'KELAS', array('class' => 'span5', 'maxlength' => 100)); ?>
<?php echo $form->datepickerGroup($model, 'TANGGAL', array('options' => array(), 'htmlOptions' => array('class' => 'span5')), array('prepend' => '<i class="icon-calendar"></i>', 'append' => 'Click on Month/Year at top to select a different year or type in (mm/dd/yyyy).')); ?>
<?php echo $form->textFieldGroup($model, 'START_TIME', array('class' => 'span5')); ?>
<?php echo $form->textFieldGroup($model, 'END_TIME', array('class' => 'span5')); ?>
<?php echo $form->textAreaGroup($model, 'TOPIK', array('rows' => 6, 'cols' => 50, 'class' => 'span8')); ?>
<?php echo $form->textFieldGroup($model, 'RUANGAN', array('class' => 'span5', 'maxlength' => 100)); ?>
<?php echo $form->textFieldGroup($model, 'AKTIFITAS', array('class' => 'span5', 'maxlength' => 15)); ?>
<?php echo $form->textFieldGroup($model, 'PIC', array('class' => 'span5', 'maxlength' => 20)); ?>
<?php echo $form->dropDownListGroup($model, 'TIPE_KULIAH', array("Regular" => "Regular", "Pengganti" => "Pengganti",), array('class' => 'input-large')); ?>
<?php echo $form->textAreaGroup($model, 'METODE', array('rows' => 6, 'cols' => 50, 'class' => 'span8')); ?>
<?php echo $form->textAreaGroup($model, 'ALAT_BANTU', array('rows' => 6, 'cols' => 50, 'class' => 'span8')); ?>
<?php echo $form->textAreaGroup($model, 'CATATAN', array('rows' => 6, 'cols' => 50, 'class' => 'span8')); ?>
<?php echo $form->textFieldGroup($model, 'LAST_UPDATE', array('class' => 'span5', 'maxlength' => 20)); ?>
<?php echo $form->textFieldGroup($model, 'USER_ID', array('class' => 'span5', 'maxlength' => 15)); ?>
<?php echo $form->textFieldGroup($model, 'WS', array('class' => 'span5', 'maxlength' => 15)); ?>
<div class="form-actions"> <div class="form-actions">
<?php <?php
......
...@@ -5,20 +5,12 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array( ...@@ -5,20 +5,12 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
'enableAjaxValidation' => false, 'enableAjaxValidation' => false,
)); ));
?> ?>
<?php echo $form->errorSummary($model); ?>
<?php //echo $form->textFieldGroup($model,'WEEK',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php //echo $form->textFieldGroup($model,'SESSION',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<TABLE ALIGN="CENTER"> <TABLE ALIGN="CENTER">
<TR ALIGN="CENTER"> <TR ALIGN="CENTER">
<TD ALIGN="CENTER"><CENTER> <TD ALIGN="CENTER"><CENTER>
<h3>Tahun Ajaran</h3></CENTER> <h3>Tahun Ajaran</h3></CENTER>
</TD> </TD>
<TD ALIGN="CENTER"><CENTER> <TD ALIGN="CENTER"><CENTER>
<h3>Semester</h3></CENTER>
</TD>
<TD ALIGN="CENTER"><CENTER>
<h3>Kode Mata Kuliah</h3></CENTER> <h3>Kode Mata Kuliah</h3></CENTER>
</TD> </TD>
<TD ALIGN="CENTER"><CENTER> <TD ALIGN="CENTER"><CENTER>
...@@ -30,29 +22,13 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array( ...@@ -30,29 +22,13 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
<TD ALIGN="CENTER"> <TD ALIGN="CENTER">
<CENTER> <CENTER>
<?php <?php
$data = CHtml::listData(Jadwal::model()->findAll(), 'TA', 'TA'); $ta = CHtml::listData(MJadwal::model()->findAll(), 'TA', 'TA');
echo $form->dropDownListGroup(
$model, 'TA', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5',
),
'widgetOptions' => array(
'data' => $data,
'htmlOptions' => array(),
)
)
);
?>
</CENTER>
</TD>
<TD ALIGN="CENTER"><CENTER>
<?php
$data = CHtml::listData(BeritaAcaraKuliah::model()->findAll(), 'SEM', 'SEM');
echo $form->dropDownListGroup( echo $form->dropDownListGroup(
$model, 'SEM', array('wrapperHtmlOptions' => array( $mjadwal, 'TA', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5', 'class' => 'col-sm-5',
), ),
'widgetOptions' => array( 'widgetOptions' => array(
'data' => $data, 'data' => $ta,
'htmlOptions' => array(), 'htmlOptions' => array(),
) )
) )
...@@ -60,17 +36,18 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array( ...@@ -60,17 +36,18 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
?> ?>
</CENTER> </CENTER>
</TD> </TD>
<TD ALIGN="CENTER"><CENTER> <TD ALIGN="CENTER"><CENTER>
<?php //echo $form->textFieldGroup($model,'ID_KUR',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?> <?php //echo $form->textFieldGroup($model,'ID_KUR',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php <?php
$data = CHtml::listData(Jadwal::model()->findAll(), 'KODE_MK', 'KODE_MK'); $kodemk = CHtml::listData(DJadwal::model()->findAll(), 'KODE_MK', 'KODE_MK');
echo $form->dropDownListGroup( echo $form->dropDownListGroup(
$model, 'KODE_MK', array('wrapperHtmlOptions' => array( $djadwal, 'KODE_MK', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5', 'class' => 'col-sm-5',
), ),
'widgetOptions' => array( 'widgetOptions' => array(
'data' => $data, 'data' => $kodemk,
'htmlOptions' => array(), 'htmlOptions' => array(),
) )
) )
...@@ -81,13 +58,13 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array( ...@@ -81,13 +58,13 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
</TD> </TD>
<TD ALIGN="CENTER"><CENTER> <TD ALIGN="CENTER"><CENTER>
<?php <?php
$data = CHtml::listData(Jadwal::model()->findAll(), 'KELAS', 'KELAS'); $kelas = CHtml::listData(MJadwal::model()->findAll(), 'KELAS', 'KELAS');
echo $form->dropDownListGroup( echo $form->dropDownListGroup(
$model, 'KELAS', array('wrapperHtmlOptions' => array( $mjadwal, 'KELAS', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5', 'class' => 'col-sm-5',
), ),
'widgetOptions' => array( 'widgetOptions' => array(
'data' => $data, 'data' => $kelas,
'htmlOptions' => array(), 'htmlOptions' => array(),
) )
) )
...@@ -116,33 +93,33 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array( ...@@ -116,33 +93,33 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
<?php //echo $form->datePickerGroup($model,'TANGGAL',array('widgetOptions'=>array('options'=>array(),'htmlOptions'=>array('class'=>'span5')), 'prepend'=>'<i class="glyphicon glyphicon-calendar"></i>', 'append'=>'Click on Month/Year to select a different Month/Year.')); ?> <?php //echo $form->datePickerGroup($model,'TANGGAL',array('widgetOptions'=>array('options'=>array(),'htmlOptions'=>array('class'=>'span5')), 'prepend'=>'<i class="glyphicon glyphicon-calendar"></i>', 'append'=>'Click on Month/Year to select a different Month/Year.')); ?>
<?php //echo $form->textFieldGroup($model,'START_TIME',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?> <?php //echo $form->textFieldGroup($model,'START_TIME',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php //echo $form->textFieldGroup($model,'END_TIME',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?> <?php //echo $form->textFieldGroup($model,'END_TIME',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php //echo $form->textAreaGroup($model,'TOPIK', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?> <?php //echo $form->textAreaGroup($model,'TOPIK', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?>
<?php //echo $form->textFieldGroup($model,'RUANGAN',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>100)))); ?> <?php //echo $form->textFieldGroup($model,'RUANGAN',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>100)))); ?>
<?php //echo $form->textFieldGroup($model,'AKTIFITAS',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>15)))); ?> <?php //echo $form->textFieldGroup($model,'AKTIFITAS',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>15)))); ?>
<?php //echo $form->textFieldGroup($model,'PIC',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>20)))); ?> <?php //echo $form->textFieldGroup($model,'PIC',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>20)))); ?>
<?php //echo $form->dropDownListGroup($model,'TIPE_KULIAH', array('widgetOptions'=>array('data'=>array("Regular"=>"Regular","Pengganti"=>"Pengganti",), 'htmlOptions'=>array('class'=>'input-large')))); ?> <?php //echo $form->dropDownListGroup($model,'TIPE_KULIAH', array('widgetOptions'=>array('data'=>array("Regular"=>"Regular","Pengganti"=>"Pengganti",), 'htmlOptions'=>array('class'=>'input-large')))); ?>
<?php //echo $form->textAreaGroup($model,'METODE', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?> <?php //echo $form->textAreaGroup($model,'METODE', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?>
<?php //echo $form->textAreaGroup($model,'ALAT_BANTU', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?> <?php //echo $form->textAreaGroup($model,'ALAT_BANTU', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?>
<?php //echo $form->textAreaGroup($model,'CATATAN', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?> <?php //echo $form->textAreaGroup($model,'CATATAN', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?>
<?php //echo $form->textFieldGroup($model,'LAST_UPDATE',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>20)))); ?> <?php //echo $form->textFieldGroup($model,'LAST_UPDATE',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>20)))); ?>
<?php //echo $form->textFieldGroup($model,'USER_ID',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>15)))); ?> <?php //echo $form->textFieldGroup($model,'USER_ID',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>15)))); ?>
<?php //echo $form->textFieldGroup($model,'WS',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>15)))); ?> <?php //echo $form->textFieldGroup($model,'WS',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>15)))); ?>
<?php $this->endWidget(); ?> <?php $this->endWidget(); ?>
......
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array( <?php
'action'=>Yii::app()->createUrl($this->route), $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
'method'=>'get', 'action' => Yii::app()->createUrl($this->route),
)); ?> 'method' => 'get',
));
?>
<?php echo $form->textFieldRow($model,'ID',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model, 'ID', array('class' => 'span5')); ?>
<?php echo $form->textFieldRow($model,'WEEK',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model, 'WEEK', array('class' => 'span5')); ?>
<?php echo $form->textFieldRow($model,'SESSION',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model, 'SESSION', array('class' => 'span5')); ?>
<?php echo $form->textFieldRow($model,'TA',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model, 'TA', array('class' => 'span5')); ?>
<?php echo $form->textFieldRow($model,'ID_KUR',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model, 'ID_KUR', array('class' => 'span5')); ?>
<?php echo $form->textFieldRow($model,'KODE_MK',array('class'=>'span5','maxlength'=>10)); ?> <?php echo $form->textFieldGroup($model, 'KODE_MK', array('class' => 'span5', 'maxlength' => 10)); ?>
<?php echo $form->textFieldRow($model,'KELAS',array('class'=>'span5','maxlength'=>100)); ?> <?php echo $form->textFieldGroup($model, 'KELAS', array('class' => 'span5', 'maxlength' => 100)); ?>
<?php echo $form->datepickerRow($model,'TANGGAL',array('options'=>array(),'htmlOptions'=>array('class'=>'span5')),array('prepend'=>'<i class="icon-calendar"></i>','append'=>'Click on Month/Year at top to select a different year or type in (mm/dd/yyyy).')); ?> <?php echo $form->datepickerGroup($model, 'TANGGAL', array('options' => array(), 'htmlOptions' => array('class' => 'span5')), array('prepend' => '<i class="icon-calendar"></i>', 'append' => 'Click on Month/Year at top to select a different year or type in (mm/dd/yyyy).')); ?>
<?php echo $form->textFieldRow($model,'START_TIME',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model, 'START_TIME', array('class' => 'span5')); ?>
<?php echo $form->textFieldRow($model,'END_TIME',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model, 'END_TIME', array('class' => 'span5')); ?>
<?php echo $form->textAreaRow($model,'TOPIK',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?> <?php echo $form->textAreaGroup($model, 'TOPIK', array('rows' => 6, 'cols' => 50, 'class' => 'span8')); ?>
<?php echo $form->textFieldRow($model,'RUANGAN',array('class'=>'span5','maxlength'=>100)); ?> <?php echo $form->textFieldGroup($model, 'RUANGAN', array('class' => 'span5', 'maxlength' => 100)); ?>
<?php echo $form->textFieldRow($model,'AKTIFITAS',array('class'=>'span5','maxlength'=>15)); ?> <?php echo $form->textFieldGroup($model, 'AKTIFITAS', array('class' => 'span5', 'maxlength' => 15)); ?>
<?php echo $form->textFieldRow($model,'PIC',array('class'=>'span5','maxlength'=>20)); ?> <?php echo $form->textFieldGroup($model, 'PIC', array('class' => 'span5', 'maxlength' => 20)); ?>
<?php echo $form->dropDownListRow($model,'TIPE_KULIAH',array("Regular"=>"Regular","Pengganti"=>"Pengganti",),array('class'=>'input-large')); ?> <?php echo $form->dropDownListGroup($model, 'TIPE_KULIAH', array("Regular" => "Regular", "Pengganti" => "Pengganti",), array('class' => 'input-large')); ?>
<?php echo $form->textAreaRow($model,'METODE',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?> <?php echo $form->textAreaGroup($model, 'METODE', array('rows' => 6, 'cols' => 50, 'class' => 'span8')); ?>
<?php echo $form->textAreaRow($model,'ALAT_BANTU',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?> <?php echo $form->textAreaGroup($model, 'ALAT_BANTU', array('rows' => 6, 'cols' => 50, 'class' => 'span8')); ?>
<?php echo $form->textAreaRow($model,'CATATAN',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?> <?php echo $form->textAreaGroup($model, 'CATATAN', array('rows' => 6, 'cols' => 50, 'class' => 'span8')); ?>
<?php echo $form->textFieldRow($model,'LAST_UPDATE',array('class'=>'span5','maxlength'=>20)); ?> <?php echo $form->textFieldGroup($model, 'LAST_UPDATE', array('class' => 'span5', 'maxlength' => 20)); ?>
<?php echo $form->textFieldRow($model,'USER_ID',array('class'=>'span5','maxlength'=>15)); ?> <?php echo $form->textFieldGroup($model, 'USER_ID', array('class' => 'span5', 'maxlength' => 15)); ?>
<?php echo $form->textFieldRow($model,'WS',array('class'=>'span5','maxlength'=>15)); ?> <?php echo $form->textFieldGroup($model, 'WS', array('class' => 'span5', 'maxlength' => 15)); ?>
<div class="form-actions"> <div class="form-actions">
<?php $this->widget('bootstrap.widgets.TbButton', array( <?php
'buttonType' => 'submit', $this->widget('booster.widgets.TbButton', array(
'type'=>'primary', 'buttonType' => 'submit',
'label'=>'Search', 'context' => 'primary',
)); ?> 'label' => 'Search',
</div> ));
?>
</div>
<?php $this->endWidget(); ?> <?php $this->endWidget(); ?>
<?php <?php ?>
?>
<table> <table>
<tr> <tr>
<td> <td>
...@@ -11,44 +9,44 @@ ...@@ -11,44 +9,44 @@
<td> <td>
<blockquote> <blockquote>
<h2> <h2>
Laporan Berita Acara tanggal <?php echo $wew ?> Laporan Berita Acara tanggal <?php echo $wew ?>
</h2> </h2>
<hr> <hr>
<?php <?php
$this->widget('bootstrap.widgets.TbGridView', array( $this->widget('booster.widgets.TbGridView', array(
'type' => 'striped bordered condensed', 'type' => 'striped bordered condensed',
'dataProvider' => $dataProvider, 'dataProvider' => $dataProvider,
'template' => "{items}", 'template' => "{items}",
'columns' => array( 'columns' => array(
//'ID', //'ID',
'WEEK', 'WEEK',
'SESSION', 'SESSION',
//'START_TIME', //'START_TIME',
//'END_TIME', //'END_TIME',
'TA', 'TA',
'ID_KUR', 'ID_KUR',
'KELAS', 'KELAS',
'TANGGAL', 'TANGGAL',
'TOPIK', 'TOPIK',
'RUANGAN', 'RUANGAN',
'AKTIFITAS', 'AKTIFITAS',
'TIPE_KULIAH', 'TIPE_KULIAH',
'CATATAN', 'CATATAN',
/* 'KETERANGAN', /* 'KETERANGAN',
'LAST_UPDATE', 'LAST_UPDATE',
'USER_ID', 'USER_ID',
'WS', 'WS',
'WAKTU_ABSEN', 'WAKTU_ABSEN',
// */ // */
array( array(
'class' => 'bootstrap.widgets.TbButtonColumn', 'class' => 'booster.widgets.TbButtonColumn',
),
), ),
), ));
)); ?>
?>
</blockquote> </blockquote>
</td> </td>
......
...@@ -23,17 +23,35 @@ ...@@ -23,17 +23,35 @@
'template' => "{items}", 'template' => "{items}",
'columns' => array( 'columns' => array(
//'ID', //'ID',
'WEEK', array(
'SESSION', 'header' => 'Minggu',
'value' => '$data->iddetailjadwal->idjadwal->WEEK',
),
array(
'header' => 'Sesi',
'value' => '$data->iddetailjadwal->SESSION',
),
//'START_TIME', //'START_TIME',
//'END_TIME', //'END_TIME',
'TA', // 'TA',
// 'ID_KUR', // 'ID_KUR',
'KELAS', array(
'TANGGAL', 'header' => 'Kelas',
'value' => '$data->iddetailjadwal->idjadwal->KELAS',
),
array(
'header' => 'Tanggal',
'value' => '$data->iddetailjadwal->idjadwal->TANGGAL',
),
//'TOPIK', //'TOPIK',
'RUANGAN', array(
'AKTIFITAS', 'header' => 'Ruangan',
'value' => '$data->iddetailjadwal->RUANGAN',
),
array(
'header' => 'Aktifitas',
'value' => '$data->iddetailjadwal->AKTIFITAS'
),
/* 'TIPE_KULIAH', /* 'TIPE_KULIAH',
'CATATAN', 'CATATAN',
'KETERANGAN', 'KETERANGAN',
......
<?php <?php
$this->menu = array(
$this->menu=array( array('label' => 'List BeritaAcaraKuliah', 'url' => array('index')),
array('label'=>'List BeritaAcaraKuliah','url'=>array('index')), array('label' => 'Manage BeritaAcaraKuliah', 'url' => array('admin')),
array('label'=>'Manage BeritaAcaraKuliah','url'=>array('admin')),
); );
?> ?>
<h1>Find your BeritaAcaraKuliah</h1> <h1>Find your BeritaAcaraKuliah</h1>
<?php echo $this->renderPartial('_formAcaraKuliah', array('model'=>$model)); ?> <?php
\ No newline at end of file echo $this->renderPartial('_formAcaraKuliah', array('model' => $model, 'djadwal' => $djadwal,
'mjadwal' => $mjadwal,));
?>
\ No newline at end of file
...@@ -8,7 +8,7 @@ array('label'=>'Manage BeritaAcaraKuliah','url'=>array('admin')), ...@@ -8,7 +8,7 @@ array('label'=>'Manage BeritaAcaraKuliah','url'=>array('admin')),
<h1>Berita Acara Kuliahs</h1> <h1>Berita Acara Kuliahs</h1>
<?php $this->widget('bootstrap.widgets.TbListView',array( <?php $this->widget('booster.widgets.TbListView',array(
'dataProvider'=>$dataProvider, 'dataProvider'=>$dataProvider,
'itemView'=>'_view', 'itemView'=>'_view',
)); ?> )); ?>
<?php <?php
$this->menu = array(
array('label' => 'List BeritaAcaraKuliah', 'url' => array('index')),
array('label' => 'Create BeritaAcaraKuliah', 'url' => array('create')),
array('label' => 'View BeritaAcaraKuliah', 'url' => array('view', 'id' => $model->ID)),
array('label' => 'Manage BeritaAcaraKuliah', 'url' => array('admin')),
);
?>
$this->menu=array( <h1>Update BeritaAcaraKuliah <?php echo $model->ID; ?></h1>
array('label'=>'List BeritaAcaraKuliah','url'=>array('index')),
array('label'=>'Create BeritaAcaraKuliah','url'=>array('create')),
array('label'=>'View BeritaAcaraKuliah','url'=>array('view','id'=>$model->ID)),
array('label'=>'Manage BeritaAcaraKuliah','url'=>array('admin')),
);
?>
<h1>Update BeritaAcaraKuliah <?php echo $model->ID; ?></h1> <?php echo $this->renderPartial('_form', array('model' => $model)); ?>
\ No newline at end of file
<?php echo $this->renderPartial('_form',array('model'=>$model)); ?>
\ No newline at end of file
...@@ -14,25 +14,46 @@ $this->menu = array( ...@@ -14,25 +14,46 @@ $this->menu = array(
$this->widget('booster.widgets.TbDetailView', array( $this->widget('booster.widgets.TbDetailView', array(
'data' => $model, 'data' => $model,
'attributes' => array( 'attributes' => array(
'ID', array(
'WEEK', 'header' => 'Minggu',
'SESSION', 'name' => 'Minggu',
'TA', 'value' => $model->iddetailjadwal->idjadwal->WEEK,
'ID_KUR', ),
'KODE_MK', array(
'KELAS', 'header' => 'Sesi',
'TANGGAL', 'name' => 'Sesi',
'START_TIME', 'value' => $model->iddetailjadwal->SESSION,
'END_TIME', ),
'TOPIK', array(
'RUANGAN', 'header' => 'Mata Kuliah',
'AKTIFITAS', 'name' => 'Mata Kuliah',
'value' => $model->iddetailjadwal->kodemk->SHORT_NAME,
),
array(
'header' => 'Kelas',
'name' => 'Kelas',
'value' => $model->iddetailjadwal->idjadwal->KELAS,
),
array(
'header' => 'Tanggal',
'name' => 'Tanggal',
'value' => $model->iddetailjadwal->idjadwal->TANGGAL,
),
array(
'header' => 'Ruangan',
'name' => 'Ruangan',
'value' => $model->iddetailjadwal->RUANGAN,
),
array(
'header' => 'Aktifitas',
'name' => 'Aktifitas',
'value' => $model->iddetailjadwal->AKTIFITAS,
),
array( array(
'header' => 'Pengajar', 'header' => 'Pengajar',
'name' => 'Pengajar', 'name' => 'Pengajar',
'value' => $model->pic->NAMA, 'value' => $model->iddetailjadwal->pic->NAMA,
), ),
'TIPE_KULIAH',
// 'METODE', // 'METODE',
// 'ALAT_BANTU', // 'ALAT_BANTU',
// 'CATATAN', // 'CATATAN',
......
<div style="margin-bottom: 20px; display: <?php echo!empty($display) ? $display : 'none'; ?>; width:100%; clear:left;" class="crow">
<fieldset>
<legend>Test</legend>
<?php
$form = $this->beginWidget('booster.widgets.TbActiveForm', array(
'id' => 'mjadwal-form',
'enableAjaxValidation' => false,
));
?>
<p class="help-block">Fields with <span class="required">*</span> are required.</p>
<?php echo $form->errorSummary($model); ?>
<?php echo $form->textFieldGroup($model, 'SESSION', array('widgetOptions' => array('htmlOptions' => array('class' => 'span5')))); ?>
<?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 // echo $form->textFieldGroup($model, 'TOPIK', array('widgetOptions' => array('htmlOptions' => array('class' => 'span5', 'maxlength' => 255)))); ?>
<?php // echo $form->textAreaGroup($model, 'SUB_TOPIK', array('widgetOptions' => array('htmlOptions' => array('rows' => 6, 'cols' => 50, 'class' => 'span8')))); ?>
<?php // echo $form->textAreaGroup($model, 'OBJEKTIF', array('widgetOptions' => array('htmlOptions' => array('rows' => 6, 'cols' => 50, 'class' => 'span8')))); ?>
<?php echo $form->dropDownListGroup($model, 'AKTIFITAS', array('widgetOptions' => array('data' => array("Teori" => "Teori", "Praktikum" => "Praktikum", "Mandiri" => "Mandiri",), 'htmlOptions' => array('class' => 'input-large')))); ?>
<!-- <div class="form-actions">
<?php
// $this->widget('booster.widgets.TbButton', array(
// 'buttonType' => 'submit',
// 'context' => 'primary',
// 'label' => $model->isNewRecord ? 'Create' : 'Save',
// ));
?>
</div>-->
<?php $this->endWidget(); ?>
</fieldset>
</div>
<?php
Yii::app()->clientScript->registerScript('deleteChild', "
function deleteChild(elm, index)
{
element=$(elm).parent().parent();
/* animate div */
$(element).animate(
{
opacity: 0.25,
left: '+=50',
height: 'toggle'
}, 500,
function() {
/* remove div */
$(element).remove();
});
}", CClientScript::POS_END);
?>
\ No newline at end of file
<?php
$form = $this->beginWidget('booster.widgets.TbActiveForm', array(
'id' => 'djadwal-form',
'enableAjaxValidation' => false,
));
?>
<div style="margin-bottom: 20px; display: <?php echo!empty($display) ? $display : 'none'; ?>; width:100%; clear:left;" class="crow">
<div class="row" style="width:200px;float: left;">
<?php echo CHtml::activeLabelEx($model, '[' . $index . ']name'); ?>
<?php echo CHtml::activeTextField($model, '[' . $index . ']name', array('size' => 20, 'maxlength' => 255)); ?>
<?php echo CHtml::error($model, '[' . $index . ']name'); ?>
</div>
<div class="row" style="width:200px;float: left;">
<?php echo CHtml::activeLabelEx($model, '[' . $index . ']age'); ?>
<?php echo CHtml::activeTextField($model, '[' . $index . ']age'); ?>
<?php echo CHtml::error($model, '[' . $index . ']age'); ?>
</div>
<div class="row" style="width:100px;float: left;">
<br />
<?php echo CHtml::link('Delete', '#', array('onclick' => 'deleteChild(this, ' . $index . '); return false;'));
?>
</div>
</div>
<?php
Yii::app()->clientScript->registerScript('deleteChild', "
function deleteChild(elm, index)
{
element=$(elm).parent().parent();
/* animate div */
$(element).animate(
{
opacity: 0.25,
left: '+=50',
height: 'toggle'
}, 500,
function() {
/* remove div */
$(element).remove();
});
}", CClientScript::POS_END);
<?php $form=$this->beginWidget('booster.widgets.TbActiveForm',array(
'action'=>Yii::app()->createUrl($this->route),
'method'=>'get',
)); ?>
<?php echo $form->textFieldGroup($model,'ID',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php echo $form->textFieldGroup($model,'ID_JADWAL',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php echo $form->textFieldGroup($model,'SESSION',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php echo $form->textFieldGroup($model,'START_TIME',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php echo $form->textFieldGroup($model,'END_TIME',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?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 echo $form->textFieldGroup($model,'TOPIK',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>255)))); ?>
<?php echo $form->textAreaGroup($model,'SUB_TOPIK', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?>
<?php echo $form->textAreaGroup($model,'OBJEKTIF', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?>
<?php echo $form->dropDownListGroup($model,'AKTIFITAS', array('widgetOptions'=>array('data'=>array("Teori"=>"Teori","Praktikum"=>"Praktikum","Mandiri"=>"Mandiri",), 'htmlOptions'=>array('class'=>'input-large')))); ?>
<?php echo $form->textFieldGroup($model,'PIC',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>20)))); ?>
<?php echo $form->textAreaGroup($model,'METODE', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?>
<?php echo $form->textAreaGroup($model,'ALAT_BANTU', array('widgetOptions'=>array('htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'span8')))); ?>
<?php echo $form->textFieldGroup($model,'KET',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>255)))); ?>
<?php echo $form->textFieldGroup($model,'LAST_UPDATE',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>20)))); ?>
<?php echo $form->textFieldGroup($model,'USER_ID',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>15)))); ?>
<?php echo $form->textFieldGroup($model,'WS',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>15)))); ?>
<div class="form-actions">
<?php $this->widget('booster.widgets.TbButton', array(
'buttonType' => 'submit',
'context'=>'primary',
'label'=>'Search',
)); ?>
</div>
<?php $this->endWidget(); ?>
<div class="view">
<b><?php echo CHtml::encode($data->getAttributeLabel('ID')); ?>:</b>
<?php echo CHtml::link(CHtml::encode($data->ID),array('view','id'=>$data->ID)); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('ID_JADWAL')); ?>:</b>
<?php echo CHtml::encode($data->ID_JADWAL); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('SESSION')); ?>:</b>
<?php echo CHtml::encode($data->SESSION); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('START_TIME')); ?>:</b>
<?php echo CHtml::encode($data->START_TIME); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('END_TIME')); ?>:</b>
<?php echo CHtml::encode($data->END_TIME); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('KODE_MK')); ?>:</b>
<?php echo CHtml::encode($data->KODE_MK); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('RUANGAN')); ?>:</b>
<?php echo CHtml::encode($data->RUANGAN); ?>
<br />
<?php /*
<b><?php echo CHtml::encode($data->getAttributeLabel('TOPIK')); ?>:</b>
<?php echo CHtml::encode($data->TOPIK); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('SUB_TOPIK')); ?>:</b>
<?php echo CHtml::encode($data->SUB_TOPIK); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('OBJEKTIF')); ?>:</b>
<?php echo CHtml::encode($data->OBJEKTIF); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('AKTIFITAS')); ?>:</b>
<?php echo CHtml::encode($data->AKTIFITAS); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('PIC')); ?>:</b>
<?php echo CHtml::encode($data->PIC); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('METODE')); ?>:</b>
<?php echo CHtml::encode($data->METODE); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('ALAT_BANTU')); ?>:</b>
<?php echo CHtml::encode($data->ALAT_BANTU); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('KET')); ?>:</b>
<?php echo CHtml::encode($data->KET); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('LAST_UPDATE')); ?>:</b>
<?php echo CHtml::encode($data->LAST_UPDATE); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('USER_ID')); ?>:</b>
<?php echo CHtml::encode($data->USER_ID); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('WS')); ?>:</b>
<?php echo CHtml::encode($data->WS); ?>
<br />
*/ ?>
</div>
\ No newline at end of file
<?php
$this->breadcrumbs=array(
'Djadwals'=>array('index'),
'Manage',
);
$this->menu=array(
array('label'=>'List DJadwal','url'=>array('index')),
array('label'=>'Create DJadwal','url'=>array('create')),
);
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
$('.search-form').toggle();
return false;
});
$('.search-form form').submit(function(){
$.fn.yiiGridView.update('djadwal-grid', {
data: $(this).serialize()
});
return false;
});
");
?>
<h1>Manage Djadwals</h1>
<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>
&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>
<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button btn')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
'model'=>$model,
)); ?>
</div><!-- search-form -->
<?php $this->widget('booster.widgets.TbGridView',array(
'id'=>'djadwal-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
'ID',
'ID_JADWAL',
'SESSION',
'START_TIME',
'END_TIME',
'KODE_MK',
/*
'RUANGAN',
'TOPIK',
'SUB_TOPIK',
'OBJEKTIF',
'AKTIFITAS',
'PIC',
'METODE',
'ALAT_BANTU',
'KET',
'LAST_UPDATE',
'USER_ID',
'WS',
*/
array(
'class'=>'booster.widgets.TbButtonColumn',
),
),
)); ?>
<?php
$this->breadcrumbs=array(
'Djadwals'=>array('index'),
'Create',
);
$this->menu=array(
array('label'=>'List DJadwal','url'=>array('index')),
array('label'=>'Manage DJadwal','url'=>array('admin')),
);
?>
<h1>Create DJadwal</h1>
<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
\ No newline at end of file
<?php
$this->breadcrumbs=array(
'Djadwals',
);
$this->menu=array(
array('label'=>'Create DJadwal','url'=>array('create')),
array('label'=>'Manage DJadwal','url'=>array('admin')),
);
?>
<h1>Djadwals</h1>
<?php $this->widget('booster.widgets.TbListView',array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
)); ?>
<?php
$this->breadcrumbs=array(
'Djadwals'=>array('index'),
$model->ID=>array('view','id'=>$model->ID),
'Update',
);
$this->menu=array(
array('label'=>'List DJadwal','url'=>array('index')),
array('label'=>'Create DJadwal','url'=>array('create')),
array('label'=>'View DJadwal','url'=>array('view','id'=>$model->ID)),
array('label'=>'Manage DJadwal','url'=>array('admin')),
);
?>
<h1>Update DJadwal <?php echo $model->ID; ?></h1>
<?php echo $this->renderPartial('_form',array('model'=>$model)); ?>
\ No newline at end of file
<?php
$this->breadcrumbs=array(
'Djadwals'=>array('index'),
$model->ID,
);
$this->menu=array(
array('label'=>'List DJadwal','url'=>array('index')),
array('label'=>'Create DJadwal','url'=>array('create')),
array('label'=>'Update DJadwal','url'=>array('update','id'=>$model->ID)),
array('label'=>'Delete DJadwal','url'=>'#','linkOptions'=>array('submit'=>array('delete','id'=>$model->ID),'confirm'=>'Are you sure you want to delete this item?')),
array('label'=>'Manage DJadwal','url'=>array('admin')),
);
?>
<h1>View DJadwal #<?php echo $model->ID; ?></h1>
<?php $this->widget('booster.widgets.TbDetailView',array(
'data'=>$model,
'attributes'=>array(
'ID',
'ID_JADWAL',
'SESSION',
'START_TIME',
'END_TIME',
'KODE_MK',
'RUANGAN',
'TOPIK',
'SUB_TOPIK',
'OBJEKTIF',
'AKTIFITAS',
'PIC',
'METODE',
'ALAT_BANTU',
'KET',
'LAST_UPDATE',
'USER_ID',
'WS',
),
)); ?>
<?php
$form = $this->beginWidget('booster.widgets.TbActiveForm', array(
'id' => 'mjadwal-form',
'enableAjaxValidation' => false,
));
?>
<p class="help-block">Fields with <span class="required">*</span> are required.</p>
<?php echo $form->errorSummary($model); ?>
<?php
echo $form->dropDownListGroup(
$model, 'WEEK', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5',
),
'widgetOptions' => array(
'data' => array(
'-- Pilih Week --', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15'
),
'htmlOptions' => array(),
)
)
);
?>
<?php echo $form->datePickerGroup($model, 'TANGGAL', array('widgetOptions' => array('options' => array(), 'htmlOptions' => array('class' => 'span5')), 'prepend' => '<i class="glyphicon glyphicon-calendar"></i>', 'append' => 'Click on Month/Year to select a different Month/Year.')); ?>
<?php
$ta = CHtml::listData(Registrasi::model()->findAll(
array('select' => 't.TA',
'order' => 'TA DESC',
'distinct' => true,)
), 'TA', 'TA');
echo $form->dropDownListGroup(
$model, 'TA', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5',
),
'widgetOptions' => array(
'data' => $ta,
'htmlOptions' => array(
)
)
)
)
?>
<?php
$idkur = CHtml::listData(Registrasi::model()->findAll(
array('select' => 't.KELAS',
'condition' => "TA = 2013",
'order' => 'KELAS DESC',
'distinct' => true,)
), 'KELAS', 'KELAS');
echo $form->dropDownListGroup(
$model, 'KELAS', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5',
),
'widgetOptions' => array(
'data' => $idkur,
'htmlOptions' => array(),
)
)
);
?>
<?php
$idkur = CHtml::listData(Kurikulum::model()->findAll(
array('select' => 't.ID_KUR',
'order' => 'ID_KUR DESC',
'distinct' => true,)
), 'ID_KUR', 'ID_KUR');
echo $form->dropDownListGroup(
$model, 'ID_KUR', array(
'wrapperHtmlOptions' => array(
'class' => 'col-sm-5',
),
'widgetOptions' => array(
'data' => $idkur,
'htmlOptions' => array(
'prompt' => '--Select ID Kurikulum--',
'ajax' => array(
'type' => 'POST',
'url' => CController::createUrl('Jadwal/matkul'),
'update' => '#' . CHtml::activeID($model, 'KODE_MK'),
),
),
)
)
);
?>
<?php
echo CHtml::link('Tambah Jadwal', '#', array('id' => 'loadChildByAjax'));
?>
<div id="children">
<?php
$index = 0;
foreach ($model->djadwal as $id => $child):
$this->renderPartial('/dJadwal/_form', array(
'model' => $child,
'index' => $id,
'display' => 'block'
));
$index++;
endforeach;
?>
</div>
<div style="clear:both;"></div>
<BR><BR>
<div class="form-actions">
<?php
$this->widget('booster.widgets.TbButton', array(
'buttonType' => 'submit',
'context' => 'primary',
'label' => $model->isNewRecord ? 'Create' : 'Save',
));
?>
</div>
<?php $this->endWidget(); ?>
<?php
Yii::app()->clientScript->registerCoreScript('jquery');
Yii::app()->clientScript->registerScript('loadchild', '
var _index = ' . $index . ';
$("#loadChildByAjax").click(function(e){
e.preventDefault();
var _url = "' . Yii::app()->controller->createUrl("loadChildByAjax", array("load_for" => $this->action->id)) . '&index="+_index;
$.ajax({
url: _url,
success:function(response){
$("#children").append(response);
$("#children .crow").last().animate({
opacity : 1,
left: "+50",
height: "toggle"
});
}
});
_index++;
});
', CClientScript::POS_END);
?>
<?php $form=$this->beginWidget('booster.widgets.TbActiveForm',array(
'action'=>Yii::app()->createUrl($this->route),
'method'=>'get',
)); ?>
<?php echo $form->textFieldGroup($model,'ID',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php echo $form->textFieldGroup($model,'WEEK',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php echo $form->datePickerGroup($model,'TANGGAL',array('widgetOptions'=>array('options'=>array(),'htmlOptions'=>array('class'=>'span5')), 'prepend'=>'<i class="glyphicon glyphicon-calendar"></i>', 'append'=>'Click on Month/Year to select a different Month/Year.')); ?>
<?php echo $form->textFieldGroup($model,'TA',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php echo $form->textFieldGroup($model,'ID_KUR',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php echo $form->textFieldGroup($model,'KELAS',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5','maxlength'=>20)))); ?>
<div class="form-actions">
<?php $this->widget('booster.widgets.TbButton', array(
'buttonType' => 'submit',
'context'=>'primary',
'label'=>'Search',
)); ?>
</div>
<?php $this->endWidget(); ?>
<div class="view">
<b><?php echo CHtml::encode($data->getAttributeLabel('ID')); ?>:</b>
<?php echo CHtml::link(CHtml::encode($data->ID),array('view','id'=>$data->ID)); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('WEEK')); ?>:</b>
<?php echo CHtml::encode($data->WEEK); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('TANGGAL')); ?>:</b>
<?php echo CHtml::encode($data->TANGGAL); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('TA')); ?>:</b>
<?php echo CHtml::encode($data->TA); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('ID_KUR')); ?>:</b>
<?php echo CHtml::encode($data->ID_KUR); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('KELAS')); ?>:</b>
<?php echo CHtml::encode($data->KELAS); ?>
<br />
</div>
\ No newline at end of file
<?php
$this->breadcrumbs=array(
'Mjadwals'=>array('index'),
'Manage',
);
$this->menu=array(
array('label'=>'List MJadwal','url'=>array('index')),
array('label'=>'Create MJadwal','url'=>array('create')),
);
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
$('.search-form').toggle();
return false;
});
$('.search-form form').submit(function(){
$.fn.yiiGridView.update('mjadwal-grid', {
data: $(this).serialize()
});
return false;
});
");
?>
<h1>Manage Mjadwals</h1>
<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>
&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>
<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button btn')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
'model'=>$model,
)); ?>
</div><!-- search-form -->
<?php $this->widget('booster.widgets.TbGridView',array(
'id'=>'mjadwal-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
'ID',
'WEEK',
'TANGGAL',
'TA',
'ID_KUR',
'KELAS',
array(
'class'=>'booster.widgets.TbButtonColumn',
),
),
)); ?>
<?php
$this->breadcrumbs=array(
'Mjadwals'=>array('index'),
'Create',
);
$this->menu=array(
array('label'=>'List MJadwal','url'=>array('index')),
array('label'=>'Manage MJadwal','url'=>array('admin')),
);
?>
<h1>Create MJadwal</h1>
<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
\ No newline at end of file
<?php
$this->breadcrumbs=array(
'Mjadwals',
);
$this->menu=array(
array('label'=>'Create MJadwal','url'=>array('create')),
array('label'=>'Manage MJadwal','url'=>array('admin')),
);
?>
<h1>Mjadwals</h1>
<?php $this->widget('booster.widgets.TbListView',array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
)); ?>
<?php
$this->breadcrumbs=array(
'Mjadwals'=>array('index'),
$model->ID=>array('view','id'=>$model->ID),
'Update',
);
$this->menu=array(
array('label'=>'List MJadwal','url'=>array('index')),
array('label'=>'Create MJadwal','url'=>array('create')),
array('label'=>'View MJadwal','url'=>array('view','id'=>$model->ID)),
array('label'=>'Manage MJadwal','url'=>array('admin')),
);
?>
<h1>Update MJadwal <?php echo $model->ID; ?></h1>
<?php echo $this->renderPartial('_form',array('model'=>$model)); ?>
\ No newline at end of file
<?php
$this->breadcrumbs=array(
'Mjadwals'=>array('index'),
$model->ID,
);
$this->menu=array(
array('label'=>'List MJadwal','url'=>array('index')),
array('label'=>'Create MJadwal','url'=>array('create')),
array('label'=>'Update MJadwal','url'=>array('update','id'=>$model->ID)),
array('label'=>'Delete MJadwal','url'=>'#','linkOptions'=>array('submit'=>array('delete','id'=>$model->ID),'confirm'=>'Are you sure you want to delete this item?')),
array('label'=>'Manage MJadwal','url'=>array('admin')),
);
?>
<h1>View MJadwal #<?php echo $model->ID; ?></h1>
<?php $this->widget('booster.widgets.TbDetailView',array(
'data'=>$model,
'attributes'=>array(
'ID',
'WEEK',
'TANGGAL',
'TA',
'ID_KUR',
'KELAS',
),
)); ?>
<?php <?php
$this->breadcrumbs=array( $this->breadcrumbs = array(
'Pegawais'=>array('index'), 'Pegawais' => array('index'),
'Manage', 'Manage',
); );
$this->menu=array( $this->menu = array(
array('label'=>'List Pegawai','url'=>array('index')), array('label' => 'List Pegawai', 'url' => array('index')),
array('label'=>'Create Pegawai','url'=>array('create')), array('label' => 'Create Pegawai', 'url' => array('create')),
); );
Yii::app()->clientScript->registerScript('search', " Yii::app()->clientScript->registerScript('search', "
...@@ -26,67 +26,71 @@ return false; ...@@ -26,67 +26,71 @@ return false;
<h1>Manage Pegawais</h1> <h1>Manage Pegawais</h1>
<p> <p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b> You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>
&lt;&gt;</b> &lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done. or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p> </p>
<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button btn')); ?> <?php echo CHtml::link('Advanced Search', '#', array('class' => 'search-button btn')); ?>
<div class="search-form" style="display:none"> <div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array( <?php
'model'=>$model, $this->renderPartial('_search', array(
)); ?> 'model' => $model,
));
?>
</div><!-- search-form --> </div><!-- search-form -->
<?php $this->widget('bootstrap.widgets.TbGridView',array( <?php
'id'=>'pegawai-grid', $this->widget('booster.widgets.TbGridView', array(
'dataProvider'=>$model->search(), 'id' => 'pegawai-grid',
'filter'=>$model, 'dataProvider' => $model->search(),
'columns'=>array( 'filter' => $model,
'ID', 'columns' => array(
'NIP', 'ID',
'KPT_NO', 'NIP',
'USER_NAME', 'KPT_NO',
'NAMA', 'USER_NAME',
'POSISI', 'NAMA',
/* 'POSISI',
'ALIAS', /*
'TGL_LAHIR', 'ALIAS',
'TEMPAT_LAHIR', 'TGL_LAHIR',
'JENIS_KELAMIN', 'TEMPAT_LAHIR',
'GOL_DARAH', 'JENIS_KELAMIN',
'TGL_MASUK', 'GOL_DARAH',
'TGL_KELUAR', 'TGL_MASUK',
'AGAMA', 'TGL_KELUAR',
'KBK_ID', 'AGAMA',
'EXT_NUM', 'KBK_ID',
'HP', 'EXT_NUM',
'EMAIL', 'HP',
'ALAMAT_LIBUR', 'EMAIL',
'KOTA', 'ALAMAT_LIBUR',
'KODE_POS', 'KOTA',
'TELEPON', 'KODE_POS',
'KTP', 'TELEPON',
'PENDIDIKAN', 'KTP',
'JABATAN', 'PENDIDIKAN',
'PENDIDIKAN_TERTINGGI', 'JABATAN',
'STUDY_AREA1', 'PENDIDIKAN_TERTINGGI',
'STUDY_AREA2', 'STUDY_AREA1',
'STATUS', 'STUDY_AREA2',
'NAMA_BAPAK', 'STATUS',
'NAMA_IBU', 'NAMA_BAPAK',
'PEKERJAAN_ORTU', 'NAMA_IBU',
'NAMA_P', 'PEKERJAAN_ORTU',
'TMP_LAHIR_P', 'NAMA_P',
'TGL_LAHIR_P', 'TMP_LAHIR_P',
'KET', 'TGL_LAHIR_P',
'STATUS_AKHIR', 'KET',
'LAST_UPDATE', 'STATUS_AKHIR',
'USER_ID', 'LAST_UPDATE',
'WS', 'USER_ID',
*/ 'WS',
array( */
'class'=>'bootstrap.widgets.TbButtonColumn', array(
), 'class' => 'booster.widgets.TbButtonColumn',
), ),
)); ?> ),
));
?>
...@@ -11,7 +11,7 @@ array('label'=>'Manage Pegawai','url'=>array('admin')), ...@@ -11,7 +11,7 @@ array('label'=>'Manage Pegawai','url'=>array('admin')),
<h1>Pegawais</h1> <h1>Pegawais</h1>
<?php $this->widget('bootstrap.widgets.TbListView',array( <?php $this->widget('booster.widgets.TbListView',array(
'dataProvider'=>$dataProvider, 'dataProvider'=>$dataProvider,
'itemView'=>'_view', 'itemView'=>'_view',
)); ?> )); ?>
...@@ -15,7 +15,7 @@ array('label'=>'Manage Pegawai','url'=>array('admin')), ...@@ -15,7 +15,7 @@ array('label'=>'Manage Pegawai','url'=>array('admin')),
<h1>View Pegawai #<?php echo $model->ID; ?></h1> <h1>View Pegawai #<?php echo $model->ID; ?></h1>
<?php $this->widget('bootstrap.widgets.TbDetailView',array( <?php $this->widget('booster.widgets.TbDetailView',array(
'data'=>$model, 'data'=>$model,
'attributes'=>array( 'attributes'=>array(
'ID', 'ID',
......
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array( <?php $form=$this->beginWidget('booster.widgets.TbActiveForm',array(
'id'=>'ruangan-form', 'id'=>'ruangan-form',
'enableAjaxValidation'=>false, 'enableAjaxValidation'=>false,
)); ?> )); ?>
...@@ -7,30 +7,30 @@ ...@@ -7,30 +7,30 @@
<?php echo $form->errorSummary($model); ?> <?php echo $form->errorSummary($model); ?>
<?php echo $form->textFieldRow($model,'ID',array('class'=>'span5','maxlength'=>20)); ?> <?php echo $form->textFieldGroup($model,'ID',array('class'=>'span5','maxlength'=>20)); ?>
<?php echo $form->textFieldRow($model,'SHORT_NAME',array('class'=>'span5','maxlength'=>20)); ?> <?php echo $form->textFieldGroup($model,'SHORT_NAME',array('class'=>'span5','maxlength'=>20)); ?>
<?php echo $form->textFieldRow($model,'NAME',array('class'=>'span5','maxlength'=>200)); ?> <?php echo $form->textFieldGroup($model,'NAME',array('class'=>'span5','maxlength'=>200)); ?>
<?php echo $form->textFieldRow($model,'KAPASITAS',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model,'KAPASITAS',array('class'=>'span5')); ?>
<?php echo $form->textAreaRow($model,'KET',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?> <?php echo $form->textAreaGroup($model,'KET',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?>
<?php echo $form->textFieldRow($model,'STATUS',array('class'=>'span5','maxlength'=>1)); ?> <?php echo $form->textFieldGroup($model,'STATUS',array('class'=>'span5','maxlength'=>1)); ?>
<?php echo $form->textFieldRow($model,'LAST_UPDATE',array('class'=>'span5','maxlength'=>20)); ?> <?php echo $form->textFieldGroup($model,'LAST_UPDATE',array('class'=>'span5','maxlength'=>20)); ?>
<?php echo $form->textFieldRow($model,'USER_ID',array('class'=>'span5','maxlength'=>50)); ?> <?php echo $form->textFieldGroup($model,'USER_ID',array('class'=>'span5','maxlength'=>50)); ?>
<?php echo $form->textFieldRow($model,'WS',array('class'=>'span5','maxlength'=>15)); ?> <?php echo $form->textFieldGroup($model,'WS',array('class'=>'span5','maxlength'=>15)); ?>
<?php echo $form->textFieldRow($model,'RFID',array('class'=>'span5','maxlength'=>20)); ?> <?php echo $form->textFieldGroup($model,'RFID',array('class'=>'span5','maxlength'=>20)); ?>
<div class="form-actions"> <div class="form-actions">
<?php $this->widget('bootstrap.widgets.TbButton', array( <?php $this->widget('booster.widgets.TbButton', array(
'buttonType'=>'submit', 'buttonType'=>'submit',
'type'=>'primary', 'context'=>'primary',
'label'=>$model->isNewRecord ? 'Create' : 'Save', 'label'=>$model->isNewRecord ? 'Create' : 'Save',
)); ?> )); ?>
</div> </div>
......
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array( <?php
'action'=>Yii::app()->createUrl($this->route), $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
'method'=>'get', 'action' => Yii::app()->createUrl($this->route),
)); ?> 'method' => 'get',
));
?>
<?php echo $form->textFieldRow($model,'ID',array('class'=>'span5','maxlength'=>20)); ?> <?php echo $form->textFieldGroup($model, 'ID', array('class' => 'span5', 'maxlength' => 20)); ?>
<?php echo $form->textFieldRow($model,'SHORT_NAME',array('class'=>'span5','maxlength'=>20)); ?> <?php echo $form->textFieldGroup($model, 'SHORT_NAME', array('class' => 'span5', 'maxlength' => 20)); ?>
<?php echo $form->textFieldRow($model,'NAME',array('class'=>'span5','maxlength'=>200)); ?> <?php echo $form->textFieldGroup($model, 'NAME', array('class' => 'span5', 'maxlength' => 200)); ?>
<?php echo $form->textFieldRow($model,'KAPASITAS',array('class'=>'span5')); ?> <?php echo $form->textFieldGroup($model, 'KAPASITAS', array('class' => 'span5')); ?>
<?php echo $form->textAreaRow($model,'KET',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?> <?php echo $form->textAreaGroup($model, 'KET', array('rows' => 6, 'cols' => 50, 'class' => 'span8')); ?>
<?php echo $form->textFieldRow($model,'STATUS',array('class'=>'span5','maxlength'=>1)); ?> <?php echo $form->textFieldGroup($model, 'STATUS', array('class' => 'span5', 'maxlength' => 1)); ?>
<?php echo $form->textFieldRow($model,'LAST_UPDATE',array('class'=>'span5','maxlength'=>20)); ?> <?php echo $form->textFieldGroup($model, 'LAST_UPDATE', array('class' => 'span5', 'maxlength' => 20)); ?>
<?php echo $form->textFieldRow($model,'USER_ID',array('class'=>'span5','maxlength'=>50)); ?> <?php echo $form->textFieldGroup($model, 'USER_ID', array('class' => 'span5', 'maxlength' => 50)); ?>
<?php echo $form->textFieldRow($model,'WS',array('class'=>'span5','maxlength'=>15)); ?> <?php echo $form->textFieldGroup($model, 'WS', array('class' => 'span5', 'maxlength' => 15)); ?>
<?php echo $form->textFieldRow($model,'RFID',array('class'=>'span5','maxlength'=>20)); ?> <?php echo $form->textFieldGroup($model, 'RFID', array('class' => 'span5', 'maxlength' => 20)); ?>
<div class="form-actions"> <div class="form-actions">
<?php $this->widget('bootstrap.widgets.TbButton', array( <?php
'buttonType' => 'submit', $this->widget('booster.widgets.TbButton', array(
'type'=>'primary', 'buttonType' => 'submit',
'label'=>'Search', 'context' => 'primary',
)); ?> 'label' => 'Search',
</div> ));
?>
</div>
<?php $this->endWidget(); ?> <?php $this->endWidget(); ?>
...@@ -38,7 +38,7 @@ return false; ...@@ -38,7 +38,7 @@ return false;
)); ?> )); ?>
</div><!-- search-form --> </div><!-- search-form -->
<?php $this->widget('bootstrap.widgets.TbGridView',array( <?php $this->widget('booster.widgets.TbGridView',array(
'id'=>'ruangan-grid', 'id'=>'ruangan-grid',
'dataProvider'=>$model->search(), 'dataProvider'=>$model->search(),
'filter'=>$model, 'filter'=>$model,
...@@ -56,7 +56,7 @@ return false; ...@@ -56,7 +56,7 @@ return false;
'RFID', 'RFID',
*/ */
array( array(
'class'=>'bootstrap.widgets.TbButtonColumn', 'class'=>'booster.widgets.TbButtonColumn',
), ),
), ),
)); ?> )); ?>
...@@ -11,7 +11,7 @@ array('label'=>'Manage Ruangan','url'=>array('admin')), ...@@ -11,7 +11,7 @@ array('label'=>'Manage Ruangan','url'=>array('admin')),
<h1>Ruangans</h1> <h1>Ruangans</h1>
<?php $this->widget('bootstrap.widgets.TbListView',array( <?php $this->widget('booster.widgets.TbListView',array(
'dataProvider'=>$dataProvider, 'dataProvider'=>$dataProvider,
'itemView'=>'_view', 'itemView'=>'_view',
)); ?> )); ?>
...@@ -15,7 +15,7 @@ array('label'=>'Manage Ruangan','url'=>array('admin')), ...@@ -15,7 +15,7 @@ array('label'=>'Manage Ruangan','url'=>array('admin')),
<h1>View Ruangan #<?php echo $model->ID; ?></h1> <h1>View Ruangan #<?php echo $model->ID; ?></h1>
<?php $this->widget('bootstrap.widgets.TbDetailView',array( <?php $this->widget('booster.widgets.TbDetailView',array(
'data'=>$model, 'data'=>$model,
'attributes'=>array( 'attributes'=>array(
'ID', 'ID',
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
array('label' => 'Home', 'url' => array('/site/index'), 'linkOptions' => array("data-description" => "Beranda")), array('label' => 'Home', 'url' => array('/site/index'), 'linkOptions' => array("data-description" => "Beranda")),
array('label' => 'Manage Jadwal <span class="caret"></span>', 'url' => '#', 'itemOptions' => array('class' => 'dropdown', 'tabindex' => "-1"), 'linkOptions' => array('class' => 'dropdown-toggle', 'data-toggle' => "dropdown", "data-description" => "Manage Jadwal disini!"), array('label' => 'Manage Jadwal <span class="caret"></span>', 'url' => '#', 'itemOptions' => array('class' => 'dropdown', 'tabindex' => "-1"), 'linkOptions' => array('class' => 'dropdown-toggle', 'data-toggle' => "dropdown", "data-description" => "Manage Jadwal disini!"),
'items' => array( 'items' => array(
array('label' => 'Create Jadwal', 'url' => array('/Jadwal/create2')), array('label' => 'Create Jadwal', 'url' => array('/MJadwal/create')),
array('label' => 'Daftar Jadwal', 'url' => array('Jadwal/index')), array('label' => 'Daftar Jadwal', 'url' => array('MJadwal/index')),
)), )),
array('label' => 'Laporan <span class="caret"></span>', 'url' => '#', 'itemOptions' => array('class' => 'dropdown', 'tabindex' => "-1"), 'linkOptions' => array('class' => 'dropdown-toggle', 'data-toggle' => "dropdown", "data-description" => "Absensi"), array('label' => 'Laporan <span class="caret"></span>', 'url' => '#', 'itemOptions' => array('class' => 'dropdown', 'tabindex' => "-1"), 'linkOptions' => array('class' => 'dropdown-toggle', 'data-toggle' => "dropdown", "data-description" => "Absensi"),
'items' => array( 'items' => array(
......
<!--<div class="slider-bootstrap"><!-- start slider <!--<div class="slider-bootstrap"><!-- start slider
<div class="slider-wrapper theme-default"> <div class="slider-wrapper theme-default">
<div id="slider-nivo" class="nivoSlider"> <div id="slider-nivo" class="nivoSlider">
<img src="<?php //echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s10.jpg" data-thumb="<?php echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s10.jpg" alt="" title="" /> <img src="<?php //echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s10.jpg" data-thumb="<?php echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s10.jpg" alt="" title="" />
<img src="<?php //echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s11.jpg" data-thumb="<?php echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s11.jpg" alt="" title="" /> <img src="<?php //echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s11.jpg" data-thumb="<?php echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s11.jpg" alt="" title="" />
<img src="<?php //echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s12.jpg" data-thumb="<?php echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s12.jpg" alt="" data-transition="slideInLeft" /> <img src="<?php //echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s12.jpg" data-thumb="<?php echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s12.jpg" alt="" data-transition="slideInLeft" />
<img src="<?php //echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s13.jpg" data-thumb="<?php echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s13.jpg" alt="" title="" /> <img src="<?php //echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s13.jpg" data-thumb="<?php echo Yii::app()->theme->baseUrl; ?>/img/slider/flickr/s13.jpg" alt="" title="" />
</div> </div>
</div> </div>
...@@ -45,16 +45,39 @@ ...@@ -45,16 +45,39 @@
$date = date('Y-m-d'); $date = date('Y-m-d');
$gridDataProvider = new CActiveDataProvider('BeritaAcaraKuliah', array( $gridDataProvider = new CActiveDataProvider('BeritaAcaraKuliah', array(
'criteria' => array( 'criteria' => array(
'condition' => "TANGGAL LIKE '$date'", 'join' => "JOIN d_jadwal dj ON t.ID_DETAIL_JADWAL = dj.ID JOIN m_jadwal mj ON dj.ID_JADWAL = mj.ID",
'condition' => "mj.TANGGAL LIKE '$date'",
), ),
)); ));
$this->widget( $this->widget(
'booster.widgets.TbGridView', array( 'booster.widgets.TbGridView', array(
'dataProvider' => $gridDataProvider, 'dataProvider' => $gridDataProvider,
'template' => "{items}", 'template' => "{items}",
'columns' => array('WEEK', 'SESSION', 'TA', 'ID_KUR', 'KODE_MK', 'KELAS', 'TANGGAL', 'TOPIK'), 'columns' => array(
array(
'header' => 'Kelas',
'value' => '$data->iddetailjadwal->idjadwal->KELAS',
),
array(
'header' => 'Sesi',
'value' => '$data->iddetailjadwal->SESSION',
),
array(
'header' => 'Mata Kuliah',
'value' => '$data->iddetailjadwal->kodemk->SHORT_NAME',
),
array(
'header' => 'Ruangan',
'value' => '$data->iddetailjadwal->RUANGAN',
),
array(
'header' => 'Aktifitas',
'value' => '$data->iddetailjadwal->AKTIFITAS',
),
),
) )
); );
//'ID', 'SESSION', 'TA', 'ID_KUR', 'KODE_MK', 'KELAS', 'TANGGAL', 'TOPIK'
?> ?>
</div> </div>
</li> </li>
......
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