Example #1
0
 public function actionSetReject()
 {
     if (isset($_REQUEST['id'])) {
         $model = ProjectComment::model()->findByPk($_REQUEST['id']);
         $model->status = 2;
         if ($model->save()) {
             //notifikasi untuk team
             $notif = new NotifTeam();
             $notif->tanggal = date('Y-m-d H:i:s');
             $notif->judul = "VVFY Notification ";
             $notif->keterangan = "Hello the team , vvfy just reject your progres becasuse some reasons thank you  ";
             $notif->username = '******';
             $notif->url = "vvfy.me";
             $notif->is_baca = "0";
             if ($notif->save()) {
                 echo "sukses";
             }
         }
     }
 }
Example #2
0
	<?php 
$model = ProjectComment::model()->findByPk($id);
// $idh = ProjectComment::model()->findByPk($id)->head_project_id;
$head = ProjectCommentHead::model()->findByPk($model->head_project_id);
$project = Project::model()->findByPk($head->project_id);
$project_name = Project::model()->findByPk(ProjectCommentHead::model()->findByPk($model->head_project_id)->project_id)->project_name;
echo $idh;
?>
    <img class="img-close" src="<?php 
echo Yii::app()->request->baseUrl;
?>
/img/close.png">
    <center>
      <h1>
        DETAIL PROGRES IMAGE
      </h1>
    </center>
    <table>
      <tr>
          <td style="width:30%">Name </td>
          <td>:</td>
          <td style="width:70%">
            <input maxlength="30" img_id="<?php 
echo $model->id;
?>
" value="<?php 
echo $model->alias_name;
?>
" type="text" id="input-edit-image">
          <?php 
if ($model->alias_name == '') {