Files
recycled-ni-neutrino/data/y-web/Y_Boxcontrol_Messages.yhtm
vanhofen ba2ba60e50 yWeb: rework cache categories
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7ab528ffb7
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-03-06 (Mon, 06 Mar 2023)

Origin message was:
------------------
- yWeb: rework cache categories

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2023-03-06 23:52:06 +01:00

45 lines
1.6 KiB
Plaintext

{=var-set:cancache=yPDefault=}
{=include-block:Y_Blocks.txt;head=}
{=include-block:Y_Blocks.txt;js_jquery=}
<script src="/Y_Baselib.js"></script>
<script>
function do_send(mode) {
var msg = id(mode);
var res = "error";
if (msg != "")
res = trim(loadSyncURL("/control/message?"+mode+"="+msg.value));
jQuery("#out").html(res);
jQuery('#'+mode).val("");
}
</script>
{=include-block:Y_Blocks.txt;head_close=}
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:menu={=L:bc.menue.messages=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<table class="y_invisible_table" cellpadding="5" width="100%">
<tr><td class="y_form_header">{=L:bc.msg.message_to_screen=}</td></tr>
<tr><td>
<input id="nmsg" type="text" size="50" maxlength="255" title="{=L:bc.msg.message_to_screen_desc=}"/>
<button type="button" ytype="go" onclick="do_send('nmsg')" title="{=L:bc.msg.send_message=}">{=L:send=}</button>
</td></tr>
<tr><td class="y_form_header">{=L:bc.msg.popup_to_screen=}</td></tr>
<tr><td>
<input id="popup" type="text" size="50" maxlength="255" title="{=L:bc.msg.message_to_screen_desc=}"/>
<button type="button" ytype="go" onclick="do_send('popup')" title="{=L:bc.msg.send_message=}">{=L:send=}</button>
</td></tr>
</table>
<br/>
</div>
</div>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:menu={=L:answer=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<div id="out"></div>
</div>
</div>
</body>
</html>