/**
  * lŠdt in schuelers die SchŸler,
  * die zu dieser /Schul-) klasse gehšren
  *
  */
 public function loadSchuelers()
 {
     $s = new Schueler();
     $this->schuelers = $s->getAllAsObject(' AND klasse_id = ' . $this->klasse_id . ' ');
 }
Beispiel #2
0
<?php

$s = new Schueler();
$schuelers = $s->getAllAsObject();
foreach ($schuelers as $key => $schueler) {
    $schuelers[1]->loadNotens();
}
$htmls = new HtmlSchueler($schuelers);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Notenliste</title>
    <link type="text/css" href="Style.css" rel="stylesheet" />
    <script type="text/javascript" src="Script.js"></script>
</head>
<body>
<h2>Notenliste</h2>
<br><br>
<form name="notenform" method="post" action="">
<table class="scrollTable" id="scrollTable" cellpadding="0" cellspacing="0" border="0">
  <tr>
  	<td>
  	<div class="corner">
  	  <table cellpadding="0" cellspacing="0" border="0">
		<tr>
		  <th><div><input class="tablehead" type="text" value="Sch&uuml;ler" readonly="readonly"></div></th>
		</tr>
	  </table>
  	</div>
  	</td>