Exemplo n.º 1
0
 /**
  * Creates data provider instance with search query applied
  *
  * @param array $params
  *
  * @return ActiveDataProvider
  */
 public function search($params)
 {
     $query = MEETINGS::find();
     $dataProvider = new ActiveDataProvider(['query' => $query]);
     if (!($this->load($params) && $this->validate())) {
         return $dataProvider;
     }
     $query->andFilterWhere(['MEETING_ID' => $this->MEETING_ID, 'DATE_AND_TIME' => $this->DATE_AND_TIME]);
     $query->andFilterWhere(['like', 'MEETING_PLACE', $this->MEETING_PLACE]);
     return $dataProvider;
 }
Exemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMEETING()
 {
     return $this->hasOne(MEETINGS::className(), ['MEETING_ID' => 'MEETING_ID']);
 }
 /**
  * Finds the MEETINGS model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return MEETINGS the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = MEETINGS::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }
Exemplo n.º 4
0
?>

    <?php 
echo $form->field($model, 'GIVEN_YOUR_CARD')->dropDownList(['TRUE' => 'TRUE', 'FALSE' => 'FALSE'], ['prompt' => '']);
?>

    <?php 
echo $form->field($model, 'TOLD_THEM_YOU_WOULD_CALL')->dropDownList(['TRUE' => 'TRUE', 'FALSE' => 'FALSE'], ['prompt' => '']);
?>

    <?php 
echo $form->field($model, 'COMMENTS')->textarea(['rows' => 6]);
?>

    <?php 
echo $form->field($model, 'MEETING_ID')->dropDownList(ArrayHelper::map(MEETINGS::find()->all(), 'MEETING_ID', 'DATE_AND_TIME'), ['prompt' => '---Choose a Meeting Date---']);
?>

    
    <?php 
echo $form->field($referralModel, 'REFERRAL_NAME')->textInput(['maxlength' => 60]);
?>

    <?php 
echo $form->field($referralModel, 'ADDRESS')->textInput(['maxlength' => 60]);
?>

    <?php 
echo $form->field($referralModel, 'CITY')->textInput(['maxlength' => 45]);
?>