blob: 0d3e19d08217d3779271b27eefc120f8a6b04977 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php use_helper('I18N','Javascript'); ?>
<?php if($user->getRoleId() == Role::SUPERADMIN): ?>
<?php echo "All Domains" ?>
<?php else: ?>
<?php $list = $user->getDomainPermissionsJoinDomain() ?>
<?php if(count($list) == 0): ?>
<?php echo "None" ?>
<?php else: ?>
<div class="slidelist">
<?php if(count($list) > sfConfig::get('app_user_domain_perm_collapse_count')): ?>
<?php echo link_to_function(__("Multiple (%1% entries)", array('%1%' => count($list))), visual_effect(
'toggle_slide', 'domain_permissionlist_'.$user->getId())) ?>
<div id="domain_permissionlist_<?php echo $user->getId() ?>" style="display:none">
<?php endif; ?>
<ul>
<?php foreach($list as $permission): ?>
<li><?php echo ($permission->getDomain()) ?></li>
<?php endforeach; ?>
</ul>
<?php if(count($list) > 1): ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php endif; ?>
|