Revision 1332
Added by Luisehahne over 15 years ago
| index.php | ||
|---|---|---|
| 133 | 133 |
|
| 134 | 134 |
// Insert language values |
| 135 | 135 |
$template->set_block('main_block', 'language_list_block', 'language_list');
|
| 136 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'language' order by name");
|
|
| 136 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'language' ORDER BY name");
|
|
| 137 | 137 |
if($result->numRows() > 0) {
|
| 138 | 138 |
while($addon = $result->fetchRow()) {
|
| 139 | 139 |
$l_codes[$addon['name']] = $addon['directory']; |
| ... | ... | |
| 228 | 228 |
|
| 229 | 229 |
// Insert templates |
| 230 | 230 |
$template->set_block('main_block', 'template_list_block', 'template_list');
|
| 231 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function != 'theme' order by name");
|
|
| 231 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function != 'theme' ORDER BY name");
|
|
| 232 | 232 |
if($result->numRows() > 0) {
|
| 233 | 233 |
while($addon = $result->fetchRow()) {
|
| 234 | 234 |
$template->set_var('FILE', $addon['directory']);
|
| ... | ... | |
| 241 | 241 |
|
| 242 | 242 |
// Insert backend theme |
| 243 | 243 |
$template->set_block('main_block', 'theme_list_block', 'theme_list');
|
| 244 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function = 'theme' order by name");
|
|
| 244 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function = 'theme' ORDER BY name");
|
|
| 245 | 245 |
if($result->numRows() > 0) {
|
| 246 | 246 |
while($addon = $result->fetchRow()) {
|
| 247 | 247 |
$template->set_var('FILE', $addon['directory']);
|
| ... | ... | |
| 258 | 258 |
$module_name=$TEXT['NONE']; |
| 259 | 259 |
$template->set_var('FILE', $file);
|
| 260 | 260 |
$template->set_var('NAME', $module_name);
|
| 261 |
if((!defined('WYSIWYG_EDITOR') OR $file == WYSIWYG_EDITOR) ? $selected = ' selected="selected"' : $selected = '');
|
|
| 261 |
if((!defined('WYSIWYG_EDITOR') || $file == WYSIWYG_EDITOR) ? $selected = ' selected="selected"' : $selected = '');
|
|
| 262 | 262 |
$template->set_var('SELECTED', $selected);
|
| 263 | 263 |
$template->parse('editor_list', 'editor_list_block', true);
|
| 264 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'wysiwyg'");
|
|
| 264 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'wysiwyg' ORDER BY name");
|
|
| 265 | 265 |
if($result->numRows() > 0) |
| 266 | 266 |
{
|
| 267 | 267 |
while($addon = $result->fetchRow()) |
| ... | ... | |
| 288 | 288 |
)); |
| 289 | 289 |
|
| 290 | 290 |
$template->parse('search_template_list', 'search_template_list_block', true);
|
| 291 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function = 'template' order by name");
|
|
| 291 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function = 'template' ORDER BY name");
|
|
| 292 | 292 |
|
| 293 | 293 |
if($result->numRows() > 0) |
| 294 | 294 |
{
|
Also available in: Unified diff
Ticket #995 update jquery-ui.css and images (Tks to Ruebenwurzel)
add languages files for jquery datepicker (tks to Ralf)
Ticket #994 WYSIWYG editors sorted by name (tks to Aldus)