Projekt

Obecné

Profil

« Předchozí | Další » 

Revize c1bdc1c4

Přidáno uživatelem Michal Kliment před více než 9 roky(ů)

Release 1.1.0

Zobrazit rozdíly:

application/views/users/show.php
$links = array();
if ($this->acl_check_edit(get_class($this),'users',$user_data->member_id))
$links[] = html::anchor('users/edit/'.$user_data->id,__('Edit user'));
if ($this->acl_check_view('Devices_Controller', 'devices', $user_data->member_id))
if ($this->acl_check_edit('Users_Controller','users',$user_data->member_id))
$links[] = html::anchor('users/edit/'.$user_data->id,__('Edit user'), array('class' => 'popup_link'));
if ($this->user_id == $user_data->id)
$links[] = html::anchor('user_favourite_pages/show_all', __('Favourites'));
if (Settings::get('networks_enabled') && $this->acl_check_view('Devices_Controller', 'devices', $user_data->member_id))
$links[] = html::anchor('devices/show_by_user/'.$user_data->id,__('Show devices'));
if ($user_data->id <> 1 && $this->acl_check_view('Users_Controller', 'work', $user_data->member_id))
if (Settings::get('works_enabled') && $user_data->id <> Member_Model::ASSOCIATION && $this->acl_check_view('Works_Controller', 'work', $user_data->member_id))
{
$links[] = html::anchor('works/show_by_user/'.$user_data->id,__('Show works'));
$links[] = html::anchor('work_reports/show_by_user/'.$user_data->id,__('Show work reports'));
}
if ($this->acl_check_edit(get_class($this),'password',$user_data->member_id))
$links[] = html::anchor('users/change_password/'.$user_data->id,__('Change password'));
if ($this->acl_check_edit(get_class($this), 'application_password', $user_data->member_id))
$links[] = html::anchor('users/change_application_password/'.$user_data->id, __('Change application password'));
$links[] = html::anchor('users/show_login_logs/'.$user_data->id, __('Show login logs'));
if ($user_data->id <> Member_Model::ASSOCIATION && $this->acl_check_view('Requests_Controller', 'request', $user_data->member_id))
{
$links[] = html::anchor('requests/show_by_user/'.$user_data->id,__('Show requests'));
}
if ($this->acl_check_edit('Users_Controller','password',$user_data->member_id) && !($user_data->is_user_in_aro_group($user_data->id, Aro_group_Model::ADMINS) && $user_data->id != $this->user_id ))
$links[] = html::anchor('users/change_password/'.$user_data->id,__('Change password'), array('class' => 'popup_link'));
if ($this->acl_check_edit('Users_Controller', 'application_password', $user_data->member_id))
$links[] = html::anchor('users/change_application_password/'.$user_data->id, __('Change application password'), array('class' => 'popup_link'));
if ($this->acl_check_view('Login_logs_Controller', 'logs', $user_data->member_id))
$links[] = html::anchor('users/show_login_logs/'.$user_data->id, __('Show login logs'));
echo implode (' | ', $links)
echo implode (' | ', $links);
?>
<br /><br />
......
<td><?php echo $contact->value ?></td>
</tr>
<?php endforeach; ?>
<?php if ($this->acl_check_view(get_class($this),'additional_contacts',$user_data->member_id)) { ?>
<?php if ($this->acl_check_view('Users_Controller','additional_contacts',$user_data->member_id)) { ?>
<tr>
<td colspan="2"><?php echo html::anchor('contacts/show_by_user/'.$user_data->id,__('Administrate additional contacts')) ?></td>
</tr>
......
</table>
<table class="extended" cellspacing="0" style="float:left; margin-left:10px; width:360px;">
<?php if ($user_data->id != 1) { ?>
<?php if (Settings::get('voip_enabled') && $user_data->id != 1) { ?>
<tr>
<th colspan="2"><?php echo __('VoIP') ?></th>
</tr>
......
</tr>
</table>
<?php if ($admin_devices_grid || $engineer_devices_grid || $comments_grid): ?>
<div class="clear"></div>
<br /><br />
<?php if ($this->acl_check_view('Devices_Controller', 'devices')): ?>
<?php echo __('Show').': ' ?>
<?php if ($admin_devices_grid): ?>
<a href="#admin-devices" id="admin-devices" class="switch-link"><?php echo __('Devices with user as admin') ?></a> |
<?php endif ?>
<?php if ($engineer_devices_grid): ?>
<a href="#engineer-devices" id="engineer-devices" class="switch-link"><?php echo __('Devices with user as engineer') ?></a> |
<?php endif ?>
<?php if ($comments_grid): ?>
<a href="#comments" id="comments" class="switch-link"><?php echo __('Comments of user') ?></a>
<?php endif ?>
<br /><br />
<?php if (!empty($admin_devices_grid)): ?>
<div id="admin-devices-box" class="switch-box">
<h3><?php echo __('Admin of devices') ?></h3>
<?php echo $admin_devices_grid ?>
</div>
<?php endif ?>
<?php if (!empty($engineer_devices_grid)): ?>
<div id="engineer-devices-box" class="switch-box">
<h3><?php echo __('Engineer of devices') ?></h3>
<br />
<?php echo $engineer_devices_grid ?>
</div>
<?php endif ?>
<?php if (!empty($comments_grid)): ?>
<div id="comments-box" class="switch-box">
<h3><?php echo __('Comments') ?></h3>
<br />
<?php echo $comments_grid ?>
</div>
<?php endif ?>
<?php endif ?>

Také k dispozici: Unified diff