Developer's Guide
<form action="' . $currentIndex . '&submitAdd' . $this->table .
'=1&token=' . $this->token . '" method="post" class="width3">
' . ($obj->id ? '<input type="hidden" name="id_' . $this->table .
'" value="' . $obj->id . '" />' : '').'
<fieldset><legend><img src="../img/admin/profiles.png" />' . $this-
>l( 'Profiles' ) . '</legend>
<label>'.$this->l( 'Name:' ).' </label>
<div class="margin-form">';
foreach ( $languages as $language )
echo '
<div id="name_' . $language['id_lang'|'id_lang'] . '"
style="display: ' . ($language['id_lang'|'id_lang'] == $defaultLanguage ?
'block' : 'none') . '; float: left;">
<input size="33" type="text" name="name_' .
$language['id_lang'|'id_lang'] . '" value="' . htmlentities( $this-
>getFieldValue( $obj, 'name', intval( $language['id_lang'|'id_lang'] ) ),
ENT_COMPAT, 'UTF-8' ) . '" /><sup>*</sup>
</div>';
$this->displayFlags( $languages, $defaultLanguage, 'name', 'name' );
echo '
<div class="clear"></div>
</div>
<div class="margin-form">
<input type="submit" value="' . $this->l( ' Save ' ) . '"
name="submitAdd' . $this->table . '" class="button" />
</div>
<div class="small"><sup>*</sup> ' . $this->l( 'Required field' ) .
'</div>
</fieldset>
</form> ';
}
}
?>
Put the files online, then create the tab by going to the "Employee" tab,
then its "Tabs" sub-tab. Click the "Add new" button, and fill-in the fields
with the class' name, "AdminTest". Do not confuse "class" with "modules"!
Choose an icon (like one from the FamFamFam pack), choose where the
tab should go, and save. You're set! Now start customizing it to your
needs!
Troubleshooting
If your module does not work as expected, here are a few ways to find
help.
PrestaShop official forum
Join our forum at http://www.prestashop.com/forums/, and search for an
answer using the relevant keywords. If your search needs refining, use
the advanced search form. And if your search doesn't yield anything
useful, create a new thread, where you can be as wordy as necessary
when writing your question; you will need to registered first.