Хранилища Subversion ant

Редакция

Редакция 246 | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 246 Редакция 247
Строка 834... Строка 834...
834
        break;
834
        break;
835
        case '23':
835
        case '23':
836
            // Управление темами
836
            // Управление темами
837
                $display = "<div class='modulename'>".$menu_item[$mode]["title"]." :: <a href='admin.php?mode=".$mode."'>".$menu_item[$mode]["item"]."</a></div>";
837
                $display = "<div class='modulename'>".$menu_item[$mode]["title"]." :: <a href='admin.php?mode=".$mode."'>".$menu_item[$mode]["item"]."</a></div>";
838
                if (isset($_GET['chtheme'])){
838
                if (isset($_GET['chtheme'])){
839
                $chtheme = $secure->wrapStr($_GET["chtheme"]);
839
                    $chtheme = $secure->wrapStr($_GET["chtheme"]);
-
 
840
                    $chicon  = $secure->wrapStr($_GET["chicon"]);
840
                $theme->SetTheme($chtheme,$db);
841
                    $theme->SetTheme($chtheme,$db);
-
 
842
                    $theme->setIcon($chicon,$db);
841
                $display.='<p style="color:red;">Тема измененна</p>';
843
                    $display.='<p style="color:red;">Тема измененна</p>';
-
 
844
                   
842
                }
845
                }
843
                        $themename = $theme->getThemeName($core,$db); // TODO нарисавать интерфейс поюзабельнее
846
                $themename = $theme->getThemeName($core,$db); // TODO нарисавать интерфейс поюзабельнее
844
                $display.= '<b>Текущая тема: '.$themename.'</b><br>';
847
                $display.= '<b>Текущая тема: '.$themename.'</b><br>';
845
                $display.= '<form action="admin.php" method="GET">';
848
                $display.= '<form action="admin.php" method="GET">';
846
                $display.= '<input type="hidden" name="mode" value="23">';
849
                $display.= '<input type="hidden" name="mode" value="23">';
-
 
850
                $display.= 'Тема:';
847
                $display.= '<select name="chtheme">';
851
                $display.= '<select id="cht" name="chtheme">';
848
                        $dis=$theme->getThemesList();
852
                $dis=$theme->getThemesList('style');
849
                foreach ($dis as $thm){
853
                foreach ($dis as $thm){
850
                            $display.= '<option>'.$thm.'</option>';//TODO add 'selected' to theme
854
                            $display.= '<option>'.$thm.'</option>';//TODO add 'selected' to theme
851
                    }
855
                    }
-
 
856
                $display.= '</select><br>Набор иконок:';
-
 
857
                $display.= '<select id="chi" name="chicon">';
-
 
858
                $dis=$theme->getThemesList('icon');
-
 
859
                foreach ($dis as $thm){
-
 
860
                    $display.= '<option>'.$thm.'</option>';//TODO add 'selected' to theme
-
 
861
                }
852
                    $display.= '</select><br>';
862
                    $display.= '</select><br>';
853
                    $display.= '<button type="submit">Сменить тему</button>';
863
                    $display.= '<button type="submit">Сменить тему</button>';
854
                    $display.= '</form>';
864
                    $display.= '</form>';
855
            break;
865
            break;
856
//          }
866
//          }