mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
yWeb: rename Y_NI_NetFS-control.yhtm => Y_Tools_NetFS.yhtm
Origin commit data
------------------
Branch: ni/coolstream
Commit: ef396f48bf
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-03-02 (Thu, 02 Mar 2023)
Origin message was:
------------------
- yWeb: rename Y_NI_NetFS-control.yhtm => Y_Tools_NetFS.yhtm
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -76,6 +76,9 @@ install_DATA = extensions.txt \
|
||||
Y_Tools_Menue.yhtm \
|
||||
Y_Tools_m3uConvert.yhtm \
|
||||
Y_Tools_m3uConvert_help.yhtm \
|
||||
Y_Tools_NetFS.yhtm \
|
||||
Y_Tools_NetFS_edit.yhtm \
|
||||
Y_Tools_NetFS_init.yhtm \
|
||||
Y_Tools_Rcsim.yhtm \
|
||||
Y_Tools_Screenshot.yhtm \
|
||||
Y_Tools_Screenshot_GraphLCD.yhtm \
|
||||
@@ -85,11 +88,6 @@ install_DATA = extensions.txt \
|
||||
Y_Wait.yhtm \
|
||||
Y_yWeb.js
|
||||
|
||||
# NI-yWeb
|
||||
install_DATA += Y_NI_NetFS-control.yhtm \
|
||||
Y_NI_NetFS-edit.yhtm \
|
||||
Y_NI_NetFS-init.yhtm
|
||||
|
||||
install-data-hook:
|
||||
@# Badass hack, I know. If anyone knows a better way -- please send patch!
|
||||
find $(DESTDIR)$(PRIVATE_HTTPDDIR)/ -type f -print0 | xargs --no-run-if-empty -0 \
|
||||
|
@@ -521,18 +521,18 @@ start-block~netfs_table_row
|
||||
{=var-get:local_dir_{=var-get:nr=}=}
|
||||
</td>
|
||||
<td>
|
||||
<a href="/Y_NI_NetFS-edit.yhtm?nr={=var-get:nr=}&mount_type={=mount_type=}&mount_type_s={=mount_type_s=}" title="{=L:ni.edit=}">
|
||||
<a href="/Y_Tools_NetFS_edit.yhtm?nr={=var-get:nr=}&mount_type={=mount_type=}&mount_type_s={=mount_type_s=}" title="{=L:ni.edit=}">
|
||||
<img src="/images/modify.png">
|
||||
</a>
|
||||
{=if-equal:{=mount_type=}~0~
|
||||
{=if-equal:{=var-get:is_mount_{=var-get:nr=}=}~false~
|
||||
<a href="javascript:Y_NI_Tools('do_mount {=var-get:local_dir_{=var-get:nr=}=}', 5000);" title="{=L:ni.netfs-control.mount=}">
|
||||
<a href="javascript:Y_NI_Tools('do_mount {=var-get:local_dir_{=var-get:nr=}=}', 5000);" title="{=L:tools.netfscontrol.mount=}">
|
||||
<img src="/images/server_add.png">
|
||||
</a>
|
||||
<img src="/images/blank.png">
|
||||
~
|
||||
<img src="/images/blank.png">
|
||||
<a href="javascript:Y_NI_Tools('do_umount {=var-get:local_dir_{=var-get:nr=}=}', 5000);" title="{=L:ni.netfs-control.umount=}">
|
||||
<a href="javascript:Y_NI_Tools('do_umount {=var-get:local_dir_{=var-get:nr=}=}', 5000);" title="{=L:tools.netfscontrol.umount=}">
|
||||
<img src="/images/server_delete.png">
|
||||
</a>
|
||||
=}
|
||||
|
302
data/y-web/Y_EPG.js.jQuery
Normal file
302
data/y-web/Y_EPG.js.jQuery
Normal file
@@ -0,0 +1,302 @@
|
||||
/* yWeb EPG by yjogol
|
||||
*/
|
||||
|
||||
/* EPG+ */
|
||||
|
||||
var g_width_px = 0; /* display width */
|
||||
var g_number_of_cols = 0; /* nr of cols */
|
||||
var g_width_all_items = 0; /* width without bouquet */
|
||||
var c_width_px_per_min = 3; /* px per minute */
|
||||
var c_min_per_col = 15; /* minutes per col */
|
||||
var c_width_px_bouquet = 100; /* width of bouquet */
|
||||
var c_slider_width = 25;
|
||||
var epg_data; /* all EPG Data in 2-dim Array */
|
||||
var epg_data_index = 0;
|
||||
var g_timer_eventids = new Array();
|
||||
var g_selected = 0;
|
||||
|
||||
/* calc the dimension px and mins to display */
|
||||
function epg_plus_calc_dimensions()
|
||||
{
|
||||
var show_dim = jQuery('#epg_plus').outerWidth();
|
||||
var usable_width_px = show_dim.width - c_slider_width; /*get display width*/
|
||||
var max_minutes_to_display = Math.round((usable_width_px - c_width_px_bouquet - c_width_px_per_min) / c_width_px_per_min); /* calc display minutes*/
|
||||
g_number_of_cols = Math.round(max_minutes_to_display / c_min_per_col);
|
||||
g_width_px = g_number_of_cols * c_width_px_per_min * c_min_per_col + c_width_px_bouquet + c_width_px_per_min;
|
||||
g_width_all_items = g_width_px - c_width_px_bouquet - c_width_px_per_min;
|
||||
jQuery('#epg_plus').css('width', g_width_px);
|
||||
}
|
||||
|
||||
function do_zap(channelid)
|
||||
{
|
||||
stb_zapto(channelid);
|
||||
}
|
||||
|
||||
function epg_zapto()
|
||||
{
|
||||
stb_zapto(jQuery('#d_channel_id').text());
|
||||
}
|
||||
|
||||
function epg_set_timer_rec()
|
||||
{
|
||||
stb_set_timer_rec(jQuery("#d_channel_id").text(), jQuery("#d_start").text(), jQuery("#d_stop").text());
|
||||
}
|
||||
|
||||
function epg_set_timer_zap()
|
||||
{
|
||||
stb_set_timer_zap(jQuery("#d_channel_id").text(), jQuery("#d_start").text());
|
||||
}
|
||||
|
||||
function build_epg_clear()
|
||||
{
|
||||
var ep = jQuery("#epg_plus");
|
||||
obj_clear_all_childs(ep);
|
||||
}
|
||||
|
||||
/* set a layout box and content */
|
||||
function build_epg_setbox(_item, _starttime, _stoptime, _start, _stop)
|
||||
{
|
||||
var d_start = Math.max(_start, _starttime);
|
||||
var d_stop = Math.min(_stop, _stoptime);
|
||||
var d_left = c_width_px_bouquet + c_width_px_per_min + Math.round((d_start - _starttime) * c_width_px_per_min / 60);
|
||||
var d_width = Math.max(0, Math.round((d_stop - d_start) * c_width_px_per_min / 60) - 3);
|
||||
d_width = Math.min(d_width, g_width_px - d_left);
|
||||
if (d_start < _stoptime)
|
||||
_item.css({
|
||||
'position': 'absolute',
|
||||
'top': '0px',
|
||||
'left': d_left + 'px',
|
||||
'width': d_width + 'px'
|
||||
})
|
||||
}
|
||||
|
||||
/* show epg details */
|
||||
function show_epg_item(_index)
|
||||
{
|
||||
g_selected=_index;
|
||||
jQuery("#d_desc").html(epg_data[_index][4] + " " + epg_data[_index][0]);
|
||||
jQuery("#d_info1").html(epg_data[_index][1]);
|
||||
jQuery("#d_info2").html(epg_data[_index][2]);
|
||||
jQuery("#d_start").html(epg_data[_index][3]);
|
||||
jQuery("#d_stop").html(epg_data[_index][5]);
|
||||
jQuery("#d_channel_id").html(epg_data[_index][6]);
|
||||
var logo = epg_data[_index][7];
|
||||
jQuery("#d_logo").html((logo != "") ? "<img class=\"channel_logos\" src=\"" + logo + "\">" : "");
|
||||
|
||||
var off= jQuery('#epg_plus').offset();
|
||||
jQuery('#epg_info').css({
|
||||
'left': off.left + 50 + 'px',
|
||||
'top': off.top + 50 + 'px',
|
||||
'position': 'absolute'
|
||||
});
|
||||
show_obj("epg_info",true);
|
||||
}
|
||||
|
||||
/* build one channel row */
|
||||
function build_epg_bouquet(__bdiv, __channel_id, _starttime, _stoptime, _logo)
|
||||
{
|
||||
var xml = loadSyncURLxml("/control/epg?xml=true&channelid=" + __channel_id + "&details=true&stoptime=" + _stoptime);
|
||||
if (xml)
|
||||
{
|
||||
var prog_list = xml.getElementsByTagName('prog');
|
||||
for (var i = 0; i < prog_list.length; i++)
|
||||
{
|
||||
var prog = prog_list[i];
|
||||
|
||||
var _stop = getXMLNodeItemValue(prog, "stop_sec");
|
||||
_stop = parseInt(_stop);
|
||||
if (_stop > _starttime)
|
||||
{
|
||||
var _start_t = getXMLNodeItemValue(prog, "start_t");
|
||||
var _start = getXMLNodeItemValue(prog, "start_sec");
|
||||
_start = parseInt(_start);
|
||||
var _stop_t = getXMLNodeItemValue(prog, "stop_t");
|
||||
var _desc = epg_de_qout(getXMLNodeItemValue(prog, "description"));
|
||||
var _info1 = epg_de_qout(getXMLNodeItemValue(prog, "info1"));
|
||||
var _info2 = epg_de_qout(getXMLNodeItemValue(prog, "info2"));
|
||||
var __item = obj_createAt(__bdiv, "div", "ep_bouquet_item");
|
||||
|
||||
var epg_obj = new Array(_desc, _info1, _info2, _start, _start_t, _stop.toString(), __channel_id, _logo);
|
||||
epg_data.push(epg_obj);
|
||||
__item.innerHTML = "<span onclick=\"show_epg_item('" + epg_data_index + "');\" title=\"" + _start_t + " " + _desc + " (click for details)\">" + _desc + "</span>";
|
||||
build_epg_setbox(__item, _starttime, _stoptime, _start, _stop);
|
||||
epg_data_index++;
|
||||
}
|
||||
}
|
||||
/* look for timers*/
|
||||
var fou = g_timer_eventids.findAll(function(e) {
|
||||
return e.get('channelid') == __channel_id;
|
||||
});
|
||||
if (fou)
|
||||
{
|
||||
jQuery(fou).each(function(i, e) {
|
||||
var stTime="0";
|
||||
var tclass="";
|
||||
if (e.get('eventType') == 3) /* zap */
|
||||
{
|
||||
stTime = e.get('alarmTime');
|
||||
stTime = parseInt(stTime, 10) + 200;
|
||||
stTime = stTime.toString();
|
||||
tclass = "ep_bouquet_zap";
|
||||
}
|
||||
else if (e.get('eventType') == 5) /* record */
|
||||
{
|
||||
stTime = e.get('stopTime');
|
||||
tclass = "ep_bouquet_rec";
|
||||
}
|
||||
var __item = obj_createAt(__bdiv, "div", tclass);
|
||||
build_epg_setbox(__item, _starttime, _stoptime, e.get('alarmTime'), stTime);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* build time row */
|
||||
function build_epg_time_bar(_tdiv, _starttime, _stoptime){
|
||||
var _start = _starttime;
|
||||
for (var i = 0; i < g_number_of_cols; i++)
|
||||
{
|
||||
var __item = obj_createAt(_tdiv, "div", "ep_time_bar_item");
|
||||
__item.innerHTML = format_time(new Date(_start * 1000));
|
||||
var _stop = _start + (c_min_per_col * 60);
|
||||
build_epg_setbox(__item, _starttime, _stoptime, _start, _stop);
|
||||
_start = _stop;
|
||||
}
|
||||
}
|
||||
|
||||
function get_timer()
|
||||
{
|
||||
g_timer_eventids = new Array();
|
||||
var timer = loadSyncURL("/control/timer?format=id");
|
||||
var lines = timer.split("\n");
|
||||
jQuery(lines).each(function(index, line) {
|
||||
var vals = line.split(" ");
|
||||
if (vals.length >= 8 && (vals[1] == 3 || vals[5])) /* record and zap */
|
||||
{
|
||||
var aTimer = $H( {
|
||||
'eventID': vals[0],
|
||||
'eventType': vals[1],
|
||||
'eventRepeat': vals[2],
|
||||
'repcount': vals[3],
|
||||
'announceTime': vals[4],
|
||||
'alarmTime': vals[5],
|
||||
'stopTime': vals[6],
|
||||
'channelid': vals[7]
|
||||
});
|
||||
g_timer_eventids.push(aTimer);
|
||||
}
|
||||
},this);
|
||||
}
|
||||
|
||||
/* main */
|
||||
var g_i = 0;
|
||||
var g_bouquet_list;
|
||||
var g_display_logos = "";
|
||||
function build_epg_plus(_bouquet, _starttime)
|
||||
{
|
||||
build_epg_clear();
|
||||
epg_data = new Array();
|
||||
epg_data_index=0;
|
||||
var _bouquets_xml = loadSyncURLxml("/control/getbouquet?bouquet=" + _bouquet + "&xml=true");
|
||||
if (_bouquets_xml)
|
||||
{
|
||||
g_bouquet_list = _bouquets_xml.getElementsByTagName("channel");
|
||||
var ep = jQuery("#epg_plus");
|
||||
var _stoptime = _starttime + c_min_per_col * 60 * g_number_of_cols;
|
||||
var __tdiv = obj_createAt(ep, "div", "ep_time_bar");
|
||||
var __tname_div = obj_createAt(__tdiv, "div", "ep_time_bar_item");
|
||||
__tname_div.innerHTML = "Uhrzeit";
|
||||
__tname_div.style.cssText = "width:" + c_width_px_bouquet + "px;";
|
||||
build_epg_time_bar(__tdiv, _starttime, _stoptime);
|
||||
__tdiv.style.cssText = "width:" + g_width_px;
|
||||
var __ediv = obj_createAt(ep, "div", "epg_plus_container");
|
||||
__ediv.setAttribute("id", "epg_plus_container")
|
||||
g_i = 0;
|
||||
window.setTimeout("build_epg_plus_loop(" + _starttime + "," + _stoptime + ")", 100);
|
||||
}
|
||||
}
|
||||
|
||||
function build_epg_plus_loop(_starttime, _stoptime)
|
||||
{
|
||||
if (g_i<g_bouquet_list.length)
|
||||
{
|
||||
var _bouquet = g_bouquet_list[g_i];
|
||||
var __channel_name = getXMLNodeItemValue(_bouquet, "name");
|
||||
var __channel_id = getXMLNodeItemValue(_bouquet, "id");
|
||||
var __short_channel_id = getXMLNodeItemValue(_bouquet, "short_id");
|
||||
var __logo = getXMLNodeItemValue(_bouquet, "logo");
|
||||
var ep = jQuery("#epg_plus_container");
|
||||
var __bdiv = obj_createAt(ep, "div", "ep_bouquet");
|
||||
var __bname_div = obj_createAt(__bdiv, "div", "ep_bouquet_name");
|
||||
var ch_name_with_logo = (g_display_logos == "true") ? "<img class=\"channel_logos\" src=\"" + __logo + "\" title=\"" + __channel_name + "\" alt=\"" + __channel_name + "\" >" : __channel_name;
|
||||
jQuery("#"+__bname_div).css({ "width": c_width_px_bouquet + "px"});
|
||||
jQuery("#"+__bname_div).html("<a href=\"javascript:do_zap('" + __channel_id + "');\">" + ch_name_with_logo + "</a>");
|
||||
build_epg_bouquet(__bdiv, __channel_id, _starttime, _stoptime, __logo);
|
||||
window.setTimeout("build_epg_plus_loop(" + _starttime + "," + _stoptime + ")", 100);
|
||||
g_i++;
|
||||
}
|
||||
else
|
||||
{
|
||||
show_waitbox(false);
|
||||
obj_disable("btGet", false);
|
||||
}
|
||||
}
|
||||
|
||||
/* main: build epg+ */
|
||||
function build_epg_plus_main()
|
||||
{
|
||||
epg_plus_calc_dimensions();
|
||||
get_timer();
|
||||
show_obj("epg_info", false);
|
||||
show_waitbox(true);
|
||||
obj_disable("btGet", true);
|
||||
var sel = document.e.bouquets.selectedIndex;
|
||||
if (sel != -1)
|
||||
bou = document.e.bouquets[sel].value;
|
||||
else
|
||||
bou = 1;
|
||||
_secs = document.e.epg_time.value;
|
||||
_secs = parseInt(_secs);
|
||||
build_epg_plus(bou, _secs);
|
||||
//document.getElementById("epg_plus").width = g_width_px;
|
||||
}
|
||||
|
||||
/* change time offset and build epg+ */
|
||||
function build_epg_plus_delta(_delta)
|
||||
{
|
||||
if (document.e.epg_time.selectedIndex + _delta < document.e.epg_time.length && document.e.epg_time.selectedIndex + _delta >= 0)
|
||||
document.e.epg_time.selectedIndex += _delta;
|
||||
build_epg_plus_main();
|
||||
}
|
||||
|
||||
/* time delta dropdown-list */
|
||||
function build_time_list(_delta)
|
||||
{
|
||||
var now = new Date();
|
||||
now.setMinutes(0);
|
||||
now.setSeconds(0);
|
||||
now.setMilliseconds(0);
|
||||
now = new Date(now.getTime() + _delta * 60 * 60 * 1000);
|
||||
var _secs = now / 1000;
|
||||
var _hour = now.getHours();
|
||||
var et = document.getElementById("epg_time");
|
||||
for (i = 0; i < 24; i++)
|
||||
{
|
||||
var _time = (_hour + i) % 24;
|
||||
if(_time < 10)
|
||||
_time = "0" + _time;
|
||||
_time += ":00";
|
||||
var _time_t = _secs + i * 3600;
|
||||
var __item = obj_createAt(et, "option", "ep_bouquet_item");
|
||||
__item.text = _time;
|
||||
__item.value = _time_t;
|
||||
}
|
||||
}
|
||||
|
||||
/* init call */
|
||||
function epg_plus_init(_display_logos)
|
||||
{
|
||||
g_display_logos = _display_logos;
|
||||
window.onresize = epg_plus_calc_dimensions();
|
||||
build_time_list(0);
|
||||
}
|
@@ -41,16 +41,16 @@ function init(){
|
||||
{=var-set:m_link_text={=L:tools.mounts=}=}
|
||||
{=include-block:Y_Blocks.txt;management_link=}
|
||||
</li>
|
||||
<li>{=L:ni.netfs-control=}</li>
|
||||
<li>{=L:tools.netfs-control=}</li>
|
||||
<ul>
|
||||
<li>
|
||||
{=var-set:m_link_href=Y_NI_NetFS-init.yhtm?mount_type=0&mount_type_s=fstab=}
|
||||
{=var-set:m_link_href=Y_Tools_NetFS-init.yhtm?mount_type=0&mount_type_s=fstab=}
|
||||
{=var-set:m_link_desc=fstab-{=L:tools.mounts=}=}
|
||||
{=var-set:m_link_text=/var/etc/fstab=}
|
||||
{=include-block:Y_Blocks.txt;management_link=}
|
||||
</li>
|
||||
<li>
|
||||
{=var-set:m_link_href=Y_NI_NetFS-init.yhtm?mount_type=1&mount_type_s=automount=}
|
||||
{=var-set:m_link_href=Y_Tools_NetFS-init.yhtm?mount_type=1&mount_type_s=automount=}
|
||||
{=var-set:m_link_desc={=L:tools.automount=}=}
|
||||
{=var-set:m_link_text=/var/etc/auto.net=}
|
||||
{=include-block:Y_Blocks.txt;management_link=}
|
||||
|
@@ -21,7 +21,7 @@
|
||||
<script>
|
||||
function edit_popup()
|
||||
{
|
||||
popup = window.open('/Y_Filemgr_Edit.yhtm?file={=if-file-exists:/var/etc/{=L:ni.netfs-{=mount_type=}=}~/var/etc/{=L:ni.netfs-{=mount_type=}=}~/etc/{=L:ni.netfs-{=mount_type=}=}=}', 'edit', 'width=800,height=600,resizable=yes');
|
||||
popup = window.open('/Y_Filemgr_Edit.yhtm?file={=if-file-exists:/var/etc/{=L:tools.netfs.{=mount_type=}=}~/var/etc/{=L:tools.netfs.{=mount_type=}=}~/etc/{=L:tools.netfs.{=mount_type=}=}=}', 'edit', 'width=800,height=600,resizable=yes');
|
||||
check_popup();
|
||||
}
|
||||
|
||||
@@ -44,8 +44,8 @@ function wait_for_popup()
|
||||
|
||||
function restart_menu()
|
||||
{
|
||||
alert('{=L:ni.netfs-control.restart_menu=}');
|
||||
window.document.location.href='/Y_NI_NetFS-init.yhtm?mount_type={=mount_type=}&mount_type_s={=mount_type_s=}';
|
||||
alert('{=L:tools.netfs.restart_menu=}');
|
||||
window.document.location.href='/Y_Tools_NetFS_init.yhtm?mount_type={=mount_type=}&mount_type_s={=mount_type_s=}';
|
||||
}
|
||||
|
||||
function do_submit()
|
||||
@@ -56,32 +56,32 @@ function do_submit()
|
||||
</script>
|
||||
{=include-block:Y_Blocks.txt;head_close=}
|
||||
<body>
|
||||
{=var-set:wait_text={=L:ni.netfs-control.title=}<br/>=}{=include-block:Y_Blocks.txt;snip_wait=}
|
||||
{=var-set:wait_text={=L:tools.netfs.title=}<br/>=}{=include-block:Y_Blocks.txt;snip_wait=}
|
||||
<div class="work_box">
|
||||
<div class="work_box_head"><div class="work_box_head_h2">
|
||||
{=var-set:menu={=L:ni.netfs-control.title=}=}{=include-block:Y_Blocks.txt;work_menu=}
|
||||
{=var-set:menu={=L:tools.netfs.title=}=}{=include-block:Y_Blocks.txt;work_menu=}
|
||||
</div></div>
|
||||
<div class="work_box_body">
|
||||
<table class="y_invisible_table" cellpadding="5">
|
||||
<tr>
|
||||
<td class="y_form_header" width="30%">
|
||||
{=L:ni.netfs-control.entrys=} {=L:ni.netfs-{=mount_type=}=}
|
||||
{=L:tools.netfs.entrys=} {=L:tools.netfs.{=mount_type=}=}
|
||||
</td>
|
||||
<td class="y_form_header">
|
||||
<a href="javascript:edit_popup();" title="{=L:ni.edit=}: {=L:ni.netfs-{=mount_type=}=}">
|
||||
<a href="javascript:edit_popup();" title="{=L:ni.edit=}: {=L:tools.netfs.{=mount_type=}=}">
|
||||
<img src="/images/modify.png">
|
||||
</a>
|
||||
{=if-equal:{=mount_type=}~0~
|
||||
<a href="javascript:Y_NI_Tools('do_mount_all', 5000);" title="{=L:ni.netfs-control.mount_all=}">
|
||||
<a href="javascript:Y_NI_Tools('do_mount_all', 5000);" title="{=L:tools.netfs.mount_all=}">
|
||||
<img src="/images/server_add.png">
|
||||
</a>
|
||||
<a href="javascript:Y_NI_Tools('do_umount_all', 5000);" title="{=L:ni.netfs-control.umount_all=}">
|
||||
<a href="javascript:Y_NI_Tools('do_umount_all', 5000);" title="{=L:tools.netfs.umount_all=}">
|
||||
<img src="/images/server_delete.png">
|
||||
</a>
|
||||
~
|
||||
=}
|
||||
{=if-equal:{=mount_type=}~1~
|
||||
<a href="javascript:Y_NI_Tools('do_autofs restart', 5000);" title="{=L:ni.netfs-control.autofs_restart=}">
|
||||
<a href="javascript:Y_NI_Tools('do_autofs restart', 5000);" title="{=L:tools.netfs.autofs_restart=}">
|
||||
<img src="/images/server_link.png">
|
||||
</a>
|
||||
~
|
||||
@@ -98,9 +98,9 @@ function do_submit()
|
||||
{=var-set:nr=7=} {=include-block:Y_Blocks.txt;netfs_table_row=}
|
||||
</table>
|
||||
<br />
|
||||
<button type="button" ytype="save" title="{=L:ni.save=}: {=L:ni.netfs-{=mount_type=}=}" onclick="$('out').update(''); goUrl('/y/cgi?execute=func:netfs_write_config {=mount_type=}')">{=L:ni.save=}</button>
|
||||
<button type="button" ytype="save" title="{=L:ni.save=}: {=L:tools.netfs.{=mount_type=}=}" onclick="$('out').update(''); goUrl('/y/cgi?execute=func:netfs_write_config {=mount_type=}')">{=L:ni.save=}</button>
|
||||
{=if-equal:{=mount_type=}~1~
|
||||
<button type="button" ytype="refresh" title="{=L:ni.netfs-control.autofs_restart=}" onclick="Y_NI_Tools('do_autofs restart', 5000)">{=L:ni.reload=}</button>
|
||||
<button type="button" ytype="refresh" title="{=L:tools.netfs.autofs_restart=}" onclick="Y_NI_Tools('do_autofs restart', 5000)">{=L:ni.reload=}</button>
|
||||
~
|
||||
=}
|
||||
</div>
|
@@ -22,10 +22,10 @@ function do_submit()
|
||||
</script>
|
||||
{=include-block:Y_Blocks.txt;head_close=}
|
||||
<body onload="form_init()">
|
||||
{=var-set:wait_text={=L:ni.netfs-control.title=}<br/>=}{=include-block:Y_Blocks.txt;snip_wait=}
|
||||
{=var-set:wait_text={=L:tools.netfs.title=}<br/>=}{=include-block:Y_Blocks.txt;snip_wait=}
|
||||
<div class="work_box">
|
||||
<div class="work_box_head"><div class="work_box_head_h2">
|
||||
{=var-set:menu={=L:ni.netfs-control.title=} ({=L:ni.edit=}: {=L:ni.netfs-{=mount_type=}=} - {=nr=})=}{=include-block:Y_Blocks.txt;work_menu=}
|
||||
{=var-set:menu={=L:tools.netfs.title=} ({=L:ni.edit=}: {=L:tools.netfs.{=mount_type=}=} - {=nr=})=}{=include-block:Y_Blocks.txt;work_menu=}
|
||||
</div></div>
|
||||
<div class="work_box_body">
|
||||
<form name="f" action="/y/cgi">
|
||||
@@ -34,50 +34,50 @@ function do_submit()
|
||||
<input type="hidden" name="nr" value="{=nr=}"/>
|
||||
<table border="0" class="y_form_table">
|
||||
<tr>
|
||||
<td>{=L:ni.netfs-control.type=}</td>
|
||||
<td>{=L:tools.netfs.type=}</td>
|
||||
<td>
|
||||
<input onclick="form_init();" type="radio" name="type" value="0" {=if-equal:{=ini-get:%(CONFIGDIR)/neutrino.conf;netfs_{=mount_type_s=}_type_{=nr=}~open=}~0~checked="checked"~=} />NFS
|
||||
<input onclick="form_init();" type="radio" name="type" value="1" {=if-equal:{=ini-get:%(CONFIGDIR)/neutrino.conf;netfs_{=mount_type_s=}_type_{=nr=}~cache=}~1~checked="checked"~=} />CIFS
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{=L:ni.netfs-control.ip=}</td>
|
||||
<td>{=L:tools.netfs.ip=}</td>
|
||||
<td><input type="text" name="ip" size="15" maxlength="15" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;netfs_{=mount_type_s=}_ip_{=nr=}~cache=}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{=L:ni.netfs-control.dir=}</td>
|
||||
<td>{=L:tools.netfs.dir=}</td>
|
||||
<td><input type="text" name="dir" size="30" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;netfs_{=mount_type_s=}_dir_{=nr=}~cache=}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{=L:ni.netfs-control.local_dir=}</td>
|
||||
<td>{=L:tools.netfs.local_dir=}</td>
|
||||
<td><input type="text" name="localdir" size="30" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;netfs_{=mount_type_s=}_local_dir_{=nr=}~cache=}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{=L:ni.netfs-control.options=} 1</td>
|
||||
<td>{=L:tools.netfs.options=} 1</td>
|
||||
<td><input type="text" name="opt1" size="30" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;netfs_{=mount_type_s=}_mount_options1_{=nr=}~cache=}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{=L:ni.netfs-control.options=} 2</td>
|
||||
<td>{=L:tools.netfs.options=} 2</td>
|
||||
<td><input type="text" name="opt2" size="30" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;netfs_{=mount_type_s=}_mount_options2_{=nr=}~cache=}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{=L:ni.netfs-control.user=}</td>
|
||||
<td>{=L:tools.netfs.user=}</td>
|
||||
<td><input type="text" name="username" size="30" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;netfs_{=mount_type_s=}_username_{=nr=}~cache=}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{=L:ni.netfs-control.password=}</td>
|
||||
<td>{=L:tools.netfs.password=}</td>
|
||||
<td><input type="text" name="password" size="30" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;netfs_{=mount_type_s=}_password_{=nr=}~cache=}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{=L:ni.netfs-control.dump=}</td>
|
||||
<td>{=L:tools.netfs.dump=}</td>
|
||||
<td><input type="text" name="dump" size="3" maxlength="3" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;netfs_{=mount_type_s=}_dump_{=nr=}~cache=}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{=L:ni.netfs-control.pass=}</td>
|
||||
<td>{=L:tools.netfs.pass=}</td>
|
||||
<td><input type="text" name="pass" size="3" maxlength="3" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;netfs_{=mount_type_s=}_pass_{=nr=}~cache=}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{=L:ni.netfs-control.active=}</td>
|
||||
<td>{=L:tools.netfs.active=}</td>
|
||||
<td>
|
||||
<input type="radio" name="active" value="1" {=if-equal:{=ini-get:%(CONFIGDIR)/neutrino.conf;netfs_{=mount_type_s=}_active_{=nr=}~cache=}~1~checked="checked"~=} />{=L:on=}
|
||||
<input type="radio" name="active" value="0" {=if-equal:{=ini-get:%(CONFIGDIR)/neutrino.conf;netfs_{=mount_type_s=}_active_{=nr=}~cache=}~0~checked="checked"~=} />{=L:off=}
|
||||
@@ -85,10 +85,10 @@ function do_submit()
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<input type="hidden" name="tmpl" value="Y_NI_NetFS-control.yhtm"/>
|
||||
<input type="hidden" name="tmpl" value="Y_Tools_NetFS.yhtm"/>
|
||||
<input type="hidden" name="execute" value="func:netfs_set_values"/>
|
||||
<button type="button" ytype="accept_" title="ok" onClick="do_submit()">OK</button>
|
||||
<button type="button" ytype="cancel_" title="{=L:cancel=}" name="abort" onClick='window.document.location.href="/Y_NI_NetFS-control.yhtm?mount_type={=mount_type=}&mount_type_s={=mount_type_s=}"'>{=L:ni.cancel=}</button>
|
||||
<button type="button" ytype="cancel_" title="{=L:cancel=}" name="abort" onClick='window.document.location.href="/Y_Tools_NetFS.yhtm?mount_type={=mount_type=}&mount_type_s={=mount_type_s=}"'>{=L:ni.cancel=}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
@@ -2,7 +2,7 @@
|
||||
<script src="/Y_Baselib.js"></script>
|
||||
<script>
|
||||
jQuery(document).ready(function(){
|
||||
window.document.location.href='/Y_NI_NetFS-control.yhtm?mount_type={=mount_type=}&mount_type_s={=mount_type_s=}';
|
||||
window.document.location.href='/Y_Tools_NetFS.yhtm?mount_type={=mount_type=}&mount_type_s={=mount_type_s=}';
|
||||
});
|
||||
</script>
|
||||
{=include-block:Y_Blocks.txt;head_close=}
|
@@ -1,3 +1,3 @@
|
||||
version=3.0.49
|
||||
date=28.02.2023
|
||||
version=3.0.50
|
||||
date=02.03.2023
|
||||
info=NI-Neutrino-Webinterface
|
||||
|
@@ -404,6 +404,29 @@ tools.yinstaller.head=yInstaller
|
||||
tools.yinstaller.tar_file=tar-Datei
|
||||
tools.yinstaller.upload_install=hochladen und installieren
|
||||
|
||||
# ===== Tools NetFS
|
||||
tools.netfs=NetFS
|
||||
tools.netfs.0=fstab
|
||||
tools.netfs.1=auto.net
|
||||
tools.netfs.title=NetFS-Steuerung
|
||||
tools.netfs.entrys=NetFS-Einträge
|
||||
tools.netfs.restart_menu=Das NetFS-Menü wird nun erneut gestartet
|
||||
tools.netfs.mount_all=Alle einhängen
|
||||
tools.netfs.umount_all=Alle aushängen
|
||||
tools.netfs.mount=Einhängen
|
||||
tools.netfs.umount=Aushängen
|
||||
tools.netfs.type=Typ
|
||||
tools.netfs.ip=Entfernte IP-Adresse
|
||||
tools.netfs.dir=Entferntes Verzeichnis
|
||||
tools.netfs.user=Benutzername
|
||||
tools.netfs.password=Passwort
|
||||
tools.netfs.options=Optionen
|
||||
tools.netfs.dump=Dump
|
||||
tools.netfs.pass=Pass
|
||||
tools.netfs.local_dir=Lokales Verzeichnis
|
||||
tools.netfs.active=Eintrag aktiv
|
||||
tools.netfs.autofs_restart=autofs neu starten
|
||||
|
||||
# ===== Tools
|
||||
tools.automount=AutoMounts
|
||||
tools.mounts_desc=File mounts organisieren
|
||||
@@ -552,25 +575,3 @@ ni.reload=Neu laden
|
||||
ni.configure=Konfigurieren
|
||||
ni.dblclick=Doppelklick erforderlich
|
||||
ni.infopage=NI Infoseite
|
||||
|
||||
ni.netfs-control=NetFS
|
||||
ni.netfs-0=fstab
|
||||
ni.netfs-1=auto.net
|
||||
ni.netfs-control.title=NetFS-Steuerung
|
||||
ni.netfs-control.entrys=NetFS-Einträge
|
||||
ni.netfs-control.restart_menu=Das NetFS-Menü wird nun erneut gestartet
|
||||
ni.netfs-control.mount_all=Alle einhängen
|
||||
ni.netfs-control.umount_all=Alle aushängen
|
||||
ni.netfs-control.mount=Einhängen
|
||||
ni.netfs-control.umount=Aushängen
|
||||
ni.netfs-control.type=Typ
|
||||
ni.netfs-control.ip=Entfernte IP-Adresse
|
||||
ni.netfs-control.dir=Entferntes Verzeichnis
|
||||
ni.netfs-control.user=Benutzername
|
||||
ni.netfs-control.password=Passwort
|
||||
ni.netfs-control.options=Optionen
|
||||
ni.netfs-control.dump=Dump
|
||||
ni.netfs-control.pass=Pass
|
||||
ni.netfs-control.local_dir=Lokales Verzeichnis
|
||||
ni.netfs-control.active=Eintrag aktiv
|
||||
ni.netfs-control.autofs_restart=autofs neu starten
|
||||
|
@@ -404,6 +404,29 @@ tools.yinstaller.head=yInstaller
|
||||
tools.yinstaller.tar_file=tar-File
|
||||
tools.yinstaller.upload_install=upload and install
|
||||
|
||||
# ===== Tools NetFS
|
||||
tools.netfs=NetFS
|
||||
tools.netfs.0=fstab
|
||||
tools.netfs.1=auto.net
|
||||
tools.netfs.title=NetFS-Control
|
||||
tools.netfs.entrys=NetFS-Entrys
|
||||
tools.netfs.restart_menu=The NetFS-Menu will restart now
|
||||
tools.netfs.mount_all=Mount all
|
||||
tools.netfs.umount_all=Unmount all
|
||||
tools.netfs.mount=Mount
|
||||
tools.netfs.umount=Unmount
|
||||
tools.netfs.type=Typ
|
||||
tools.netfs.ip=Remote IP-Adress
|
||||
tools.netfs.dir=Remote directory
|
||||
tools.netfs.user=Username
|
||||
tools.netfs.password=Password
|
||||
tools.netfs.options=Options
|
||||
tools.netfs.dump=Dump
|
||||
tools.netfs.pass=Pass
|
||||
tools.netfs.local_dir=Local directory
|
||||
tools.netfs.active=Entry active
|
||||
tools.netfs.autofs_restart=Restart autofs
|
||||
|
||||
# ===== Tools
|
||||
tools.automount=AutoMounts
|
||||
tools.mounts_desc=organize file mounts
|
||||
@@ -552,25 +575,3 @@ ni.reload=Reload
|
||||
ni.configure=Configure
|
||||
ni.dblclick=Doubleclick required
|
||||
ni.infopage=NI Infopage
|
||||
|
||||
ni.netfs-control=NetFS
|
||||
ni.netfs-0=fstab
|
||||
ni.netfs-1=auto.net
|
||||
ni.netfs-control.title=NetFS-Control
|
||||
ni.netfs-control.entrys=NetFS-Entrys
|
||||
ni.netfs-control.restart_menu=The NetFS-Menu will restart now
|
||||
ni.netfs-control.mount_all=Mount all
|
||||
ni.netfs-control.umount_all=Unmount all
|
||||
ni.netfs-control.mount=Mount
|
||||
ni.netfs-control.umount=Unmount
|
||||
ni.netfs-control.type=Typ
|
||||
ni.netfs-control.ip=Remote IP-Adress
|
||||
ni.netfs-control.dir=Remote directory
|
||||
ni.netfs-control.user=Username
|
||||
ni.netfs-control.password=Password
|
||||
ni.netfs-control.options=Options
|
||||
ni.netfs-control.dump=Dump
|
||||
ni.netfs-control.pass=Pass
|
||||
ni.netfs-control.local_dir=Local directory
|
||||
ni.netfs-control.active=Entry active
|
||||
ni.netfs-control.autofs_restart=Restart autofs
|
||||
|
Reference in New Issue
Block a user