Tambahan Fungsi Baru

parent 63ea6fac
......@@ -4,9 +4,67 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/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/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/beritaAcaraDaftarHadir/_formDaftarHadir.php</file>
<file>file:/C:/xampp/htdocs/Test/smartcard/protected/views/beritaAcaraKuliah/createBeritaAcaraKuliah.php</file>
</group>
</open-files>
</project-private>
......@@ -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 (!isset($_GET['ajax']))
$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
}
else
} else
throw new CHttpException(400, 'Invalid request. Please do not repeat this request again.');
}
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;
$html2pdf->WriteHTML($this->renderPartial('LaporanBeritaAcaraKuliah', array('message' => $message), true));
ob_end_clean();
......@@ -159,6 +158,8 @@ class BeritaAcaraDaftarHadirController extends Controller {
public function actionsearchBeritaAcaraDaftarHadir() {
$model = new BeritaAcaraDaftarHadir;
$djadwal = new DJadwal;
$mjadwal = new MJadwal;
// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);
......@@ -167,33 +168,34 @@ class BeritaAcaraDaftarHadirController extends Controller {
$Sem = "";
$Kelas_form = "";
$T_A = "";
if (isset($_POST['BeritaAcaraDaftarHadir'])) {
if (isset($_POST['BeritaAcaraDaftarHadir']) || isset($_POST['DJadwal']) || isset($_POST['MJadwal'])) {
//$model->attributes = $_POST['BeritaAcaraKuliah'];
$KODE_MK_form = $_POST['BeritaAcaraDaftarHadir']['KODE_MK'];
$Sem_form = $_POST['BeritaAcaraDaftarHadir']['SEM'];
$Kelas_form = $_POST['BeritaAcaraDaftarHadir']['KELAS'];
$T_A = $_POST['BeritaAcaraDaftarHadir']['TA'];
$id = $KODE_MK_form . "-" . $Sem_form . "-" . $Kelas_form . "-" . $T_A;
$hasil = BeritaAcaraDaftarHadir::model()->findAllByAttributes(array('KODE_MK' => $KODE_MK_form, 'KELAS' => $Kelas_form, 'SEM' => $Sem_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();
$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();
var_dump($hadir);
$KODE_MK_form = $_POST['DJadwal']['KODE_MK'];
$Kelas_form = $_POST['MJadwal']['KELAS'];
$T_A = $_POST['MJadwal']['TA'];
$id = $KODE_MK_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`
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 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 'H'")->queryAll();
$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;
foreach($hadir as $item)
{
$jmlHadir = $item['COUNT(*)'];
foreach ($hadir as $item) {
$jmlHadir = $item['COUNT(*)'];
}
$jmlabsen = 0;
foreach ($absen as $item)
{
foreach ($absen as $item) {
$jmlabsen = $item['COUNT(*)'];
}
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(
'model' => $model,
'djadwal' => $djadwal,
'mjadwal' => $mjadwal,
));
}
......@@ -204,7 +206,7 @@ class BeritaAcaraDaftarHadirController extends Controller {
//echo $lapet2;
//var_dump($lapet) ;
$this->render('IndexDataSearch', array(
'message' => $id, 'wew'=>$lapet, 'wow'=>$lapet2,
'message' => $id, 'wew' => $lapet, 'wow' => $lapet2,
));
}
......
......@@ -138,9 +138,15 @@ class BeritaAcaraKuliahController extends Controller {
public function actionAdminByDate($id) {
//$tanggal = date("Y-m-d");
$criteria = new CDbCriteria;
$criteria->condition = 'TANGGAL like "%' . $id . '%"';
$gridDataProvider = new CActiveDataProvider('BeritaAcaraKuliah', array('criteria' => $criteria));
$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 "%' . $id . '%"',
),
));
// $criteria = new CDbCriteria;
// $criteria->condition = 'TANGGAL like "%' . $id . '%"';
// $gridDataProvider = new CActiveDataProvider('BeritaAcaraKuliah', array('criteria' => $criteria));
$this->render('adminyDate', array(
'dataProvider' => $gridDataProvider, 'wew' => $id,
));
......@@ -148,6 +154,8 @@ class BeritaAcaraKuliahController extends Controller {
public function actionCetakBeritaAcaraKuliah() {
$model = new BeritaAcaraKuliah;
$djadwal = new DJadwal;
$mjadwal = new MJadwal;
// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);
......@@ -155,19 +163,21 @@ class BeritaAcaraKuliahController extends Controller {
$KODE_MK_form = "";
$Kelas_form = "";
$Sem = "";
if (isset($_POST['BeritaAcaraKuliah'])) {
if (isset($_POST['BeritaAcaraKuliah']) || isset($_POST['DJadwal']) || isset($_POST['MJadwal'])) {
//$model->attributes = $_POST['BeritaAcaraKuliah'];
$TA_form = $_POST['BeritaAcaraKuliah']['TA'];
$KODE_MK_form = $_POST['BeritaAcaraKuliah']['KODE_MK'];
$Kelas_form = $_POST['BeritaAcaraKuliah']['KELAS'];
$Sem = $_POST['BeritaAcaraKuliah']['SEM'];
$id = $TA_form . "-" . $KODE_MK_form . "-" . $Kelas_form . "-" . $Sem;
$hasil = BeritaAcaraKuliah::model()->findAllByAttributes(array('TA' => $TA_form, 'KODE_MK' => $KODE_MK_form, 'KELAS' => $Kelas_form));
$TA_form = $_POST['MJadwal']['TA'];
$KODE_MK_form = $_POST['DJadwal']['KODE_MK'];
$Kelas_form = $_POST['MJadwal']['KELAS'];
$id = $TA_form . "-" . $KODE_MK_form . "-" . $Kelas_form;
$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`
WHERE mj.`TA`= '$TA_form' AND dj.`KODE_MK` = '$KODE_MK_form' AND mj.`KELAS` = '$Kelas_form'");
if ($hasil)
$this->redirect(array('IndexData', 'id' => $id));
}
$this->render('createBeritaAcaraKuliah', array(
'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 @@
*
* The followings are the available columns in table 'berita_acara_daftar_hadir':
* @property integer $ID
* @property integer $WEEK
* @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 integer $ID_DETAIL_JADWAL
* @property string $NIM
* @property string $STATUS
* @property string $KETERANGAN
......@@ -25,158 +16,103 @@
*
* The followings are the available model relations:
* @property Dim $nIM
* @property Kurikulum $kODEMK
* @property Kurikulum $iDKUR
* @property DJadwal $iDDETAILJADWAL
*/
class BeritaAcaraDaftarHadir extends CActiveRecord {
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return BeritaAcaraDaftarHadir 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 'berita_acara_daftar_hadir';
}
/**
* @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('KELAS', 'required'),
array('WEEK, SESSION, TA, SEM, ID_KUR', 'numerical', 'integerOnly' => true),
array('KELAS', 'length', 'max' => 100),
array('KODE_MK', 'length', 'max' => 10),
array('NIM', 'length', 'max' => 8),
array('STATUS', 'length', 'max' => 7),
array('LAST_UPDATE', 'length', 'max' => 20),
array('USER_ID, WS', 'length', 'max' => 15),
array('TANGGAL, START_TIME, END_TIME, KETERANGAN, WAKTU_ABSEN', 'safe'),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
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'),
);
}
/**
* @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(
'nim' => array(self::BELONGS_TO, 'Dim', 'NIM'),
'kodemk' => array(self::BELONGS_TO, 'Kurikulum', 'KODE_MK'),
'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',
'SESSION' => 'Session',
'START_TIME' => 'Start Time',
'END_TIME' => 'End Time',
'KELAS' => 'Kelas',
'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',
'WS' => 'Ws',
'WAKTU_ABSEN' => 'Waktu Absen',
);
}
/**
* 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('SESSION', $this->SESSION);
$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', $this->ID_KUR);
$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();
}
}
class BeritaAcaraDaftarHadir extends CActiveRecord
{
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return BeritaAcaraDaftarHadir 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 'berita_acara_daftar_hadir';
}
/**
* @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_DETAIL_JADWAL', 'required'),
array('ID_DETAIL_JADWAL', 'numerical', 'integerOnly'=>true),
array('NIM', 'length', 'max'=>8),
array('STATUS', 'length', 'max'=>7),
array('LAST_UPDATE', 'length', 'max'=>20),
array('USER_ID, WS', 'length', 'max'=>15),
array('KETERANGAN, WAKTU_ABSEN', 'safe'),
// The following rule is used by 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.
*/
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(
'nim' => array(self::BELONGS_TO, 'Dim', 'NIM'),
'iddetailjadwal' => array(self::BELONGS_TO, 'DJadwal', 'ID_DETAIL_JADWAL'),
);
}
/**
* @return array customized attribute labels (name=>label)
*/
public function attributeLabels()
{
return array(
'ID' => 'ID',
'ID_DETAIL_JADWAL' => 'Id Detail Jadwal',
'NIM' => 'Nim',
'STATUS' => 'Status',
'KETERANGAN' => 'Keterangan',
'LAST_UPDATE' => 'Last Update',
'USER_ID' => 'User',
'WS' => 'Ws',
'WAKTU_ABSEN' => 'Waktu Absen',
);
}
/**
* 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_DETAIL_JADWAL',$this->ID_DETAIL_JADWAL);
$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,
));
}
}
\ No newline at end of file
......@@ -5,32 +5,12 @@
*
* The followings are the available columns in table 'berita_acara_kuliah':
* @property integer $ID
* @property integer $WEEK
* @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 integer $ID_DETAIL_JADWAL
* @property string $TIPE_KULIAH
* @property string $METODE
* @property string $ALAT_BANTU
* @property string $CATATAN
* @property string $LAST_UPDATE
* @property string $USER_ID
* @property string $WS
*
* The followings are the available model relations:
* @property Kurikulum $kODEMK
* @property Pegawai $pIC
* @property Ruangan $rUANGAN
* @property DJadwal $iDDETAILJADWAL
*/
class BeritaAcaraKuliah extends CActiveRecord {
......@@ -39,7 +19,7 @@ class BeritaAcaraKuliah extends CActiveRecord {
* @param string $className active record class name.
* @return BeritaAcaraKuliah the static model class
*/
public static function model($className=__CLASS__) {
public static function model($className = __CLASS__) {
return parent::model($className);
}
......@@ -57,18 +37,13 @@ class BeritaAcaraKuliah extends CActiveRecord {
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
array('SEM', 'required'),
array('WEEK, SESSION, TA, ID_KUR', 'numerical', 'integerOnly' => true),
array('KODE_MK', 'length', 'max' => 10),
array('SEM', 'length', 'max' => 5),
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'),
array('ID_DETAIL_JADWAL', 'required'),
array('ID_DETAIL_JADWAL', 'numerical', 'integerOnly' => true),
array('TIPE_KULIAH', 'length', 'max' => 9),
array('CATATAN', 'safe'),
// The following rule is used by search().
// 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 {
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
'kodemk' => array(self::BELONGS_TO, 'Kurikulum', 'KODE_MK'),
'pic' => array(self::BELONGS_TO, 'Pegawai', 'PIC'),
'ruangan' => array(self::BELONGS_TO, 'Ruangan', 'RUANGAN'),
'iddetailjadwal' => array(self::BELONGS_TO, 'DJadwal', 'ID_DETAIL_JADWAL'),
);
}
......@@ -91,27 +64,9 @@ class BeritaAcaraKuliah extends CActiveRecord {
public function attributeLabels() {
return array(
'ID' => 'ID',
'WEEK' => 'Week',
'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',
'ID_DETAIL_JADWAL' => 'Id Detail Jadwal',
'TIPE_KULIAH' => 'Tipe Kuliah',
'METODE' => 'Metode',
'ALAT_BANTU' => 'Alat Bantu',
'CATATAN' => 'Catatan',
'LAST_UPDATE' => 'Last Update',
'USER_ID' => 'User',
'WS' => 'Ws',
);
}
......@@ -126,36 +81,13 @@ class BeritaAcaraKuliah extends CActiveRecord {
$criteria = new CDbCriteria;
$criteria->compare('ID', $this->ID);
$criteria->compare('WEEK', $this->WEEK);
$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('ID_DETAIL_JADWAL', $this->ID_DETAIL_JADWAL);
$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('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,
));
'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 @@
$temp = explode("-", $message);
$Kode = $temp[0];
$Sem = $temp[1];
$Kelas = $temp[2];
$TA = $temp[3];
$Kelas = $temp[1];
$TA = $temp[2];
?>
<h2><center><u>BERITA ACARA KULIAH</u></center></h2>
<table>
......@@ -39,7 +38,7 @@ $TA = $temp[3];
<td> : </td>
<td>
<?php
echo $Sem;
echo $mk->SEM;
?>
</td>
</tr>
......@@ -51,11 +50,12 @@ $TA = $temp[3];
</table>
<?php
$dataProvider = BeritaAcaraKuliah::model()->findAllByAttributes(array('TA' => $TA, 'KODE_MK' => $Kode, 'KELAS' => $Kode));
$criteria = new CDbCriteria;
$criteria->condition = 'KODE_MK = "' . $Kode . '" and KELAS = "' . $Kelas . '"and SEM = "' . $Sem . '"and TA = "' . $TA . '"';
$dataProvider = new CActiveDataProvider('BeritaAcaraDaftarHadir', array('pagination' => array('pageSize' => 10,), 'criteria' => $criteria));
$dataProvider = new CActiveDataProvider('BeritaAcaraDaftarHadir', 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.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));
?>
......@@ -70,7 +70,28 @@ $this->widget(
'dataProvider' => $dataProvider,
'enablePagination' => false,
'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/>
......@@ -86,5 +107,5 @@ $this->widget(
</table>
<br><br>
<?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
$this->menu=array(
array('label'=>'List BeritaAcaraKuliah','url'=>array('index')),
array('label'=>'Manage BeritaAcaraKuliah','url'=>array('admin')),
$this->menu = array(
array('label' => 'List BeritaAcaraKuliah', 'url' => array('index')),
array('label' => 'Manage BeritaAcaraKuliah', 'url' => array('admin')),
);
?>
<h1>Find your Berita Acara Daftar Hadir</h1>
<?php echo $this->renderPartial('_formDaftarHadir', array('model'=>$model)); ?>
\ No newline at end of file
<?php echo $this->renderPartial('_formDaftarHadir', array('model' => $model, 'mjadwal' => $mjadwal, 'djadwal' => $djadwal)); ?>
\ 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',
'enableAjaxValidation'=>false,
)); ?>
......@@ -7,40 +7,40 @@
<?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">
<?php $this->widget('bootstrap.widgets.TbButton', array(
<?php $this->widget('booster.widgets.TbButton', array(
'buttonType'=>'submit',
'type'=>'primary',
'context'=>'primary',
'label'=>$model->isNewRecord ? 'Create' : 'Save',
)); ?>
</div>
......
......@@ -16,28 +16,24 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
<h3>Tahun Ajaran</h3></CENTER>
</TD>
<TD ALIGN="CENTER"><CENTER>
<h3>Semester</h3></CENTER>
<h3>Kode Mata Kuliah</h3></CENTER>
</TD>
<TD ALIGN="CENTER"><CENTER>
<h3>Mata Kuliah</h3></CENTER>
</TD>
<td ALIGN="CENTER"><center>
<h3>Kelas</h3></center>
</td>
</TR>
<h3>Kelas</h3></CENTER>
<TD>
</TR>
<TR ALIGN="CENTER">
<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(), 'TA', 'TA');
$ta = CHtml::listData(MJadwal::model()->findAll(), 'TA', 'TA');
echo $form->dropDownListGroup(
$model, 'TA', array('wrapperHtmlOptions' => array(
$mjadwal, 'TA', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5',
),
'widgetOptions' => array(
'data' => $data,
'data' => $ta,
'htmlOptions' => array(),
)
)
......@@ -45,31 +41,35 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
?>
</CENTER>
</TD>
<TD ALIGN="CENTER"><CENTER>
<?php //echo $form->textFieldGroup($model,'ID_KUR',array('widgetOptions'=>array('htmlOptions'=>array('class'=>'span5')))); ?>
<?php
$data = CHtml::listData(BeritaAcaraDaftarHadir::model()->findAll(), 'SEM', 'SEM');
$kodemk = CHtml::listData(DJadwal::model()->findAll(), 'KODE_MK', 'KODE_MK');
echo $form->dropDownListGroup(
$model, 'SEM', array('wrapperHtmlOptions' => array(
$djadwal, 'KODE_MK', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5',
),
'widgetOptions' => array(
'data' => $data,
'data' => $kodemk,
'htmlOptions' => array(),
)
)
);
?>
</CENTER>
</TD>
<TD ALIGN="CENTER"><CENTER>
<?php
$data = CHtml::listData(Jadwal::model()->findAll(), 'KODE_MK', 'KODE_MK');
$kelas = CHtml::listData(MJadwal::model()->findAll(), 'KELAS', 'KELAS');
echo $form->dropDownListGroup(
$model, 'KODE_MK', array('wrapperHtmlOptions' => array(
$mjadwal, 'KELAS', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5',
),
'widgetOptions' => array(
'data' => $data,
'data' => $kelas,
'htmlOptions' => array(),
)
)
......@@ -77,26 +77,6 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
?>
<CENTER>
</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 >
<TD ALIGN="CENTER" COLSPAN="4" ><CENTER>
......@@ -110,42 +90,42 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
?>
</div>
</CENTER>
</TD>
</TR>
</TABLE>
<TD>
</TR>
</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),
'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">
<?php $this->widget('bootstrap.widgets.TbButton', array(
<?php $this->widget('booster.widgets.TbButton', array(
'buttonType' => 'submit',
'type'=>'primary',
'context'=>'primary',
'label'=>'Search',
)); ?>
</div>
......
<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')); ?>:</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('WEEK')); ?>:</b>
<?php echo CHtml::encode($data->WEEK); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('SESSION')); ?>:</b>
<?php echo CHtml::encode($data->SESSION); ?>
<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('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('END_TIME')); ?>:</b>
<?php echo CHtml::encode($data->END_TIME); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('TA')); ?>:</b>
<?php echo CHtml::encode($data->TA); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('TA')); ?>:</b>
<?php echo CHtml::encode($data->TA); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('SEM')); ?>:</b>
<?php echo CHtml::encode($data->SEM); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('SEM')); ?>:</b>
<?php echo CHtml::encode($data->SEM); ?>
<br />
<?php /*
<b><?php echo CHtml::encode($data->getAttributeLabel('ID_KUR')); ?>:</b>
<?php echo CHtml::encode($data->ID_KUR); ?>
<br />
<?php /*
<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('KODE_MK')); ?>:</b>
<?php echo CHtml::encode($data->KODE_MK); ?>
<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('NIM')); ?>:</b>
<?php echo CHtml::encode($data->NIM); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('NIM')); ?>:</b>
<?php echo CHtml::encode($data->NIM); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('STATUS')); ?>:</b>
<?php echo CHtml::encode($data->STATUS); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('STATUS')); ?>:</b>
<?php echo CHtml::encode($data->STATUS); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('KETERANGAN')); ?>:</b>
<?php echo CHtml::encode($data->KETERANGAN); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('KETERANGAN')); ?>:</b>
<?php echo CHtml::encode($data->KETERANGAN); ?>
<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('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('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 />
<b><?php echo CHtml::encode($data->getAttributeLabel('WS')); ?>:</b>
<?php echo CHtml::encode($data->WS); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('WAKTU_ABSEN')); ?>:</b>
<?php echo CHtml::encode($data->WAKTU_ABSEN); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('WAKTU_ABSEN')); ?>:</b>
<?php echo CHtml::encode($data->WAKTU_ABSEN); ?>
<br />
*/ ?>
*/ ?>
</div>
\ No newline at end of file
<?php
$this->menu=array(
array('label'=>'List BeritaAcaraDaftarHadir','url'=>array('index')),
array('label'=>'Create BeritaAcaraDaftarHadir','url'=>array('create')),
$this->menu = array(
array('label' => 'List BeritaAcaraDaftarHadir', 'url' => array('index')),
array('label' => 'Create BeritaAcaraDaftarHadir', 'url' => array('create')),
);
Yii::app()->clientScript->registerScript('search', "
......@@ -23,43 +21,46 @@ return false;
<h1>Manage Berita Acara Daftar Hadirs</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.
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')); ?>
<?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,
)); ?>
<?php
$this->renderPartial('_search', array(
'model' => $model,
));
?>
</div><!-- search-form -->
<?php $this->widget('bootstrap.widgets.TbGridView',array(
'id'=>'berita-acara-daftar-hadir-grid',
'dataProvider'=>$dataProvider,
<?php
$this->widget('booster.widgets.TbGridView', array(
'id' => 'berita-acara-daftar-hadir-grid',
'dataProvider' => $dataProvider,
//'filter'=>$model,
'columns'=>array(
'ID',
'WEEK',
'SESSION',
'START_TIME',
'END_TIME',
'TA',
'SEM',
'ID_KUR',
'KODE_MK',
'NIM',
'STATUS',
'KETERANGAN',
'LAST_UPDATE',
'USER_ID',
'WS',
'WAKTU_ABSEN',
//*/
array(
'class'=>'bootstrap.widgets.TbButtonColumn',
),
),
)); ?>
'columns' => array(
'ID',
'WEEK',
'SESSION',
'START_TIME',
'END_TIME',
'TA',
'SEM',
'ID_KUR',
'KODE_MK',
'NIM',
'STATUS',
'KETERANGAN',
'LAST_UPDATE',
'USER_ID',
'WS',
'WAKTU_ABSEN',
//*/
array(
'class' => 'booster.widgets.TbButtonColumn',
),
),
));
?>
......@@ -9,7 +9,7 @@ array('label'=>'Manage BeritaAcaraDaftarHadir','url'=>array('admin')),
<h1>Berita Acara Daftar Hadirs</h1>
<?php $this->widget('bootstrap.widgets.TbListView',array(
<?php $this->widget('booster.widgets.TbListView',array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
)); ?>
......@@ -11,7 +11,7 @@ array('label'=>'Manage BeritaAcaraDaftarHadir','url'=>array('admin')),
<h1>View BeritaAcaraDaftarHadir #<?php echo $model->ID; ?></h1>
<?php $this->widget('bootstrap.widgets.TbDetailView',array(
<?php $this->widget('booster.widgets.TbDetailView',array(
'data'=>$model,
'attributes'=>array(
'ID',
......
......@@ -9,7 +9,6 @@ $temp = explode("-", $message);
$TA = $temp[0];
$Kode = $temp[1];
$Kelas = $temp[2];
$Sem = $temp[3];
?>
<h2><center><u>BERITA ACARA KULIAH</u></center></h2>
<table>
......@@ -39,7 +38,7 @@ $Sem = $temp[3];
<td> : </td>
<td>
<?php
echo $Sem;
echo $mk->SEM;
?>
</td>
</tr>
......@@ -52,27 +51,68 @@ $Sem = $temp[3];
<?php
//$dataProvider = BeritaAcaraKuliah::model()->findAllByAttributes(array('TA'=>$TA, 'KODE_MK'=>$Kode, 'KELAS'=>$Kode));
$criteria = new CDbCriteria;
$criteria->condition = 'TA = "' . $TA . '" and KODE_MK = "' . $Kode . '" and KELAS = "' . $Kelas . '"and SEM = "' . $Sem . '"';
$dataProvider = new CActiveDataProvider('BeritaAcaraKuliah', array('criteria' => $criteria));
$dataProvider = 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.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(
'booster.widgets.TbGridView', array(
'type' => 'striped',
'dataProvider' => $dataProvider,
'template' => "{items}",
'columns' => array(
'TANGGAL',
'WEEK',
'SESSION',
'RUANGAN',
'START_TIME',
'END_TIME',
'AKTIFITAS',
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',
),
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',
array(
'header' => 'Pengajar',
'name' => 'PIC',
'value' => '$data->pic->NAMA',
'value' => '$data->iddetailjadwal->pic->NAMA',
),
),)
);
......@@ -80,5 +120,5 @@ $this->widget(
<br/>
<?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(
));
?>
<p class="help-block">Fields with <span class="required">*</span> are required.</p>
<?php echo $form->errorSummary($model); ?>
<?php echo $form->textFieldGroup($model, 'WEEK', array('class' => 'span5')); ?>
<?php echo $form->textFieldGroup($model, 'SESSION', array('class' => 'span5')); ?>
<?php echo $form->textFieldGroup($model, 'TA', array('class' => 'span5')); ?>
<?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)); ?>
<?php
echo $form->dropDownListGroup(
$model, 'TIPE_KULIAH', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5',
),
'widgetOptions' => array(
'data' => array(
"1" => 'Regular', "2" => 'Pengganti',
),
'htmlOptions' => array(),
)
)
);
?>
<div class="form-actions">
<?php
......
......@@ -5,20 +5,12 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
'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">
<TR ALIGN="CENTER">
<TD ALIGN="CENTER"><CENTER>
<h3>Tahun Ajaran</h3></CENTER>
</TD>
<TD ALIGN="CENTER"><CENTER>
<h3>Semester</h3></CENTER>
</TD>
<TD ALIGN="CENTER"><CENTER>
<h3>Kode Mata Kuliah</h3></CENTER>
</TD>
<TD ALIGN="CENTER"><CENTER>
......@@ -30,29 +22,13 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
<TD ALIGN="CENTER">
<CENTER>
<?php
$data = CHtml::listData(Jadwal::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');
$ta = CHtml::listData(MJadwal::model()->findAll(), 'TA', 'TA');
echo $form->dropDownListGroup(
$model, 'SEM', array('wrapperHtmlOptions' => array(
$mjadwal, 'TA', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5',
),
'widgetOptions' => array(
'data' => $data,
'data' => $ta,
'htmlOptions' => array(),
)
)
......@@ -60,17 +36,18 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
?>
</CENTER>
</TD>
<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
$data = CHtml::listData(Jadwal::model()->findAll(), 'KODE_MK', 'KODE_MK');
$kodemk = CHtml::listData(DJadwal::model()->findAll(), 'KODE_MK', 'KODE_MK');
echo $form->dropDownListGroup(
$model, 'KODE_MK', array('wrapperHtmlOptions' => array(
$djadwal, 'KODE_MK', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5',
),
'widgetOptions' => array(
'data' => $data,
'data' => $kodemk,
'htmlOptions' => array(),
)
)
......@@ -81,13 +58,13 @@ $form = $this->beginWidget('booster.widgets.TbActiveForm', array(
</TD>
<TD ALIGN="CENTER"><CENTER>
<?php
$data = CHtml::listData(Jadwal::model()->findAll(), 'KELAS', 'KELAS');
$kelas = CHtml::listData(MJadwal::model()->findAll(), 'KELAS', 'KELAS');
echo $form->dropDownListGroup(
$model, 'KELAS', array('wrapperHtmlOptions' => array(
$mjadwal, 'KELAS', array('wrapperHtmlOptions' => array(
'class' => 'col-sm-5',
),
'widgetOptions' => array(
'data' => $data,
'data' => $kelas,
'htmlOptions' => 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 $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
'action'=>Yii::app()->createUrl($this->route),
'method'=>'get',
)); ?>
<?php
$form = $this->beginWidget('booster.widgets.TbActiveForm', array(
'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">
<?php $this->widget('bootstrap.widgets.TbButton', array(
'buttonType' => 'submit',
'type'=>'primary',
'label'=>'Search',
)); ?>
</div>
<div class="form-actions">
<?php
$this->widget('booster.widgets.TbButton', array(
'buttonType' => 'submit',
'context' => 'primary',
'label' => 'Search',
));
?>
</div>
<?php $this->endWidget(); ?>
<?php
?>
<?php ?>
<table>
<tr>
<td>
......@@ -11,44 +9,44 @@
<td>
<blockquote>
<h2>
Laporan Berita Acara tanggal <?php echo $wew ?>
</h2>
<hr>
<?php
$this->widget('bootstrap.widgets.TbGridView', array(
'type' => 'striped bordered condensed',
'dataProvider' => $dataProvider,
'template' => "{items}",
'columns' => array(
//'ID',
'WEEK',
'SESSION',
//'START_TIME',
//'END_TIME',
'TA',
'ID_KUR',
'KELAS',
'TANGGAL',
'TOPIK',
'RUANGAN',
'AKTIFITAS',
'TIPE_KULIAH',
'CATATAN',
/* 'KETERANGAN',
'LAST_UPDATE',
'USER_ID',
'WS',
'WAKTU_ABSEN',
// */
array(
'class' => 'bootstrap.widgets.TbButtonColumn',
<h2>
Laporan Berita Acara tanggal <?php echo $wew ?>
</h2>
<hr>
<?php
$this->widget('booster.widgets.TbGridView', array(
'type' => 'striped bordered condensed',
'dataProvider' => $dataProvider,
'template' => "{items}",
'columns' => array(
//'ID',
'WEEK',
'SESSION',
//'START_TIME',
//'END_TIME',
'TA',
'ID_KUR',
'KELAS',
'TANGGAL',
'TOPIK',
'RUANGAN',
'AKTIFITAS',
'TIPE_KULIAH',
'CATATAN',
/* 'KETERANGAN',
'LAST_UPDATE',
'USER_ID',
'WS',
'WAKTU_ABSEN',
// */
array(
'class' => 'booster.widgets.TbButtonColumn',
),
),
),
));
?>
));
?>
</blockquote>
</td>
......
......@@ -23,17 +23,35 @@
'template' => "{items}",
'columns' => array(
//'ID',
'WEEK',
'SESSION',
array(
'header' => 'Minggu',
'value' => '$data->iddetailjadwal->idjadwal->WEEK',
),
array(
'header' => 'Sesi',
'value' => '$data->iddetailjadwal->SESSION',
),
//'START_TIME',
//'END_TIME',
'TA',
// 'TA',
// 'ID_KUR',
'KELAS',
'TANGGAL',
array(
'header' => 'Kelas',
'value' => '$data->iddetailjadwal->idjadwal->KELAS',
),
array(
'header' => 'Tanggal',
'value' => '$data->iddetailjadwal->idjadwal->TANGGAL',
),
//'TOPIK',
'RUANGAN',
'AKTIFITAS',
array(
'header' => 'Ruangan',
'value' => '$data->iddetailjadwal->RUANGAN',
),
array(
'header' => 'Aktifitas',
'value' => '$data->iddetailjadwal->AKTIFITAS'
),
/* 'TIPE_KULIAH',
'CATATAN',
'KETERANGAN',
......
<?php
$this->menu=array(
array('label'=>'List BeritaAcaraKuliah','url'=>array('index')),
array('label'=>'Manage BeritaAcaraKuliah','url'=>array('admin')),
$this->menu = array(
array('label' => 'List BeritaAcaraKuliah', 'url' => array('index')),
array('label' => 'Manage BeritaAcaraKuliah', 'url' => array('admin')),
);
?>
<h1>Find your BeritaAcaraKuliah</h1>
<?php echo $this->renderPartial('_formAcaraKuliah', array('model'=>$model)); ?>
\ No newline at end of file
<?php
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')),
<h1>Berita Acara Kuliahs</h1>
<?php $this->widget('bootstrap.widgets.TbListView',array(
<?php $this->widget('booster.widgets.TbListView',array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
)); ?>
<?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(
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>
<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(
$this->widget('booster.widgets.TbDetailView', array(
'data' => $model,
'attributes' => array(
'ID',
'WEEK',
'SESSION',
'TA',
'ID_KUR',
'KODE_MK',
'KELAS',
'TANGGAL',
'START_TIME',
'END_TIME',
'TOPIK',
'RUANGAN',
'AKTIFITAS',
array(
'header' => 'Minggu',
'name' => 'Minggu',
'value' => $model->iddetailjadwal->idjadwal->WEEK,
),
array(
'header' => 'Sesi',
'name' => 'Sesi',
'value' => $model->iddetailjadwal->SESSION,
),
array(
'header' => 'Mata Kuliah',
'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(
'header' => 'Pengajar',
'name' => 'Pengajar',
'value' => $model->pic->NAMA,
'value' => $model->iddetailjadwal->pic->NAMA,
),
'TIPE_KULIAH',
// 'METODE',
// 'ALAT_BANTU',
// '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
$this->breadcrumbs=array(
'Pegawais'=>array('index'),
'Manage',
$this->breadcrumbs = array(
'Pegawais' => array('index'),
'Manage',
);
$this->menu=array(
array('label'=>'List Pegawai','url'=>array('index')),
array('label'=>'Create Pegawai','url'=>array('create')),
$this->menu = array(
array('label' => 'List Pegawai', 'url' => array('index')),
array('label' => 'Create Pegawai', 'url' => array('create')),
);
Yii::app()->clientScript->registerScript('search', "
......@@ -26,67 +26,71 @@ return false;
<h1>Manage Pegawais</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.
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')); ?>
<?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,
)); ?>
<?php
$this->renderPartial('_search', array(
'model' => $model,
));
?>
</div><!-- search-form -->
<?php $this->widget('bootstrap.widgets.TbGridView',array(
'id'=>'pegawai-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
'ID',
'NIP',
'KPT_NO',
'USER_NAME',
'NAMA',
'POSISI',
/*
'ALIAS',
'TGL_LAHIR',
'TEMPAT_LAHIR',
'JENIS_KELAMIN',
'GOL_DARAH',
'TGL_MASUK',
'TGL_KELUAR',
'AGAMA',
'KBK_ID',
'EXT_NUM',
'HP',
'EMAIL',
'ALAMAT_LIBUR',
'KOTA',
'KODE_POS',
'TELEPON',
'KTP',
'PENDIDIKAN',
'JABATAN',
'PENDIDIKAN_TERTINGGI',
'STUDY_AREA1',
'STUDY_AREA2',
'STATUS',
'NAMA_BAPAK',
'NAMA_IBU',
'PEKERJAAN_ORTU',
'NAMA_P',
'TMP_LAHIR_P',
'TGL_LAHIR_P',
'KET',
'STATUS_AKHIR',
'LAST_UPDATE',
'USER_ID',
'WS',
*/
array(
'class'=>'bootstrap.widgets.TbButtonColumn',
),
),
)); ?>
<?php
$this->widget('booster.widgets.TbGridView', array(
'id' => 'pegawai-grid',
'dataProvider' => $model->search(),
'filter' => $model,
'columns' => array(
'ID',
'NIP',
'KPT_NO',
'USER_NAME',
'NAMA',
'POSISI',
/*
'ALIAS',
'TGL_LAHIR',
'TEMPAT_LAHIR',
'JENIS_KELAMIN',
'GOL_DARAH',
'TGL_MASUK',
'TGL_KELUAR',
'AGAMA',
'KBK_ID',
'EXT_NUM',
'HP',
'EMAIL',
'ALAMAT_LIBUR',
'KOTA',
'KODE_POS',
'TELEPON',
'KTP',
'PENDIDIKAN',
'JABATAN',
'PENDIDIKAN_TERTINGGI',
'STUDY_AREA1',
'STUDY_AREA2',
'STATUS',
'NAMA_BAPAK',
'NAMA_IBU',
'PEKERJAAN_ORTU',
'NAMA_P',
'TMP_LAHIR_P',
'TGL_LAHIR_P',
'KET',
'STATUS_AKHIR',
'LAST_UPDATE',
'USER_ID',
'WS',
*/
array(
'class' => 'booster.widgets.TbButtonColumn',
),
),
));
?>
......@@ -11,7 +11,7 @@ array('label'=>'Manage Pegawai','url'=>array('admin')),
<h1>Pegawais</h1>
<?php $this->widget('bootstrap.widgets.TbListView',array(
<?php $this->widget('booster.widgets.TbListView',array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
)); ?>
......@@ -15,7 +15,7 @@ array('label'=>'Manage Pegawai','url'=>array('admin')),
<h1>View Pegawai #<?php echo $model->ID; ?></h1>
<?php $this->widget('bootstrap.widgets.TbDetailView',array(
<?php $this->widget('booster.widgets.TbDetailView',array(
'data'=>$model,
'attributes'=>array(
'ID',
......
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
<?php $form=$this->beginWidget('booster.widgets.TbActiveForm',array(
'id'=>'ruangan-form',
'enableAjaxValidation'=>false,
)); ?>
......@@ -7,30 +7,30 @@
<?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">
<?php $this->widget('bootstrap.widgets.TbButton', array(
<?php $this->widget('booster.widgets.TbButton', array(
'buttonType'=>'submit',
'type'=>'primary',
'context'=>'primary',
'label'=>$model->isNewRecord ? 'Create' : 'Save',
)); ?>
</div>
......
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
'action'=>Yii::app()->createUrl($this->route),
'method'=>'get',
)); ?>
<?php
$form = $this->beginWidget('booster.widgets.TbActiveForm', array(
'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">
<?php $this->widget('bootstrap.widgets.TbButton', array(
'buttonType' => 'submit',
'type'=>'primary',
'label'=>'Search',
)); ?>
</div>
<div class="form-actions">
<?php
$this->widget('booster.widgets.TbButton', array(
'buttonType' => 'submit',
'context' => 'primary',
'label' => 'Search',
));
?>
</div>
<?php $this->endWidget(); ?>
......@@ -38,7 +38,7 @@ return false;
)); ?>
</div><!-- search-form -->
<?php $this->widget('bootstrap.widgets.TbGridView',array(
<?php $this->widget('booster.widgets.TbGridView',array(
'id'=>'ruangan-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
......@@ -56,7 +56,7 @@ return false;
'RFID',
*/
array(
'class'=>'bootstrap.widgets.TbButtonColumn',
'class'=>'booster.widgets.TbButtonColumn',
),
),
)); ?>
......@@ -11,7 +11,7 @@ array('label'=>'Manage Ruangan','url'=>array('admin')),
<h1>Ruangans</h1>
<?php $this->widget('bootstrap.widgets.TbListView',array(
<?php $this->widget('booster.widgets.TbListView',array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
)); ?>
......@@ -15,7 +15,7 @@ array('label'=>'Manage Ruangan','url'=>array('admin')),
<h1>View Ruangan #<?php echo $model->ID; ?></h1>
<?php $this->widget('bootstrap.widgets.TbDetailView',array(
<?php $this->widget('booster.widgets.TbDetailView',array(
'data'=>$model,
'attributes'=>array(
'ID',
......
......@@ -19,8 +19,8 @@
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!"),
'items' => array(
array('label' => 'Create Jadwal', 'url' => array('/Jadwal/create2')),
array('label' => 'Daftar Jadwal', 'url' => array('Jadwal/index')),
array('label' => 'Create Jadwal', 'url' => array('/MJadwal/create')),
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"),
'items' => array(
......
<!--<div class="slider-bootstrap"><!-- start slider
<div class="slider-wrapper theme-default">
<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/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/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/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/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="" />
</div>
</div>
......@@ -45,16 +45,39 @@
$date = date('Y-m-d');
$gridDataProvider = new CActiveDataProvider('BeritaAcaraKuliah', 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(
'booster.widgets.TbGridView', array(
'dataProvider' => $gridDataProvider,
'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>
</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