How to Create Tabbed content in Frontaccounting |
X

Congrats, You are Subscribed to Receive Updates.

How to Create Tabbed content in Frontaccounting


How to Create Tabbed content in Frontaccounting. Create tabbed content page on your frontaccounting custom module with a function “tabbed_content_start“.

img

Here I just give you an example of the content page. The Following code will help you to create a tabbed content page.

tabbed_content_start('tabs', array(
		'personal' => array(_('Personal Info'), $selected_id),
		'job' => array(_('Job'), $selected_id),
		'education' => array(_('Education'), $selected_id),
		'training' => array(_('Training'), $selected_id),
	));
	
	switch (get_post('_tabs_sel')) {
		default:
		case 'personal':
			empl_personal_data($selected_id); 
			break;
		case 'job':
			$contacts = new contacts('contacts', $selected_id, 'customer');
			$contacts->show();
			break;
		case 'education':
			$_GET['customer_id'] = $selected_id;
			$_GET['popup'] = 1;
			include_once($path_to_root."/sales/inquiry/customer_inquiry.php");
			break;
		case 'training':
			$_GET['customer_id'] = $selected_id;
			$_GET['popup'] = 1;
			include_once($path_to_root."/sales/inquiry/sales_orders_view.php");
			break;
	};
br();
tabbed_content_end();

You can also create your desired tabs with the help of the above code.

commenter

About Varadharaj V

The founder of Kvcodes, Varadharaj V is an ERP Analyst and a Web developer specializing in WordPress(WP), WP Theme development, WP Plugin development, Frontaccounting(FA), Sales, Purchases, Inventory, Ledgers, Payroll & HRM, CRM, FA Core Customization, PHP and Data Analyst. Database Management Advance Level

Comment Below

Your email address will not be published. Required fields are marked *

*

Current ye@r *

Menu

Sidebar