Exemplo n.º 1
0
<?php

defined('C5_EXECUTE') or die("Access Denied.");
$form = Loader::helper('form');
$searchFields = array('date_added' => t('Registered Between'), 'is_active' => t('Activated Users'));
if (Config::get('concrete.permissions_model') == 'advanced') {
    $searchFields['group_set'] = t('Group Set');
}
$searchFieldAttributes = UserAttributeKey::getSearchableList();
foreach ($searchFieldAttributes as $ak) {
    $searchFields[$ak->getAttributeKeyID()] = $ak->getAttributeKeyDisplayName();
}
$ek = PermissionKey::getByHandle('edit_user_properties');
$ik = PermissionKey::getByHandle('activate_user');
$dk = PermissionKey::getByHandle('delete_user');
$flr = new \Concrete\Core\Search\StickyRequest('users');
$searchRequest = $flr->getSearchRequest();
?>

<script type="text/template" data-template="search-form">
<form role="form" data-search-form="users" action="<?php 
echo URL::to('/ccm/system/search/users/submit');
?>
" class="form-inline ccm-search-fields">
	<div class="ccm-search-fields-row">
	<div class="form-group">
		<select data-bulk-action="users" disabled class="ccm-search-bulk-action form-control">
			<option value=""><?php 
echo t('Items Selected');
?>
</option>
Exemplo n.º 2
0
<?php

defined('C5_EXECUTE') or die("Access Denied.");
$form = Loader::helper('form');
$searchFields = $controller->getSearchFields();
if (Config::get('concrete.permissions.model') != 'simple') {
    $searchFields['permissions_inheritance'] = t('Permissions Inheritance');
}
$flr = new \Concrete\Core\Search\StickyRequest('pages');
$req = $flr->getSearchRequest();
?>

<script type="text/template" data-template="search-form">
<form role="form" data-search-form="pages" action="<?php 
echo URL::to('/ccm/system/search/pages/submit');
?>
" class="ccm-search-fields">
	<div class="ccm-search-fields-row form-inline">
	<div class="form-group">
		<select data-bulk-action="pages" disabled class="ccm-search-bulk-action form-control">
			<option value=""><?php 
echo t('Items Selected');
?>
</option>
			<option data-bulk-action-type="dialog" data-bulk-action-title="<?php 
echo t('Page Properties');
?>
" data-bulk-action-url="<?php 
echo URL::to('/ccm/system/dialogs/page/bulk/properties');
?>
" data-bulk-action-dialog-width="630" data-bulk-action-dialog-height="450"><?php