Exemplo n.º 1
0
 /**
  * Displays a particular model.
  * @param integer $id the ID of the model to be displayed
  */
 public function actionReferralList()
 {
     date_default_timezone_set("Asia/Manila");
     $activity = new Activity();
     $activity->act_desc = 'Viewed Communication for Referral List';
     $activity->act_datetime = date('Y-m-d G:i:s');
     $activity->act_by = User::model()->findByPK(Yii::app()->user->name)->emp_id;
     $activity->save();
     $model = new Communication('forReferral');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Communication'])) {
         $model->attributes = $_GET['Communication'];
     }
     $this->render('referralList', array('model' => $model));
 }
Exemplo n.º 2
0
 /**
  * Displays a particular model.
  * @param integer $id the ID of the model to be displayed
  */
 public function actionViewTracking()
 {
     date_default_timezone_set("Asia/Manila");
     $activity = new Activity();
     $activity->act_desc = 'Viewed Tracking List of Communication';
     $activity->act_datetime = date('Y-m-d G:i:s');
     $activity->act_by = User::model()->findByPK(Yii::app()->user->name)->emp_id;
     $activity->save();
     $forResolution = new Communication('forResolution');
     $forOrdinance = new Communication('forOrdinance');
     $forResolution->unsetAttributes();
     // clear any default values
     if (isset($_GET['Communication'])) {
         $forResolution->attributes = $_GET['Communication'];
         $forOrdinance->attributes = $_GET['Communication'];
     }
     $this->render('ViewTracking', array('forResolution' => $forResolution, 'forOrdinance' => $forOrdinance));
 }