| 123456789101112131415161718192021 |
- <?php
- class NTKImage
- {
- function NTKImage($id, $icon, $action)
- {
- $this->id = $id;
- $this->icon = $icon;
- $this->action = $action;
- }
-
- function getHtml()
- {
- $actions = " onclick=\"$this->action\"";
- $html = "<div id=\"$this->id\" class=\"image\" $actions><img src=\"$this->icon\" border=\"0\"></div>\n";
-
- return $html;
- }
- }
- ?>
|