NTKImage.php 342 B

123456789101112131415161718192021
  1. <?php
  2. class NTKImage
  3. {
  4. function NTKImage($id, $icon, $action)
  5. {
  6. $this->id = $id;
  7. $this->icon = $icon;
  8. $this->action = $action;
  9. }
  10. function getHtml()
  11. {
  12. $actions = " onclick=\"$this->action\"";
  13. $html = "<div id=\"$this->id\" class=\"image\" $actions><img src=\"$this->icon\" border=\"0\"></div>\n";
  14. return $html;
  15. }
  16. }
  17. ?>