Jamroom Logo Jamroom 5 Core
is now Open Source!
Follow Jamroom on Twitter!


jrTableColumns Function Index htmlPagePager
htmlChooser

The htmlChooser function is used to create a "tabbed" setup in the Control Panel form.tpl element name: form_page_tabs

  • return: Returns true
bool htmlChooser (array $_data, [string $target = '_self'])
  • array $_data: Elements to create tabs for
  • string $target: Target HTML target window for anchor links created in tabs
 Comments
Michael, 12/18/08 06:47:48:

sets up a page selector like is used in the modify quota section
//set up the available link locations

$_data[1]['text'] = "Page 1";

$_data[1]['link'] = 'your_module.php?mode=page_1';

$_data[1]['active'] = true;

$_data[2]['text'] = "Page 2";

$_data[2]['link'] = 'your_module.php?mode=page_2';

$_data[3]['text'] = "Page 3";

$_data[3]['link'] = 'your_module.php?mode=page_3';

//draw the created links into tab like options.

htmlChooser($_data,'_self');

You must be logged in to post a comment
Solutions Products Support Community Company
Social Media Platform
Social Networking Software
Musician Website Manager
Community Builder
Jamroom 5
Jamroom 5 Modules
Jamroom Marketplace
Support Forum
Documentation
Support Center
Contact Support
Community Forum
Member Sites
Developers
About Us
Contact Us
Privacy Policy
©2003 - 2023 The Jamroom Network