<label>Therapists </label> </div> <div class="col-xs-10"> <?php if (isset($model->id)) { ?> <table class="table"><thead> <tr> <th>Therapists Name</th> <th>Time</th> <th>Action</th> </tr> </thead> <tbody> <?php $Criteria = new CDbCriteria(); $Criteria->condition = "session_id={$model->id}"; $fls = SessionTherapist::model()->findAll($Criteria); foreach ($fls as $fl) { echo "<tr class='rmclath_{$fl->id}'> <td>" . $this->getUsername($fl->therapist_id) . "</td> <td>{$fl->total_time}</td> <td><a href='javascript:void(0)' onclick='dofdeletex({$fl->id});return false;' class='delete'> Delete</a></td> </tr>"; } ?> </tbody> </table> <?php } ?> <div>