- yweb: rework and enable zapit-settings

This commit is contained in:
svenhoefer
2012-07-20 22:35:32 +02:00
parent 9b66c00d04
commit f6ae36664e
3 changed files with 18 additions and 15 deletions

View File

@@ -58,8 +58,8 @@ function init(){
~
<li><a target="work" href="Y_Settings_yWeb.yhtm">yWeb</a></li>
<li><a target="work" href="Y_Settings_nhttpd.yhtm">{=L:set.menue.webserver=}</a></li>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li><a target="work" href="Y_Settings_zapit.yhtm">{=L:set.menue.zapit=}</a></li>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li><a target="work" href="Y_Settings_ucodes.yhtm">{=L:set.menue.ucodes=}</a></li>
<li><a target="work" href="Y_Tools_Bootlogo.yhtm">{=L:set.menue.boot_logo=}</a></li>
~=}

View File

@@ -9,9 +9,11 @@ function do_submit()
else if (document.f.R1[1].checked == true)
_url="/control/exec?Y_Tools&zapit_upload&services.xml";
else if (document.f.R1[2].checked == true)
_url="/control/exec?Y_Tools&zapit_upload&bouquets.xml";
else if (document.f.R1[3].checked == true)
_url="/control/exec?Y_Tools&zapit_upload&myservices.xml";
else
alert("Bitte eine Auswahl treffen");
alert("Please make a selection.\nBitte eine Auswahl treffen.");
document.f.action=_url;
document.f.submit();
}
@@ -26,24 +28,25 @@ function do_submit()
<table border="0" cellpadding="5" width="100%">
<tr><td width="50%" class="y_form_header">Upload</td><td class="y_form_header">Download</td></tr>
<tr>
<td>
<td valign="top">
<form name="f" method="post" enctype="multipart/form-data" action="">
<p>
<input type="radio" name="R1" checked="checked" value="bouquets.xml"/>bouquets.xml<br/>
<input type="radio" name="R1" value="bouquets.xml"/>bouquets.xml<br/>
<input type="radio" name="R1" value="services.xml"/>services.xml<br/>
<input type="radio" name="R1" value="ubouquets.xml"/>ubouquets.xml<br/>
<input type="radio" name="R1" value="myservices.xml"/>myservices.xml<br/>
<input type="file" name="F1" size="20"/><br/>
<button type="button" id="su" ytype="save" name="B1" title="upload selected file" onclick="do_submit()">Absenden</button>
<p>
<input type="file" name="F1" size="20"/><br/>
</p>
<p>
<button type="button" id="su" ytype="save" name="B1" title="upload selected file" onclick="do_submit()">Absenden</button>
</p>
</form>
</td>
<td>
<ul>
<li><a type="application/octet-stream" href="/var/tuxbox/config/zapit/bouquets.xml"><u>bouquets.xml</u></a></li>
<li><a type="application/octet-stream" href="/var/tuxbox/config/zapit/services.xml"><u>services.xml</u></a></li>
<li><a type="application/octet-stream" href="/var/tuxbox/config/zapit/myservices.xml"><u>myservices.xml</u></a></li>
</ul>
<td valign="top">
<a type="application/octet-stream" href="/var/tuxbox/config/zapit/bouquets.xml">bouquets.xml</a><br/>
<a type="application/octet-stream" href="/var/tuxbox/config/zapit/services.xml">services.xml</a><br/>
<a type="application/octet-stream" href="/var/tuxbox/config/zapit/ubouquets.xml">ubouquets.xml</a><br/>
<a type="application/octet-stream" href="/var/tuxbox/config/zapit/myservices.xml">myservices.xml</a><br/>
</td>
</tr>
</table>

View File

@@ -188,7 +188,7 @@ ucodes_upload()
# -----------------------------------------------------------
zapit_upload()
{
msg="$1 hochgeladen<br><a href='/Y_Settings_zapit.htm'><u>next file</u></a>"
msg="$1 hochgeladen<br><a href='/Y_Settings_zapit.yhtm'><u>next file</u></a>"
upload_copy "$y_path_zapit/$1"
y_format_message_html
}