Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2127

Přidáno uživatelem David Raška před asi 11 roky(ů)

Opravy:
- Nahrazeni volani get_class($this) skutecnymi jmeny controlleru v pohledech

Zobrazit rozdíly:

freenetis/branches/1.1/application/views/address_points/show.php
<h2><?php echo __('Address point detail') . ' ' . $address_point->name ?></h2><br />
<?php
if ($gps == '' && $this->acl_check_edit(get_class($this), 'address_point'))
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'));
freenetis/branches/1.1/application/views/devices/show.php
<th><?php echo __('Type') ?></th>
<td><?php echo $device_type ?></td>
</tr>
<?php if ($this->acl_check_view(get_class($this), 'login')): ?>
<?php if ($this->acl_check_view('Devices_Controller', 'login')): ?>
<tr>
<th><?php echo __('Login name') ?></th>
<td><?php echo $device->login ?></td>
</tr>
<?php endif ?>
<?php if ($this->acl_check_view(get_class($this), 'password')): ?>
<?php if ($this->acl_check_view('Devices_Controller', 'password')): ?>
<tr>
<th><?php echo __('Password') ?></th>
<td><?php echo $device->password ?></td>
......
<!-- device admins -->
<div style="float:left; margin-left:0px;">
<?php if ($this->acl_check_view(get_class($this), 'admin', $device->user->member_id)) { ?>
<?php if ($this->acl_check_view('Devices_Controller', 'admin', $device->user->member_id)) { ?>
<h3><a id="device_admins_link" name="admins"><?php echo __('Device admins') ?>
<img src="<?php echo url::base() ?>media/images/icons/ico_<?php echo ($count_admins == 0) ? 'add' : 'minus' ?>.gif" id="device_admins_button"></a>
<?php echo help::hint('admins') ?></h3>
freenetis/branches/1.1/application/views/devices/show_by_user.php
<h3>
<a name="device_<?php echo $id ?>_link" href="<?php echo url_lang::base() ?>devices/show/<?php echo $id ?>" title="<?php echo __('Show device') ?>"><?php echo __('device') ?> <?php echo $device['name'] ?> (<?php echo $device['type'] ?>)</a>
<img src="<?php echo url::base() ?>media/images/icons/ico_minus.gif" id="device_<?php echo $id ?>_button" class="device_button">
<?php if ($this->acl_check_edit(get_class($this), 'devices', $member_id)): ?>
<?php if ($this->acl_check_edit('Devices_Controller', 'devices', $member_id)): ?>
<?php echo html::anchor('devices/edit/' . $id, html::image(array('src' => 'media/images/icons/gtk_edit.png')), array('title' => __('Edit device'))) ?>
<?php endif ?>
<?php if ($this->acl_check_delete(get_class($this), 'devices', $member_id)): ?>
<?php if ($this->acl_check_delete('Devices_Controller', 'devices', $member_id)): ?>
<?php echo html::anchor('devices/delete/' . $id, html::image(array('src' => 'media/images/icons/delete.png')), array('title' => __('Delete device'), 'class' => 'delete_link')) ?>
<?php endif ?>
</h3>
freenetis/branches/1.1/application/views/users/show.php
$links = array();
if ($this->acl_check_edit(get_class($this),'users',$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'));
if ($this->user_id == $user_data->id)
$links[] = html::anchor('user_favourite_pages/show_all', __('Favourites'));
......
{
$links[] = html::anchor('requests/show_by_user/'.$user_data->id,__('Show requests'));
}
if ($this->acl_check_edit(get_class($this),'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 ))
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'));
if ($this->acl_check_edit(get_class($this), 'application_password', $user_data->member_id))
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'));
if ($this->acl_check_view('Login_logs_Controller', 'logs', $user_data->member_id))
......
<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>

Také k dispozici: Unified diff