Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /** TP6 - Applications web
- * XSL, SQL et PHP
- *
- * @author Andrew Koster
- * @copyright 2008
- */
- class Criteres {
- private $_id;
- private $_resultatstps_id;
- public function __construct($resultatstps_id)
- {
- $this->_resultatstps_id = $resultatstps_id;
- }
- function show()
- {
- $result = mysql_query(
- "SELECT * FROM tbl6resultatstps_criteres "
- ."WHERE resultatstps_id = $this->_resultatstps_id"
- );
- $out = "";
- while($row = mysql_fetch_array($result)) {
- $note = $row['noteCritere'];
- $nom = utf8_encode($row['critere_nom']);
- $out = $out."<dt>$note</dt><dd>$nom</dd>";
- }
- return $out;
- }
- function id()
- {
- return $this->_id;
- }
- function note()
- {
- return $this->_note;
- }
- function commentaire()
- {
- return $this->_commentaire;
- }
- }
- ?>
Add Comment
Please, Sign In to add comment