Skip to content

Commit

Permalink
Update vypisUdaje.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mato-meciar committed Feb 10, 2015
1 parent ff5fef9 commit e2a81d3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions aplikacia/classes/vypisUdaje.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ class vypisUdaje{
private static $_table;

private function __construct($data){
$this->_table = '<table border="9" class="_table" align="center" style="font-size:large"; BORDERCOLOR=black>' . "<tr><th>Meno</th><th>email</th><th>Miestnost</th><th>Klapka</th><th>Katedra</th></tr>";
self::$_table = '<table border="9" class="_table" align="center" style="font-size:large"; BORDERCOLOR=black>' . "<tr><th>Meno</th><th>email</th><th>Miestnost</th><th>Klapka</th><th>Katedra</th></tr>";
foreach ($data as $key) {
$this->_table .= "<tr><td><a href='https://candle.fmph.uniba.sk/ucitelia/".ucfirst($key->meno)."-".ucfirst($key->priezvisko)."' target='_blank'>".ucfirst($key->meno)." ".ucfirst($key->priezvisko)."</td><td>";
$this->_table .= hideMail($key->email);
$this->_table .= "</td><td>".$key->miestnost."</td><td>".$key->klapka."</td><td>".katedra($key->katedra)."</td></tr>";
self::$_table .= "<tr><td><a href='https://candle.fmph.uniba.sk/ucitelia/".ucfirst($key->meno)."-".ucfirst($key->priezvisko)."' target='_blank'>".ucfirst($key->meno)." ".ucfirst($key->priezvisko)."</td><td>";
self::$_table .= hideMail($key->email);
self::$_table .= "</td><td>".$key->miestnost."</td><td>".$key->klapka."</td><td>".katedra($key->katedra)."</td></tr>";
}
$this->_table .= "</table>";
self::$_table .= "</table>";
}

public static function createTable($data){
self::$_table = new vypisUdaje($data);
return self::$_table;
$new_table = new vypisUdaje($data);
return $new_table;
}

public function show() {
echo $this->_table;
echo self::$_table;
}

public function getCSV($data) {
Expand Down

0 comments on commit e2a81d3

Please sign in to comment.