NTKLabel.php 331 B

12345678910111213141516171819202122
  1. <?php
  2. class NTKLabel
  3. {
  4. function NTKLabel($id, $text, $style="")
  5. {
  6. $this->id = $id;
  7. $this->text = $text;
  8. $this->style = $style;
  9. }
  10. function getHtml()
  11. {
  12. $html = "";
  13. $html .= "<div id=\"".$this->id."\" width=\"100%\" height=\"100%\" style=\"".$this->style."\">".$this->text."</div>\n";
  14. return $html;
  15. }
  16. }
  17. ?>