Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
284a18a4
Commit
284a18a4
authored
Jan 12, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more links
parent
3105b752
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
0 deletions
+67
-0
index.php
src/index/index.php
+67
-0
No files found.
src/index/index.php
0 → 100644
View file @
284a18a4
<!doctype html>
<html
lang=
"en"
>
<head>
<title>
Elphel 393
</title>
<meta
charset=
"utf-8"
/>
<link
rel=
"stylesheet"
href=
"js/bootstrap/css/bootstrap.css"
>
<style>
.port_window
{
padding
:
5px
;
background
:
rgba
(
240
,
240
,
240
,
0.5
);
border-radius
:
2px
;
}
.img_window
{
border
:
1px
solid
rgba
(
210
,
210
,
210
,
1
);
}
table
td
{
padding-right
:
10px
;
}
</style>
</head>
<body>
<div
style=
'padding:10px'
>
<?php
$port0
=
2323
;
$path
=
"/sys/devices/soc0/elphel393-detect_sensors@0"
;
$table_contents
=
""
;
$port_links
=
""
;
for
(
$i
=
0
;
$i
<
4
;
$i
++
){
$sensor
=
$path
.
"/sensor
{
$i
}
0"
;
if
(
is_file
(
$sensor
)){
$c
=
trim
(
file_get_contents
(
$sensor
));
if
(
$c
!=
"none"
){
$href
=
"http://
{
$_SERVER
[
"SERVER_ADDR"
]
}
:"
.
(
$port0
+
$i
)
.
"/bimg"
;
$table_contents
.=
"<td>"
;
$table_contents
.=
"<div class='port_window img_window'>"
;
$table_contents
.=
"<div><a href=
\"
$href
\"
><img class='img_window' src='
$href
' style='width:300px'/></a></div>"
;
$table_contents
.=
"<div style='text-align:center;'>port
$i
</div>"
;
$table_contents
.=
"</div>"
;
$table_contents
.=
"</td>"
;
$port_links
.=
"<li><a href=
\"
#
\"
onclick=
\"
window.open('camvc.html?sensor_port=
$i
&reload=0', 'port 0','menubar=0, width=800, height=600, toolbar=0, location=0, personalbar=0, status=0, scrollbars=1')
\"
>port
$i
</a></li>
\n
"
;
}
}
}
echo
"<table><tr>
$table_contents
</tr></table>
\n
"
;
echo
"<br/>"
;
echo
"Camera Control Interface<ul>
$port_links
</ul>
\n
"
;
?>
<br
/>
<a
title=
"autocampars.php"
href=
"autocampars.php"
>
Parameter Editor
</a><br
/>
<a
title=
"camogmgui.php"
href=
"camogmgui.php"
>
Recorder
</a><br
/>
<a
title=
"hwmon.html"
href=
"hwmon.html"
>
Temperature monitor
</a><br
/>
<br
/>
<a
title=
"docs"
href=
"http://wiki.elphel.com/index.php?title=Tmp_manual"
>
User manual
</a><br
/>
</div>
<body>
</html>
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