form code for NMS module

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
fuquam

form code for NMS module

Post by fuquam »

Where do you find the code to change things like the size & maxlength form data in the Newletter Made Simple module?

jatinder
Forum Members
Forum Members
Posts: 17
Joined: Thu Apr 12, 2007 1:49 pm

Re: form code for NMS module

Post 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.
Locked

Return to “CMSMS Core”