public function actionIndex()
 {
     $dataSD = SumberDana::model()->findAll("'1' ORDER BY status DESC");
     $dataPJ = PenanggungJawab::model()->findAll("'1' ORDER BY status DESC");
     $dataSt = Satuan::model()->findAll("'1' ORDER BY status DESC");
     $this->render("index", array('dataSD' => $dataSD, "dataPJ" => $dataPJ, "dataSt" => $dataSt));
 }
 public function actionEditKegiatan()
 {
     if ($_POST) {
         Yii::app()->user->returnUrl = Yii::app()->request->urlReferrer;
         $dataKegiatan = Kegiatan::model()->find('id=:id AND id_layanan=:id_layanan ', array(':id' => $_POST['id'], ':id_layanan' => $_POST['id_layanan']));
         $dataMaxTarget = Layanan::model()->find('id=:id', array(':id' => $_POST['id_layanan']));
         $dataSatuan = Satuan::model()->findAll('status=:status', array(':status' => '1'));
         $dataPenanggungJawab = PenanggungJawab::model()->findAll('status=:status', array(':status' => '1'));
         $dataSumberDana = SumberDana::model()->findAll('status=:status', array(':status' => '1'));
         $this->render('formeditKegiatan', array('dataKegiatan' => $dataKegiatan, 'dataMaxTarget' => $dataMaxTarget, 'dataSatuan' => $dataSatuan, 'dataPenanggungJawab' => $dataPenanggungJawab, 'dataSumberDana' => $dataSumberDana));
     }
 }
Exemple #3
0
 public function actionIndex2()
 {
     $dataSD = SumberDana::model()->findAll();
     $this->render('index2', array("dataSD" => $dataSD));
 }