Changeset 826 for trunk/Modules/User


Ignore:
Timestamp:
Apr 16, 2016, 9:58:49 PM (9 years ago)
Author:
chronos
Message:
  • Added: Show Description in list of Contacts in user settings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/UserPage.php

    r825 r826  
    1717  function ShowContacts()
    1818  {
    19     $Query = 'SELECT `Contact`.`Value`, (SELECT `Name` FROM `ContactCategory` WHERE `ContactCategory`.`Id` = `Contact`.`Category`) AS `Category` '.
     19    $Query = 'SELECT `Contact`.`Value`, `Contact`.`Description`, (SELECT `Name` FROM `ContactCategory` WHERE `ContactCategory`.`Id` = `Contact`.`Category`) AS `Category` '.
    2020      'FROM `Contact` WHERE `User` = '.
    2121      $this->System->User->User['Id'];
     
    3131      array('Name' => 'Category', 'Title' => 'Skupina'),
    3232      array('Name' => 'Value', 'Title' => 'Hodnota'),
     33      array('Name' => 'Description', 'Title' => 'Popis'),
    3334    );
    3435    $Order = GetOrderTableHeader('Contacts', $TableColumns, 'Value', 0);
     
    4041    while($Contact = $DbResult->fetch_assoc())
    4142    {
    42       $Output .= '<tr><td>'.$Contact['Category'].'</td>'.
    43       '<td>'.$Contact['Value'].'</td></tr>';
     43      $Output .= '<tr>'.
     44      '<td>'.$Contact['Category'].'</td>'.
     45      '<td>'.$Contact['Value'].'</td>'.
     46      '<td>'.$Contact['Description'].'</td>'.
     47      '</tr>';
    4448    }
    4549    $Output .= '</table>';
Note: See TracChangeset for help on using the changeset viewer.