Files
neutrino/data/y-web/Y_Boxcontrol_Messages.yhtm
Thilo Graf ccf604cc8e yWeb: rework for basic functionality
Based on the last changes by svenhoefer
2022-11-07 21:22:45 +01:00

48 lines
1.7 KiB
Plaintext

{=var-set:cancache=yPyes=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/Y_yweb.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_send(mode) {
var msg = document.getElementById(mode);
var res = "error";
if (msg != "")
res = trim(loadSyncURL("/control/message?"+mode+"="+msg.value));
$("out").update(res);
$(mode).setValue("");
}
//]]>
</script>
</head>
<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>