Skip to content

Commit

Permalink
Merge pull request #1 from LoneWolf2011/OTAP
Browse files Browse the repository at this point in the history
v1.1.0-TR2
  • Loading branch information
MillieOfzo authored Mar 10, 2018
2 parents cf257cb + 1fc4092 commit a80fced
Show file tree
Hide file tree
Showing 19 changed files with 1,476 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DashboardPlus

- Copy env.example.ini to env.ini
- Edit env.ini with DB settings for local DB and/or SCS DB
- Edit env.ini with DB settings for local DB and/or SCS DB, and local application settings
251 changes: 251 additions & 0 deletions css/dash_custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
@media(min-width:768px){
.navbar-right{float:right!important;margin-right:-15px;}
.navbar-right .dropdown-menu{right:0;left:auto}
.navbar-right .dropdown-menu-left{right:auto;left:0}
}
.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.dashboard-header{/* height:60px; */border-bottom:2px solid #191919;margin-bottom:0;}.dashboard-header h1{float:left;color:#f58025;margin:10px 0 0 0;font-size:28px}.dashboard-header .dropdown-toggle{color:#fff;font-size:32px}
.navbar-nav>li>a{padding-top:10px!important}.navbar-nav>li>a:hover{background-color:transparent}

#AboutPLODashboardModel{color:#000}
#AboutPLODashboardModel .modal-body{padding-left:32px;height:206px}
#AboutPLODashboardModel h3{margin-top:7px; color: #f58025; font-size: 20p; font-weight:bold; }
#AboutPLODashboardModel .about-logo{float:left;width:230px;height:200px}
#AboutPLODashboardModel .about-text{float:left}

.table-primary {
color: #fff;
background-color: #337ab7;
border-color: #2e6da4;
}
.table-info {
color: #fff;
background-color: #5bc0de;
border-color: #46b8da;
}
.table-success {
color: #fff;
background-color: #5cb85c;
border-color: #4cae4c;
}
.table-warning {
color: #fff;
background-color: #f0ad4e;
border-color: #eea236;
}
.table-danger {
color: #fff;
background-color: #d9534f;
border-color: #d43f3a;
}


.btn-lg {
font-size: 14px;
padding: 12px; }

.dashboard-header{
height:60px;
border-bottom:2px solid #191919;
margin-bottom:0;}
.dashboard-header h1{
float:left;
color:#f58025;
margin:10px 0 0 0;
font-size:28px;}



/* ********* widgets *************************************** */
ul.msg_list li {
background: rgba(119, 119, 119, 0.52);
padding: 5px;
display: -ms-flexbox;
display: flex;
margin: 6px 6px 0;
width: 96% !important;
border-radius: 5px; }

ul.msg_list li:last-child {
margin-bottom: 6px;
padding: 10px;
border-radius: 5px;}

ul.msg_list li a {
margin-right: 20px;
padding: 3px 5px !important; }

ul.msg_list li a .image img {
border-radius: 2px 2px 2px 2px;
-webkit-border-radius: 2px 2px 2px 2px;
float: left;
margin-right: 10px;
width: 11%; }

ul.msg_list li a .time {
font-size: 11px;
font-style: italic;
font-weight: bold;
position: absolute;
right: 35px; }

ul.msg_list li a .message {
display: block !important;
font-size: 11px;
color: white;}

ul.msg_list li a .name{
color:#f58025;
}

/** ------------------------------------------ **/
.blue {
color: #3498DB; }

.purple {
color: #9B59B6; }

.green {
color: #1ABB9C; }

.aero {
color: #9CC2CB; }

.red {
color: #E74C3C; }

.dark {
color: #34495E; }

.border-blue {
border-color: #3498DB !important; }

.border-purple {
border-color: #9B59B6 !important; }

.border-green {
border-color: #1ABB9C !important; }

.border-aero {
border-color: #9CC2CB !important; }

.border-red {
border-color: #E74C3C !important; }

.border-dark {
border-color: #34495E !important; }

.bg-white {
background: #fff !important;
border: 1px solid #fff !important;
color: #73879C; }

.bg-green {
background: #1ABB9C !important;
border: 1px solid #1ABB9C !important;
color: #fff; }

.bg-red {
background: #E74C3C !important;
border: 1px solid #E74C3C !important;
color: #fff; }

.bg-blue {
background: #3498DB !important;
border: 1px solid #3498DB !important;
color: #fff; }

/** --------------BOOTSTRAP------------ **/
.bg-dark-green {
background: #007E33 !important;
border: 1px solid #007E33 !important;
color: #fff; }

.bg-gray {
background: #9e9e9e !important;
border: 1px solid #9e9e9e !important;
color: #fff; }

.bg-white {
background: #eeeeee !important;
border: 1px solid #eeeeee !important;
color: #333; }

.bg-yellow {
background: #ffff8d !important;
border: 1px solid #ffff8d !important;
color: #333; }

.bg-primary {
background: #337ab7 !important;
border: 1px solid #337ab7 !important;
color: #fff; }

.bg-success {
background: #5cb85c !important;
border: 1px solid #5cb85c !important;
color: #fff; }

.bg-warning {
background: #f0ad4e !important;
border: 1px solid #f0ad4e !important;
color: #333; }

.bg-danger {
background: #d9534f !important;
border: 1px solid #d9534f !important;
color: #fff; }

.bg-info {
background: #5bc0de !important;
border: 1px solid #5bc0de !important;
color: #fff; }

.bg-orange {
background: #F39C12 !important;
border: 1px solid #F39C12 !important;
color: #fff; }

.bg-purple {
background: #9B59B6 !important;
border: 1px solid #9B59B6 !important;
color: #fff; }

.bg-blue-sky {
background: #50C1CF !important;
border: 1px solid #50C1CF !important;
color: #fff; }

/** --------------C3 CHARTS------------ **/
.c3-axis-y text {
fill: white;
font-size:12px;
}
.c3-axis-x text {
font-size:12px;
fill:white;
}
.c3-legend-item {
font-size:20px;
fill: white;
}
.c3-chart-arc path {
stroke: #666;
}
.c3-ygrid-line.gridgreen line {
stroke: green;
}
.c3-ygrid-line.gridorange line {
stroke: orange;
}
.c3-ygrid-line.gridred line {
stroke: red;
}

h2 {
font-family: inherit;
font-weight: 500;
font-size: 30px;
line-height: 1.1;
color: white;
}
5 changes: 5 additions & 0 deletions js/plugins/c3/c3.min.js

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions js/plugins/d3/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright 2010-2016 Mike Bostock
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the author nor the names of contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5 changes: 5 additions & 0 deletions js/plugins/d3/d3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/classes/class.home.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getMarkers($getall = false, $updatetime=''){

$is_letter = (ctype_alpha(substr(getCategory($row['SCS_Account_Nmbr']),0,1)) == true) ? strtoupper(substr(getCategory($row['SCS_Account_Nmbr']),0,1)): strtoupper('A');
$locs[$row['SCS_Account_Nmbr']] = array(
'info' => '<div><b>'.$row['SCS_Account_Address_Name'].'</b><br>'.$row['SCS_Account_Address_Address'].'<br><a class="text-info '.$err_class.'" onclick="popupWindow(\''.URL_ROOT.'view/location/?'.$row['SCS_Account_Nmbr'].'\', \'location\', 1980, 1080, ); return false;">#'.$row['SCS_Account_Nmbr'].'</a><br><b>'.$conn_status.'</b>'.$device_status.'</div>',
'info' => '<div><b>'.$row['SCS_Account_Address_Name'].'</b><br>'.$row['SCS_Account_Address_Address'].'<br><a class="text-info '.$err_class.'" onclick="popupWindow(\''.URL_ROOT.'view/location/?'.$row['SCS_Account_Nmbr'].'\', \'location\', 1980, 1080 ); return false;">#'.$row['SCS_Account_Nmbr'].'</a><br><b>'.$conn_status.'</b>'.$device_status.'</div>',
'path_status' => $path_status,
'first_char' => $is_letter,
'lat' => $row['Latitude'],
Expand Down
Loading

0 comments on commit a80fced

Please sign in to comment.