Skip to content

Commit beda201

Browse files
committed
fix the default theme selection
1 parent a6a61db commit beda201

File tree

6 files changed

+12
-18
lines changed

6 files changed

+12
-18
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sre_config/config.php
2+
!sre_reports/
3+
sre_reports/*
4+
!sre_reports/shared

SmartReportingEngine/desktop.ini

Lines changed: 0 additions & 6 deletions
This file was deleted.

SmartReportingEngine/src/Engine/ReportOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ReportOptions {
2626
private $fields = array();
2727
private $records_per_page = '10';
2828
private $layout = "alignleft";
29-
private $style_name = 'blue';
29+
private $style_name = 'default';
3030
private $title = '';
3131
private $header = '';
3232
private $footer = '';

sre_config/config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
* URL : https://mysqlreports.com
88
*
99
*/
10-
define("SRE__DEFAULT__USER__", "");
10+
define("SRE__DEFAULT__USER__", "root");
1111
define("SRE__DEFAULT__PASS__", "");
1212
define("SRE__DEFAULT__HOST__", "localhost");
13-
define("SRE__DEFAULT__DB__", "");
13+
define("SRE__DEFAULT__DB__", "northwind");
1414

1515

1616
define("SRE__ALLOWED_REPORT_LANGUAGES__", json_encode(array("en",

sre_reports/shared/helpers/lib.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,11 @@
9898
$used_extension = "";
9999
$Search_Type = "";
100100
$_print_option = 0;
101-
if (!file_exists("../shared/views/layout_views/$layout.php")) {
102-
$layout = "AlignLeft";
103-
$style_name = "blue";
104-
}
101+
105102
if (!file_exists("../shared/styles/$style_name.css")) {
106-
if (strtolower($layout) != "mobile")
107-
$style_name = "blue";
108-
else
109-
$style_name = "mobile";
103+
104+
$style_name = "default";
105+
110106
}
111107

112108
if (isset($_CLEANED ['print']) && isset($_CLEANED["RequestToken"])) {

sre_reports/shared/views/main_view.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
require_once 'actions.php';
6565
require_once 'header.php';
66-
require_once "../shared/views/layout_views/$layout.php";
66+
require_once "../shared/views/layout_views/AlignLeft.php";
6767
require_once "pagger.php";
6868

6969
echo "</table>";

0 commit comments

Comments
 (0)