Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2141

Přidáno uživatelem Ondřej Fibich před asi 11 roky(ů)

Upravy:
- refs #563: dokumentace k AXO (vsechny pohledy)

Zobrazit rozdíly:

freenetis/branches/1.1/application/vendors/axo_doc/axo_doc.xml
<object name="Image" type="library"></object>
<object name="MY_Controller" type="library">
<method name="build_menu">
<!-- build_menu()
{
$menu = new Menu_builder();
$pm = new Preprocessor_Model();
/*********************** FAVOURITES ***********************/
if (!empty($this->user_favourites_pages) &&
$this->user_favourites_pages->count())
{
$menu->addGroup('favourites', __('Favourites'));
foreach ($this->user_favourites_pages as $fav)
{
$default = array();
if ($fav->default_page)
{
$default = array
(
'default' => TRUE
);
}
$menu->addItem($fav->page, $fav->title, 'favourites', $default);
}
unset($this->user_favourites_pages);
}
/*********************** MY PROFILE ***********************/
$menu->addGroup('account', __('My profile'));
// my profile
if ($this->session->get('user_type') == User_Model::MAIN_USER &&
$this->acl_check_view('Members_Controller', 'members', $this->member_id))
{
$menu->addItem(
'members/show/'.$this->member_id,
__('My profile'), 'account');
}
elseif ($this->acl_check_view('Users_Controller', 'users', $this->member_id))
{
$menu->addItem(
'users/show/'.$this->user_id,
__('My profile'), 'account');
}
// my transfers
if (Settings::get('finance_enabled') && $this->member_account_id &&
($this->acl_check_view('Accounts_Controller', 'transfers', $this->member_id) ||
$this->acl_check_view('Members_Controller', 'currentcredit')))
{
$menu->addItem(
'transfers/show_by_account/'.$this->member_account_id,
__('My transfers'), 'account');
}
// my devices
if (Settings::get('networks_enabled') &&
$this->acl_check_view('Devices_Controller', 'devices',$this->member_id))
{
$menu->addItem(
'devices/show_by_user/'.$this->user_id,
__('My devices'), 'account');
}
// my connection requests
if ($this->member_id != Member_Model::ASSOCIATION &&
$this->acl_check_view('Connection_Requests_Controller', 'request', $this->member_id) &&
Settings::get('connection_request_enable'))
{
$menu->addItem(
'connection_requests/show_by_member/'.$this->member_id,
__('My connection requests'), 'account');
}
// my works
if (Settings::get('works_enabled') &&
$this->member_id != Member_Model::ASSOCIATION &&
$this->acl_check_view('Works_Controller', 'work', $this->member_id))
{
$menu->addItem(
'works/show_by_user/'.$this->user_id,
__('My works'), 'account');
}
// my work reports
if (Settings::get('works_enabled') &&
$this->member_id != Member_Model::ASSOCIATION &&
$this->acl_check_view('Work_reports_Controller', 'work_report', $this->member_id))
{
$menu->addItem('work_reports/show_by_user/'.$this->user_id,
__('My work reports'), 'account');
}
// my work reports
if (Settings::get('approval_enabled') &&
$this->member_id != Member_Model::ASSOCIATION &&
$this->acl_check_view('Requests_Controller', 'request', $this->member_id))
{
$menu->addItem('requests/show_by_user/'.$this->user_id,
__('My requests'), 'account');
}
// my phone invoices
if (Settings::get('phone_invoices_enabled') &&
$this->member_id != 1 &&
$pm->has_phone_invoices($this->user_id))
{
$menu->addItem(
'phone_invoices/show_by_user/'.$this->user_id,
__('My phone invoices'), 'account', array
(
'count' => $pm->count_unfilled_phone_invoices($this->user_id)
));
}
// my VoIP calls
if (Settings::get('voip_enabled') && $this->user_has_voip)
{
$menu->addItem(
'voip_calls/show_by_user/'.$this->user_id,
__('My VoIP calls'), 'account');
}
// my mail
$menu->addItem('mail/inbox', __('My mail'), 'account',
array
(
'count' => $this->unread_user_mails
));
/*********************** USERS *************************/
$menu->addGroup('users', __('Users'));
// list of members
if ($this->acl_check_view('Members_Controller', 'members'))
{
$menu->addItem(
'members/show_all', __('Members'), 'users');
}
/**
* @todo Add own AXO
*/
// list of registered applicants
if (Settings::get('self_registration') &&
$this->acl_check_view('Members_Controller', 'members'))
{
$menu->addItem(
'members/applicants', __('Registered applicants'),
'users', array
(
'count' => $pm->count_of_registered_members()
));
}
// list of membership interrupts
if (Settings::get('membership_interrupt_enabled') &&
$this->acl_check_view('Members_Controller', 'membership_interrupts'))
{
$menu->addItem(
'membership_interrupts/show_all',
__('Membership interrupts'),
'users');
}
// list of membership interrupts
if ($this->acl_check_view('Membership_transfers_Controller', 'membership_transfer'))
{
$menu->addItem(
'membership_transfers/show_all',
__('Membership transfers'),
'users');
}
// list of users
if ($this->acl_check_view('Users_Controller', 'users'))
{
$menu->addItem(
'users/show_all', __('Users'),
'users');
}
/************************** FINANCES *****************/
$menu->addGroup('transfer', __('Finances'));
// list of unidentified transfers
if (Settings::get('finance_enabled') &&
$this->acl_check_view('Accounts_Controller', 'unidentified_transfers'))
{
$menu->addItem(
'bank_transfers/unidentified_transfers/',
__('Unidentified transfers'), 'transfer',
array
(
'count' => $pm->scount_unidentified_transfers()
));
}
// list of bank accounts
if (Settings::get('finance_enabled') &&
$this->acl_check_view('Accounts_Controller', 'bank_accounts'))
{
$menu->addItem(
'bank_accounts/show_all', __('Bank accounts'),
'transfer');
}
// list of accounts
if (Settings::get('finance_enabled') &&
$this->acl_check_view('Accounts_Controller', 'accounts'))
{
$menu->addItem(
'accounts/show_all', __('Double-entry accounts'),
'transfer');
}
/**
* @todo Add own AXO
*/
// list of transfers
if (Settings::get('finance_enabled') &&
$this->acl_check_view('Accounts_Controller', 'transfers'))
{
$menu->addItem(
'transfers/show_all', __('Day book'),'transfer');
}
/**
* @todo Add own AXO
*/
if (Settings::get('finance_enabled') &&
$this->acl_check_view('Accounts_Controller', 'invoices'))
{
$menu->addItem(
'invoices/show_all', __('Invoices'), 'transfer');
}
/********************** APPROVAL ***********************/
$menu->addGroup('approval', __('Approval'));
// list of works
if (Settings::get('works_enabled') &&
$this->acl_check_view('Works_Controller', 'work'))
{
$menu->addItem(
'works/show_all', __('Works'), 'approval',
array
(
'count' => $pm->get_count_of_unvoted_works_of_voter($this->user_id)
));
}
// list of work reports
if (Settings::get('works_enabled') &&
$this->acl_check_view('Work_reports_Controller', 'work_report'))
{
$menu->addItem(
'work_reports/show_all', __('Work reports'),
'approval', array
(
'count' => $pm->get_count_of_unvoted_work_reports_of_voter($this->user_id)
));
}
// list of requests
if (Settings::get('approval_enabled') &&
$this->acl_check_view('Requests_Controller', 'request'))
{
$menu->addItem(
'requests/show_all', __('Requests'),
'approval', array
(
'count' => $pm->get_count_of_unvoted_requests_of_voter($this->user_id)
));
}
/*********************** NETWORKS ********************/
$menu->addGroup('networks', __('Networks'));
// list of connection requests
if (Settings::get('connection_request_enable') &&
$this->acl_check_view('Connection_Requests_Controller', 'request'))
{
$menu->addItem(
'connection_requests/show_all',
__('Connection requests'), 'networks',
array
(
'count' => $pm->count_undecided_requests()
));
}
// list of devices
if (Settings::get('networks_enabled') &&
$this->acl_check_view('Devices_Controller', 'devices'))
{
$menu->addItem(
'devices/show_all', __('Devices'),
'networks');
}
// list of ifaces
if (Settings::get('networks_enabled') &&
$this->acl_check_view('Ifaces_Controller', 'iface'))
{
$menu->addItem(
'ifaces/show_all', __('Interfaces'),
'networks');
}
// list of IP addresses
if (Settings::get('networks_enabled') &&
$this->acl_check_view('Ip_addresses_Controller', 'ip_address'))
{
$menu->addItem(
'ip_addresses/show_all', __('IP addresses'),
'networks');
}
// list of subnets
if (Settings::get('networks_enabled') &&
$this->acl_check_view('Subnets_Controller', 'subnet'))
{
$menu->addItem(
'subnets/show_all', __('Subnets'), 'networks');
}
// list of links
if (Settings::get('networks_enabled') &&
$this->acl_check_view('Links_Controller', 'link'))
{
$menu->addItem(
'links/show_all', __('Links'), 'networks');
}
// list of VLANs
if (Settings::get('networks_enabled') &&
$this->acl_check_view('Vlans_Controller', 'vlan'))
{
$menu->addItem(
'vlans/show_all', __('Vlans'), 'networks');
}
// list of VoIP numbers
if (Settings::get('voip_enabled') &&
$this->acl_check_view('VoIP_Controller', 'voip'))
{
$menu->addItem(
'voip/show_all', __('VoIP'), 'networks');
}
// list of clouds
if (Settings::get('networks_enabled') &&
$this->acl_check_view('Clouds_Controller', 'clouds'))
{
$menu->addItem(
'clouds/show_all', __('Clouds'), 'networks');
}
// tools
if (Settings::get('networks_enabled') &&
$this->acl_check_view('Tools_Controller', 'tools'))
{
$menu->addItem(
'tools/ssh', __('Tools'), 'networks');
}
// traffic
if (Settings::get('ulogd_enabled') && (
$this->acl_check_view('Ulogd_Controller', 'total') ||
$this->acl_check_view('Ulogd_Controller', 'ip_address') ||
$this->acl_check_view('Ulogd_Controller', 'member')))
{
$menu->addItem(
'traffic', __('Traffic'), 'networks');
}
// monitoring
if (Settings::get('monitoring_enabled') &&
$this->acl_check_view('Monitoring_Controller', 'monitoring'))
{
$menu->addItem(
'monitoring/show_all', __('Monitoring'),
'networks', array
(
'count' => $pm->count_off_down_devices(),
'color' => 'red'
));
}
// list of DHCP servers
if (Settings::get('networks_enabled') &&
$this->acl_check_view('Devices_Controller', 'devices'))
{
$menu->addItem(
'devices/show_all_dhcp_servers', __('DHCP servers'),
'networks', array
(
'count' => $pm->count_inactive_dhcp_servers(),
'color' => 'red'
));
}
/***************** NOTIFICATIONS *********************/
if (module::e('notification'))
{
$menu->addGroup('redirection', __('Notifications'));
// list of messages
if ($this->acl_check_view('Messages_Controller', 'message'))
{
$menu->addItem(
'messages/show_all', __('Messages'),
'redirection');
}
// list of whitelists
if ($this->acl_check_view('Members_whitelists_Controller', 'whitelist'))
{
$menu->addItem(
'members_whitelists/show_all', __('Whitelist'),
'redirection');
}
// list of activated redirections
if (Settings::get('redirection_enabled') &&
$this->acl_check_view('Redirect_Controller', 'redirect'))
{
$menu->addItem(
'redirect/show_all', __('Activated redirections'),
'redirection');
}
}
/**************** ADMINISTRATION *******************/
$menu->addGroup('administration', __('Administration'));
// list of errors and logs
if ($this->acl_check_view('Log_queues_Controller', 'log_queue'))
{
$menu->addItem(
'log_queues/show_all', __('Errors and logs'),
'administration',
array
(
'count' => $this->count_of_unclosed_logged_errors,
'color' => 'red'
));
}
// settings
if ($this->acl_check_view('Settings_Controller', 'info') ||
$this->acl_check_edit('Settings_Controller', 'system_settings') ||
$this->acl_check_edit('Settings_Controller', 'users_settings') ||
$this->acl_check_edit('Settings_Controller', 'finance_settings') ||
$this->acl_check_edit('Settings_Controller', 'approval_settings') ||
$this->acl_check_edit('Settings_Controller', 'networks_settings') ||
$this->acl_check_edit('Settings_Controller', 'email_settings') ||
$this->acl_check_edit('Settings_Controller', 'sms_settings') ||
$this->acl_check_edit('Settings_Controller', 'voip_settings') ||
$this->acl_check_edit('Settings_Controller', 'notification_settings') ||
$this->acl_check_edit('Settings_Controller', 'qos_settings') ||
$this->acl_check_edit('Settings_Controller', 'monitoring_settings') ||
$this->acl_check_edit('Settings_Controller', 'qos_settings') ||
$this->acl_check_edit('Settings_Controller', 'vtiger_settings') ||
$this->acl_check_edit('Settings_Controller', 'logging_settings'))
{
$menu->addItem(
'settings/', __('Settings'),
'administration');
}
// list of address points
if ($this->acl_check_view('Address_points_Controller', 'address_point'))
{
$menu->addItem(
'address_points/show_all', __('Address points'),
'administration');
}
// list of SMS messages
if (Settings::get('sms_enabled') &&
$this->acl_check_view('Sms_Controller', 'sms'))
{
$menu->addItem(
'sms/show_all', __('SMS messages'),
'administration');
}
// list of e-mails
if (Settings::get('email_enabled') &&
$this->acl_check_view('Email_queues_Controller', 'email_queue'))
{
$menu->addItem(
'email_queues/show_all_unsent', __('E-mails'),
'administration');
}
// list of device_templates
if (Settings::get('networks_enabled') &&
$this->acl_check_view('Device_templates_Controller', 'device_template'))
{
$menu->addItem(
'device_templates/show_all', __('Device templates'),
'administration');
}
// list of device_templates
if (Settings::get('networks_enabled') &&
$this->acl_check_view('Device_active_links_Controller', 'active_links'))
{
$menu->addItem(
'device_active_links/show_all', __('Device active links'),
'administration');
}
// list of approval templates
if (Settings::get('approval_enabled') &&
$this->acl_check_view('approval', 'templates'))
{
$menu->addItem(
'approval_templates/show_all', __('Approval templates'),
'administration');
}
// access rights
if ($this->acl_check_view('Acl_Controller', 'acl'))
{
$menu->addItem(
'acl/show_all', __('Access rights'),
'administration');
}
else if ($this->acl_check_view('Aro_groups_Controller', 'aro_group'))
{
$menu->addItem(
'aro_groups/show_all', __('Access control groups of users'),
'administration');
}
// list of fees
if (Settings::get('finance_enabled') &&
$this->acl_check_view('Fees_Controller', 'fees'))
{
$menu->addItem(
'fees/show_all', __('Fees'),
'administration');
}
// list of login logs
if ($this->acl_check_view('Login_logs_Controller', 'logs'))
{
$menu->addItem(
'login_logs/show_all', __('Login logs'),
'administration');
}
// list of action logs
if (Settings::get('action_logs_active') &&
$this->acl_check_view('Logs_Controller', 'logs'))
{
$menu->addItem(
'logs/show_all', __('Action logs'),
'administration');
}
// list of stats
if ($this->acl_check_view('Stats_Controller', 'members_fees') ||
$this->acl_check_view('Stats_Controller', 'incoming_member_payment') ||
$this->acl_check_view('Stats_Controller', 'members_growth') ||
$this->acl_check_view('Stats_Controller', 'members_increase_decrease'))
{
$menu->addItem(
'stats', __('Stats'),
'administration');
}
// list of translations
if ($this->acl_check_view('Translations_Controller', 'translation'))
{
$menu->addItem(
'translations/show_all', __('Translations'),
'administration');
}
// list of enumerations
if ($this->acl_check_view('Enum_types_Controller', 'enum_types'))
{
$menu->addItem(
'enum_types/show_all', __('Enumerations'),
'administration');
}
// list of phone invoices
if (Settings::get('phone_invoices_enabled') &&
$this->acl_check_view('Phone_invoices_Controller', 'invoices'))
{
$menu->addItem(
'phone_invoices/show_all', __('Phone invoices'),
'administration');
}
// list of speed classes
if ($this->acl_check_view('Speed_classes_Controller', 'speed_classes'))
{
$menu->addItem(
'speed_classes/show_all', __('Speed classes'),
'administration');
}
// list of phone operators
if (Settings::get('sms_enabled') &&
$this->acl_check_view('Phone_operators_Controller', 'phone_operators'))
{
$menu->addItem(
'phone_operators/show_all', __('Phone operators'),
'administration');
}
// list of filter queries
if ($this->acl_check_view('Filter_queries_Controller', 'filter_queries'))
{
$menu->addItem(
'filter_queries/show_all', __('Filter queries'),
'administration');
}
return $menu;
}
/**
* Return URL for controller and method
*
* @author Michal Kliment
* @param type $method
* @param type $controller
* @return type
*/
public -->
<axo usage_type="unknown" section="Members_Controller" value="members" action="view" own="true"></axo>
<axo usage_type="unknown" section="Users_Controller" value="users" action="view" own="true"></axo>
<axo usage_type="unknown" section="Accounts_Controller" value="transfers" action="view" own="true"></axo>
<axo usage_type="unknown" section="Members_Controller" value="currentcredit" action="view" own="false"></axo>
<axo usage_type="unknown" section="Devices_Controller" value="devices" action="view" own="true"></axo>
<axo usage_type="unknown" section="Connection_Requests_Controller" value="request" action="view" own="true"></axo>
<axo usage_type="unknown" section="Works_Controller" value="work" action="view" own="true"></axo>
<axo usage_type="unknown" section="Work_reports_Controller" value="work_report" action="view" own="true"></axo>
<axo usage_type="unknown" section="Requests_Controller" value="request" action="view" own="true"></axo>
<axo usage_type="unknown" section="Members_Controller" value="members" action="view" own="false"></axo>
<axo usage_type="unknown" section="Members_Controller" value="members" action="view" own="false"></axo>
<axo usage_type="unknown" section="Members_Controller" value="membership_interrupts" action="view" own="false"></axo>
<axo usage_type="unknown" section="Membership_transfers_Controller" value="membership_transfer" action="view" own="false"></axo>
<axo usage_type="unknown" section="Users_Controller" value="users" action="view" own="false"></axo>
<axo usage_type="unknown" section="Accounts_Controller" value="unidentified_transfers" action="view" own="false"></axo>
<axo usage_type="unknown" section="Accounts_Controller" value="bank_accounts" action="view" own="false"></axo>
<axo usage_type="unknown" section="Accounts_Controller" value="accounts" action="view" own="false"></axo>
<axo usage_type="unknown" section="Accounts_Controller" value="transfers" action="view" own="false"></axo>
<axo usage_type="unknown" section="Accounts_Controller" value="invoices" action="view" own="false"></axo>
<axo usage_type="unknown" section="Works_Controller" value="work" action="view" own="false"></axo>
<axo usage_type="unknown" section="Work_reports_Controller" value="work_report" action="view" own="false"></axo>
<axo usage_type="unknown" section="Requests_Controller" value="request" action="view" own="false"></axo>
<axo usage_type="unknown" section="Connection_Requests_Controller" value="request" action="view" own="false"></axo>
<axo usage_type="unknown" section="Devices_Controller" value="devices" action="view" own="false"></axo>
<axo usage_type="unknown" section="Ifaces_Controller" value="iface" action="view" own="false"></axo>
<axo usage_type="unknown" section="Ip_addresses_Controller" value="ip_address" action="view" own="false"></axo>
<axo usage_type="unknown" section="Subnets_Controller" value="subnet" action="view" own="false"></axo>
<axo usage_type="unknown" section="Links_Controller" value="link" action="view" own="false"></axo>
<axo usage_type="unknown" section="Vlans_Controller" value="vlan" action="view" own="false"></axo>
<axo usage_type="unknown" section="VoIP_Controller" value="voip" action="view" own="false"></axo>
<axo usage_type="unknown" section="Clouds_Controller" value="clouds" action="view" own="false"></axo>
<axo usage_type="unknown" section="Tools_Controller" value="tools" action="view" own="false"></axo>
<axo usage_type="unknown" section="Ulogd_Controller" value="total" action="view" own="false"></axo>
<axo usage_type="unknown" section="Ulogd_Controller" value="ip_address" action="view" own="false"></axo>
<axo usage_type="unknown" section="Ulogd_Controller" value="member" action="view" own="false"></axo>
<axo usage_type="unknown" section="Monitoring_Controller" value="monitoring" action="view" own="false"></axo>
<axo usage_type="unknown" section="Devices_Controller" value="devices" action="view" own="false"></axo>
<axo usage_type="unknown" section="Messages_Controller" value="message" action="view" own="false"></axo>
<axo usage_type="unknown" section="Members_whitelists_Controller" value="whitelist" action="view" own="false"></axo>
<axo usage_type="unknown" section="Redirect_Controller" value="redirect" action="view" own="false"></axo>
<axo usage_type="unknown" section="Log_queues_Controller" value="log_queue" action="view" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="info" action="view" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="system_settings" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="users_settings" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="finance_settings" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="approval_settings" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="networks_settings" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="email_settings" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="sms_settings" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="voip_settings" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="notification_settings" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="qos_settings" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="monitoring_settings" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="qos_settings" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="vtiger_settings" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Settings_Controller" value="logging_settings" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Address_points_Controller" value="address_point" action="view" own="false"></axo>
<axo usage_type="unknown" section="Sms_Controller" value="sms" action="view" own="false"></axo>
<axo usage_type="unknown" section="Email_queues_Controller" value="email_queue" action="view" own="false"></axo>
<axo usage_type="unknown" section="Device_templates_Controller" value="device_template" action="view" own="false"></axo>
<axo usage_type="unknown" section="Device_active_links_Controller" value="active_links" action="view" own="false"></axo>
<axo usage_type="unknown" section="approval" value="templates" action="view" own="false"></axo>
<axo usage_type="unknown" section="Acl_Controller" value="acl" action="view" own="false"></axo>
<axo usage_type="unknown" section="Aro_groups_Controller" value="aro_group" action="view" own="false"></axo>
<axo usage_type="unknown" section="Fees_Controller" value="fees" action="view" own="false"></axo>
<axo usage_type="unknown" section="Login_logs_Controller" value="logs" action="view" own="false"></axo>
<axo usage_type="unknown" section="Logs_Controller" value="logs" action="view" own="false"></axo>
<axo usage_type="unknown" section="Stats_Controller" value="members_fees" action="view" own="false"></axo>
<axo usage_type="unknown" section="Stats_Controller" value="incoming_member_payment" action="view" own="false"></axo>
<axo usage_type="unknown" section="Stats_Controller" value="members_growth" action="view" own="false"></axo>
<axo usage_type="unknown" section="Stats_Controller" value="members_increase_decrease" action="view" own="false"></axo>
<axo usage_type="unknown" section="Translations_Controller" value="translation" action="view" own="false"></axo>
<axo usage_type="unknown" section="Enum_types_Controller" value="enum_types" action="view" own="false"></axo>
<axo usage_type="unknown" section="Phone_invoices_Controller" value="invoices" action="view" own="false"></axo>
<axo usage_type="unknown" section="Speed_classes_Controller" value="speed_classes" action="view" own="false"></axo>
<axo usage_type="unknown" section="Phone_operators_Controller" value="phone_operators" action="view" own="false"></axo>
<axo usage_type="unknown" section="Filter_queries_Controller" value="filter_queries" action="view" own="false"></axo>
<axo usage_type="links" section="Members_Controller" value="members" action="view" own="true"></axo>
<axo usage_type="links" section="Users_Controller" value="users" action="view" own="true"></axo>
<axo usage_type="links" section="Accounts_Controller" value="transfers" action="view" own="true"></axo>
<axo usage_type="links" section="Members_Controller" value="currentcredit" action="view" own="false"></axo>
<axo usage_type="links" section="Devices_Controller" value="devices" action="view" own="true"></axo>
<axo usage_type="links" section="Connection_Requests_Controller" value="request" action="view" own="true"></axo>
<axo usage_type="links" section="Works_Controller" value="work" action="view" own="true"></axo>
<axo usage_type="links" section="Work_reports_Controller" value="work_report" action="view" own="true"></axo>
<axo usage_type="links" section="Requests_Controller" value="request" action="view" own="true"></axo>
<axo usage_type="links" section="Members_Controller" value="members" action="view" own="false"></axo>
<axo usage_type="links" section="Members_Controller" value="members" action="view" own="false"></axo>
<axo usage_type="links" section="Members_Controller" value="membership_interrupts" action="view" own="false"></axo>
<axo usage_type="links" section="Membership_transfers_Controller" value="membership_transfer" action="view" own="false"></axo>
<axo usage_type="links" section="Users_Controller" value="users" action="view" own="false"></axo>
<axo usage_type="links" section="Accounts_Controller" value="unidentified_transfers" action="view" own="false"></axo>
<axo usage_type="links" section="Accounts_Controller" value="bank_accounts" action="view" own="false"></axo>
<axo usage_type="links" section="Accounts_Controller" value="accounts" action="view" own="false"></axo>
<axo usage_type="links" section="Accounts_Controller" value="transfers" action="view" own="false"></axo>
<axo usage_type="links" section="Accounts_Controller" value="invoices" action="view" own="false"></axo>
<axo usage_type="links" section="Works_Controller" value="work" action="view" own="false"></axo>
<axo usage_type="links" section="Work_reports_Controller" value="work_report" action="view" own="false"></axo>
<axo usage_type="links" section="Requests_Controller" value="request" action="view" own="false"></axo>
<axo usage_type="links" section="Connection_Requests_Controller" value="request" action="view" own="false"></axo>
<axo usage_type="links" section="Devices_Controller" value="devices" action="view" own="false"></axo>
<axo usage_type="links" section="Ifaces_Controller" value="iface" action="view" own="false"></axo>
<axo usage_type="links" section="Ip_addresses_Controller" value="ip_address" action="view" own="false"></axo>
<axo usage_type="links" section="Subnets_Controller" value="subnet" action="view" own="false"></axo>
<axo usage_type="links" section="Links_Controller" value="link" action="view" own="false"></axo>
<axo usage_type="links" section="Vlans_Controller" value="vlan" action="view" own="false"></axo>
<axo usage_type="links" section="VoIP_Controller" value="voip" action="view" own="false"></axo>
<axo usage_type="links" section="Clouds_Controller" value="clouds" action="view" own="false"></axo>
<axo usage_type="links" section="Tools_Controller" value="tools" action="view" own="false"></axo>
<axo usage_type="links" section="Ulogd_Controller" value="total" action="view" own="false"></axo>
<axo usage_type="links" section="Ulogd_Controller" value="ip_address" action="view" own="false"></axo>
<axo usage_type="links" section="Ulogd_Controller" value="member" action="view" own="false"></axo>
<axo usage_type="links" section="Monitoring_Controller" value="monitoring" action="view" own="false"></axo>
<axo usage_type="links" section="Devices_Controller" value="devices" action="view" own="false"></axo>
<axo usage_type="links" section="Messages_Controller" value="message" action="view" own="false"></axo>
<axo usage_type="links" section="Members_whitelists_Controller" value="whitelist" action="view" own="false"></axo>
<axo usage_type="links" section="Redirect_Controller" value="redirect" action="view" own="false"></axo>
<axo usage_type="links" section="Log_queues_Controller" value="log_queue" action="view" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="info" action="view" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="system_settings" action="edit" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="users_settings" action="edit" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="finance_settings" action="edit" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="approval_settings" action="edit" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="networks_settings" action="edit" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="email_settings" action="edit" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="sms_settings" action="edit" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="voip_settings" action="edit" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="notification_settings" action="edit" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="qos_settings" action="edit" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="monitoring_settings" action="edit" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="qos_settings" action="edit" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="vtiger_settings" action="edit" own="false"></axo>
<axo usage_type="links" section="Settings_Controller" value="logging_settings" action="edit" own="false"></axo>
<axo usage_type="links" section="Address_points_Controller" value="address_point" action="view" own="false"></axo>
<axo usage_type="links" section="Sms_Controller" value="sms" action="view" own="false"></axo>
<axo usage_type="links" section="Email_queues_Controller" value="email_queue" action="view" own="false"></axo>
<axo usage_type="links" section="Device_templates_Controller" value="device_template" action="view" own="false"></axo>
<axo usage_type="links" section="Device_active_links_Controller" value="active_links" action="view" own="false"></axo>
<axo usage_type="links" section="approval" value="templates" action="view" own="false"></axo>
<axo usage_type="links" section="Acl_Controller" value="acl" action="view" own="false"></axo>
<axo usage_type="links" section="Aro_groups_Controller" value="aro_group" action="view" own="false"></axo>
<axo usage_type="links" section="Fees_Controller" value="fees" action="view" own="false"></axo>
<axo usage_type="links" section="Login_logs_Controller" value="logs" action="view" own="false"></axo>
<axo usage_type="links" section="Logs_Controller" value="logs" action="view" own="false"></axo>
<axo usage_type="links" section="Stats_Controller" value="members_fees" action="view" own="false"></axo>
<axo usage_type="links" section="Stats_Controller" value="incoming_member_payment" action="view" own="false"></axo>
<axo usage_type="links" section="Stats_Controller" value="members_growth" action="view" own="false"></axo>
<axo usage_type="links" section="Stats_Controller" value="members_increase_decrease" action="view" own="false"></axo>
<axo usage_type="links" section="Translations_Controller" value="translation" action="view" own="false"></axo>
<axo usage_type="links" section="Enum_types_Controller" value="enum_types" action="view" own="false"></axo>
<axo usage_type="links" section="Phone_invoices_Controller" value="invoices" action="view" own="false"></axo>
<axo usage_type="links" section="Speed_classes_Controller" value="speed_classes" action="view" own="false"></axo>
<axo usage_type="links" section="Phone_operators_Controller" value="phone_operators" action="view" own="false"></axo>
<axo usage_type="links" section="Filter_queries_Controller" value="filter_queries" action="view" own="false"></axo>
</method>
</object>
<object name="MY_ORM" type="library"></object>
......
<object name="vtwsclib/third-party/Zend/Json/Encoder" type="library"></object>
<object name="vtwsclib/third-party/Zend/Json/Exception" type="library"></object>
<object name="access_rights/acl_show" type="view">
<!-- <h2><?php echo __('Detail of access control rule') ?></h2>
<br />
<?php
$links = array();
if ($this->acl_check_edit('Acl_Controller', 'acl'))
$links[] = html::anchor('acl/edit/'.$acl->id, __('Edit'));
if ($this->acl_check_delete('Acl_Controller', 'acl'))
$links[] = html::anchor('acl/delete/'.$acl->id, __('Delete'), array('class' => 'delete_link'));
echo implode(' | ',$links);
?><br /><br />
<table class="extended" cellspacing="0">
<tr>
<th><?php echo __('ID') ?></th>
<td><?php echo $acl->id ?></td>
</tr>
<tr>
<th><?php echo __('Description') ?></th>
<td><?php echo $acl->note ?></td>
</tr>
</table>
<br /><br />
<div style="float:left; width: 330px;">
<h3><?php echo __('ACO') ?> <?php echo help::hint('aco') ?></h3>
<?php echo $aco_grid ?>
</div>
<div style="float:left;">
<h3><?php echo __('ARO groups') ?> <?php echo help::hint('aro_groups') ?></h3>
<?php echo $aro_groups_grid ?>
</div>
<div class="clear"></div>
<br /><br />
<h3><?php echo __('AXO') ?> <?php echo help::hint('axo') ?></h3>
<?php echo $axo_grid ?>
-->
<axo usage_type="unknown" section="Acl_Controller" value="acl" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Acl_Controller" value="acl" action="delete" own="false"></axo>
<axo usage_type="links" section="Acl_Controller" value="acl" action="edit" own="false"></axo>
<axo usage_type="links" section="Acl_Controller" value="acl" action="delete" own="false"></axo>
</object>
<object name="access_rights/aro_groups_show" type="view">
<!-- <h2><?php echo __('Detail of access control group of users') ?></h2>
<br />
<?php
$links = array();
if ($this->acl_check_edit('Aro_groups_Controller', 'aro_group'))
$links[] = html::anchor('aro_groups/edit/'.$aro_group->id, __('Edit'));
if ($this->acl_check_delete('Aro_groups_Controller', 'aro_group'))
$links[] = html::anchor('aro_groups/delete/'.$aro_group->id, __('Delete'), array('class' => 'delete_link'));
echo implode(" | ",$links);
?>
<br /><br />
<table class="extended" cellspacing="0">
<tr>
<th><?php echo __('ID') ?></th>
<td><?php echo $aro_group->id ?></td>
</tr>
<tr>
<th><?php echo __('Name') ?></th>
<td><?php echo $aro_group->name ?></td>
</tr>
<?php
if ($parent && $parent->id)
{
?>
<tr>
<th><?php echo __('Parent') ?></th>
<?php if ($parent->id != Aro_group_Model::ALL): ?>
<?php if ($this->acl_check_view('Aro_groups_Controller', 'aro_group')): ?>
<td><?php echo html::anchor('aro_groups/show/'.$parent->id, $parent->name) ?></td>
<?php else: ?>
<td><?php echo __($parent->name) ?></td>
<?php endif ?>
<?php else: ?>
<td><?php echo __($parent->name) ?></td>
<?php endif ?>
</tr>
<?php
}
?>
</table>
<br /><br />
<h3><?php echo __('ARO') ?> <?php echo help::hint('aro') ?></h3>
<?php echo $aro_grid ?>
<br />
<h3><?php echo __('ACL') ?> <?php echo help::hint('acl') ?></h3>
<?php echo $acl_grid ?> -->
<axo usage_type="unknown" section="Aro_groups_Controller" value="aro_group" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Aro_groups_Controller" value="aro_group" action="delete" own="false"></axo>
<axo usage_type="unknown" section="Aro_groups_Controller" value="aro_group" action="view" own="false"></axo>
<axo usage_type="links" section="Aro_groups_Controller" value="aro_group" action="edit" own="false"></axo>
<axo usage_type="links" section="Aro_groups_Controller" value="aro_group" action="delete" own="false"></axo>
<axo usage_type="links" section="Aro_groups_Controller" value="aro_group" action="view" own="false"></axo>
</object>
<object name="access_rights/aro_groups_show_all" type="view">
<!-- <h2><?php echo $headline ?></h2>
<br />
<?php if (isset($this->sections)): ?>
<ul class="tabs">
<?php foreach ($this->sections as $url => $name): ?>
<li<?php echo ($current == $url) ? ' class="current"' : '' ?>><?php echo html::anchor($url, $name) ?></li>
<?php endforeach; ?>
</ul>
<?php endif ?>
<?php echo __('Total items') ?>: <?php echo count($rows) ?>
<br /><br />
<?php
// check access
if ($this->acl_check_new('Aro_groups_Controller', 'aro_group'))
echo html::anchor('aro_groups/add', __('Add new group')).'<br /><br />';
?>
<div>
<table class="extended" style="float:left">
<?php
foreach ($rows as $row)
echo $row;
?>
</table>
</div> -->
<axo usage_type="unknown" section="Aro_groups_Controller" value="aro_group" action="new" own="false"></axo>
<axo usage_type="links" section="Aro_groups_Controller" value="aro_group" action="new" own="false"></axo>
</object>
<object name="address_points/show" type="view">
<!-- <h2><?php echo __('Address point detail') . ' ' . $address_point->name ?></h2><br />
<?php
if ($gps == '' && $this->acl_check_edit('Address_points_Controller', 'address_point'))
echo html::anchor('address_points/edit/' . $address_point->id, __('Fill in GPS'));
else
echo html::anchor('address_points/edit/' . $address_point->id, __('Edit'), array('title' => __('Edit'), 'class' => 'popup_link'));
?>
<br /><br />
<table class="extended" style="float:left; margin-bottom: 20px;" cellspacing="0">
<tr>
<th><?php echo __('ID') ?></th>
<td><?php echo $address_point->id ?></td>
</tr>
<tr>
<th><?php echo __('Country') ?></th>
<td><?php echo $address_point->country->country_name ?></td>
</tr>
<tr>
<th><?php echo __('Town') ?></th>
<td><?php echo html::anchor('towns/show/' . $address_point->town->id, $address_point->town->town) ?></td>
</tr>
<?php if ($address_point->town->quarter != ''): ?>
<tr>
<th><?php echo __('Quarter') ?></th>
<td><?php echo html::anchor('towns/show/' . $address_point->town->id, $address_point->town->quarter) ?></td>
</tr>
<?php endif ?>
<tr>
<th><?php echo __('ZIP code') ?></th>
<td><?php echo html::anchor('towns/show/' . $address_point->town->id, $address_point->town->zip_code) ?></td>
</tr>
<?php if (!empty($address_point->street->id)): ?>
<tr>
<th><?php echo __('Street') ?></th>
<td><?php echo html::anchor('streets/show/' . $address_point->street->id, $address_point->street->street) ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($address_point->street_number)): ?>
<tr>
<th><?php echo __('Street number') ?></th>
<td><?php echo $address_point->street_number ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($gps)): ?>
<tr>
<th><?php echo __('GPS') ?></th>
<td><?php echo $gps ?></td>
</tr>
<?php endif ?>
</table>
<?php if (!empty($gps)): ?>
<a href="http://maps.google.com/maps?f=q&hl=<?php echo $lang ?>&geocode=&q=<?php echo $gpsx ?>,<?php echo $gpsy ?>&z=18&t=h&ie=UTF8" target="_blank">
<img alt="<?php echo __('Address point detail') ?>" src="http://maps.google.com/maps/api/staticmap?center=<?php echo $gpsx ?>,<?php echo $gpsy ?>&zoom=16&maptype=hybrid&size=400x300&markers=color:red%7C<?php echo $gpsx ?>,<?php echo $gpsy ?>&language<?php echo $lang ?>&sensor=false" style="float: right; margin-right: 10px;" />
</a>
<div style="margin-bottom: 10px; float:left"></div>
<?php endif; ?>
<div style="clear: both"></div>
<br /><br />
<h3><?php echo __('Members on this address') ?></h3>
<?php echo $members_grid ?>
<br /><br />
<h3><?php echo __('Devices on this address') ?></h3>
<?php echo $devices_grid ?>
<div class="clear"></div> -->
<axo usage_type="unknown" section="Address_points_Controller" value="address_point" action="edit" own="false"></axo>
<axo usage_type="links" section="Address_points_Controller" value="address_point" action="edit" own="false"></axo>
</object>
<object name="allowed_subnets/show_by_member" type="view"></object>
<object name="approval/show_all" type="view"></object>
<object name="approval/templates_show" type="view">
<!-- <h2><?php echo __('Show approval template') ?></h2>
<?php
$links = array();
if ($this->approval_template->state < 2 && $this->acl_check_edit('approval', 'templates'))
$links[] = html::anchor('approval_templates/edit/' . $approval_template->id, __('Edit'));
if ($this->approval_template->state < 1 && $this->acl_check_delete('approval', 'templates'))
$links[] = html::anchor('approval_templates/delete/' . $approval_template->id, __('Delete'), array('class' => 'delete_link'));
echo implode(' | ', $links);
?>
<br /><br />
<table class="extended" cellspacing="0">
<tr>
<th><?php echo __('ID') ?></th>
<td><?php echo $approval_template->id ?></td>
</tr>
<tr>
<th><?php echo __('Name') ?></th>
<td><?php echo $approval_template->name ?></td>
</tr>
<tr>
<th><?php echo __('Comment') ?></th>
<td><?php echo $approval_template->comment ?></td>
</tr>
</table>
<br /><br />
<h3><?php echo __('Template items') ?></h3>
<?php echo $items_grid ?> -->
<axo usage_type="unknown" section="approval" value="templates" action="edit" own="false"></axo>
<axo usage_type="unknown" section="approval" value="templates" action="delete" own="false"></axo>
<axo usage_type="links" section="approval" value="templates" action="edit" own="false"></axo>
<axo usage_type="links" section="approval" value="templates" action="delete" own="false"></axo>
</object>
<object name="approval/types_show" type="view">
<!-- <h2><?php echo __('Show approval type') ?></h2>
<?php
$links = array();
if ($state < 2 && $this->acl_check_edit('approval', 'types'))
$links[] = html::anchor('approval_types/edit/' . $approval_type->id, __('Edit'));
if ($state < 1 && $this->acl_check_delete('approval', 'types'))
$links[] = html::anchor('approval_types/delete/' . $approval_type->id, __('Delete'), array('class' => 'delete_link'));
echo implode(' | ', $links);
?>
<br /><br />
<table class="extended" cellspacing="0">
<tr>
<th><?php echo __('ID') ?></th>
<td><?php echo $approval_type->id ?></td>
</tr>
<tr>
<th><?php echo __('Name') ?></th>
<td><?php echo $approval_type->name ?></td>
</tr>
<tr>
<th><?php echo __('Comment') ?></th>
<td><?php echo $approval_type->comment ?></td>
</tr>
<tr>
<th><?php echo __('Group') ?></th>
<td><?php echo __('' . $approval_type->aro_group->name) ?></td>
</tr>
<tr>
<th><?php echo __('Minimal suggest amount') ?></th>
<td><?php echo $approval_type->min_suggest_amount ?></td>
</tr>
<tr>
<th><?php echo __('Type') ?></th>
<td><?php echo Approval_types_Controller::$types[$approval_type->type] ?></td>
</tr>
<tr>
<th><?php echo __('Percent for majority') ?></th>
<td><?php echo $approval_type->majority_percent ?>%</td>
</tr>
<tr>
<th><?php echo __('Interval') ?></th>
<td><?php
$interval = date::interval($approval_type->interval);
echo $interval['h'] . ' ' . strtolower(__('hours'))
?>
</td>
</tr>
<tr>
<th><?php echo __('Default vote') ?></th>
<td><?php echo Approval_types_Controller::$vote_options[$approval_type->default_vote]; ?></td>
</tr>
</table> -->
<axo usage_type="unknown" section="approval" value="types" action="edit" own="false"></axo>
<axo usage_type="unknown" section="approval" value="types" action="delete" own="false"></axo>
<axo usage_type="links" section="approval" value="types" action="edit" own="false"></axo>
<axo usage_type="links" section="approval" value="types" action="delete" own="false"></axo>
</object>
<object name="bank_accounts/show_all" type="view"></object>
<object name="bank_templates/show" type="view"></object>
<object name="bank_transfers/assign_transfer" type="view"></object>
<object name="bank_transfers/show_by_bank_account" type="view"></object>
<object name="clouds/show" type="view">
<!-- <h2><?php echo $cloud->name ?></h2>
<?php
if ($this->acl_check_edit('Clouds_Controller', 'clouds'))
{
echo html::anchor('clouds/edit/' . $cloud->id, __('Edit cloud'));
if (module::e('notification') &&
$this->acl_check_new('Notifications_Controller', 'cloud'))
echo ' | ' . html::anchor('notifications/cloud/' . $cloud->id, __('Notifications'));
}
?>
<br /><br />
<h3><?php echo __('Subnets') ?></h3>
<?php echo $subnets ?>
<br />
<h3><?php echo __('Admins') ?></h3>
<?php echo $admins ?>
-->
<axo usage_type="unknown" section="Clouds_Controller" value="clouds" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Notifications_Controller" value="cloud" action="new" own="false"></axo>
<axo usage_type="links" section="Clouds_Controller" value="clouds" action="edit" own="false"></axo>
<axo usage_type="links" section="Notifications_Controller" value="cloud" action="new" own="false"></axo>
</object>
<object name="connection_requests/show" type="view">
<!-- <h2><?php echo $headline ?></h2><br />
<?php
$links = array();
if ($this->acl_check_edit('Connection_Requests_Controller', 'request') && $connection_request->state == Connection_request_Model::STATE_UNDECIDED)
{
$links[] = html::anchor('connection_requests/edit/'.$connection_request->id, __('Edit'), array('class' => 'popup_link'));
$links[] = html::anchor('connection_requests/approve_request/' . $connection_request->id, __('Approve'));
$links[] = html::anchor('connection_requests/reject_request/'.$connection_request->id, __('Reject'), array('class' => 'confirm_reject'));
}
echo implode(' | ', $links);
if (count($links))
{
echo '<br /><br />';
}
?>
<table class="extended" cellspacing="0">
<tr>
<th><?php echo __('ID') ?></th>
<td><?php echo $connection_request->id ?></td>
</tr>
<tr>
<th><?php echo __('Owner') ?></th>
<?php if ($this->acl_check_view('Members_Controller', 'members', $connection_request->member_id)): ?>
<td><?php echo html::anchor('members/show/' . $connection_request->member_id, $connection_request->member->name) ?></td>
<?php else: ?>
<td><?php echo $connection_request->member->name ?></td>
<?php endif; ?>
</tr>
<tr>
<th><?php echo __('Added by') ?></th>
<?php if ($this->acl_check_view('Users_Controller', 'users', $connection_request->added_user->member_id)): ?>
<td><?php echo html::anchor('users/show/' . $connection_request->added_user_id, $connection_request->added_user->get_full_name()) ?> (<?php echo $connection_request->created_at ?>)</td>
<?php else: ?>
<td><?php echo $connection_request->member->name ?> (<?php echo $connection_request->created_at ?>)</td>
<?php endif; ?>
</tr>
<?php if ($connection_request->decided_user_id): ?>
<tr>
<th><?php echo __('Decided by') ?></th>
<?php if ($this->acl_check_view('Users_Controller', 'users', $connection_request->decided_user->member_id)): ?>
<td><?php echo html::anchor('users/show/' . $connection_request->decided_user_id, $connection_request->decided_user->get_full_name()) ?> (<?php echo $connection_request->decided_at ?>)</td>
<?php else: ?>
<td><?php echo $connection_request->decided_user->get_full_name() ?> (<?php echo $connection_request->decided_at ?>)</td>
<?php endif; ?>
</tr>
<?php endif; ?>
<tr>
<th><?php echo __('State') ?></th>
<td><b><?php echo callback::connection_request_state_field($connection_request, 'state') ?></b></td>
</tr>
<?php if ($connection_request->state == Connection_request_Model::STATE_APPROVED): ?>
<?php if ($connection_request->device_id): ?>
<tr>
<th><?php echo __('Device') ?></th>
<?php if ($this->acl_check_view('Devices_Controller', 'devices', $connection_request->device->user->member_id)): ?>
<td><?php echo html::anchor('devices/show/' . $connection_request->device_id, $connection_request->device->name) ?></td>
<?php else: ?>
<td><?php echo $connection_request->device->name ?></td>
<?php endif; ?>
</tr>
<?php else: ?>
<tr>
<th><?php echo __('Device') ?></th><td><b style="color: red"><?php echo __('Deleted') ?></a></td>
</tr>
<?php endif; ?>
<?php endif; ?>
<?php if ($connection_request->device_type->id): ?>
<tr>
<th><?php echo __('Device type') ?></th>
<td><?php echo $connection_request->device_type->get_value() ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($connection_request->device_template->name)): ?>
<tr>
<th><?php echo __('Device template') ?></th>
<td><?php echo $connection_request->device_template->name ?></td>
</tr>
<?php endif; ?>
<tr>
<th><?php echo __('MAC address') ?></th>
<td><?php echo $connection_request->mac_address ?></td>
</tr>
<tr>
<th><?php echo __('Subnet') ?></th>
<?php if ($this->acl_check_view('Subnets_Controller', 'subnet')): ?>
<td><?php echo html::anchor('subnets/show/' . $connection_request->subnet_id, $connection_request->subnet->name) ?></td>
<?php else: ?>
<td><?php echo $connection_request->subnet->name ?></td>
<?php endif; ?>
</tr>
<tr>
<th><?php echo __('IP address') ?></th>
<td><?php echo $connection_request->ip_address ?></td>
</tr>
<tr>
<th><?php echo __('Note') ?></th>
<td><?php echo $connection_request->comment ?></td>
</tr>
</table>
<br />
<h3><?php echo __('Comments') ?></h3>
<?php echo $comments_grid ?>
-->
<axo usage_type="unknown" section="Connection_Requests_Controller" value="request" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Members_Controller" value="members" action="view" own="true"></axo>
<axo usage_type="unknown" section="Users_Controller" value="users" action="view" own="true"></axo>
<axo usage_type="unknown" section="Users_Controller" value="users" action="view" own="true"></axo>
<axo usage_type="unknown" section="Devices_Controller" value="devices" action="view" own="true"></axo>
<axo usage_type="unknown" section="Subnets_Controller" value="subnet" action="view" own="false"></axo>
<axo usage_type="links" section="Connection_Requests_Controller" value="request" action="edit" own="false"></axo>
<axo usage_type="links" section="Members_Controller" value="members" action="view" own="true"></axo>
<axo usage_type="links" section="Users_Controller" value="users" action="view" own="true"></axo>
<axo usage_type="links" section="Users_Controller" value="users" action="view" own="true"></axo>
<axo usage_type="links" section="Devices_Controller" value="devices" action="view" own="true"></axo>
<axo usage_type="links" section="Subnets_Controller" value="subnet" action="view" own="false"></axo>
</object>
<object name="contacts/edit" type="view"></object>
<object name="contacts/show_by_user" type="view"></object>
<object name="device_active_links/add" type="view"></object>
<object name="device_active_links/show" type="view">
<!-- <h2><?php echo $headline ?></h2>
<br />
<?php
$links = array();
if ($this->acl_check_edit('Device_active_links_Controller', 'active_links'))
$links[] = html::anchor('device_active_links/edit/'.$active_link->id, __('Edit'));
if ($this->acl_check_delete('Device_active_links_Controller', 'active_links'))
$links[] = html::anchor('device_active_links/delete/'.$active_link->id, __('Delete'), array('class' => 'delete_link'));
echo implode(' | ', $links)
?>
<br />
<br />
<table class="extended clear" cellspacing="0" style="float:left;word-wrap: break-word;">
<tr>
<th><?php echo __('ID') ?></th>
<td><?php echo $active_link->id ?></td>
</tr>
<tr>
<th><?php echo __('URL pattern') ?></th>
<td><?php echo $active_link->url_pattern ?></td>
</tr>
<tr>
<th><?php echo __('Name') ?></th>
<td><?php echo $active_link->name ?></td>
</tr>
<tr>
<th><?php echo __('Title') ?></th>
<td><?php echo $active_link->title ?></td>
</tr>
</table>
<div class="clear"></div>
<br />
<h3><?php echo __('Devices') ?></h3>
<div id="devices-grid">
<?php echo $devices_grid ?>
</div>
<br />
<h3><?php echo __('Device templates') ?></h3>
<div id="devices-grid">
<?php echo $device_templates_grid ?>
</div> -->
<axo usage_type="unknown" section="Device_active_links_Controller" value="active_links" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Device_active_links_Controller" value="active_links" action="delete" own="false"></axo>
<axo usage_type="links" section="Device_active_links_Controller" value="active_links" action="edit" own="false"></axo>
<axo usage_type="links" section="Device_active_links_Controller" value="active_links" action="delete" own="false"></axo>
</object>
<object name="device_export_templates/debian-etc-dhcp-dhcpd" type="view"></object>
<object name="device_export_templates/debian-etc-network-interfaces" type="view"></object>
......
<object name="device_export_templates/mikrotik-ip-dhcp-server-lease" type="view"></object>
<object name="device_export_templates/mikrotik-ip-dhcp-server" type="view"></object>
<object name="device_templates/show" type="view">
<!-- <h2><?php echo __('Device template') ?> - <?php echo $device_template->name ?></h2><br />
<?php
$arr_links = array();
if ($this->acl_check_edit('Devices_Controller', 'devices'))
$arr_links[] = html::anchor('device_templates/edit/' . $device_template->id, __('Edit'));
if ($this->acl_check_delete('Devices_Controller', 'devices'))
$arr_links[] = html::anchor('device_templates/delete/' . $device_template->id, __('Delete'), array('class' => 'delete_link'));
echo implode(' | ', $arr_links);
?>
<br /><br />
<table class="extended" cellspacing="0">
<tr>
<th><?php echo __('Trade name') ?></th>
<td><?php echo $device_template->name ?></td>
</tr>
<tr>
<th><?php echo __('Type') ?></th>
<td><?php echo $device_template->enum_type->get_value() ?></td>
</tr>
<tr>
<th><?php echo __('Default') ?></th>
<td><?php echo $device_template->default ? __('Yes') : __('No') ?></td>
</tr>
<tr>
<th><?php echo __('Default interface') ?> <?php echo help::hint(__('Default iface is used as filled iface in permitting of the connection request')) ?></th>
<td><?php echo (preg_match('/^(\d+):(\d+)$/', @$ivals['default_iface'], $r) !== FALSE) ? @$ivals[$r[1]]['items'][$r[2]]['name'] : '<span class="red">' . __('Not set') . '</span>' ?></td>
</tr>
</table>
<br /><h3><?php echo __('Ethernet interfaces') ?></h3>
<table class="extended" cellspacing="0">
<tr>
<th><?php echo __('Count') ?></th>
<td><?php echo $ivals[Iface_Model::TYPE_ETHERNET]['count'] ?></td>
</tr>
<tr>
<th><?php echo __('Names') ?></th>
<td><?php foreach ($ivals[Iface_Model::TYPE_ETHERNET]['items'] as $item) echo ($item['name']) ? $item['name'] . ', ' : '' ?></td>
</tr>
</table>
<br /><h3><?php echo __('Wireless interfaces') ?></h3>
<table class="extended" cellspacing="0">
<tr>
<th><?php echo __('Minimal count') ?></th>
<td><?php echo $ivals[Iface_Model::TYPE_WIRELESS]['min_count'] ?></td>
</tr>
<tr>
<th><?php echo __('Maximal count') ?></th>
<td><?php echo $ivals[Iface_Model::TYPE_WIRELESS]['max_count'] ?></td>
</tr>
</table>
<br />
<table class="extended" cellspacing="0">
<tr>
<th><?php echo __('Name') ?></th>
<th><?php echo __('Wireless mode') ?></th>
<th><?php echo __('Wireless antenna') ?></th>
</tr>
<?php foreach ($ivals[Iface_Model::TYPE_WIRELESS]['items'] as $item): ?>
<tr>
<td><?php echo $item['name'] ?></td>
<td><?php echo $iface_model->get_wireless_mode(@$item['wireless_mode']) ?></td>
<td><?php echo $iface_model->get_wireless_antenna(@$item['wireless_antenna']) ?></td>
</tr>
<?php endforeach; ?>
</table>
<br /><h3><?php echo __('Ports') ?></h3>
<table class="extended" cellspacing="0">
<tr>
<th><?php echo __('Count') ?></th>
<td><?php echo $ivals[Iface_Model::TYPE_PORT]['count'] ?></td>
</tr>
</table>
<br />
<table class="extended" cellspacing="0">
<tr>
<th><?php echo __('Name') ?></th>
<th><?php echo __('Port number') ?></th>
<th><?php echo __('Port mode') ?></th>
</tr>
<?php foreach ($ivals[Iface_Model::TYPE_PORT]['items'] as $item): ?>
<tr>
<td><?php echo $item['name'] ?></td>
<td><?php echo __('Port') ?> <?php echo $item['number'] ?></td>
<td><?php echo $iface_model->get_port_mode($item['port_mode']) ?></td>
</tr>
<?php endforeach; ?>
</table>
<br /><h3><?php echo __('Internal interfaces') ?></h3>
<table class="extended" cellspacing="0">
<tr>
<th><?php echo __('Count') ?></th>
<td><?php echo $ivals[Iface_Model::TYPE_INTERNAL]['count'] ?></td>
</tr>
<tr>
<th><?php echo __('Names') ?></th>
<td><?php foreach ($ivals[Iface_Model::TYPE_INTERNAL]['items'] as $item) echo ($item['name']) ? $item['name'] . ', ' : '' ?></td>
</tr>
</table>
<?php if ($this->acl_check_view('Device_active_links_Controller', 'active_links')): ?>
<br /><h3><?php echo __('Device active links') ?></h3>
<?php echo $active_links_grid; ?>
<?php endif; ?> -->
<axo usage_type="unknown" section="Devices_Controller" value="devices" action="edit" own="false"></axo>
<axo usage_type="unknown" section="Devices_Controller" value="devices" action="delete" own="false"></axo>
<axo usage_type="unknown" section="Device_active_links_Controller" value="active_links" action="view" own="false"></axo>
<axo usage_type="access-partial" section="Device_active_links_Controller" value="active_links" action="view" own="false">
<comment lang="en">Enables to display active links that are assigned to template</comment>
<comment lang="cs">Umožňuje zobrazit grid (tabulku) s aktivními odkazy přiřazenými k šabloně</comment>
</axo>
</object>
<object name="device_templates/ubnt" type="view"></object>
<object name="devices/add" type="view"></object>
<object name="devices/map" type="view"></object>
<object name="devices/show" type="view">
<!-- <h2><?php echo __('Device') ?> <?php echo $device->name ?></h2>
<br />
... Rozdílový soubor je zkrácen, protože jeho délka přesahuje max. limit.

Také k dispozici: Unified diff