1 : <?php
2 : require_once "JetDataCell.class.php";
3 :
4 :
5 :
6 :
7 :
8 :
9 :
10 :
11 :
12 :
13 :
14 : class JetTextBoxDataCell extends JetDataCell{
15 : public function __construct($value, $attribute = array()){
16 4 : if(empty($value)){
17 1 : $value = "";
18 : }
19 4 : parent::__construct($value, $attribute);
20 4 : }
21 :
22 : public function getHtml(){
23 4 : $text = "<input type=\"text\" value=\"" . $this->value . "\">";
24 4 : foreach($this->attribute as $attributeKey=>$attributeValue){
25 1 : $text = JetHtmlUtil::joinTagAttribute($text, $attributeKey, $attributeValue);
26 1 : }
27 4 : return $text;
28 : }
29 : }
30 : ?>
|