本文整理汇总了PHP中Home::getHomes方法的典型用法代码示例。如果您正苦于以下问题:PHP Home::getHomes方法的具体用法?PHP Home::getHomes怎么用?PHP Home::getHomes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Home
的用法示例。
在下文中一共展示了Home::getHomes方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: echo
<tr class="legende"><td>id</td><td>UgentID</td><td>Voornaam</td><td>Familienaam</td><td>Homes</td><td>email</td><td></td><td></td></tr>
<?
$personeel = Personeel::getBeheerders();
foreach($personeel as $p){
$id = $p->getId();
echo("<tr id='".$id."_'><td>$id</td><td class='edit' id='gebruikersnaam_$id'>".$p->getGebruikersnaam()."</td><td class='voornaam'>".$p->getVoornaam()."</td><td class='achternaam'>".$p->getAchternaam()."</td><td class='homes'>");
$homes = $p->getHomesLijst();
foreach($homes as $home){
echo "Home ".$home->getKorteNaam()."<br/>";
}
echo("</td><td class='mails'>");
echo("<input type='checkbox' class='inputCheckbox' disabled='true' id='mails_$id' value='".$p->getMails()."' "); echo $p->getMails()?"checked='".$p->getMails()."'":"" ; echo("/>");
echo("</td><td class='img1'><img src='images/page_edit.gif' /></td><td class='img2'><img src='images/page_delete.gif' /></td></tr>");
}
echo("<tr><td>x</td><td class='edit' id='gebruikersnaam'><input type='text'/></td><td id='voornaam'></td><td id='achternaam'></td><td class='homes'>");
$l = Home::getHomes();
foreach($l as $home){
echo("
<label for='home_".$home->getId()."' ><input type='checkbox' id='home_".$home->getId()."' name='home_".$home->getId()."' class='Home ".$home->getKorteNaam()." inputCheckbox' value='".$home->getId()."'/>Home ".$home->getKorteNaam()."</label><br/>");
}
echo("</td><td class='mails' id='mails'><input type='checkbox' class='inputCheckbox'/></td><td class='img'><img src='images/page_add.gif'/></td><td></td></tr>");
?>
</table>
</div>
</div>
</div>
</div>
<div class="visualClear"></div>
<? new Footer(); ?>
</body>
</html>
示例2: Footer
?>
" title="<?php
echo $taal->msg('afdrukken');
?>
" id="icon-print"/></a></li>
</ul>
</div>
<div>
<h1>Beheer Homes</h1>
<p class='disclaimer'>Hier kunt u homes toevoegen en bewerken. Klik op het <img src="images/page_edit.gif"/>-icoon om een bestaande Home aan te passen, klik op het <img src="images/page_delete.gif"/>-icoon om een bestaande Home te verwijderen. Onderaan heeft u ook de mogelijkheid om een nieuwe Home toe te voegen.</p>
<table>
<tr class="tabelheader"><td colspan="9">Beheer Homes</td></tr>
<tr class="legende"><td>id</td><td>Korte naam</td><td>Lange naam</td><td>Adres</td><td>Verdiepingen</td><td>Kamer prefix</td><td>LDAP naam</td><td></td><td></td></tr>
<?
$homes = Home::getHomes();
foreach($homes as $home){
$id = $home->getId();
echo("<tr id='".$id."_'><td>$id</td><td class='edit' id='korteNaam_$id'>".$home->getKorteNaam()."</td><td class='edit' id='langeNaam_$id'>".$home->getLangeNaam()."</td><td class='edit adres' id='adres_$id'>".$home->getAdres()."</td><td class='edit verdiep' id='verdiepen_$id'>".$home->getVerdiepen()."</td><td class='edit prefix' id='kamerPrefix_$id'>".$home->getKamerPrefix()."</td><td class='edit' id='ldapNaam_$id'>".$home->getLdapNaam()."</td><td class='img1'><img src='images/page_edit.gif' /></td><td class='img2'><img src='images/page_delete.gif' /></td></tr>");
}
echo("<tr><td></td><td class='edit' id='korteNaam'><input class='naam' type='text'/></td><td class='edit' id='langeNaam'><input class='naam' type='text'/></td><td class='edit' id='adres'><input class='adres' type='text'/></td><td class='edit' id='verdiepen'><input class='verdiep' type='text'/></td><td class='edit' id='kamerPrefix'><input class='prefix' type='text'/></td><td class='edit' id='ldapNaam'><input class='naam' type='text'/></td><td class='img'><img src='images/page_add.gif'/></td><td></td></tr>");
?>
</table>
</div>
</div>
</div>
</div>
<div class="visualClear"></div>
<? new Footer(); ?>
</body>
</html>