Хранилища Subversion ant

Сравнить редакции

Не учитывать пробелы Редакция 277 → Редакция 278

/trunk/admin.php
30,7 → 30,7
 
// Admin file/interface
$admin = "./admin.php";
$imgdir = "./themes/icons/".$core->getSetting('icons',$db);
$imgdir = "./themes/icons/".$theme->getIconSetName($core,$db);
 
switch ($err) {
case '1':
898,29 → 898,38
$theme->SetTheme($chtheme,$db);
$theme->setIcon($chicon,$db);
$display.='<p style="color:red;">Тема измененна</p>';
}
$themename = $theme->getThemeName($core,$db); // TODO нарисавать интерфейс поюзабельнее
$display.= '<b>Текущая тема: '.$themename.'</b><br>';
$display.= '<form action="admin.php" method="GET">';
$themename = $theme->getThemeName($core,$db);
$iconsname = $theme->getIconSetName($core,$db);
 
$display.= '<form action="admin.php" method="GET">';
$display.= '<input type="hidden" name="mode" value="23">';
$display.= 'Тема:';
$display.= '<select id="cht" name="chtheme">';
$display.='<table>';
$display.='<tr><td>Текущий стиль:</td><td><b>'.$themename.'</b></td><td>';
$display.= '<select id="cht" name="chtheme">';
$dis=$theme->getThemesList('style');
foreach ($dis as $thm){
$display.= '<option>'.$thm.'</option>';//TODO add 'selected' to theme
if($themename==$thm){
$display.= '<option selected>'.$thm.'</option>';
}else{
$display.= '<option>'.$thm.'</option>';
}
}
$display.= '</select><br>Набор иконок:';
$display.= '</select></td></tr>';
$display.='<tr><td>Текущий набор иконок:</td><td><b>'.$iconsname.'</b></td><td>';
$display.= '<select id="chi" name="chicon">';
$dis=$theme->getThemesList('icon');
foreach ($dis as $thm){
$display.= '<option>'.$thm.'</option>';//TODO add 'selected' to theme
if($iconsname==$thm){
$display.= '<option selected>'.$thm.'</option>';
}else{
$display.= '<option>'.$thm.'</option>';
}
}
$display.= '</select><br>';
$display.= '</select></td></tr></table>';
$display.= '<button type="submit">Сменить тему</button>';
$display.= '</form>';
break;
// }
break;
}