コード例 #1
0
ファイル: ProfilData.php プロジェクト: krillo/motiomera
 public function getProfilDataVals()
 {
     if (!$this->profilDataVals) {
         $this->profilDataVals = ProfilDataVal::listByprofilData($this);
     }
     return $this->profilDataVals;
 }
コード例 #2
0
ファイル: detaljerat.php プロジェクト: krillo/motiomera
		<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