Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
domotikad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
domotika
domotikad
Commits
045c55b8
Commit
045c55b8
authored
Feb 13, 2014
by
nextime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Left clima menu in standard gui
parent
e95f16fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
clima.php
Web/htdocs/gui/left/clima.php
+5
-5
No files found.
Web/htdocs/gui/left/clima.php
View file @
045c55b8
<?
@
include_once
(
"../includes/common.php"
);
?>
<div
class=
"left-drawer"
>
<div
id=
"websectionlist"
class=
"panel drawer-container scrollable"
>
<a
href=
"
<?=
$BASEGUIPATH
.
"/cameras"
?>
"
data-guisubsection=
''
class=
"btn btn-block btn-default"
>
Telecamere
Home
</a>
<a
href=
"
<?=
$BASEGUIPATH
.
"/cameras"
?>
"
data-guisubsection=
''
class=
"btn btn-block btn-default"
>
Clima
Home
</a>
<?
$v
=
DB
::
query
(
"SELECT id,
button_name,position FROM mediasources WHERE websection='camera' AND active=1 ORDER BY position,id
"
);
$v
=
DB
::
query
(
"SELECT id,
name FROM thermostats WHERE active=1
"
);
$links
=
array
();
foreach
(
$v
as
$
cam
)
foreach
(
$v
as
$
the
)
{
$links
[
$
cam
[
'button_name'
]]
=
$cam
[
'id'
];
$links
[
$
the
[
'name'
]]
=
$the
[
'id'
];
}
ksort
(
$links
,
SORT_NATURAL
|
SORT_FLAG_CASE
);
foreach
(
$links
as
$k
=>
$v
)
{
?>
<a
href=
"
<?=
$BASEGUIPATH
.
"/cameras/"
.
$v
?>
"
data-guisubsection=
'
<?=
$v
?>
'
class=
"btn btn-block btn-default"
>
<?=
$k
?>
</a>
<a
href=
"
<?=
$BASEGUIPATH
.
"/cameras/"
.
$v
?>
"
data-guisubsection=
'
<?=
$v
?>
'
class=
"btn btn-block btn-default"
>
<?=
str_replace
(
"."
,
" "
,
$k
)
?>
</a>
<?
}
?>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment