mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
yweb: add screenshot to boxcontrol
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2212 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: 1fb1709a3b
Author: vanhofen <vanhofen@gmx.de>
Date: 2012-04-10 (Tue, 10 Apr 2012)
Origin message was:
------------------
- yweb: add screenshot to boxcontrol
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2212 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -90,11 +90,14 @@ function init(){
|
||||
~
|
||||
<li class="disabled" title="{=L:bc.menue.lcd_screenshot_desc_ni=}">{=L:bc.menue.lcd_screenshot=}</li>
|
||||
=}
|
||||
~=}
|
||||
{=if-equal:{=global-var-get:boxtype=}~coolstream~
|
||||
<li><a target="work" title="{=L:bc.menue.tv_screenshot_desc=}" href="Y_Tools_tvshot.yhtm">{=L:bc.menue.tv_screenshot=}</a></li>
|
||||
~=}
|
||||
{=if-equal:{=var-get:fbshot=}~true~
|
||||
<li><a target="work" title="{=L:bc.menue.osd_screenshot_desc=}" href="Y_Tools_fbshot.yhtm">{=L:bc.menue.osd_screenshot=}</a></li>
|
||||
~
|
||||
<li class="disabled" title="{=L:bc.menue.osd_screenshot_desc_ni=}>{=L:bc.menue.osd_screenshot=}</li>
|
||||
<li class="disabled" title="{=L:bc.menue.osd_screenshot_desc_ni=}">{=L:bc.menue.osd_screenshot=}</li>
|
||||
=}
|
||||
{=if-equal:{=var-get:dboxshot=}~true~
|
||||
<li><a target="work" title="{=L:bc.menue.remote_osd_desc=}" href="Y_Tools_remote_osd.yhtm">{=L:bc.menue.remote_osd=}</a></li>
|
||||
|
@@ -30,7 +30,7 @@ function do_clearshot2(){
|
||||
<div class="work_box_head"><div class="work_box_head_h2">
|
||||
{=var-set:help_url=Help-BoxControl-Remote_OSD=}{=var-set:menu={=L:bc.menue.remote_osd=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
|
||||
<div class="work_box_body">
|
||||
<div style="height:30x;">
|
||||
<div style="height:30px;">
|
||||
<span id="buttons" style="display:none"><button name="dboxshot" ytype="shot" onclick="do_dboxshot()">{=L:bc.osd.shot=}</button>
|
||||
<button name="clearshot" ytype="clearshot" onclick="do_clearshot()">{=L:bc.osd.delete_shots=}</button></span>
|
||||
<span id="statusline"><img border="0" src="/images/wait.gif" width="20" height="20" alt="wait"/></span>
|
||||
|
51
src/nhttpd/web/Y_Tools_tvshot.yhtm
Normal file
51
src/nhttpd/web/Y_Tools_tvshot.yhtm
Normal file
@@ -0,0 +1,51 @@
|
||||
{=include-block:Y_Blocks.txt;head=}
|
||||
<script type="text/javascript" src="/Y_Baselib.js"></script>
|
||||
<script type="text/javascript" src="/prototype.js"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function do_snapshot(){
|
||||
loadSyncURL("/control/screenshot");
|
||||
window.setTimeout("do_showshot();", 3500);
|
||||
}
|
||||
function do_showshot(){
|
||||
$('statusline').hide();
|
||||
$('buttons').show();
|
||||
$('shot').src = "/tmp/screenshot.png?"+Math.random();
|
||||
$('shot').show();
|
||||
}
|
||||
function do_snapshot_again(){
|
||||
$('buttons').hide();
|
||||
$('statusline').show();
|
||||
window.setTimeout('do_snapshot()', 100);
|
||||
}
|
||||
function do_clearshot(){
|
||||
$('shot').hide();
|
||||
loadSyncURL("/control/exec?Y_Tools&tvshot_clear");
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
</head>
|
||||
<body onload="do_snapshot();">
|
||||
<div class="work_box">
|
||||
<div class="work_box_head">
|
||||
<div class="work_box_head_h2">
|
||||
{=var-set:menu={=L:bc.menue.tv_screenshot=}=}
|
||||
{=include-block:Y_Blocks.txt;work_menu=}
|
||||
</div>
|
||||
</div>
|
||||
<div class="work_box_body">
|
||||
<div style="height:30px;">
|
||||
<span id="buttons" style="display: none;">
|
||||
<button name="snapshot" ytype="shot" onclick="do_snapshot_again();">{=L:bc.tv.shot=}</button>
|
||||
<button name="clearshot" ytype="clearshot" onclick="do_clearshot();">{=L:bc.tv.delete_shot=}</button>
|
||||
</span>
|
||||
<span id="statusline">
|
||||
<img border="0" src="/images/wait.gif" width="20" height="20" alt="wait"/>
|
||||
{=L:bc.tv.shap_wait_text=}
|
||||
</span>
|
||||
</div>
|
||||
<img id="shot" src="" style="display: none; width: 100%; margin: 1em 0"/>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@@ -79,12 +79,14 @@ bc.menue.messages_desc=Nachricht an die Box senden
|
||||
bc.menue.messages=Nachrichten
|
||||
bc.menue.remote_desc=Fernbedinung
|
||||
bc.menue.remote=Fernbedienung
|
||||
bc.menue.lcd_screenshot_desc=lcd screenshot machen
|
||||
bc.menue.lcd_screenshot_desc=LCD Screenshot erstellen
|
||||
bc.menue.lcd_screenshot=LCD Screenshot
|
||||
bc.menue.lcd_screenshot_desc_ni=lcshot nicht installiert in /bin oder /var/bin
|
||||
bc.menue.osd_screenshot_desc=osd screenshot machen
|
||||
bc.menue.osd_screenshot_desc=OSD Screenshot erstellen
|
||||
bc.menue.osd_screenshot=OSD Screenshot
|
||||
bc.menue.osd_screenshot_desc_ni=fbshot nicht installiert in /bin oder /var/bin
|
||||
bc.menue.tv_screenshot_desc=TV Screenshot erstellen
|
||||
bc.menue.tv_screenshot=TV Screenshot
|
||||
bc.menue.remote_osd_desc=Fernbedienung und On Screen Display
|
||||
bc.menue.remote_osd=Fernbed. & OSD
|
||||
bc.menue.remote_osd_desc_ni=dboxshot nicht installiert in /bin oder /var/bin
|
||||
@@ -130,6 +132,11 @@ bc.osd.shot=Schnappschuss
|
||||
bc.osd.delete_shots=Schnappschuss löschen
|
||||
bc.osd.shap_wait_text=Schnappschuss wird erstellt
|
||||
|
||||
======== Boxcontrol - TV-Screenshot
|
||||
bc.tv.shot=Schnappschuss
|
||||
bc.tv.delete_shot=Schnappschuss löschen
|
||||
bc.tv.shap_wait_text=Schnappschuss wird erstellt
|
||||
|
||||
========= Boxcontrol - Others
|
||||
bc.channels=Sender
|
||||
|
||||
|
@@ -87,6 +87,8 @@ bc.menue.lcd_screenshot_desc_ni=lcshot not installed at /bin or /var/bin
|
||||
bc.menue.osd_screenshot_desc=make osd screenshot
|
||||
bc.menue.osd_screenshot=OSD Screenshot
|
||||
bc.menue.osd_screenshot_desc_ni=fbshot not installed at /bin or /var/bin
|
||||
bc.menue.tv_screenshot_desc=make tv screenshot
|
||||
bc.menue.tv_screenshot=TV Screenshot
|
||||
bc.menue.remote_osd_desc=remote and osd
|
||||
bc.menue.remote_osd=Remote & OSD
|
||||
bc.menue.remote_osd_desc_ni=dboxshot not installed at /bin or /var/bin
|
||||
@@ -132,6 +134,11 @@ bc.osd.shot=Shot
|
||||
bc.osd.delete_shots=Delete shots
|
||||
bc.osd.shap_wait_text=Take Snapshot
|
||||
|
||||
======== Boxcontrol - TV-Screenshot
|
||||
bc.tv.shot=Shot
|
||||
bc.tv.delete_shot=Delete shot
|
||||
bc.tv.shap_wait_text=Take Snapshot
|
||||
|
||||
========= Boxcontrol - Others
|
||||
bc.channels=Channels
|
||||
|
||||
|
@@ -87,6 +87,8 @@ bc.menue.lcd_screenshot_desc_ni=lcshot não se encontra instalado em /bin ou /va
|
||||
bc.menue.osd_screenshot_desc=fazer um osd screenshot
|
||||
bc.menue.osd_screenshot=OSD Screenshot
|
||||
bc.menue.osd_screenshot_desc_ni=fbshot não se encontra instalado em /bin ou /var/bin
|
||||
bc.menue.tv_screenshot_desc=frazer um tv screenshot
|
||||
bc.menue.tv_screenshot=TV Screenshot
|
||||
bc.menue.remote_osd_desc=remote e osd
|
||||
bc.menue.remote_osd=Remote & OSD
|
||||
bc.menue.remote_osd_desc_ni=dboxshot não se encontra instalado em /bin ou /var/bin
|
||||
@@ -132,6 +134,11 @@ bc.osd.shot=Shot
|
||||
bc.osd.delete_shots=Apagar shots
|
||||
bc.osd.shap_wait_text=Fazer Snapshot
|
||||
|
||||
======== Boxcontrol - TV-Screenshot
|
||||
bc.tv.shot=Shot
|
||||
bc.tv.delete_shot=Apagar shots
|
||||
bc.tv.shap_wait_text=Frazer Snapshot
|
||||
|
||||
========= Boxcontrol - Others
|
||||
bc.channels=Canais
|
||||
|
||||
|
@@ -565,6 +565,7 @@ case "$1" in
|
||||
lcshot) shift 1; do_lcshot $* ;;
|
||||
fbshot) shift 1; do_fbshot $* ;;
|
||||
fbshot_clear) do_fbshot_clear ;;
|
||||
tvshot_clear) rm -f /tmp/screenshot.png ;;
|
||||
get_update_version_dbox) wget -O /tmp/version.txt "http://www.yjogol.com/download/Y_Version.txt" ;;
|
||||
get_update_version_coolstream) wget -O /tmp/version.txt "http://www.yjogol.com/download/coolstream/Y_Version.txt" ;;
|
||||
settings_backup_restore) shift 1; do_settings_backup_restore $* ;;
|
||||
|
Reference in New Issue
Block a user