<?php

//////////////////////////////////////////////////////////////
//===========================================================
// admin_acl_theme.php
//===========================================================
// SOFTACULOUS VIRTUALIZOR
// Version : 2.2.5
// Inspired by the DESIRE to be the BEST OF ALL
// ----------------------------------------------------------
// Started by: Alons
// Date:       0th Mar 2010
// Time:       23:00 hrs
// Site:       https://www.virtualizor.com/ (SOFTACULOUS VIRTUALIZOR)
// ----------------------------------------------------------
// Please Read the Terms of use at https://www.virtualizor.com
// ----------------------------------------------------------
//===========================================================
// (c)Softaculous Ltd.
//===========================================================
//////////////////////////////////////////////////////////////

if(!defined('VIRTUALIZOR')){

	die('Hacking Attempt');

}

function add_admin_acl_theme(){

global $theme, $globals, $cluster, $servers, $user, $l, $done, $error;

softheader($l['<title>']);

$GLOBALS['breadcrumbs'] = ['dashboard', 'lm_admin_acl', 'lms_addadmin_acl'];
					
echo page_header(__('Add Administrator ACL'), 'fas fa-users', $globals['docs'].'administrator-acl/', 0, 0, '', '');

error_handle($error);

if(!is_allowed('add_admin_acl')){
	softfooter();
	return;
}

if(!empty($done)){
	show_alert((__('The ACL was successfully added. ').'&nbsp;<a href="'.$globals['ind'].'act=admin_acl">'.__('Back to Admin ACL List').'</a>'),'0' ,'admin_acl');
	
	//echo '<div class="notice"><b>'.__('Note').' : </b> &nbsp; '.__('The ACL was successfully added. ').'&nbsp;<a href="'.$globals['ind'].'act=admin_acl">'.__('Back to Admin ACL List').'</a></div>';
}else{

echo '
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[

function toggle_div(id){
	if ($("#"+id).is(":hidden")){
		$("#"+id).slideDown("slow");
		$("#"+id+"-label").html("-");
	}else{
		$("#"+id).slideUp("slow");
		$("#"+id+"-label").html("+");
	}
}

function plus_onmouseover(id){
	$("#"+id).attr("src", "'.$theme['images'].'admin/plus_hover.gif");
}

function plus_onmouseout(id){
$("#"+id).attr("src", "'.$theme['images'].'admin/plus.gif");
}

// ]]></script>
<div class="card mx-3 p-2">
<form accept-charset="'.$globals['charset'].'" name="add_admin_acl" method="post" action="" class="form-horizontal">
	<div class="row mx-auto w-100 my-3">
		<div class="col-sm-1">
			<label class="control-label" class="mt-0">'.__('Name').'</label></div>
		<div class="col-sm-6 pull-left">
			<input type="text" class="form-control w-50" name="name" id="name" size="30" value="'.POSTval('name', '').'"/></div>
		<div class="col-sm-2"></div>
	</div>
<div class="row mx-auto w-100 my-3">
	<div class="col-sm-12">
		'.get_checkbox('select_all', __('Check all'), 'select_all', array('chk_it' => 1), '', 'select_all').'
	</div>
</div>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'admindash\');"><span id="admindash-label">-</span>&nbsp;'.__('Admin Dashboard').'</div>
	<div id="admindash" class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_cluster_statistics', __('View Cluster Statistics')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_server_statistics', __('View Server Statistics')).'
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'vs\');"><span id="vs-label">-</span>&nbsp;'.__('Virtual Server').'</div>
	<div id="vs" class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_vs', __('List Virtual Server')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_vsresources', __('View VPS Resources')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addvs', __('Add Virtual Server')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_rebuildvs', __('Rebuild Virtual Server')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_editvs', __('Edit Virtual Server')).'
			</div>		
			<div class="col-sm-3">
				'.get_checkbox('act_deletevs', __('Delete Virtual Server')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_suspendvs', __('Suspend Virtual Server')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_unsuspendvs', __('Unsuspend Virtual Server')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_vnc', __('Virtual Server. VNC')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_migrate', __('Migrate Virtual Server')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_ha', __('High Availability')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_load_balancer', __('Load Balancer')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_manage_load_balancer', __('Manage Load Balancer')).'
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'ippool\');"><span id="ippool-label">-</span>&nbsp;'.__('IP Pools').'</div>
	<div id="ippool"  class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_ippool', __('View IP Pools')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addippool', __('Add IP Pool')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_editippool', __('Edit IP Pool')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deleteippool', __('Delete IP Pool')).'
			</div>		
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_ips', __('View IPs')).'
			</div>		
			<div class="col-sm-3">
				'.get_checkbox('act_addips', __('Add IPs')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_editips', __('Edit IPs')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deleteips', __('Delete IPs')).'
			</div>
		</div>
		<br/>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'servers\');"><span id="servers-label">-</span>&nbsp;'.__('Servers and Server Groups').'</div>
	<div id=servers  class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_servers', __('View Servers')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addserver', __('Add Server')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_editserver', __('Edit Server')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deleteserver', __('Delete Server')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_sg', __('View Server Groups')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addsg', __('Add Server Group')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_editsg', __('Edit Server Group')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deletesg', __('Delete Server Group')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_manageserver', __('Manage Server')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_rebootserver', __('Reboot Server')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_terminal', __('Terminal')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_sso', __('Single Sign On')).'
			</div>
			<div class="row mx-auto w-100 my-3">
				<div class="col-sm-3">
					'.get_checkbox('act_support_access', __('Support Access')).'
				</div>
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'storage\');"><span id="storage-label">-</span>&nbsp;'.__('Storages').'</div>
	<div id="storage"  class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_storage', __('View Storages')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addstorage', __('Add Storage')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_editstorage', __('Edit Storage')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deletestorage', __('Delete Storage')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_volumes', __('Volumes')).'
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'backups\');"><span id="backups-label">-</span>&nbsp;'.__('Server and VPS Backups').'</div>
	<div id="backups"  class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_databackup', __('View DB Backups')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_performdatabackup', __('Perform DB Backups')).'	
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_dldatabackup', __('Download DB Backups')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deletedatabackup', __('Delete DB Backups')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">		
			<div class="col-sm-3">
				'.get_checkbox('act_vpsbackupsettings', __('Edit VPS Backup Settings')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_vpsbackups', __('View VPS Backups')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_restorevpsbackup', __('Restore VPS Backups')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deletevpsbackup', __('Delete VPS Backups')).'
			</div>		
		</div>
		<div class="row mx-auto w-100 my-3">		
			<div class="col-sm-3">
				'.get_checkbox('act_backupservers', __('View Backup Servers')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addbackupserver', __('Add Backup Server')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_editbackupservsers', __('Edit Backup Server')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deletebackupserver', __('Delete Backup Server')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">		
			<div class="col-sm-3">
				'.get_checkbox('act_backup_plans', __('List Backup Plans')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addbackup_plan', __('Add Backup Plan')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_editbackup_plan', __('Edit Backup Plan')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deletebackup_plan', __('Delete Backup Plans')).'
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'plans\');"><span id="plans-label">-</span>&nbsp;'.__('Plans').'</div>
	<div id="plans"  class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">		
			<div class="col-sm-3">
				'.get_checkbox('act_plans', __('View Plans')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addplan', __('Add Plan')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_editplan', __('Edit Plan')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deleteplan', __('Delete Plan')).'
			</div>		
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_dnsplans', __('View DNS Plans')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_adddnsplan', __('Add DNS Plan')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_editdnsplan', __('Edit DNS Plan')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deletednsplan', __('Delete DNS Plan')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_add_dnsrecord', __('Add DNS Record')).'
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'users\');"><span id="users-label">-</span>&nbsp;'.__('Users').'</div>
	<div id="users"   class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">		
			<div class="col-sm-3">
				'.get_checkbox('act_users', __('View Users')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_adduser', __('Add User')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_edituser', __('Edit User')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deleteuser', __('Delete User')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_suspend_user', __('Suspend User')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_unsuspend_user', __('Unsuspend User')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_list_api', __('List API Credential')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_create_api', __('Create API Credential')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_api_credential_edit', __('Edit API Credential')).'
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'media\');"><span id="media-label">-</span>&nbsp;'.__('Media and Media Groups').'</div>
	<div id="media"  class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">		
			<div class="col-sm-3">
				'.get_checkbox('act_ostemplates', __('View Templates')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_os', __('View Template Browser')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addtemplate', __('Add Templates')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_edittemplate', __('Edit templates')).'
			</div>		
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_deletetemplate', __('Delete Templates')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_createtemplate', __('Create Templates')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_iso', __('View ISO List')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addiso', __('Add ISOs')).'
			</div>	
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_editiso', __('Edit ISOs')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deleteiso', __('Delete ISOs')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_mg', __('View Media Groups')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addmg', __('Add Media Groups')).'
			</div>		
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_editmg', __('Edit Media Groups')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deletemg', __('Delete Media Groups')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_list_distros', __('View Distro List')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_add_distro', __('Add Distros')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_euiso', __('Enduser ISO')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_synciso', __('Sync ISO')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_syncostemplate', __('Sync OS Templates')).'
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'recipe_div\');"><span id="recipe_div-label">-</span>&nbsp;'.__('Recipes').'</div>
	<div id="recipe_div"  class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">		
			<div class="col-sm-3">
				'.get_checkbox('act_recipes', __('View Recipes')).'
			</div>		
			<div class="col-sm-3">
				'.get_checkbox('act_addrecipe', __('Add Recipe')).'
			</div>		
			<div class="col-sm-3">
				'.get_checkbox('act_editrecipe', __('Edit Recipe')).'
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'config\');"><span id="config-label">-</span>&nbsp;'.__('Configuration').'</div>
	<div id="config"   class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">		
			<div class="col-sm-3">
				'.get_checkbox('act_config', __('Edit General Settings')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_emailsettings', __('Edit Email Settings')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_adminacl', __('View Admin ACLs')).'
			</div>		
			<div class="col-sm-3">
				'.get_checkbox('act_add_admin_acl', __('Add Admin ACL')).'
			</div>		
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_edit_admin_acl', __('Edit Admin ACL')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_delete_admin_acl', __('Delete Admin ACL')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_serverinfo', __('View Server Info')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_licenseinfo', __('View License Info')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_hostname', __('View Hostname')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_changehostname', __('Edit Hostname')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_maintenance', __('Maintenance Mode')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_kernconfig', __('Edit Kernel Config')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_updates', __('Perform Updates')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_emailtemps', __('View email templates')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_editemailtemps', __('Edit email templates')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_ssl', __('View SSL files')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_editssl', __('Edit SSL fIles')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_createssl', __('Create SSL Certificate')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_importvs', __('Import VS')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_phpmyadmin', __(' Access PhpMyAdmin')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_ssh', __('Access SSH')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_defaultvsconf', __('Default VPS Config')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_multivirt', __('Multi Virtualization')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_twofactauth', __('Two Factor Authentication')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_orphaneddisk', __('List Orphaned Disks')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deleteorphaneddisk', __('Delete Orphaned Disks')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_webuzo', __('Webuzo Settings')).'
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'pdns\');"><span id="pdns-label">-</span>&nbsp;'.__('PowerDNS').'</div>
	<div id="pdns"  class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">		
			<div class="col-sm-3">
				'.get_checkbox('act_pdns', __('View DNS Servers')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_managepdns', __('Manage DNS Servers')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addpdns', __('Add DNS Servers')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_editpdns', __('Edit DNS Server')).'
			</div>		
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_deletepdns', __('Delete DNS Servers')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_rdns', __('Add Reverse DNS Zones')).'
			</div>
		</div>
	</div>
