function showForm($items_id, $options = array()) { if ($items_id != '') { $this->getFromDB($items_id); } else { $this->getEmpty(); } $this->initForm($items_id, $options); $this->showTabs($options); $this->showFormHeader($options); echo "<tr class='tab_bg_1'>"; echo "<td>" . __('Name') . " :</td>"; echo "<td>"; //echo '<input type="text" name="name" value="'.$this->fields["name"].'" size="50"/>'; echo '<textarea maxlength="255" cols="70" rows="3" name="name">' . $this->fields["name"] . '</textarea>'; echo "</td>"; echo "<td>" . __('Type') . " :</td>"; echo "<td>"; $array = PluginSurveyticketQuestion::getQuestionTypeList(); Dropdown::showFromArray('type', $array, array('value' => $this->fields['type'])); echo "</td>"; echo "</tr>"; echo "<tr class='tab_bg_1'>"; echo "<td>" . __('Comment') . " :</td>"; echo "<td colspan='3' class='middle'>"; echo "<textarea cols='100' rows='3' name='comment' >" . $this->fields["comment"] . "</textarea>"; echo "</td>"; echo "</tr>"; $this->showFormButtons($options); return true; }