Page 1 of 1

form code for NMS module

Posted: Tue May 22, 2007 9:32 pm
by fuquam
Where do you find the code to change things like the size & maxlength form data in the Newletter Made Simple module?


Re: form code for NMS module

Posted: Wed May 23, 2007 5:39 am
by jatinder
The form creation code can be found in functions.admintabs.php file. For example, the _DisplayAdminUsersTab function displays the "Add User" form.

CreateInputText function is used to create the textfields. UsageĀ  example of this function:

Code: Select all

$this->smarty->assign('email', $this->CreateInputText($id, 'email', (isset($params['email'])?$params['email']:''), 30, 150 ,'class="input_text"'));
Here the size is 30 and the maxlength is 150. You can specify your own values here.