$help = Help::loadById($_GET["id"]); $help->delete(); $urlHandler->redirect("Help", URL_ADMIN_LIST); break; case "lagnamn": $lagnamn = LagNamn::loadById($_GET["id"]); $lagnamn->delete(); $urlHandler->redirect("LagNamn", URL_ADMIN_LIST); break; case "profildata": $profildata = ProfilData::loadById($_GET["id"]); $profildata->delete(); $urlHandler->redirect("ProfilData", URL_ADMIN_LIST); break; case "profildataval": $profildataval = ProfilDataVal::loadById($_GET["id"]); $profilDataId = $profildataval->getProfilDataId(); $profildataval->delete(); $urlHandler->redirect("ProfilData", URL_ADMIN_EDIT, $profilDataId); break; case "level": $level = Level::loadById($_GET["id"]); $level->delete(); $urlHandler->redirect("Level", URL_ADMIN_LIST); break; case 'fastautmaningar': if (!empty($_GET['rid'])) { Rutt::deleteFastRutt($_GET['rid']); $urlHandler->redirect("FastaUtmaningar", URL_ADMIN_LIST); } break;
public function getProfilDataVals() { if (!$this->profilDataVals) { $this->profilDataVals = ProfilDataVal::listByprofilData($this); } return $this->profilDataVals; }
<th>Skriv ditt eget svar</th> </tr> <?php /*DOLT /JL <tr> <th>Kundnummer</th> <td> <input type="text" name="customerId" value="<?= $USER->getCustomerId() ?>" class="mmTextField" /> </td> </tr> */ ?> <?php $profilDatas = ProfilData::listAll(); foreach ($profilDatas as $key => $profilData) { $profilDataVals = ProfilDataVal::listByprofilData($profilData); $vald_profilDataVal = $USER->getProfilDataVal($profilData->getId()); $profilDataText = $USER->getProfilDataText($profilData->getId()); ?> <tr> <th><?php echo $profilData->getNamn(); ?> </th> <td><select name="profilData[<?php echo $profilData->getId(); ?> ]"<?php echo strlen($profilDataText) > 0 ? ' disabled' : ''; ?> id="profilDataSelect_<?php