<?php 
echo $form->text('date_to', array('style' => 'width: 86px'));
?>
		</span>

		<span class="ccm-search-option"  search-field="is_active">
		<?php 
echo $form->select('active', array('0' => t('Inactive Users'), '1' => t('Active Users')), array('style' => 'vertical-align: middle'));
?>
		</span>
		
		<?php 
if (PERMISSIONS_MODEL == 'advanced') {
    $gsl = new GroupSetList();
    $groupsets = array();
    foreach ($gsl->get() as $gs) {
        $groupsets[$gs->getGroupSetID()] = $gs->getGroupSetDisplayName();
    }
    ?>
		<span class="ccm-search-option"  search-field="group_set">
		<?php 
    echo $form->select('gsID', $groupsets);
    ?>
		</span>
		<?php 
}
?>
		
		<?php 
foreach ($searchFieldAttributes as $sfa) {
    $sfa->render('search');
Example #2
0
	if ($_REQUEST['filter'] == 'assign') { 
		$pk = PermissionKey::getByHandle('assign_user_groups');
		if (!$pk->validate()) {
			die(t('You have no access to assign groups.'));
		}
	}
	

	$gl = new GroupSetList();
	?>
	<div id="ccm-list-wrapper">
	
	<? if ($gl->getTotal() > 0) { 
	
		foreach ($gl->get() as $gs) { ?>
	
		<div class="ccm-group">
			<div style="background-image: url(<?php 
echo ASSETS_URL_IMAGES;
?>
/icons/group.png)" class="ccm-group-inner-indiv">
				<a class="ccm-group-inner-atag" id="g<?php 
echo $g['gID'];
?>
" href="javascript:void(0)" onclick="ccm_selectGroupSet(<?php 
echo $gs->getGroupSetID();
?>
)"><?php 
echo $gs->getGroupSetName();
?>