</div>
<br/>
<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'billing\');"><span id="billing-label">-</span>&nbsp;Billing</div>
	<div id="billing"  class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">		
			<div class="col-sm-3">
				'.get_checkbox('act_billing', __('Billing Settings')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_resource_pricing', __('Resource Billing')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_invoices', __('Invoices')).'
			</div>	
			<div class="col-sm-3">
				'.get_checkbox('act_transactions', __('Transactions')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_addinvoice', __('Add Invoice')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addtransaction', __('Add Transaction')).'
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'procs\');"><span id="procs-label">-</span>&nbsp;'.__('Process and Services').'</div>
	<div id="procs"  class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">		
			<div class="col-sm-3">
				'.get_checkbox('act_procs', __('Manage processes')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_services', __('Manage services')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_webserver', __('Restart webserver')).'
			</div>	
			<div class="col-sm-3">
				'.get_checkbox('act_network', __('Restart network service')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_sendmail', __('Restart mail server')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_mysqld', __('Restart MySQL')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_iptables', __('Restart IPTables')).'
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'logs\');"><span id="logs-label">-</span>&nbsp;'.__('Logs').'</div>
	<div id="logs"  class="togglediv w-100"> 
		<div class="row mx-auto w-100 my-3">		
			<div class="col-sm-3">
				'.get_checkbox('act_logs', __('View Logs')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deletelogs', __('Delete logs')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_userlogs', __('View User logs')).'
			</div>	
			<div class="col-sm-3">
				'.get_checkbox('act_deleteuserlogs', __('Delete User logs')).'
			</div>			
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_loginlogs', __('View Login logs')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deleteloginlogs', __('Delete login logs')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_iplogs', __('View IP Logs')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deliplogs', __('Delete IP Logs')).'
			</div>
		</div>
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_show_api_log', __('API Logs')).'
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'domain_frwd\');"><span id="domain_frwd-label">-</span>&nbsp;'.__('Domain Forwarding').'</div>
	<div id="domain_frwd"  class="togglediv w-100"> 
		<div class="row mx-auto w-100 my-3">		
			<div class="col-sm-3">
				'.get_checkbox('act_haproxy', __('Domain Forwarding')).'
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'passthrough_div\');"><span id="passthrough_div-label">-</span>&nbsp;'.__('Passthrough').'</div>
	<div id="passthrough_div"  class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_passthrough', __('View Passthough Devices')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addpassthrough', __('Add Passthrough')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_editpassthrough', __('Edit Passthrough')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deletepassthrough', __('Delete Passthrough')).'
			</div>
		</div>
	</div>
