Project

General

Profile

Bug #3272 » 3272_alt.patch

krileon, 15 February 2012 15:15

View differences:

administrator/components/com_comprofiler/view/view.users.php
}
if ( checkJversion() >= 2 ) {
?>
<div class="fltrt">
<div>
<?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')), 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)), 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')), true) . '</a>';
?>
</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>
<?php }
<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>
<?php } echo '</div>';
} ?>
</td>
<td><?php echo htmlspecialchars( $row->username ); ?></td>
(2-2/8)