Changeset 1079


Ignore:
Timestamp:
Mar 14, 2006, 10:31:31 PM (18 years ago)
Author:
rub
Message:

Step 2 improvement issue 0000127:

o Allow to chage high property on user list
o Set initial value for the 2 default users

+ Correction of permissions.png in user list

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/user_list.php

    r1072 r1079  
    9797                u.'.$conf['user_fields']['username'].' AS username,
    9898                u.'.$conf['user_fields']['email'].' AS email,
    99                 ui.status
     99                ui.status,
     100                ui.enabled_high
    100101  FROM '.USERS_TABLE.' AS u
    101102    INNER JOIN '.USER_INFOS_TABLE.' AS ui
     
    273274      foreach ($page['filtered_users'] as $filter_key => $filter_user)
    274275      {
    275         if (in_array($filter_user['id'], $collection))
    276         {
    277           unset($page['filtered_users'][$filter_key]);
    278         }
     276        if (in_array($filter_user['id'], $collection))
     277        {
     278          unset($page['filtered_users'][$filter_key]);
     279        }
    279280      }
    280281    }
     
    337338    array('nb_image_line', 'nb_line_page', 'template', 'language',
    338339          'recent_period', 'maxwidth', 'expand', 'show_nb_comments',
    339           'maxheight', 'status');
    340  
    341   $true_false_fields = array('expand', 'show_nb_comments');
     340          'maxheight', 'status', 'enabled_high');
     341 
     342  $true_false_fields = array('expand', 'show_nb_comments', 'enabled_high');
    342343 
    343344  foreach ($formfields as $formfield)
     
    452453    'L_ORDER_BY' => $lang['order_by'],
    453454    'L_ACTIONS' => $lang['actions'],
     455    'L_PROPERTIES' => $lang['properties'],
    454456    'L_PERMISSIONS' => $lang['permissions'],
    455457    'L_USERS_LIST' => $lang['title_liste_users'],
     
    802804      'STATUS' => $lang['user_status_'.$local_user['status']],
    803805      'EMAIL' => isset($local_user['email']) ? $local_user['email'] : '',
    804       'GROUPS' => $groups_string
     806      'GROUPS' => $groups_string,
     807      'PROPERTIES' => (isset($local_user['enabled_high']) and ($local_user['enabled_high'] == 'true')) ? $lang['is_high_enabled'] : $lang['is_high_disabled']
    805808      )
    806809    );
  • trunk/include/functions_user.inc.php

    r1075 r1079  
    452452      'maxwidth' => $conf['default_maxwidth'],
    453453      'maxheight' => $conf['default_maxheight'],
    454       'registration_date' => $dbnow
     454      'registration_date' => $dbnow,
     455      'enabled_high' => $conf['newuser_default_enabled_high']
    455456      );
    456457
  • trunk/install.php

    r1077 r1079  
    186186$prefixeTable = $table_prefix;
    187187include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
     188@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
    188189include(PHPWG_ROOT_PATH . 'include/constants.php');
    189190include(PHPWG_ROOT_PATH . 'include/functions.inc.php');
     
    310311    $query = '
    311312INSERT INTO '.USER_INFOS_TABLE.'
    312   (user_id,status,language)
     313  (user_id,status,language,enabled_high)
    313314  VALUES
    314   (1, \'webmaster\', \''.$language.'\')
     315  (1, \'webmaster\', \''.$language.'\',\''.$conf['newuser_default_enabled_high'].'\')
    315316;';
    316317    mysql_query($query);
     
    334335    $query = '
    335336INSERT INTO '.USER_INFOS_TABLE.'
    336   (user_id,status,language)
     337  (user_id,status,language,enabled_high)
    337338  VALUES
    338   (2, \'guest\', \''.$language.'\')
     339  (2, \'guest\', \''.$language.'\',\'false\')
    339340;';
    340341    mysql_query($query);
  • trunk/language/en_UK.iso-8859-1/admin.lang.php

    r1071 r1079  
    162162$lang['You cannot move a category in its own sub category'] = 'You cannot move a category in its own sub category';
    163163$lang['You need to confirm deletion'] = 'You need to confirm deletion';
    164 $lang['actions'] = 'actions';
     164$lang['actions'] = 'Actions';
     165$lang['properties'] = 'Properties';
     166$lang['is_high_enabled'] = 'High definition';
     167$lang['is_high_disabled'] = '';
     168$lang['enabled_high'] = 'High definition enabled';
    165169$lang['add keywords'] = 'add keywords';
    166170$lang['associate to category'] = 'associate to category';
  • trunk/language/en_UK.iso-8859-1/help/user_list.html

    r862 r1079  
    2626
    2727  <li>modify display properties</li>
     28 
     29  <li>modify additional properties</li>
    2830
    2931</ul>
  • trunk/language/fr_FR.iso-8859-1/admin.lang.php

    r1071 r1079  
    162162$lang['You cannot move a category in its own sub category'] = 'Vous ne pouvez pas déplacer une catégorie dans sa propre sous-catégorie';
    163163$lang['You need to confirm deletion'] = 'Vous devez confirmer la suppression';
    164 $lang['actions'] = 'actions';
     164$lang['actions'] = 'Actions';
     165$lang['properties'] = 'Propriétés';
     166$lang['is_high_enabled'] = 'Haute définition';
     167$lang['is_high_disabled'] = '';
     168$lang['enabled_high'] = 'Haute définition actif';
    165169$lang['add keywords'] = 'ajouter des mots-clef';
    166170$lang['associate to category'] = 'associer à la catégorie';
  • trunk/language/fr_FR.iso-8859-1/help/user_list.html

    r889 r1079  
    2828  <li>modifier les propriétés d'affichage</li>
    2929
     30  <li>modifier les propriétés annexes</li>
     31
    3032</ul>
    3133
  • trunk/template/yoga/admin/user_list.tpl

    r980 r1079  
    8181    <th>{L_EMAIL}</th>
    8282    <th>{lang:Groups}</th>
     83    <th>{L_PROPERTIES}</th>
    8384    <th>{L_ACTIONS}</th>
    8485  </tr>
     
    9091    <td>{user.EMAIL}</td>
    9192    <td>{user.GROUPS}</td>
     93    <td>{user.PROPERTIES}</td>
    9294    <td style="text-align:center;">
    93       <a href="{user.U_PERM}"><img src="./template/yoga/theme/permissions.png" class="button" style="border:none" alt="{L_PERMISSIONS}" title="{L_PERMISSIONS}" /></a>
     95      <a href="{user.U_PERM}"><img src="{themeconf:icon_dir}/permissions.png" class="button" style="border:none" alt="{L_PERMISSIONS}" title="{L_PERMISSIONS}" /></a>
    9496    </td>
    9597  </tr>
     
    158160</fieldset>
    159161
     162<!-- Properties -->
     163<fieldset>
     164  <legend>{L_PROPERTIES}</legend>
     165
     166  <table>
     167
     168    <tr>
     169      <td>{lang:enabled_high}</td>
     170      <td>
     171        <label><input type="radio" name="enabled_high" value="leave" checked="checked" /> {lang:leave}</label>
     172        / {lang:set to}
     173        <label><input type="radio" name="enabled_high" value="true"  {ENABLED_HIGH_YES} />{L_YES}</label>
     174        <label><input type="radio" name="enabled_high" value="false" {ENABLED_HIGH_NO}  />{L_NO}</label>
     175      </td>
     176    </tr>
     177
     178  </table>
     179
     180</fieldset>
     181
     182<!-- preference -->
    160183<fieldset>
    161184  <legend>{lang:Preferences}</legend>
Note: See TracChangeset for help on using the changeset viewer.