moodle/mod/chat/gui_push_js/chatinput.php
moodler 1515a89e2d Very early version of new chat module, made by Martin using ARSC as
an inspiration.

Works OK already on most newish browsers .. see mod/chat/README.txt for details.
2003-07-07 06:44:16 +00:00

36 lines
1002 B
PHP

<?php
include("../config.inc.php");
include("../functions.inc.php");
if ($arsc_my = arsc_getdatafromsid($arsc_sid))
{
include("../shared/language/".$arsc_my["language"].".inc.php");
if ($arsc_my["level"] >= 0)
{
echo $arsc_parameters["htmlhead_msginput_js"];
?>
<form action="../shared/chatins.php" method="GET" target="empty" name="f" OnSubmit="return empty_field_and_submit()">
<input type="text" name="arsc_message" size="50" maxlength="<?php echo $arsc_parameters["input_maxsize"]; ?>" value="<?php echo $arsc_pretext; ?>">
</form>
<form action="../shared/chatins.php" method="GET" target="empty" name="fdummy" OnSubmit="return empty_field_and_submit()">
<input type="hidden" name="arsc_sid" value="<?php echo $arsc_sid; ?>">
<input type="hidden" name="arsc_chatversion" value="header_js">
<input type="hidden" name="arsc_message">
</form>
</body>
</html>
<?php
}
else
{
echo $arsc_htmlhead_out;
}
}
else
{
echo $arsc_htmlhead_out;
}
?>