</div>
<br/>

<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'vpsfirewall_div\');"><span id="vpsfirewall_div-label">-</span>&nbsp;'.__('VPS Firewall').'</div>
	<div id="vpsfirewall_div"  class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_firewall_plans', __('List Firewall Plans')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_addfirewall_plan', __('Add Firewall Plan')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_editfirewall_plan', __('Edit Firewall Plan')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_deletefirewall_plan', __('Delete Firewall Plan')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_vpsfirewallconfig', __('VPSFirewall Config')).'
			</div>
		</div>
	</div>
</div>
<br/>
<div class="cat-wrapper">
	<div class="roundheader" onclick="toggle_div(\'nodefirewall_div\');"><span id="nodefirewall_div-label">-</span>&nbsp;'.__('Node Firewall').'</div>
	<div id="nodefirewall_div"  class="togglediv w-100">
		<div class="row mx-auto w-100 my-3">
			<div class="col-sm-3">
				'.get_checkbox('act_serverfirewall_status', __('Server Firewall Status')).'
			</div>
			<div class="col-sm-3">
				'.get_checkbox('act_firewall', __('Native firewall')).'
			</div>
		</div>
	</div>
</div>
<div class="text-center my-4">
	<input type="submit" name="add_admin_acl" value="'.__('Save').'" class="go_btn">
</div>
</form>
<br />

</div></div>';
}

softfooter();
}

