/**
	 * render backend menus
	 *
	 * @param array $input
	 * @param moscomprofilerUser  $user
	 * @param object $plugin
	 */
	static public function showMenus( $input, $user, $plugin ) {
		global $_CB_framework;

		HTML_cbgjAdmin::setTitle( CBTxt::T( 'Menus' ), 'cbicon-48-gjmenus' );

		$return	=	'<form action="' . $_CB_framework->backendUrl( 'index.php' ) . '" method="post" name="adminForm" enctype="multipart/form-data" id="adminForm" class="adminform">'
				.		'<table class="adminlist" width="100%" cellspacing="0" cellpadding="4" border="0">'
				.			'<thead>'
				.				'<tr>'
				.					'<th colspan="3">' . CBTxt::Th( 'General' ) . '</th>'
				.				'</tr>'
				.			'</thead>'
				.			'<tbody>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['plugin'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Plugin' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to CB GroupJive component plugin page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['overview'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Category Overview' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to category overview page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['panel'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'My Panel' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to user panel page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['notifications'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'General Notifications' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to general notifications page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['message'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Message Categories' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to general message page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['all_categories'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'All Categories' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to all categories page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['all_groups'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'All Groups' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to all groups page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['all_my_categories'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'All My Categories' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to users all categories page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['all_my_groups'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'All My Groups' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to users all groups page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['new_category'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'New Category' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to generic new category page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['new_group'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'New Group' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to genric new group page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['approve_category'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Category Approval' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to category approval page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['approve_group'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Group Approval' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to group approval page.' ) . '</td>'
				.				'</tr>'
				.				cbgjClass::getIntegrations( 'gj_onMenusIntegrationsGeneral', array( $user, $plugin ), null, null )
				.			'</tbody>'
				.			'<thead>'
				.				'<tr>'
				.					'<th colspan="3">' . CBTxt::Th( 'Categories' ) . '</th>'
				.				'</tr>'
				.			'</thead>'
				.			'<tbody>'
				.				'<tr>'
				.					'<th width="10%" style="text-align:center;">' . CBTxt::Th( 'Categories' ) . '</td>'
				.					'<td width="20%">' . $input['cats'] . '</td>'
				.					'<td>' . CBTxt::Th( 'Select categories to create the following menu links for.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['categories'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Category' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to a categories page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['new_category_nested'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'New Nested Category' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to a categories new nested category page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['new_category_group'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'New Category Group' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to a categories new group page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['notifications_category'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Category Notifications' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to a categories notifications page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['message_groups'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Message Groups' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to a categories message page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['edit_category'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Edit Category' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to edit a category.' ) . '</td>'
				.				'</tr>'
				.				cbgjClass::getIntegrations( 'gj_onMenusIntegrationsCategories', array( $user, $plugin ), null, null )
				.			'</tbody>'
				.			'<thead>'
				.				'<tr>'
				.					'<th colspan="3">' . CBTxt::Th( 'Groups' ) . '</th>'
				.				'</tr>'
				.			'</thead>'
				.			'<tbody>'
				.				'<tr>'
				.					'<th width="10%" style="text-align:center;">' . CBTxt::Th( 'Groups' ) . '</td>'
				.					'<td width="20%">' . $input['grps'] . '</td>'
				.					'<td>' . CBTxt::Th( 'Select groups to create the following menu links for.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['groups'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Group' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to a groups page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['new_group_nested'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'New Nested Group' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to a groups new nested group page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['notifications_group'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Group Notifications' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to a groups notifications page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['message_users'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Message Users' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to a groups message page.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['edit_group'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Edit Group' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to edit a group.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['join'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Join Group' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to join a group.' ) . '</td>'
				.				'</tr>'
				.				'<tr>'
				.					'<td width="10%" style="text-align:center;">' . $input['leave'] . '</td>'
				.					'<th width="20%">' . CBTxt::Th( 'Leave Group' ) . '</td>'
				.					'<td>' . CBTxt::Th( 'Create menu link to leave a group.' ) . '</td>'
				.				'</tr>'
				.				cbgjClass::getIntegrations( 'gj_onMenusIntegrationsGroups', array( $user, $plugin ), null, null )
				.			'</tbody>'
				.		'</table>'
				.		'<input type="hidden" id="option" name="option" value="' . htmlspecialchars( $plugin->option ) . '" />'
				.		'<input type="hidden" id="task" name="task" value="editPlugin" />'
				.		'<input type="hidden" id="cid" name="cid" value="' . (int) $plugin->id . '" />'
				.		'<input type="hidden" id="action" name="action" value="menus.save" />'
				.		cbGetSpoofInputTag( 'plugin' )
				.	'</form>';

		echo $return;
	}
	private function showAutoEdit( $row, $input, $user, $plugin ) {
		global $_CB_framework;

		if ( $row->get( 'id' ) ) {
			$title		=	CBTxt::P( 'Auto: <small>Edit [[trigger]] ([id])</small>', array( '[trigger]' => htmlspecialchars( str_replace( ' ', '', $row->get( 'trigger' ) ) ), '[id]' => $row->get( 'id' ) ) );
		} else {
			$title		=	CBTxt::T( 'Auto: <small>New</small>' );
		}

		HTML_cbgjAdmin::setTitle( $title, 'cbicon-48-gjauto' );

		$return			=	'<form action="' . $_CB_framework->backendUrl( 'index.php' ) . '" method="post" name="adminForm" enctype="multipart/form-data" id="adminForm" class="adminform">'
						.		'<table class="adminlist" width="100%" cellspacing="0" cellpadding="4" border="0">'
						.			'<tbody>'
						.				'<tr>'
						.					'<th width="15%">' . CBTxt::Th( 'Published' ) . '</th>'
						.					'<td width="40%">' . $input['published'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Select publish status of auto. Unpublished auto action will not execute.' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%">' . CBTxt::T( 'Title' ) . '</th>'
						.					'<td width="40%">' . $input['title'] . '</td>'
						.					'<td>' . CBTxt::T( 'Optionally input title to display on auto list in replace of Triggers list.' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%">' . CBTxt::T( 'Description' ) . '</th>'
						.					'<td width="40%">' . $input['description'] . '</td>'
						.					'<td>' . CBTxt::T( 'Optionally input description to display on auto list on mouseover of Triggers list or Title.' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%"><div>' . CBTxt::Th( 'Triggers' ) . '</div><div><small>' . CBTxt::Th( '(required)' ) . '</small></div></th>'
						.					'<td width="40%">' . $input['trigger'] . ' ' . $input['triggers'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Input comma separated list of triggers or select trigger to append (e.g. onAfterLogin).' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%"><div>' . CBTxt::Th( 'User' ) . '</div><div><small>' . CBTxt::Th( '(required)' ) . '</small></div></th>'
						.					'<td width="40%">' . $input['object'] . ' ' . $input['variable'] . ' ' . $input['variable_user'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Select if user object should be automatically obtained from trigger variables, if manually selected variable should be used (e.g. function login( $var1, $var2, $var3 ) {...), if user executing the trigger, or if specified user id should be used. User variable determines substitution target (e.g. [username] will output the User username). Regardless of User selection you can substitute in other variables using [var1], [var2], [var3], etc.. (for arrays/objects use [var1_VARIABLE]; example: [var2_username]). In addition to trigger variables you can access $_GET and $_POST substitutions as post_VARIABLE and get_VARIABLE (e.g. get_task).' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%"><div>' . CBTxt::Th( 'Access' ) . '</div><div><small>' . CBTxt::Th( '(required)' ) . '</small></div></th>'
						.					'<td width="40%">' . $input['access'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Select access to auto; only groups selected will have access. Parent groups such as Public Front-end will NOT fire for Registered users; exact groups must be selected.' ) . '</td>'
						.				'</tr>'
						.				'<tr id="conditional">'
						.					'<th width="15%">' . CBTxt::Th( 'Conditional' ) . '</th>'
						.					'<td width="40%">'
						.						'<table class="adminlist" width="100%" cellspacing="0" cellpadding="4" border="0">'
						.							'<tbody>';

		for ( $i = 0, $n = $input['conditionals']; $i < $n; $i++ ) {
			$return		.=								'<tr>'
						.									'<td width="5%" style="text-align:center;"><div class="moveConditional ui-icon ui-icon-arrowthick-2-n-s" title="' . htmlspecialchars( CBTxt::T( 'Click and drag to move this conditional.' ) ) . '">#</div></td>'
						.									'<td width="30%" style="text-align:center;" class="conditionalField">' . $input["field$i"] . '</td>'
						.									'<td width="30%" style="text-align:center;" class="conditionalOperator">' . $input["operator$i"] . '</td>'
						.									'<td width="30%" style="text-align:center;" class="conditionalValue">' . $input["value$i"] . '</td>'
						.									'<td width="5%" style="text-align:center;">'
						.										'<div class="addConditional ui-icon ui-icon-plus" title="' . htmlspecialchars( CBTxt::T( 'Click to add new conditional.' ) ) . '">+</div>'
						.										'<div class="removeConditional ui-icon ui-icon-minus" title="' . htmlspecialchars( CBTxt::T( 'Click to remove this conditional.' ) ) . '">-</div>'
						.									'</td>'
						.								'</tr>';
		}

		$return			.=							'</tbody>'
						.						'</table>'
						.					'</td>'
						.					'<td>' . CBTxt::Th( 'Optionally input substitution supported conditional from one value to another. If condition is not met then auto will not be executed.' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%"><div>' . CBTxt::Th( 'Auto' ) . '</div><div><small>' . CBTxt::Th( '(required)' ) . '</small></div></th>'
						.					'<td width="40%">' . $input['auto'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Select type of auto. Auto determines what type of action is performed automatically.' ) . '</td>'
						.				'</tr>'
						.				'<tr id="list_groups">'
						.					'<th width="15%"><div>' . CBTxt::Th( 'Groups' ) . '</div><div><small>' . CBTxt::Th( '(required)' ) . '</small></div></th>'
						.					'<td width="40%">' . $input['groups'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Select groups to automatically join/leave.' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%"><div>' . CBTxt::Th( 'Status' ) . '</div><div><small>' . CBTxt::Th( '(required)' ) . '</small></div></th>'
						.					'<td width="40%">' . $input['status'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Select status of the user for the specified groups.' ) . '</td>'
						.				'</tr>'
						.				'<tr id="list_category">'
						.					'<th width="15%"><div>' . CBTxt::Th( 'Category' ) . '</div><div><small>' . CBTxt::Th( '(required)' ) . '</small></div></th>'
						.					'<td width="40%">' . $input['category'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Select category for the new group.' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%"><div>' . CBTxt::Th( 'Category Parent' ) . '</div><div><small>' . CBTxt::Th( '(required)' ) . '</small></div></th>'
						.					'<td width="40%">' . $input['cat_parent'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Select category parent of new category.' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%"><div>' . CBTxt::Th( 'Category Name' ) . '</div><div><small>' . CBTxt::Th( '(required)' ) . '</small></div></th>'
						.					'<td width="40%">' . $input['cat_name'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Input substitution supported new category (e.g. [username]).' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%">' . CBTxt::Th( 'Category Description' ) . '</th>'
						.					'<td width="40%">' . $input['cat_description'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Optionally input substitution supported new category (e.g. [name]).' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%"><div>' . CBTxt::Th( 'Category Types' ) . '</div><div><small>' . CBTxt::Th( '(required)' ) . '</small></div></th>'
						.					'<td width="40%">' . $input['types'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Select categories available group types. Types determine the way a groups is joined (e.g. Invite requires new users to be invited to join a group).' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%">' . CBTxt::Th( 'Category Owner' ) . '</th>'
						.					'<td width="40%">' . $input['cat_owner'] . '</td>'
						.					'<td>' . CBTxt::T( 'Optionally input substitution supported category owner override. If left blank the user triggering the auto will be used.' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%">' . CBTxt::Th( 'Category Unique' ) . '</th>'
						.					'<td width="40%">' . $input['cat_unique'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Select if category should be unique to the user. When checking if a category exists by name it will also check if exists by user id. If disabled only name is checked.' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%"><div>' . CBTxt::Th( 'Group Parent' ) . '</div><div><small>' . CBTxt::Th( '(required)' ) . '</small></div></th>'
						.					'<td width="40%">' . $input['grp_parent'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Select parent group of new group.' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%"><div>' . CBTxt::Th( 'Group Name' ) . '</div><div><small>' . CBTxt::Th( '(required)' ) . '</small></div></th>'
						.					'<td width="40%">' . $input['grp_name'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Input substitution supported new group (e.g. [username]).' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%">' . CBTxt::Th( 'Group Description' ) . '</th>'
						.					'<td width="40%">' . $input['grp_description'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Optionally input substitution supported new group (e.g. [name]).' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%"><div>' . CBTxt::Th( 'Group Type' ) . '</div><div><small>' . CBTxt::Th( '(required)' ) . '</small></div></th>'
						.					'<td width="40%">' . $input['type'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Select group type. Type determines the way your group is joined (e.g. Invite requires new users to be invited to join your group).' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%">' . CBTxt::Th( 'Group Owner' ) . '</th>'
						.					'<td width="40%">' . $input['grp_owner'] . '</td>'
						.					'<td>' . CBTxt::T( 'Optionally input substitution supported group owner override. If left blank the user triggering the auto will be used.' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%">' . CBTxt::Th( 'Group Unique' ) . '</th>'
						.					'<td width="40%">' . $input['grp_unique'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Select if groups should be unique to the user. When checking if a group exists by name it will also check if exists by user id. If disabled only name is checked.' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%">' . CBTxt::Th( 'Auto Join' ) . '</th>'
						.					'<td width="40%">' . $input['grp_autojoin'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Select if group should be automatically joined if duplicate found.' ) . '</td>'
						.				'</tr>'
						.				'<tr>'
						.					'<th width="15%">' . CBTxt::Th( 'Exclude' ) . '</th>'
						.					'<td width="40%">' . $input['exclude'] . '</td>'
						.					'<td>' . CBTxt::Th( 'Optionally input comma separated list of user ids to be excluded from auto action (e.g. 62,39,21,8).' ) . '</td>'
						.				'</tr>'
						.			'</tbody>'
						.		'</table>'
						.		'<input type="hidden" id="id" name="id" value="' . (int) $row->get( 'id' ) . '" />'
						.		'<input type="hidden" id="ordering" name="order" value="' . (int) $row->get( 'ordering', 99999 ) . '" />'
						.		'<input type="hidden" id="option" name="option" value="' . htmlspecialchars( $plugin->option ) . '" />'
						.		'<input type="hidden" id="task" name="task" value="editPlugin" />'
						.		'<input type="hidden" id="cid" name="cid" value="' . (int) $plugin->id . '" />'
						.		'<input type="hidden" id="action" name="action" value="plugin.auto_save" />'
						.		cbGetSpoofInputTag( 'plugin' )
						.	'</form>';

		echo $return;
	}
	/**
	 * prepare backend menus render
	 *
	 * @param moscomprofilerUser $user
	 * @param object $plugin
	 */
	private function showMenus( $user, $plugin ) {
		$categories							=	cbgjData::listArray( cbgjData::getCategories() );
		$groups								=	cbgjData::listArray( cbgjData::getGroups() );

		$input								=	array();

		// General
		$input['plugin']					=	'<input type="checkbox" id="type_plugin" name="type[]" class="inputbox" value="plugin" />';
		$input['overview']					=	'<input type="checkbox" id="type_overview" name="type[]" class="inputbox" value="overview" />';
		$input['panel']						=	'<input type="checkbox" id="type_panel" name="type[]" class="inputbox" value="panel" />';
		$input['notifications']				=	'<input type="checkbox" id="type_notifications" name="type[]" class="inputbox" value="notifications" />';
		$input['message']					=	'<input type="checkbox" id="type_message" name="type[]" class="inputbox" value="message" />';
		$input['all_categories']			=	'<input type="checkbox" id="type_all_categories" name="type[]" class="inputbox" value="all-categories" />';
		$input['all_groups']				=	'<input type="checkbox" id="type_all_groups" name="type[]" class="inputbox" value="all-groups" />';
		$input['all_my_categories']			=	'<input type="checkbox" id="type_all_my_categories" name="type[]" class="inputbox" value="all-my-categories" />';
		$input['all_my_groups']				=	'<input type="checkbox" id="type_all_my_groups" name="type[]" class="inputbox" value="all-my-groups" />';
		$input['new_category']				=	'<input type="checkbox" id="type_new_category" name="type[]" class="inputbox" value="new-category" />';
		$input['new_group']					=	'<input type="checkbox" id="type_new_group" name="type[]" class="inputbox" value="new-group" />';
		$input['approve_category']			=	'<input type="checkbox" id="type_approve_category" name="type[]" class="inputbox" value="approve-category" />';
		$input['approve_group']				=	'<input type="checkbox" id="type_approve_group" name="type[]" class="inputbox" value="approve-group" />';

		// Categories
		$input['cats']						=	moscomprofilerHTML::selectList( $categories, 'cats[]', 'size="5" multiple="multiple" class="inputbox required"', 'value', 'text', null, 1, false, false );
		$input['categories']				=	'<input type="checkbox" id="type_categories" name="type[]" class="inputbox" value="categories" />';
		$input['new_category_nested']		=	'<input type="checkbox" id="type_new_category_nested" name="type[]" class="inputbox" value="new-category-nested" />';
		$input['new_category_group']		=	'<input type="checkbox" id="type_new_category_group" name="type[]" class="inputbox" value="new-category-group" />';
		$input['notifications_category']	=	'<input type="checkbox" id="type_notifications_category" name="type[]" class="inputbox" value="notifications-category" />';
		$input['message_groups']			=	'<input type="checkbox" id="type_message_groups" name="type[]" class="inputbox" value="message-groups" />';
		$input['edit_category']				=	'<input type="checkbox" id="type_edit_category" name="type[]" class="inputbox" value="edit-category" />';

		// Groups
		$input['grps']						=	moscomprofilerHTML::selectList( $groups, 'grps[]', 'size="5" multiple="multiple" class="inputbox required"', 'value', 'text', null, 1, false, false );
		$input['groups']					=	'<input type="checkbox" id="type_groups" name="type[]" class="inputbox" value="groups" />';
		$input['new_group_nested']			=	'<input type="checkbox" id="type_new_group_nested" name="type[]" class="inputbox" value="new-group-nested" />';
		$input['notifications_group']		=	'<input type="checkbox" id="type_notifications_group" name="type[]" class="inputbox" value="notifications-group" />';
		$input['message_users']				=	'<input type="checkbox" id="type_message_users" name="type[]" class="inputbox" value="message-users" />';
		$input['edit_group']				=	'<input type="checkbox" id="type_edit_group" name="type[]" class="inputbox" value="edit-group" />';
		$input['join']						=	'<input type="checkbox" id="type_join" name="type[]" class="inputbox" value="join" />';
		$input['leave']						=	'<input type="checkbox" id="type_leave" name="type[]" class="inputbox" value="leave" />';

		HTML_cbgjAdmin::showMenus( $input, $user, $plugin );
	}