Last change
on this file since 27564 was
27564,
checked in by rvelices, 10 years ago
|
autocomplete - privacy level for custom suggestions
|
File size:
614 bytes
|
Line | |
---|
1 | <?php |
---|
2 | defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | $query = 'SELECT * FROM '.RVAC_SUGGESTIONS.' |
---|
5 | ORDER BY name'; |
---|
6 | |
---|
7 | $suggestions = query2array($query); |
---|
8 | |
---|
9 | $roots = rvac_get_url_roots(); |
---|
10 | foreach($suggestions as &$suggestion) |
---|
11 | rvac_custom_link($suggestion, $roots); |
---|
12 | |
---|
13 | $template->assign('suggestions', $suggestions); |
---|
14 | foreach ($conf['available_permission_levels'] as $level) |
---|
15 | { |
---|
16 | if (0 == $level) |
---|
17 | $label = l10n('Everybody'); |
---|
18 | else |
---|
19 | $label = l10n( sprintf('Level %d', $level) ); |
---|
20 | $options[$level] = $label; |
---|
21 | } |
---|
22 | $template->assign('available_permission_levels', $options); |
---|
23 | |
---|
24 | $template->assign('RVAC_ID', RVAC_ID); |
---|
25 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.