Project

General

Profile

Bug #3272 » 3272_alt2.patch

krileon, 15 February 2012 17:26

View differences:

administrator/components/com_comprofiler/view/view.users.php
<?php
if ( version_compare( checkJversion( 'release' ), '2.5', '>=' ) && $row->note_count ) {
// Filter notes:
echo '<a href="' . JRoute::_( 'index.php?option=com_users&view=notes&filter_search=uid:' . (int) $row->id ) . '">'
. JHtml::image( 'images/filter_16.png', 'COM_USERS_NOTES', array( 'title' => JText::_('COM_USERS_FITLER_NOTES'), 'height' => '16', 'width' => '16' ), true) . '</a>';
echo '<a href="' . JRoute::_( 'index.php?option=com_users&view=notes&filter_search=uid:' . (int) $row->id) . '">'
. JHtml::_( 'image', 'admin/filter_16.png', 'COM_USERS_NOTES', array( 'title' => JText::_( 'COM_USERS_FILTER_NOTES' ), 'height' => '16', 'width' => '16' ), true ) . '</a>';
// Show notes:
echo '<a class="modal" href="' . JRoute::_( 'index.php?option=com_users&view=notes&tmpl=component&layout=modal&u_id=' . (int) $row->id ) . '"' .
' rel="{handler: \'iframe\', size: {x: 800, y: 450}}">' .
JHtml::image( 'images/note_16.png', 'COM_USERS_NOTES', array( 'title' => JText::plural( 'COM_USERS_N_USER_NOTES', $row->note_count ), 'height' => '16', 'width' => '16' ), true ) . '</a>';
echo '<a class="modal"' .
' href="' . JRoute::_( 'index.php?option=com_users&view=notes&tmpl=component&layout=modal&u_id=' . (int) $row->id) . '"' .
' rel="{handler: \'iframe\', size: {x: 800, y: 450}}">' .
JHtml::_( 'image', 'menu/icon-16-user-note.png', 'COM_USERS_NOTES', array( 'title' => JText::plural( 'COM_USERS_N_USER_NOTES', $row->note_count ), 'height' => '16', 'width' => '16' ), true ) . '</a>';
}
echo '<a href="' . JRoute::_( 'index.php?option=com_users&task=note.add&u_id=' . (int) $row->id ) . '">'
. JHtml::image( 'images/note_add_16.png', 'COM_USERS_NOTES', array( 'title' => JText::_( 'COM_USERS_ADD_NOTE' ), 'height' => '16', 'width' => '16' ), true ) . '</a>';
echo '<a href="' . JRoute::_( 'index.php?option=com_users&task=note.add&u_id=' . (int) $row->id) . '">'
. JHtml::_( 'image', 'admin/note_add_16.png', 'COM_USERS_NOTES', array( 'title' => JText::_( 'COM_USERS_ADD_NOTE' ), 'height' => '16', 'width' => '16' ), true ) . '</a>';
?>
</div>
</div><div class="cbClr"></div>
<?php
if ( $_CB_framework->acl->amIaSuperAdmin() && ( $_CB_framework->getCfg( 'debug' ) ) ) { ?>
<div class="fltrt"><div class="button2-left smallsub"><div class="blank"><a href="<?php echo JRoute::_( 'index.php?option=com_users&view=debuguser&user_id=' . (int) $row->id );?>">
<?php echo JText::_('COM_USERS_DEBUG_USER');?></a></div></div></div>
<div><div class="button2-left smallsub"><div class="blank"><a href="<?php echo JRoute::_( 'index.php?option=com_users&view=debuguser&user_id=' . (int) $row->id );?>">
<?php echo JText::_( 'COM_USERS_DEBUG_USER' );?></a></div></div></div>
<?php }
} ?>
</td>
(7-7/8)