/** * Print the enterprise form * * @param $ID Integer : Id of the computer or the template to print * @param $options array * - target form target * - withtemplate boolean : template or basic item * *@return Nothing (display) **/ function showForm($ID, $options = array()) { $this->initForm($ID, $options); $this->showTabs($options); $this->showFormHeader($options); echo "<tr class='tab_bg_1'>"; echo "<td>" . __('Name') . "</td>"; echo "<td>"; Html::autocompletionTextField($this, "name"); echo "</td>"; echo "<td>" . __('Third party type') . "</td>"; echo "<td>"; SupplierType::dropdown(array('value' => $this->fields["suppliertypes_id"])); echo "</td></tr>"; echo "<tr class='tab_bg_1'>"; echo "<td>" . __('Phone') . "</td>"; echo "<td>"; Html::autocompletionTextField($this, "phonenumber"); echo "</td>"; echo "<td rowspan='8' class='middle right'>" . __('Comments') . "</td>"; echo "<td class='center middle' rowspan='8'>"; echo "<textarea cols='45' rows='13' name='comment' >" . $this->fields["comment"] . "</textarea>"; echo "</td></tr>"; echo "<tr class='tab_bg_1'>"; echo "<td>" . __('Fax') . "</td>"; echo "<td>"; Html::autocompletionTextField($this, "fax"); echo "</td></tr>"; echo "<tr class='tab_bg_1'>"; echo "<td>" . __('Website') . "</td>"; echo "<td>"; Html::autocompletionTextField($this, "website"); echo "</td></tr>"; echo "<tr class='tab_bg_1'>"; echo "<td>" . _n('Email', 'Emails', 1) . "</td>"; echo "<td>"; Html::autocompletionTextField($this, "email"); echo "</td></tr>"; echo "<tr class='tab_bg_1'>"; echo "<td class='middle'>" . __('Address') . "</td>"; echo "<td class='middle'>"; echo "<textarea cols='37' rows='3' name='address'>" . $this->fields["address"] . "</textarea>"; echo "</td></tr>"; echo "<tr class='tab_bg_1'>"; echo "<td>" . __('Postal code') . "</td>"; echo "<td>"; Html::autocompletionTextField($this, "postcode", array('size' => 10)); echo " " . __('City') . " "; Html::autocompletionTextField($this, "town", array('size' => 23)); echo "</td></tr>"; echo "<tr class='tab_bg_1'>"; echo "<td>" . __('State') . "</td>"; echo "<td>"; Html::autocompletionTextField($this, "state"); echo "</td></tr>"; echo "<tr class='tab_bg_1'>"; echo "<td>" . __('Country') . "</td>"; echo "<td>"; Html::autocompletionTextField($this, "country"); echo "</td></tr>"; $this->showFormButtons($options); $this->addDivForTabs(); return true; }