Пример #1
0
 public function getProfilDataVals()
 {
     if (!$this->profilDataVals) {
         $this->profilDataVals = ProfilDataVal::listByprofilData($this);
     }
     return $this->profilDataVals;
 }
Пример #2
0
		<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