On the use of themes, I investigated
There are 2 files that change
1- ewcfg14.php 2 lines
define ("EW_PROJECT_STYLESHEET_FILENAME", "phpcss/demo2018.css", TRUE); // Project stylesheet file name
$EW_BODY_CLASS = "hold-transition skin-blue";
2- header.php 1 line
<link rel = "stylesheet" type = "text/css" href = "<? php echo $EW_RELATIVE_PATH?> adminlte/css/<? php echo ew_CssFile (" AdminLTE.css ")?>">
My solution is
1- Choose a theme for example blue and generate these 2 files demo2018.css AdminLTE.css
2- In folder phpcss/ rename demo2018.css >>> phpcss/demo2018-blue.css
and folder adminlte\css rename file AdminLTE.css >>> AdminLTE-blue.css
3- Choose other theme Maroon and generate again these 2 files demo2018.css AdminLTE.css
4- In folder phpcss/ rename demo2018.css >>> phpcss/demo2018-maroon.css and folder adminlte\css rename file AdminLTE.css >>> AdminLTE-maroon.css
5- so on with all the themes that you want.
6- Include this code in your project, so put this line in Server Events ->global-> all pages-> page head:
if(CurrentUserLevel() == -1) {
$EW_BODY_CLASS = "hold-transition skin-blue";
?>
<link rel="stylesheet" type="text/css" href="<?php echo $EW_RELATIVE_PATH ?>adminlte/css/<?php echo ew_CssFile("AdminLTE-blue.css") ?>">
<?php
}
else {
$EW_BODY_CLASS = "hold-transition skin-yellow";
?>
<link rel="stylesheet" type="text/css" href="<?php echo $EW_RELATIVE_PATH ?>adminlte/css/<?php echo ew_CssFile("AdminLTE-maroon.css") ?>">
<?php
}
7- Edit ewcfg14.php and comment this line
//define ("EW_PROJECT_STYLESHEET_FILENAME", "phpcss/demo2018.css", TRUE); // Project stylesheet file name
8- Edit header.php and put this code the start the file
if(CurrentUserLevel() == -1)
define("EW_PROJECT_STYLESHEET_FILENAME", "phpcss/demo2018-blue.css", TRUE); // Project stylesheet file name
else
define("EW_PROJECT_STYLESHEET_FILENAME", "phpcss/demo2018-maroon.css", TRUE); // Project stylesheet file name
It's working, the bad is the step 7 and 8 there is put manual
Somebody the solution for integrade automatic from phpmaker the step 7 and 8
The idea is that each user chooses the theme than they like the most and save in your profile.
Thank you.